Socket
Socket
Sign inDemoInstall

toml

Package Overview
Dependencies
0
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.3.4 to 2.3.5

8

lib/compiler.js

@@ -79,3 +79,3 @@ "use strict";

function reduceInlineTableNode(values) {
var obj = {};
var obj = Object.create(null);
for (var i = 0; i < values.length; i++) {

@@ -103,3 +103,3 @@ var val = values[i];

assignedPaths.push(quotedPath);
context = deepRef(data, path, {}, line, column);
context = deepRef(data, path, Object.create(null), line, column);
currentPath = path;

@@ -125,3 +125,3 @@ }

if (context instanceof Array) {
var newObj = {};
var newObj = Object.create(null);
context.push(newObj);

@@ -152,3 +152,3 @@ context = newObj;

} else {
ctx[key] = {};
ctx[key] = Object.create(null);
}

@@ -155,0 +155,0 @@ } else if (i !== keys.length - 1 && valueAssignments.indexOf(traversedPath) > -1) {

{
"name": "toml",
"version": "2.3.4",
"version": "2.3.5",
"description": "TOML parser for Node.js (parses TOML spec v0.4.0)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -589,6 +589,6 @@ var toml = require('../');

exports.testUsingConstructorAsKey = function(test) {
test.parsesToml("[empty]\n[emptier]\n[constructor]\n[emptiest]", {
test.parsesToml("[empty]\n[emptier]\n[constructor]\nconstructor = 1\n[emptiest]", {
"empty": {},
"emptier": {},
"constructor": {},
"constructor": { "constructor": 1 },
"emptiest": {}

@@ -595,0 +595,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