diff options
author | Rebecca Turner <rebecca@npmjs.com> | 2015-06-11 23:35:45 +0300 |
---|---|---|
committer | Rebecca Turner <rebecca@npmjs.com> | 2015-06-12 05:14:49 +0300 |
commit | a6f0265e83fe35b3cc2940714ebf351ce480ac74 (patch) | |
tree | 54ae8447d52db59d41a369a5e4eb32b8fd274fd3 /node_modules/ini | |
parent | cc41475f0e237e07cf436487126b96a893dfcc85 (diff) |
ini@1.3.4
Published package only includes necessary files
Diffstat (limited to 'node_modules/ini')
-rw-r--r-- | node_modules/ini/.npmignore | 1 | ||||
-rw-r--r-- | node_modules/ini/package.json | 34 | ||||
-rw-r--r-- | node_modules/ini/test/bar.js | 23 | ||||
-rw-r--r-- | node_modules/ini/test/fixtures/foo.ini | 65 | ||||
-rw-r--r-- | node_modules/ini/test/foo.js | 107 |
5 files changed, 19 insertions, 211 deletions
diff --git a/node_modules/ini/.npmignore b/node_modules/ini/.npmignore deleted file mode 100644 index 3c3629e64..000000000 --- a/node_modules/ini/.npmignore +++ /dev/null @@ -1 +0,0 @@ -node_modules diff --git a/node_modules/ini/package.json b/node_modules/ini/package.json index 5a1e10b81..e9b9d5396 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.3.3", + "version": "1.3.4", "repository": { "type": "git", "url": "git://github.com/isaacs/ini.git" @@ -20,22 +20,29 @@ }, "dependencies": {}, "devDependencies": { - "tap": "~0.4.0" + "tap": "^1.2.0" }, "license": "ISC", - "gitHead": "566268f1fb8dd3c0f7d968091de7b7fb2b97b483", + "files": [ + "ini.js" + ], + "gitHead": "4a3001abc4c608e51add9f1d2b2cadf02b8e6dea", "bugs": { "url": "https://github.com/isaacs/ini/issues" }, - "homepage": "https://github.com/isaacs/ini", - "_id": "ini@1.3.3", - "_shasum": "c07e34aef1de06aff21d413b458e52b21533a11e", - "_from": "ini@>=1.3.1 <1.4.0", - "_npmVersion": "2.5.1", - "_nodeVersion": "1.1.0", + "homepage": "https://github.com/isaacs/ini#readme", + "_id": "ini@1.3.4", + "_shasum": "0537cb79daf59b59a1a517dff706c86ec039162e", + "_from": "ini@latest", + "_npmVersion": "2.10.1", + "_nodeVersion": "2.0.1", "_npmUser": { "name": "isaacs", - "email": "i@izs.me" + "email": "isaacs@npmjs.com" + }, + "dist": { + "shasum": "0537cb79daf59b59a1a517dff706c86ec039162e", + "tarball": "http://registry.npmjs.org/ini/-/ini-1.3.4.tgz" }, "maintainers": [ { @@ -43,10 +50,7 @@ "email": "i@izs.me" } ], - "dist": { - "shasum": "c07e34aef1de06aff21d413b458e52b21533a11e", - "tarball": "http://registry.npmjs.org/ini/-/ini-1.3.3.tgz" - }, "directories": {}, - "_resolved": "https://registry.npmjs.org/ini/-/ini-1.3.3.tgz" + "_resolved": "https://registry.npmjs.org/ini/-/ini-1.3.4.tgz", + "readme": "ERROR: No README data found!" } diff --git a/node_modules/ini/test/bar.js b/node_modules/ini/test/bar.js deleted file mode 100644 index cb16176ef..000000000 --- a/node_modules/ini/test/bar.js +++ /dev/null @@ -1,23 +0,0 @@ -//test that parse(stringify(obj) deepEqu - -var ini = require('../') -var test = require('tap').test - -var data = { - 'number': {count: 10}, - 'string': {drink: 'white russian'}, - 'boolean': {isTrue: true}, - 'nested boolean': {theDude: {abides: true, rugCount: 1}} -} - - -test('parse(stringify(x)) deepEqual x', function (t) { - - for (var k in data) { - var s = ini.stringify(data[k]) - console.log(s, data[k]) - t.deepEqual(ini.parse(s), data[k]) - } - - t.end() -}) diff --git a/node_modules/ini/test/fixtures/foo.ini b/node_modules/ini/test/fixtures/foo.ini deleted file mode 100644 index fc2080f16..000000000 --- a/node_modules/ini/test/fixtures/foo.ini +++ /dev/null @@ -1,65 +0,0 @@ -o = p - - a with spaces = b c - -; wrap in quotes to JSON-decode and preserve spaces -" xa n p " = "\"\r\nyoyoyo\r\r\n" - -; wrap in quotes to get a key with a bracket, not a section. -"[disturbing]" = hey you never know - -; Test single quotes -s = 'something' - -; Test mixing quotes - -s1 = "something' - -; Test double quotes -s2 = "something else" - -; Test arrays -zr[] = deedee -ar[] = one -ar[] = three -; This should be included in the array -ar = this is included - -; Test resetting of a value (and not turn it into an array) -br = cold -br = warm - -eq = "eq=eq" - -; a section -[a] -av = a val -e = { o: p, a: { av: a val, b: { c: { e: "this [value]" } } } } -j = "{ o: "p", a: { av: "a val", b: { c: { e: "this [value]" } } } }" -"[]" = a square? - -; Nested array -cr[] = four -cr[] = eight - -; nested child without middle parent -; should create otherwise-empty a.b -[a.b.c] -e = 1 -j = 2 - -; dots in the section name should be literally interpreted -[x\.y\.z] -x.y.z = xyz - -[x\.y\.z.a\.b\.c] -a.b.c = abc - -; this next one is not a comment! it's escaped! -nocomment = this\; this is not a comment - -# Support the use of the number sign (#) as an alternative to the semicolon for indicating comments. -# http://en.wikipedia.org/wiki/INI_file#Comments - -# this next one is not a comment! it's escaped! -noHashComment = this\# this is not a comment diff --git a/node_modules/ini/test/foo.js b/node_modules/ini/test/foo.js deleted file mode 100644 index 58102d1e7..000000000 --- a/node_modules/ini/test/foo.js +++ /dev/null @@ -1,107 +0,0 @@ -var i = require("../") - , tap = require("tap") - , test = tap.test - , fs = require("fs") - , path = require("path") - , 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' - + 'eq=\"eq=eq\"\n' - + '\n' - + '[a]\n' - + 'av=a val\n' - + 'e={ o: p, a: ' - + '{ av: a val, b: { c: { e: "this [value]" ' - + '} } } }\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' - , expectD = - { o: 'p', - 'a with spaces': 'b c', - " xa n p ":'"\r\nyoyoyo\r\r\n', - '[disturbing]': 'hey you never know', - 's': 'something', - 's1' : '\"something\'', - 's2': 'something else', - 'zr': ['deedee'], - 'ar': ['one', 'three', 'this is included'], - 'br': 'warm', - 'eq': 'eq=eq', - a: - { av: 'a val', - e: '{ o: p, a: { av: a val, b: { c: { e: "this [value]" } } } }', - j: '"{ o: "p", a: { av: "a val", b: { c: { e: "this [value]" } } } }"', - "[]": "a square?", - cr: ['four', 'eight'], - b: { c: { e: '1', j: '2' } } }, - 'x.y.z': { - 'x.y.z': 'xyz', - 'a.b.c': { - 'a.b.c': 'abc', - 'nocomment': 'this\; this is not a comment', - noHashComment: 'this\# this is not a comment' - } - } - } - , expectF = '[prefix.log]\n' - + 'type=file\n\n' - + '[prefix.log.level]\n' - + 'label=debug\n' - + 'value=10\n' - , expectG = '[log]\n' - + 'type = file\n\n' - + '[log.level]\n' - + 'label = debug\n' - + 'value = 10\n' - -test("decode from file", function (t) { - var d = i.decode(data) - t.deepEqual(d, expectD) - t.end() -}) - -test("encode from data", function (t) { - var e = i.encode(expectD) - t.deepEqual(e, expectE) - - var obj = {log: { type:'file', level: {label:'debug', value:10} } } - e = i.encode(obj) - t.notEqual(e.slice(0, 1), '\n', 'Never a blank first line') - t.notEqual(e.slice(-2), '\n\n', 'Never a blank final line') - - t.end() -}) - -test("encode with option", function (t) { - var obj = {log: { type:'file', level: {label:'debug', value:10} } } - e = i.encode(obj, {section: 'prefix'}) - - t.equal(e, expectF) - t.end() -}) - -test("encode with whitespace", function (t) { - var obj = {log: { type:'file', level: {label:'debug', value:10} } } - e = i.encode(obj, {whitespace: true}) - - t.equal(e, expectG) - t.end() -}) |