Comparing version 5.0.1 to 5.0.2
@@ -102,3 +102,3 @@ module.exports = flatten | ||
target = Object.keys(target).reduce((result, key) => { | ||
target = Object.keys(target).reduce(function (result, key) { | ||
const type = Object.prototype.toString.call(target[key]) | ||
@@ -105,0 +105,0 @@ const isObject = (type === '[object Object]' || type === '[object Array]') |
{ | ||
"name": "flat", | ||
"version": "5.0.1", | ||
"version": "5.0.2", | ||
"main": "index.js", | ||
@@ -12,4 +12,4 @@ "bin": "cli.js", | ||
"devDependencies": { | ||
"mocha": "~6.2.2", | ||
"standard": "^14.3.1" | ||
"mocha": "~8.1.1", | ||
"standard": "^14.3.4" | ||
}, | ||
@@ -16,0 +16,0 @@ "directories": { |
@@ -536,13 +536,13 @@ /* globals suite test */ | ||
test('should not pollute prototype', function () { | ||
unflatten({ | ||
'__proto__.polluted': true | ||
}); | ||
unflatten({ | ||
'prefix.__proto__.polluted': true | ||
}); | ||
unflatten({ | ||
'prefix.0.__proto__.polluted': true | ||
}); | ||
unflatten({ | ||
'__proto__.polluted': true | ||
}) | ||
unflatten({ | ||
'prefix.__proto__.polluted': true | ||
}) | ||
unflatten({ | ||
'prefix.0.__proto__.polluted': true | ||
}) | ||
assert.notStrictEqual({}.polluted, true); | ||
assert.notStrictEqual({}.polluted, true) | ||
}) | ||
@@ -549,0 +549,0 @@ }) |
Sorry, the diff of this file is not supported yet
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
26578