Commit activity
Last 12 weeks · 5 commits
Community health
4 of 6 standards met
Recent fixes
A self-referencing array is rebuilt as nested arrays ending in an empty object. The original circular reference is lost. The equivalent self-reference on an object is preserved. Reproduction Expected: Keep the array self-reference intact, as the object-mapping path does for circular objects. Suggested fix: Register the actual mapped array in the shared reference cache before mapping its elements, and reuse that array on subsequent visits. Version: 6.0.0. Environment: Node.js v24.19.0.
I found that if you have a Blob instance or File instance within object which passed in and deep is true the function will go inside this objects. I guess it is not correct because Blob and File are js's special objects and this logic breaks them. If you add a simple check like !(value instanceof Blob) here that will fix this problem. I can create PR.
Repository: sindresorhus/map-obj. Description: Map object keys and values into a new object Stars: 218, Forks: 42. Primary language: JavaScript. Languages: JavaScript (80.9%), TypeScript (19.1%). License: MIT. Latest release: v7.0.0 (1w ago). Open PRs: 0, open issues: 0. Last activity: 1w ago. Community health: 85%. Top contributors: sindresorhus, bendrucker, Richienb, ninevra, coreyfarrell, BendingBender, gr2m, jamestalmage, faizanu94, rocktimsaikia and others.