Skip to content

Commit 00c5e95

Browse files
author
Mark Wylde
committed
Actually at version 1.0.5
1 parent 908ffb1 commit 00c5e95

File tree

2 files changed

+94
-1
lines changed

2 files changed

+94
-1
lines changed

npm-debug.log

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
0 info it worked if it ends with ok
2+
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'publish' ]
3+
2 info using [email protected]
4+
3 info using [email protected]
5+
4 verbose publish [ '.' ]
6+
5 silly cache add args [ '.', null ]
7+
6 verbose cache add spec .
8+
7 silly cache add parsed spec Result {
9+
7 silly cache add raw: '.',
10+
7 silly cache add scope: null,
11+
7 silly cache add name: null,
12+
7 silly cache add rawSpec: '.',
13+
7 silly cache add spec: '/Users/markwylde/Documents/nestify',
14+
7 silly cache add type: 'directory' }
15+
8 verbose addLocalDirectory /Users/markwylde/.npm/nestify/1.0.4/package.tgz not in flight; packing
16+
9 verbose tar pack [ '/Users/markwylde/.npm/nestify/1.0.4/package.tgz',
17+
9 verbose tar pack '/Users/markwylde/Documents/nestify' ]
18+
10 verbose tarball /Users/markwylde/.npm/nestify/1.0.4/package.tgz
19+
11 verbose folder /Users/markwylde/Documents/nestify
20+
12 info prepublish [email protected]
21+
13 verbose addLocalTarball adding from inside cache /Users/markwylde/.npm/nestify/1.0.4/package.tgz
22+
14 silly cache afterAdd [email protected]
23+
15 verbose afterAdd /Users/markwylde/.npm/nestify/1.0.4/package/package.json not in flight; writing
24+
16 verbose afterAdd /Users/markwylde/.npm/nestify/1.0.4/package/package.json written
25+
17 silly publish { name: 'nestify',
26+
17 silly publish version: '1.0.4',
27+
17 silly publish description: 'A utility library to convert between nested and flattened arrays or objects.',
28+
17 silly publish main: 'lib/index.js',
29+
17 silly publish scripts: { test: 'mocha tests/*.spec.js' },
30+
17 silly publish repository:
31+
17 silly publish { type: 'git',
32+
17 silly publish url: 'git+https://github.com/markwylde/nestify.git' },
33+
17 silly publish author: { name: '[email protected]' },
34+
17 silly publish license: 'MIT',
35+
17 silly publish bugs: { url: 'https://github.com/markwylde/nestify/issues' },
36+
17 silly publish homepage: 'https://github.com/markwylde/nestify#readme',
37+
17 silly publish devDependencies: { mocha: '^2.4.5' },
38+
17 silly publish readme: '# nestify\n\nA utility library to convert between nested and flattened arrays or objects.\n\n## Install via npm\n```shell\nnpm install nestify\n```\n\n## Documentation\n### nestify()\nTake a flattened array of objects and create an array of nested objects out of them\n\n```javascript\nvar nestify = require(\'nestify\').nestify\n\nvar flattened = [{\n id: 1,\n name: \'Dogs\'\n}, {\n id: 2,\n name: \'Cats\'\n}, {\n id: 3,\n parentId: 1,\n name: \'Sammy\'\n}, {\n id: 4,\n parentId: 1,\n name: \'Snowy\'\n}, {\n id: 5,\n parentId: 2,\n name: \'Tabby\'\n}, {\n id: 6,\n parentId: 5,\n name: \'Tabbys Child\'\n}]\n\nvar result = nestify({\n id: \'id\',\n parentId: \'parentId\',\n children: \'children\'\n}, flattened)\n```\n\n> Note that the first argument of `nestify` is not required and therefore you \n> could use the command like below if you are happy with the default options:\n>\n>```javascript\n> var result = nestify(flattened)\n> ```\n\n```javascript\nresult === [{\n id: 1,\n name: \'Dogs\',\n children: [{\n id: 3,\n parentId: 1,\n name: \'Sammy\'\n }, {\n id: 4,\n parentId: 1,\n name: \'Snowy\'\n }]\n}, {\n id: 2,\n name: \'Cats\',\n children: [{\n id: 5,\n parentId: 2,\n name: \'Tabby\',\n children: [{\n id: 6,\n parentId: 5,\n name: \'Tabbys Child\'\n }]\n }]\n}]\n```\n\n\n### flatify()\nTake an array of nested objects and create a flattened array of objects out of them\n\n```javascript\nvar nested = [{\n id: 1,\n name: \'Dogs\',\n children: [{\n id: 3,\n name: \'Sammy\'\n }, {\n id: 4,\n name: \'Snowy\'\n }]\n}, {\n id: 2,\n name: \'Cats\',\n children: [{\n id: 5,\n name: \'Tabby\',\n children: [{\n id: 6,\n name: \'Tabbys Child\'\n }]\n }]\n}]\n\nvar result = flatify({\n id: \'id\',\n parentId: \'parentId\',\n children: \'children\'\n}, nested)\n```\n\n> Note that the first argument of `flatify` is not required and therefore you \n> could use the command like below if you are happy with the default options:\n>\n>```javascript\n> var result = flatify(nested)\n> ```\n\n```javascript\nresult === [{\n id: 1,\n name: \'Dogs\'\n}, {\n id: 3,\n parentId: 1,\n name: \'Sammy\'\n}, {\n id: 4,\n parentId: 1,\n name: \'Snowy\'\n}, {\n id: 2,\n name: \'Cats\'\n}, {\n id: 5,\n parentId: 2,\n name: \'Tabby\'\n}, {\n id: 6,\n parentId: 5,\n name: \'Tabbys Child\'\n}]\n```\n\n## License\nThe MIT License (MIT)',
39+
17 silly publish readmeFilename: 'README.md',
40+
17 silly publish gitHead: '908ffb1dba3148e19b035104150e053a2c444a24',
41+
17 silly publish _id: '[email protected]',
42+
17 silly publish _shasum: '94cd231a760c093bd9c8e8cbdfaf4355876db141',
43+
17 silly publish _from: '.' }
44+
18 verbose getPublishConfig undefined
45+
19 silly mapToRegistry name nestify
46+
20 silly mapToRegistry using default registry
47+
21 silly mapToRegistry registry https://registry.npmjs.org/
48+
22 silly mapToRegistry uri https://registry.npmjs.org/nestify
49+
23 verbose publish registryBase https://registry.npmjs.org/
50+
24 silly publish uploading /Users/markwylde/.npm/nestify/1.0.4/package.tgz
51+
25 verbose request uri https://registry.npmjs.org/nestify
52+
26 verbose request sending authorization for write operation
53+
27 info attempt registry request try #1 at 9:31:14 PM
54+
28 verbose request using bearer token for auth
55+
29 verbose request id 2d4faf05acec3065
56+
30 http request PUT https://registry.npmjs.org/nestify
57+
31 http 403 https://registry.npmjs.org/nestify
58+
32 verbose headers { 'content-type': 'application/json',
59+
32 verbose headers 'cache-control': 'max-age=300',
60+
32 verbose headers 'content-length': '95',
61+
32 verbose headers 'accept-ranges': 'bytes',
62+
32 verbose headers date: 'Sat, 13 Feb 2016 21:31:15 GMT',
63+
32 verbose headers via: '1.1 varnish',
64+
32 verbose headers connection: 'keep-alive',
65+
32 verbose headers 'x-served-by': 'cache-lhr6335-LHR',
66+
32 verbose headers 'x-cache': 'MISS',
67+
32 verbose headers 'x-cache-hits': '0',
68+
32 verbose headers 'x-timer': 'S1455399074.319271,VS0,VE908' }
69+
33 verbose request invalidating /Users/markwylde/.npm/registry.npmjs.org/nestify on PUT
70+
34 error publish Failed PUT 403
71+
35 verbose stack Error: "You cannot publish over the previously published version 1.0.4." : nestify
72+
35 verbose stack at makeError (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:264:12)
73+
35 verbose stack at CachingRegistryClient.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:252:14)
74+
35 verbose stack at Request._callback (/usr/local/lib/node_modules/npm/node_modules/npm-registry-client/lib/request.js:172:14)
75+
35 verbose stack at Request.self.callback (/usr/local/lib/node_modules/npm/node_modules/request/request.js:198:22)
76+
35 verbose stack at emitTwo (events.js:87:13)
77+
35 verbose stack at Request.emit (events.js:172:7)
78+
35 verbose stack at Request.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1082:10)
79+
35 verbose stack at emitOne (events.js:82:20)
80+
35 verbose stack at Request.emit (events.js:169:7)
81+
35 verbose stack at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/request/request.js:1009:12)
82+
36 verbose statusCode 403
83+
37 verbose pkgid nestify
84+
38 verbose cwd /Users/markwylde/Documents/nestify
85+
39 error Darwin 15.3.0
86+
40 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "publish"
87+
41 error node v4.2.4
88+
42 error npm v2.14.12
89+
43 error code E403
90+
44 error "You cannot publish over the previously published version 1.0.4." : nestify
91+
45 error If you need help, you may report this error at:
92+
45 error <https://github.com/npm/npm/issues>
93+
46 verbose exit [ 1, true ]

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nestify",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "A utility library to convert between nested and flattened arrays or objects.",
55
"main": "lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)