Comparing version 1.6.1 to 1.6.2
@@ -79,2 +79,3 @@ var isBuffer = require('is-buffer') | ||
while (key2 !== undefined) { | ||
if (key1 === '__proto__') { return } | ||
var type = Object.prototype.toString.call(recipient[key1]) | ||
@@ -81,0 +82,0 @@ var isobject = ( |
{ | ||
"name": "flat", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -391,2 +391,16 @@ var assert = require('assert') | ||
}) | ||
test('should not pollute prototype', function () { | ||
unflatten({ | ||
'__proto__.polluted': true | ||
}); | ||
unflatten({ | ||
'prefix.__proto__.polluted': true | ||
}); | ||
unflatten({ | ||
'prefix.0.__proto__.polluted': true | ||
}); | ||
assert.notStrictEqual({}.polluted, true); | ||
}) | ||
}) | ||
@@ -393,0 +407,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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
17019
496
0
6