properties-reader
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "properties-reader", | ||
"description": "Properties file reader for Node.js", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"author": { | ||
@@ -23,3 +23,5 @@ "name": "Steve King", | ||
"devDependencies": { | ||
"jest": "^26.6.3" | ||
"@changesets/changelog-github": "^0.4.8", | ||
"@changesets/cli": "^2.26.2", | ||
"jest": "^29.6.3" | ||
}, | ||
@@ -44,4 +46,8 @@ "keywords": [ | ||
}, | ||
"funding": { | ||
"type": "github", | ||
"url": "https://github.com/steveukx/properties?sponsor=1" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=14" | ||
}, | ||
@@ -48,0 +54,0 @@ "license": "MIT", |
@@ -226,3 +226,6 @@ const {readFileSync, statSync} = require('fs'); | ||
if (typeof parsedValue === 'string' && typeof source[expanded[0]] === 'object') { | ||
if (expanded[0] === '__proto__') { | ||
Object.defineProperty(source, expanded[0], { value: parsedValue }); | ||
} | ||
else if (typeof parsedValue === 'string' && typeof source[expanded[0]] === 'object') { | ||
source[expanded[0]][''] = parsedValue; | ||
@@ -229,0 +232,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20348
419
3