Comparing version 6.0.1 to 6.0.2
@@ -46,3 +46,3 @@ "use strict"; | ||
enumerable: false, | ||
configurable: false | ||
configurable: false, | ||
}); | ||
@@ -52,3 +52,25 @@ const keys = Object.keys(obj); | ||
const next = obj[key]; | ||
obj[key] = (next !== null && typeof next === 'object') ? _parse(next) : next; | ||
if (next !== null && typeof next === 'object') { | ||
if (meta.isRef(next)) { | ||
Object.defineProperty(obj, key, { | ||
get: () => { | ||
Object.defineProperty(obj, key, { | ||
value: deref(next), | ||
enumerable: true, | ||
configurable: true, | ||
writable: true, | ||
}); | ||
return obj[key]; | ||
}, | ||
enumerable: true, | ||
configurable: true, | ||
}); | ||
} | ||
else { | ||
obj[key] = _parse(next); | ||
} | ||
} | ||
else { | ||
obj[key] = next; | ||
} | ||
} | ||
@@ -55,0 +77,0 @@ meta.getMeta(obj).derefd = true; |
{ | ||
"name": "jsonref", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"description": "Javascript References ($ref) and Pointers library", | ||
@@ -52,22 +52,22 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@commitlint/config-conventional": "^11.0.0", | ||
"@types/chai": "^4.2.14", | ||
"@commitlint/config-conventional": "^12.1.1", | ||
"@types/chai": "^4.2.17", | ||
"@types/chai-as-promised": "^7.1.3", | ||
"@types/chai-spies": "^1.0.3", | ||
"@types/mocha": "^8.2.0", | ||
"@types/node": "^14.14.25", | ||
"chai": "^4.3.0", | ||
"@types/mocha": "^8.2.2", | ||
"@types/node": "^15.0.1", | ||
"chai": "^4.3.4", | ||
"chai-as-promised": "^7.1.1", | ||
"chai-spies": "^1.0.0", | ||
"commitizen": "^4.2.3", | ||
"commitlint": "^11.0.0", | ||
"commitlint": "^12.1.1", | ||
"coveralls": "^3.1.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"husky": "^5.0.9", | ||
"mocha": "^8.2.1", | ||
"mochawesome": "^6.2.1", | ||
"husky": "^6.0.0", | ||
"mocha": "^8.3.2", | ||
"mochawesome": "^6.2.2", | ||
"nyc": "^15.1.0", | ||
"rimraf": "^3.0.2", | ||
"semantic-release": "^17.3.8", | ||
"typescript": "^4.1.3" | ||
"semantic-release": "^17.4.2", | ||
"typescript": "^4.2.4" | ||
}, | ||
@@ -74,0 +74,0 @@ "config": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
36850
756
0