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