Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flat

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flat - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

2

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc