Socket
Socket
Sign inDemoInstall

ini

Package Overview
Dependencies
0
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.5 to 1.3.6

8

ini.js

@@ -83,2 +83,8 @@ exports.parse = exports.decode = decode

section = unsafe(match[1])
if (section === '__proto__') {
// not allowed
// keep parsing the section, but don't attach it.
p = {}
return
}
p = out[section] = out[section] || {}

@@ -98,2 +104,3 @@ return

key = key.substring(0, key.length - 2)
if (key === '__proto__') return
if (!p[key]) {

@@ -130,2 +137,3 @@ p[key] = []

parts.forEach(function (part, _, __) {
if (part === '__proto__') return
if (!p[part] || typeof p[part] !== 'object') p[part] = {}

@@ -132,0 +140,0 @@ p = p[part]

4

package.json

@@ -5,3 +5,3 @@ {

"description": "An ini encoder/decoder for node",
"version": "1.3.5",
"version": "1.3.6",
"repository": {

@@ -17,3 +17,3 @@ "type": "git",

"postversion": "npm publish",
"postpublish": "git push origin --all; git push origin --tags"
"prepublishOnly": "git push origin --follow-tags"
},

@@ -20,0 +20,0 @@ "engines": {

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