Socket
Socket
Sign inDemoInstall

flat

Package Overview
Dependencies
1
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

1

index.js

@@ -76,2 +76,3 @@ var isBuffer = require('is-buffer')

while (key2 !== undefined) {
if (key1 === '__proto__') { return }
var type = Object.prototype.toString.call(recipient[key1])

@@ -78,0 +79,0 @@ var isobject = (

2

package.json
{
"name": "flat",
"version": "3.0.0",
"version": "3.0.1",
"main": "index.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -448,2 +448,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);
})
})

@@ -450,0 +464,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc