Comparing version 1.3.7 to 1.3.8
10
ini.js
@@ -21,3 +21,3 @@ exports.parse = exports.decode = decode | ||
} else { | ||
opt = opt || Object.create(null) | ||
opt = opt || {} | ||
opt.whitespace = opt.whitespace === true | ||
@@ -69,3 +69,3 @@ } | ||
function decode (str) { | ||
var out = Object.create(null) | ||
var out = {} | ||
var p = out | ||
@@ -88,6 +88,6 @@ var section = null | ||
// keep parsing the section, but don't attach it. | ||
p = Object.create(null) | ||
p = {} | ||
return | ||
} | ||
p = out[section] = out[section] || Object.create(null) | ||
p = out[section] = out[section] || {} | ||
return | ||
@@ -142,3 +142,3 @@ } | ||
if (!p[part] || typeof p[part] !== 'object') | ||
p[part] = Object.create(null) | ||
p[part] = {} | ||
p = p[part] | ||
@@ -145,0 +145,0 @@ }) |
@@ -5,3 +5,3 @@ { | ||
"description": "An ini encoder/decoder for node", | ||
"version": "1.3.7", | ||
"version": "1.3.8", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
9304