Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2014-06-06 10:34:38 +0400
committerisaacs <i@izs.me>2014-06-06 10:34:38 +0400
commit40bcfa522278bda3722c0a437f331b1433f64f36 (patch)
tree6cf08d25049caf3e47fc2809fbbf720eff2a92af /node_modules/ini
parent8611af0da4c59a567b92f180b908c35f143973c1 (diff)
ini@1.2.1
Diffstat (limited to 'node_modules/ini')
-rw-r--r--node_modules/ini/ini.js4
-rw-r--r--node_modules/ini/package.json15
-rw-r--r--node_modules/ini/test/foo.js44
3 files changed, 32 insertions, 31 deletions
diff --git a/node_modules/ini/ini.js b/node_modules/ini/ini.js
index 1d1e6e934..f5e444118 100644
--- a/node_modules/ini/ini.js
+++ b/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/node_modules/ini/package.json b/node_modules/ini/package.json
index 6c3c8d18e..5212afb06 100644
--- a/node_modules/ini/package.json
+++ b/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/node_modules/ini/test/foo.js b/node_modules/ini/test/foo.js
index e1499cbe3..5c59890e8 100644
--- a/node_modules/ini/test/foo.js
+++ b/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',