Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/iferr.json

raw
1 {
2 "_id": "iferr",
3 "_rev": "16-609a28d7785bdf1add05cf9e899c3868",
4 "name": "iferr",
5 "description": "Higher-order functions for easier error handling",
6 "dist-tags": {
7 "latest": "1.0.2"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "iferr",
12 "version": "0.1.0",
13 "description": "Higher-order functions for easier error handling",
14 "main": "index.js",
15 "scripts": {
16 "test": "mocha",
17 "prepublish": "coffee -c index.coffee"
18 },
19 "repository": {
20 "type": "git",
21 "url": "https://github.com/shesek/iferr"
22 },
23 "keywords": [
24 "error",
25 "errors"
26 ],
27 "author": {
28 "name": "Nadav Ivgi"
29 },
30 "license": "MIT",
31 "bugs": {
32 "url": "https://github.com/shesek/iferr/issues"
33 },
34 "homepage": "https://github.com/shesek/iferr",
35 "devDependencies": {
36 "coffee-script": "^1.7.1",
37 "mocha": "^1.18.2"
38 },
39 "_id": "[email protected]",
40 "dist": {
41 "shasum": "e2a9505d117c4c93c428390ded27692909425948",
42 "tarball": "https://registry.npmjs.org/iferr/-/iferr-0.1.0.tgz"
43 },
44 "_from": ".",
45 "_npmVersion": "1.4.4",
46 "_npmUser": {
47 "name": "nadav",
48 "email": "[email protected]"
49 },
50 "maintainers": [
51 {
52 "name": "nadav",
53 "email": "[email protected]"
54 }
55 ],
56 "directories": {}
57 },
58 "0.1.1": {
59 "name": "iferr",
60 "version": "0.1.1",
61 "description": "Higher-order functions for easier error handling",
62 "main": "index.js",
63 "scripts": {
64 "test": "mocha",
65 "prepublish": "coffee -c index.coffee"
66 },
67 "repository": {
68 "type": "git",
69 "url": "https://github.com/shesek/iferr"
70 },
71 "keywords": [
72 "error",
73 "errors"
74 ],
75 "author": {
76 "name": "Nadav Ivgi"
77 },
78 "license": "MIT",
79 "bugs": {
80 "url": "https://github.com/shesek/iferr/issues"
81 },
82 "homepage": "https://github.com/shesek/iferr",
83 "devDependencies": {
84 "coffee-script": "^1.7.1",
85 "mocha": "^1.18.2"
86 },
87 "_id": "[email protected]",
88 "dist": {
89 "shasum": "b6cb6bb02a01e80f0ccfbddbe914ab3312c1308a",
90 "tarball": "https://registry.npmjs.org/iferr/-/iferr-0.1.1.tgz"
91 },
92 "_from": ".",
93 "_npmVersion": "1.4.4",
94 "_npmUser": {
95 "name": "nadav",
96 "email": "[email protected]"
97 },
98 "maintainers": [
99 {
100 "name": "nadav",
101 "email": "[email protected]"
102 }
103 ],
104 "directories": {}
105 },
106 "0.1.2": {
107 "name": "iferr",
108 "version": "0.1.2",
109 "description": "Higher-order functions for easier error handling",
110 "main": "index.js",
111 "scripts": {
112 "test": "mocha",
113 "prepublish": "coffee -c index.coffee"
114 },
115 "repository": {
116 "type": "git",
117 "url": "https://github.com/shesek/iferr"
118 },
119 "keywords": [
120 "error",
121 "errors"
122 ],
123 "author": {
124 "name": "Nadav Ivgi"
125 },
126 "license": "MIT",
127 "bugs": {
128 "url": "https://github.com/shesek/iferr/issues"
129 },
130 "homepage": "https://github.com/shesek/iferr",
131 "devDependencies": {
132 "coffee-script": "^1.7.1",
133 "mocha": "^1.18.2"
134 },
135 "_id": "[email protected]",
136 "dist": {
137 "shasum": "1ae1a5fd330bd1fc4861b7381c72b28467ae3ae6",
138 "tarball": "https://registry.npmjs.org/iferr/-/iferr-0.1.2.tgz"
139 },
140 "_from": ".",
141 "_npmVersion": "1.4.4",
142 "_npmUser": {
143 "name": "nadav",
144 "email": "[email protected]"
145 },
146 "maintainers": [
147 {
148 "name": "nadav",
149 "email": "[email protected]"
150 }
151 ],
152 "directories": {}
153 },
154 "0.1.3": {
155 "name": "iferr",
156 "version": "0.1.3",
157 "description": "Higher-order functions for easier error handling",
158 "main": "index.js",
159 "scripts": {
160 "test": "mocha",
161 "prepublish": "coffee -c index.coffee"
162 },
163 "repository": {
164 "type": "git",
165 "url": "https://github.com/shesek/iferr"
166 },
167 "keywords": [
168 "error",
169 "errors"
170 ],
171 "author": {
172 "name": "Nadav Ivgi"
173 },
174 "license": "MIT",
175 "bugs": {
176 "url": "https://github.com/shesek/iferr/issues"
177 },
178 "homepage": "https://github.com/shesek/iferr",
179 "devDependencies": {
180 "coffee-script": "^1.7.1",
181 "mocha": "^1.18.2"
182 },
183 "_id": "[email protected]",
184 "dist": {
185 "shasum": "2eb16f7bfd5c4fa6fe23fbdc6ca815facf0ab7c0",
186 "tarball": "https://registry.npmjs.org/iferr/-/iferr-0.1.3.tgz"
187 },
188 "_from": ".",
189 "_npmVersion": "1.4.4",
190 "_npmUser": {
191 "name": "nadav",
192 "email": "[email protected]"
193 },
194 "maintainers": [
195 {
196 "name": "nadav",
197 "email": "[email protected]"
198 }
199 ],
200 "directories": {}
201 },
202 "0.1.4": {
203 "name": "iferr",
204 "version": "0.1.4",
205 "description": "Higher-order functions for easier error handling",
206 "main": "index.js",
207 "scripts": {
208 "test": "mocha",
209 "prepublish": "coffee -c index.coffee"
210 },
211 "repository": {
212 "type": "git",
213 "url": "https://github.com/shesek/iferr"
214 },
215 "keywords": [
216 "error",
217 "errors"
218 ],
219 "author": {
220 "name": "Nadav Ivgi"
221 },
222 "license": "MIT",
223 "bugs": {
224 "url": "https://github.com/shesek/iferr/issues"
225 },
226 "homepage": "https://github.com/shesek/iferr",
227 "devDependencies": {
228 "coffee-script": "^1.7.1",
229 "mocha": "^1.18.2"
230 },
231 "_id": "[email protected]",
232 "dist": {
233 "shasum": "6ebf320517ac963807d0beb8c6a5453f145267d8",
234 "tarball": "https://registry.npmjs.org/iferr/-/iferr-0.1.4.tgz"
235 },
236 "_from": ".",
237 "_npmVersion": "1.4.4",
238 "_npmUser": {
239 "name": "nadav",
240 "email": "[email protected]"
241 },
242 "maintainers": [
243 {
244 "name": "nadav",
245 "email": "[email protected]"
246 }
247 ],
248 "directories": {}
249 },
250 "0.1.5": {
251 "name": "iferr",
252 "version": "0.1.5",
253 "description": "Higher-order functions for easier error handling",
254 "main": "index.js",
255 "scripts": {
256 "test": "mocha",
257 "prepublish": "coffee -c index.coffee"
258 },
259 "repository": {
260 "type": "git",
261 "url": "https://github.com/shesek/iferr"
262 },
263 "keywords": [
264 "error",
265 "errors"
266 ],
267 "author": {
268 "name": "Nadav Ivgi"
269 },
270 "license": "MIT",
271 "bugs": {
272 "url": "https://github.com/shesek/iferr/issues"
273 },
274 "homepage": "https://github.com/shesek/iferr",
275 "devDependencies": {
276 "coffee-script": "^1.7.1",
277 "mocha": "^1.18.2"
278 },
279 "_id": "[email protected]",
280 "dist": {
281 "shasum": "c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501",
282 "tarball": "https://registry.npmjs.org/iferr/-/iferr-0.1.5.tgz"
283 },
284 "_from": ".",
285 "_npmVersion": "1.4.4",
286 "_npmUser": {
287 "name": "nadav",
288 "email": "[email protected]"
289 },
290 "maintainers": [
291 {
292 "name": "nadav",
293 "email": "[email protected]"
294 }
295 ],
296 "directories": {}
297 },
298 "1.0.0": {
299 "name": "iferr",
300 "version": "1.0.0",
301 "description": "Higher-order functions for easier error handling",
302 "main": "iferr.js",
303 "scripts": {
304 "test": "mocha"
305 },
306 "engines": {
307 "node": ">=6.0.0"
308 },
309 "repository": {
310 "type": "git",
311 "url": "git+https://github.com/shesek/iferr.git"
312 },
313 "keywords": [
314 "error",
315 "errors"
316 ],
317 "author": {
318 "name": "Nadav Ivgi"
319 },
320 "license": "MIT",
321 "bugs": {
322 "url": "https://github.com/shesek/iferr/issues"
323 },
324 "homepage": "https://github.com/shesek/iferr",
325 "devDependencies": {
326 "coffee-script": "^1.12.7",
327 "mocha": "^4.0.1"
328 },
329 "gitHead": "3d83da970e252d3f255bd95d100ec156e2f57661",
330 "_id": "[email protected]",
331 "_npmVersion": "5.4.2",
332 "_nodeVersion": "6.0.0",
333 "_npmUser": {
334 "name": "nadav",
335 "email": "[email protected]"
336 },
337 "dist": {
338 "integrity": "sha512-0+ecqiP/cxgnNBIPi+TgJlaxE7sFp2N3kBFg17klQUdf24YKiaEV6b9QgEqOlD5vCVCE0U7OV9lPSN2OfS4zoQ==",
339 "shasum": "36700e6a6d5d42e3e66b6d90fb55a018970b0aab",
340 "tarball": "https://registry.npmjs.org/iferr/-/iferr-1.0.0.tgz"
341 },
342 "maintainers": [
343 {
344 "name": "nadav",
345 "email": "[email protected]"
346 }
347 ],
348 "_npmOperationalInternal": {
349 "host": "s3://npm-registry-packages",
350 "tmp": "tmp/iferr-1.0.0.tgz_1511613509880_0.10885823937132955"
351 },
352 "directories": {}
353 },
354 "1.0.1": {
355 "name": "iferr",
356 "version": "1.0.1",
357 "description": "Higher-order functions for easier error handling",
358 "main": "iferr.js",
359 "scripts": {
360 "test": "mocha"
361 },
362 "engines": {
363 "node": ">=6.0.0"
364 },
365 "repository": {
366 "type": "git",
367 "url": "git+https://github.com/shesek/iferr.git"
368 },
369 "keywords": [
370 "error",
371 "errors"
372 ],
373 "author": {
374 "name": "Nadav Ivgi"
375 },
376 "license": "MIT",
377 "bugs": {
378 "url": "https://github.com/shesek/iferr/issues"
379 },
380 "homepage": "https://github.com/shesek/iferr",
381 "devDependencies": {
382 "coffeescript": "^2.3.1",
383 "mocha": "^4.0.1"
384 },
385 "gitHead": "efcb6a990ac46f2b115e147ca27471a39140a9f2",
386 "_id": "[email protected]",
387 "_npmVersion": "5.7.1",
388 "_nodeVersion": "8.9.1",
389 "_npmUser": {
390 "name": "nadav",
391 "email": "[email protected]"
392 },
393 "dist": {
394 "integrity": "sha512-e7YmhEfXYL+P28J84UOYsBUCG56MBLWj7ofOMCRQHwU59sSJxXdeb31/1K6wfL3wtTH78rvrdUVylesh4VSC9g==",
395 "shasum": "37b878f51d1e91a12d9f84ae7fca922a64c53a54",
396 "tarball": "https://registry.npmjs.org/iferr/-/iferr-1.0.1.tgz",
397 "fileCount": 232,
398 "unpackedSize": 2283858,
399 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbIkYkCRA9TVsSAnZWagAAIGMP/35BkHQRD19rnE0UJ18h\n1WMgJSumhegNdrKhaxWA/MUxxf8q5dwQKhi4+XgFB9EfxsRyWDa+kOQTY7wR\nrD4yYcYpOUYSVcdzXtgkQzaEAh0wOaLj99DUICT4EJT7ozEzW4kmjp9F960D\n5O26uniW8ufBgSnuVWtOWdrmMy9IlsiRTZIc7err/FgjNqrmBNg2ZrST4RNE\noLZu3N4cdBaUrzU8Si+dS1vTPF+TWQMWiKGJoqDm6P+aHEmQ5/vHfOIA9PW/\n/hUrS/NcGhi9qgZP3ypLV+NsGJa84TwU2CypmzhoegaZ69E1cyAg00NuWJ4u\n4kqdiwVW3Sjn2E8oBvvNywOHUKyufmYu06fQpavS82rkmqGJ0iCTxcusGBbU\n06EPXVc7XXDlWnBu/9cdm2ULtO5zsl1/vt3YmogdBS0zHap4gQJVAgjHBbNa\nfMdTZNCIjtWYja229yPLGKCcDot23Kq9YLbS/AkHr9Rqpy/Oijn0czIYFlFP\nPqe4/M2kDKnce1nor7K5Mhdw7MsYTI6tfkaqoZR6e/HyJ75Saz4opMFwB7jB\nVdK0/SbspNmRqng5Zz794y+vvVpLvYANeUwXJzLA6/8IEyzh6olKW+DFp0uI\nJG49QiF+K28ehH5rUP6V+XEQTiVLz4Uz5io2Z0NbPLqkQcpZz1U+4ZmEF2wa\neZDe\r\n=1sRK\r\n-----END PGP SIGNATURE-----\r\n"
400 },
401 "maintainers": [
402 {
403 "name": "nadav",
404 "email": "[email protected]"
405 }
406 ],
407 "directories": {},
408 "_npmOperationalInternal": {
409 "host": "s3://npm-registry-packages",
410 "tmp": "tmp/iferr_1.0.1_1528972835813_0.6093736871182065"
411 }
412 },
413 "1.0.2": {
414 "name": "iferr",
415 "version": "1.0.2",
416 "description": "Higher-order functions for easier error handling",
417 "main": "iferr.js",
418 "files": [
419 "iferr.js"
420 ],
421 "scripts": {
422 "test": "mocha"
423 },
424 "engines": {
425 "node": ">=6.0.0"
426 },
427 "repository": {
428 "type": "git",
429 "url": "git+https://github.com/shesek/iferr.git"
430 },
431 "keywords": [
432 "error",
433 "errors"
434 ],
435 "author": {
436 "name": "Nadav Ivgi"
437 },
438 "license": "MIT",
439 "bugs": {
440 "url": "https://github.com/shesek/iferr/issues"
441 },
442 "homepage": "https://github.com/shesek/iferr",
443 "devDependencies": {
444 "coffeescript": "^2.3.1",
445 "mocha": "^4.0.1"
446 },
447 "gitHead": "036418970e60e0d400072b1fb7e830a13a07809c",
448 "_id": "[email protected]",
449 "_npmVersion": "5.7.1",
450 "_nodeVersion": "8.9.1",
451 "_npmUser": {
452 "name": "nadav",
453 "email": "[email protected]"
454 },
455 "dist": {
456 "integrity": "sha512-9AfeLfji44r5TKInjhz3W9DyZI1zR1JAf2hVBMGhddAKPqBsupb89jGfbCTHIGZd6fGZl9WlHdn4AObygyMKwg==",
457 "shasum": "e9fde49a9da06dc4a4194c6c9ed6d08305037a6d",
458 "tarball": "https://registry.npmjs.org/iferr/-/iferr-1.0.2.tgz",
459 "fileCount": 4,
460 "unpackedSize": 3450,
461 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbKB/iCRA9TVsSAnZWagAAqhUQAJ+v4dCyHuoKu6TTUUjP\n6QS7GTk9tHZI0U9wLy+RcGXL8QH3+1gSwQhUpNkCUBh/ZqiWpiA6ORrTznOs\ngMJ9XBQJ8pMvLIqgkydFfr1NpCmjwkgOTIFoaQekZNNzCgotNMZum0ZexeC+\nwU6vrRk9bD2yEW6/+WHy8wPduS54xipb6g6WHcCa3ZtHSWE2H37YSkGbztkA\nD5IgMUSI9JAhvF8kYbcNH8ctYa9vlN9ud2oYs7Ax3ZVcfndOxUoD1nM4cGuU\ngLddqEgTP8Cxf5Jgp0Bs+MQiFBRs4fyFV7vkBsDbUfh9c0izV5ZXT8pozs+J\ndNCT9d3sDEAfVk9pIjxR8gNimJuo7rJMnHAO8DVRYBJVTz7KFaQkOAWgCZAO\n0p27mi+Z1Q1xMm/p+JLQ6L/+JKS+jdzKn34p6/x2ZEzwquYn+1ijfO7eQT2K\nAAv+hEAr1X+qFrL2vOtz4ojXjsSCgyqdnmvQmEuZw69Pa+eboszbn+CbY2an\nhJyyTRNM8tDsKuu6Y29TAgccaPHVN+04pum62fMHD4Icp3aEjiC7FPlUzvAq\nuUmBtY/so+JyFlPbaU9z/tnfpr6WLjsyP+g6cSkr1UY0Vb6BQ4rHEgql4Cym\n1uJykdY9P88n0AGKg1Ag0ChT6qNxIQ2AbDOmCXjvj169V5rZ8O9Lppu3BIU+\nMaw5\r\n=jOYb\r\n-----END PGP SIGNATURE-----\r\n"
462 },
463 "maintainers": [
464 {
465 "name": "nadav",
466 "email": "[email protected]"
467 }
468 ],
469 "directories": {},
470 "_npmOperationalInternal": {
471 "host": "s3://npm-registry-packages",
472 "tmp": "tmp/iferr_1.0.2_1529356257707_0.5767475952082075"
473 }
474 }
475 },
476 "readme": "# iferr\n\nHigher-order functions for easier error handling.\n\n`if (err) return cb(err);` be gone!\n\n## Install\n```bash\nnpm install iferr\n```\n\n## Use\n\n### JavaScript/ES6 example\n```js\nvar iferr = require('iferr');\n\nfunction get_friends_count(id, cb) {\n User.load_user(id, iferr(cb, user =>\n user.load_friends(iferr(cb, friends =>\n cb(null, friends.length)\n ))\n ))\n}\n```\n\n### JavaScript/ES5 example\n```js\nvar iferr = require('iferr');\n\nfunction get_friends_count(id, cb) {\n User.load_user(id, iferr(cb, function(user) {\n user.load_friends(iferr(cb, function(friends) {\n cb(null, friends.length)\n }))\n }))\n}\n```\n\n### CoffeeScript example\n```coffee\niferr = require 'iferr'\n\nget_friends_count = (id, cb) ->\n User.load_user id, iferr cb, (user) ->\n user.load_friends iferr cb, (friends) ->\n cb null, friends.length\n```\n\n(TODO: document tiferr, throwerr and printerr)\n\n## License\nMIT\n",
477 "maintainers": [
478 {
479 "name": "nadav",
480 "email": "[email protected]"
481 }
482 ],
483 "time": {
484 "modified": "2018-06-18T21:11:03.825Z",
485 "created": "2014-04-11T16:08:32.883Z",
486 "0.1.0": "2014-04-11T16:08:32.883Z",
487 "0.1.1": "2014-04-26T13:27:23.641Z",
488 "0.1.2": "2014-04-26T13:59:44.136Z",
489 "0.1.3": "2014-12-01T09:38:37.675Z",
490 "0.1.4": "2014-12-02T13:33:28.901Z",
491 "0.1.5": "2014-12-02T13:35:53.618Z",
492 "1.0.0": "2017-11-25T12:38:30.757Z",
493 "1.0.1": "2018-06-14T10:40:35.885Z",
494 "1.0.2": "2018-06-18T21:10:57.769Z"
495 },
496 "homepage": "https://github.com/shesek/iferr",
497 "keywords": [
498 "error",
499 "errors"
500 ],
501 "repository": {
502 "type": "git",
503 "url": "git+https://github.com/shesek/iferr.git"
504 },
505 "author": {
506 "name": "Nadav Ivgi"
507 },
508 "bugs": {
509 "url": "https://github.com/shesek/iferr/issues"
510 },
511 "license": "MIT",
512 "readmeFilename": "README.md",
513 "users": {
514 "wangnan0610": true
515 },
516 "_attachments": {}
517 }