Comparing version 2.3.4 to 2.3.5
@@ -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 @@ }); |
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
143997