diff options
Diffstat (limited to 'deps/npm/node_modules/ini')
-rw-r--r-- | deps/npm/node_modules/ini/ini.js | 4 | ||||
-rw-r--r-- | deps/npm/node_modules/ini/package.json | 15 | ||||
-rw-r--r-- | deps/npm/node_modules/ini/test/foo.js | 44 |
3 files changed, 32 insertions, 31 deletions
diff --git a/deps/npm/node_modules/ini/ini.js b/deps/npm/node_modules/ini/ini.js index 1d1e6e9341..f5e4441186 100644 --- a/deps/npm/node_modules/ini/ini.js +++ b/deps/npm/node_modules/ini/ini.js @@ -15,13 +15,13 @@ function encode (obj, section) { var val = obj[k] if (val && Array.isArray(val)) { val.forEach(function(item) { - out += safe(k + "[]") + " = " + safe(item) + "\n" + out += safe(k + "[]") + "=" + safe(item) + "\n" }) } else if (val && typeof val === "object") { children.push(k) } else { - out += safe(k) + " = " + safe(val) + eol + out += safe(k) + "=" + safe(val) + eol } }) diff --git a/deps/npm/node_modules/ini/package.json b/deps/npm/node_modules/ini/package.json index 6c3c8d18e6..5212afb063 100644 --- a/deps/npm/node_modules/ini/package.json +++ b/deps/npm/node_modules/ini/package.json @@ -6,7 +6,7 @@ }, "name": "ini", "description": "An ini encoder/decoder for node", - "version": "1.2.0", + "version": "1.2.1", "repository": { "type": "git", "url": "git://github.com/isaacs/ini.git" @@ -22,14 +22,15 @@ "devDependencies": { "tap": "~0.4.0" }, + "gitHead": "13498ce1ba5a6a20cd77ed2b55de0e714786f70c", "bugs": { "url": "https://github.com/isaacs/ini/issues" }, "homepage": "https://github.com/isaacs/ini", - "_id": "ini@1.2.0", - "_shasum": "2cc36789605809930722e793ae13ac835e623ac6", + "_id": "ini@1.2.1", + "_shasum": "7f774e2f22752cd1dacbf9c63323df2a164ebca3", "_from": "ini@latest", - "_npmVersion": "1.4.10", + "_npmVersion": "1.4.11", "_npmUser": { "name": "isaacs", "email": "i@izs.me" @@ -41,9 +42,9 @@ } ], "dist": { - "shasum": "2cc36789605809930722e793ae13ac835e623ac6", - "tarball": "http://registry.npmjs.org/ini/-/ini-1.2.0.tgz" + "shasum": "7f774e2f22752cd1dacbf9c63323df2a164ebca3", + "tarball": "http://registry.npmjs.org/ini/-/ini-1.2.1.tgz" }, "directories": {}, - "_resolved": "https://registry.npmjs.org/ini/-/ini-1.2.0.tgz" + "_resolved": "https://registry.npmjs.org/ini/-/ini-1.2.1.tgz" } diff --git a/deps/npm/node_modules/ini/test/foo.js b/deps/npm/node_modules/ini/test/foo.js index e1499cbe39..5c59890e8b 100644 --- a/deps/npm/node_modules/ini/test/foo.js +++ b/deps/npm/node_modules/ini/test/foo.js @@ -6,32 +6,32 @@ var i = require("../") , fixture = path.resolve(__dirname, "./fixtures/foo.ini") , data = fs.readFileSync(fixture, "utf8") , d - , expectE = 'o = p\n' - + 'a with spaces = b c\n' - + '" xa n p " = "\\"\\r\\nyoyoyo\\r\\r\\n"\n' - + '"[disturbing]" = hey you never know\n' - + 's = something\n' - + 's1 = \"something\'\n' - + 's2 = something else\n' - + 'zr[] = deedee\n' - + 'ar[] = one\n' - + 'ar[] = three\n' - + 'ar[] = this is included\n' - + 'br = warm\n' + , expectE = 'o=p\n' + + 'a with spaces=b c\n' + + '" xa n p "="\\"\\r\\nyoyoyo\\r\\r\\n"\n' + + '"[disturbing]"=hey you never know\n' + + 's=something\n' + + 's1=\"something\'\n' + + 's2=something else\n' + + 'zr[]=deedee\n' + + 'ar[]=one\n' + + 'ar[]=three\n' + + 'ar[]=this is included\n' + + 'br=warm\n' + '\n' + '[a]\n' - + 'av = a val\n' - + 'e = { o: p, a: ' + + 'av=a val\n' + + 'e={ o: p, a: ' + '{ av: a val, b: { c: { e: "this [value]" ' - + '} } } }\nj = "\\"{ o: \\"p\\", a: { av:' + + '} } } }\nj="\\"{ o: \\"p\\", a: { av:' + ' \\"a val\\", b: { c: { e: \\"this [value]' - + '\\" } } } }\\""\n"[]" = a square?\n' - + 'cr[] = four\ncr[] = eight\n\n' - +'[a.b.c]\ne = 1\n' - + 'j = 2\n\n[x\\.y\\.z]\nx.y.z = xyz\n\n' - + '[x\\.y\\.z.a\\.b\\.c]\na.b.c = abc\n' - + 'nocomment = this\\; this is not a comment\n' - + 'noHashComment = this\\# this is not a comment\n' + + '\\" } } } }\\""\n"[]"=a square?\n' + + 'cr[]=four\ncr[]=eight\n\n' + +'[a.b.c]\ne=1\n' + + 'j=2\n\n[x\\.y\\.z]\nx.y.z=xyz\n\n' + + '[x\\.y\\.z.a\\.b\\.c]\na.b.c=abc\n' + + 'nocomment=this\\; this is not a comment\n' + + 'noHashComment=this\\# this is not a comment\n' , expectD = { o: 'p', 'a with spaces': 'b c', |