Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/run-async.json

raw
1 {
2 "_id": "run-async",
3 "_rev": "11-18561bf18e61cdc895a508259e016bf3",
4 "name": "run-async",
5 "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.",
6 "dist-tags": {
7 "latest": "2.4.1"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "run-async",
12 "version": "0.1.0",
13 "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.",
14 "main": "index.js",
15 "scripts": {
16 "test": "mocha -R spec"
17 },
18 "repository": {
19 "type": "git",
20 "url": "git://github.com/SBoudrias/run-async"
21 },
22 "keywords": [
23 "flow",
24 "flow-control",
25 "async"
26 ],
27 "author": {
28 "name": "Simon Boudrias",
29 "email": "[email protected]"
30 },
31 "license": "MIT",
32 "bugs": {
33 "url": "https://github.com/SBoudrias/run-async/issues"
34 },
35 "homepage": "https://github.com/SBoudrias/run-async",
36 "dependencies": {
37 "once": "^1.3.0"
38 },
39 "devDependencies": {
40 "mocha": "^1.21.4"
41 },
42 "_id": "[email protected]",
43 "dist": {
44 "shasum": "c8ad4a5e110661e402a7d21b530e009f25f8e389",
45 "tarball": "https://registry.npmjs.org/run-async/-/run-async-0.1.0.tgz"
46 },
47 "_from": ".",
48 "_npmVersion": "1.4.6",
49 "_npmUser": {
50 "name": "sboudrias",
51 "email": "[email protected]"
52 },
53 "maintainers": [
54 {
55 "name": "sboudrias",
56 "email": "[email protected]"
57 }
58 ],
59 "directories": {}
60 },
61 "1.0.0": {
62 "name": "run-async",
63 "version": "1.0.0",
64 "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.",
65 "main": "index.js",
66 "scripts": {
67 "test": "mocha -R spec"
68 },
69 "repository": {
70 "type": "git",
71 "url": "git://github.com/SBoudrias/run-async.git"
72 },
73 "keywords": [
74 "flow",
75 "flow-control",
76 "async"
77 ],
78 "author": {
79 "name": "Simon Boudrias",
80 "email": "[email protected]"
81 },
82 "license": "MIT",
83 "bugs": {
84 "url": "https://github.com/SBoudrias/run-async/issues"
85 },
86 "homepage": "https://github.com/SBoudrias/run-async",
87 "dependencies": {
88 "is-promise": "^2.1.0",
89 "once": "^1.3.0"
90 },
91 "devDependencies": {
92 "bluebird": "^2.10.2",
93 "mocha": "^1.21.4"
94 },
95 "gitHead": "3f7174fac180c9e90bd4ecff9956c2ceb7d731ba",
96 "_id": "[email protected]",
97 "_shasum": "5a63bec4fdc3331786f9758861a7f27000c0e9e1",
98 "_from": ".",
99 "_npmVersion": "2.14.2",
100 "_nodeVersion": "0.12.7",
101 "_npmUser": {
102 "name": "sboudrias",
103 "email": "[email protected]"
104 },
105 "dist": {
106 "shasum": "5a63bec4fdc3331786f9758861a7f27000c0e9e1",
107 "tarball": "https://registry.npmjs.org/run-async/-/run-async-1.0.0.tgz"
108 },
109 "maintainers": [
110 {
111 "name": "sboudrias",
112 "email": "[email protected]"
113 }
114 ],
115 "directories": {}
116 },
117 "2.0.0": {
118 "name": "run-async",
119 "version": "2.0.0",
120 "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.",
121 "main": "index.js",
122 "scripts": {
123 "test": "mocha -R spec"
124 },
125 "repository": {
126 "type": "git",
127 "url": "git://github.com/SBoudrias/run-async.git"
128 },
129 "keywords": [
130 "flow",
131 "flow-control",
132 "async"
133 ],
134 "author": {
135 "name": "Simon Boudrias",
136 "email": "[email protected]"
137 },
138 "license": "MIT",
139 "bugs": {
140 "url": "https://github.com/SBoudrias/run-async/issues"
141 },
142 "homepage": "https://github.com/SBoudrias/run-async",
143 "dependencies": {
144 "is-promise": "^2.1.0",
145 "once": "^1.3.0",
146 "promise-resolver": "^1.0.0"
147 },
148 "devDependencies": {
149 "bluebird": "^2.10.2",
150 "mocha": "^1.21.4"
151 },
152 "gitHead": "80220998e71abb21d87367c562821d23efea2643",
153 "_id": "[email protected]",
154 "_shasum": "bc9e25f25f40992375f2533aa381e355da412616",
155 "_from": ".",
156 "_npmVersion": "2.14.2",
157 "_nodeVersion": "0.12.7",
158 "_npmUser": {
159 "name": "sboudrias",
160 "email": "[email protected]"
161 },
162 "dist": {
163 "shasum": "bc9e25f25f40992375f2533aa381e355da412616",
164 "tarball": "https://registry.npmjs.org/run-async/-/run-async-2.0.0.tgz"
165 },
166 "maintainers": [
167 {
168 "name": "sboudrias",
169 "email": "[email protected]"
170 }
171 ],
172 "directories": {}
173 },
174 "2.1.0": {
175 "name": "run-async",
176 "version": "2.1.0",
177 "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.",
178 "main": "index.js",
179 "scripts": {
180 "test": "mocha -R spec"
181 },
182 "repository": {
183 "type": "git",
184 "url": "git://github.com/SBoudrias/run-async.git"
185 },
186 "keywords": [
187 "flow",
188 "flow-control",
189 "async"
190 ],
191 "author": {
192 "name": "Simon Boudrias",
193 "email": "[email protected]"
194 },
195 "license": "MIT",
196 "bugs": {
197 "url": "https://github.com/SBoudrias/run-async/issues"
198 },
199 "homepage": "https://github.com/SBoudrias/run-async",
200 "dependencies": {
201 "is-promise": "^2.1.0",
202 "promise-resolver": "^3.0.0"
203 },
204 "devDependencies": {
205 "mocha": "^2.3.3",
206 "pinkie": "^1.0.0"
207 },
208 "gitHead": "766bfe282253b4c2628ead1b6e6dcf7511a5fcc7",
209 "_id": "[email protected]",
210 "_shasum": "2505300a22be63202297a9494b6f5f5c441ccd23",
211 "_from": ".",
212 "_npmVersion": "3.5.3",
213 "_nodeVersion": "5.2.0",
214 "_npmUser": {
215 "name": "sboudrias",
216 "email": "[email protected]"
217 },
218 "dist": {
219 "shasum": "2505300a22be63202297a9494b6f5f5c441ccd23",
220 "tarball": "https://registry.npmjs.org/run-async/-/run-async-2.1.0.tgz"
221 },
222 "maintainers": [
223 {
224 "name": "sboudrias",
225 "email": "[email protected]"
226 }
227 ],
228 "directories": {}
229 },
230 "2.2.0": {
231 "name": "run-async",
232 "version": "2.2.0",
233 "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.",
234 "main": "index.js",
235 "scripts": {
236 "test": "mocha -R spec"
237 },
238 "repository": {
239 "type": "git",
240 "url": "git+https://github.com/sboudrias/run-async.git"
241 },
242 "keywords": [
243 "flow",
244 "flow-control",
245 "async"
246 ],
247 "author": {
248 "name": "Simon Boudrias",
249 "email": "[email protected]"
250 },
251 "license": "MIT",
252 "dependencies": {
253 "is-promise": "^2.1.0",
254 "pinkie-promise": "^2.0.0"
255 },
256 "devDependencies": {
257 "mocha": "^2.3.3"
258 },
259 "gitHead": "5c6dc70500fd5c0b6ab1ba93f5f1a3338bfeaa84",
260 "bugs": {
261 "url": "https://github.com/sboudrias/run-async/issues"
262 },
263 "homepage": "https://github.com/sboudrias/run-async#readme",
264 "_id": "[email protected]",
265 "_shasum": "8783abd83c7bb86f41ee0602fc82404b3bd6e8b9",
266 "_from": ".",
267 "_npmVersion": "3.5.3",
268 "_nodeVersion": "5.2.0",
269 "_npmUser": {
270 "name": "sboudrias",
271 "email": "[email protected]"
272 },
273 "dist": {
274 "shasum": "8783abd83c7bb86f41ee0602fc82404b3bd6e8b9",
275 "tarball": "https://registry.npmjs.org/run-async/-/run-async-2.2.0.tgz"
276 },
277 "maintainers": [
278 {
279 "name": "sboudrias",
280 "email": "[email protected]"
281 }
282 ],
283 "_npmOperationalInternal": {
284 "host": "packages-13-west.internal.npmjs.com",
285 "tmp": "tmp/run-async-2.2.0.tgz_1458198577245_0.4591540393885225"
286 },
287 "directories": {}
288 },
289 "2.3.0": {
290 "name": "run-async",
291 "version": "2.3.0",
292 "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.",
293 "main": "index.js",
294 "scripts": {
295 "test": "mocha -R spec"
296 },
297 "engines": {
298 "node": ">=0.12.0"
299 },
300 "repository": {
301 "type": "git",
302 "url": "git+https://github.com/sboudrias/run-async.git"
303 },
304 "keywords": [
305 "flow",
306 "flow-control",
307 "async"
308 ],
309 "files": [
310 "index.js"
311 ],
312 "author": {
313 "name": "Simon Boudrias",
314 "email": "[email protected]"
315 },
316 "license": "MIT",
317 "dependencies": {
318 "is-promise": "^2.1.0"
319 },
320 "devDependencies": {
321 "mocha": "^3.1.2"
322 },
323 "gitHead": "23767c9d7eaf6a6bb1241fc9e12776685258c50e",
324 "bugs": {
325 "url": "https://github.com/sboudrias/run-async/issues"
326 },
327 "homepage": "https://github.com/sboudrias/run-async#readme",
328 "_id": "[email protected]",
329 "_shasum": "0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0",
330 "_from": ".",
331 "_npmVersion": "3.10.8",
332 "_nodeVersion": "7.0.0",
333 "_npmUser": {
334 "name": "sboudrias",
335 "email": "[email protected]"
336 },
337 "dist": {
338 "shasum": "0371ab4ae0bdd720d4166d7dfda64ff7a445a6c0",
339 "tarball": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz"
340 },
341 "maintainers": [
342 {
343 "name": "sboudrias",
344 "email": "[email protected]"
345 }
346 ],
347 "_npmOperationalInternal": {
348 "host": "packages-12-west.internal.npmjs.com",
349 "tmp": "tmp/run-async-2.3.0.tgz_1480655904296_0.6874290609266609"
350 },
351 "directories": {}
352 },
353 "2.4.0": {
354 "name": "run-async",
355 "version": "2.4.0",
356 "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.",
357 "main": "index.js",
358 "scripts": {
359 "test": "mocha -R spec"
360 },
361 "engines": {
362 "node": ">=0.12.0"
363 },
364 "repository": {
365 "type": "git",
366 "url": "git+https://github.com/SBoudrias/run-async.git"
367 },
368 "keywords": [
369 "flow",
370 "flow-control",
371 "async"
372 ],
373 "author": {
374 "name": "Simon Boudrias",
375 "email": "[email protected]"
376 },
377 "license": "MIT",
378 "dependencies": {
379 "is-promise": "^2.1.0"
380 },
381 "devDependencies": {
382 "mocha": "^7.1.0"
383 },
384 "gitHead": "6dc42ae3c416e4c4feb9069720f4e7c7796c4e15",
385 "bugs": {
386 "url": "https://github.com/SBoudrias/run-async/issues"
387 },
388 "homepage": "https://github.com/SBoudrias/run-async#readme",
389 "_id": "[email protected]",
390 "_nodeVersion": "13.8.0",
391 "_npmVersion": "6.13.7",
392 "dist": {
393 "integrity": "sha512-xJTbh/d7Lm7SBhc1tNvTpeCHaEzoyxPrqNlvSdMfBTYwaY++UJFyXUOxAtsRUXjlqOfj8luNaR9vjCh4KeV+pg==",
394 "shasum": "e59054a5b86876cfae07f431d18cbaddc594f1e8",
395 "tarball": "https://registry.npmjs.org/run-async/-/run-async-2.4.0.tgz",
396 "fileCount": 4,
397 "unpackedSize": 6537,
398 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVkMfCRA9TVsSAnZWagAAgcgP/j64tRGFdceaywDohPlM\n9O7tnDmW+Ri7QZ33pnDNNw/TOmwC6ScTZhSkbCVUNJehiiR4xhTCdnrWLCuc\nd4+0NreuCbEiqyGtGg3wkO9nZpKp57+OVY1OsQhqrRqsAqGlplFGOOPhya0K\nxtiMtZK3X4ocoAl7CMRNdj9YUg2+iH0USyoUwN2UvySXEkKdxyrlOY8iO9VY\nXBwS6IEs3Iq+1/sh9vStrMdwzKPCWZ3StybSMHx4D5SUe0/oYdl+h3xPzls8\nGP24kmX5Wm4htw+NUDtjjnuxIJMe+8c5lEqxdlW0Es1siJUZzb13uTmmh/OG\nAICBlIg6I+JppneP/V0GgxR64HMfGnGEwBcTJiOz7DCR5/jO6TC9HVxm1rE+\nU5qzrKXSmOnsnkzGCJcubN/Dnbe9ALDVoKO0NGSMpJjcm7jszAbimCpIHSeI\nj/MsxV6hjT4ddjcY+TSX7GLI5Ve3pRdc8uxleij9HVnf7sbG3YL9uJMGOLFB\n3lSFVx1V+6M9+wNGl4l4zOKMwMdWiTZkpqM+PvCDHGLpjv1bP7Q0ufSkjkr8\nDv/kau5hlRnIfUQEfSBYUNqI66pzmiu5l9tT0d+xKCPtTed3Cm3HDvIQpxbm\n+Mk9pbb7D86SYQPPzOR0Ji1q4ihvjz4gpu0u3lEc3N1Av/ighPY4IsY/uEPc\nnIJ4\r\n=ryfi\r\n-----END PGP SIGNATURE-----\r\n"
399 },
400 "maintainers": [
401 {
402 "name": "sboudrias",
403 "email": "[email protected]"
404 }
405 ],
406 "_npmUser": {
407 "name": "sboudrias",
408 "email": "[email protected]"
409 },
410 "directories": {},
411 "_npmOperationalInternal": {
412 "host": "s3://npm-registry-packages",
413 "tmp": "tmp/run-async_2.4.0_1582711582706_0.5107281545660194"
414 },
415 "_hasShrinkwrap": false
416 },
417 "2.4.1": {
418 "name": "run-async",
419 "version": "2.4.1",
420 "description": "Utility method to run function either synchronously or asynchronously using the common `this.async()` style.",
421 "main": "index.js",
422 "scripts": {
423 "test": "mocha -R spec"
424 },
425 "engines": {
426 "node": ">=0.12.0"
427 },
428 "repository": {
429 "type": "git",
430 "url": "git+https://github.com/SBoudrias/run-async.git"
431 },
432 "keywords": [
433 "flow",
434 "flow-control",
435 "async"
436 ],
437 "author": {
438 "name": "Simon Boudrias",
439 "email": "[email protected]"
440 },
441 "license": "MIT",
442 "dependencies": {},
443 "devDependencies": {
444 "mocha": "^7.1.0"
445 },
446 "gitHead": "f3e0a18abf6e9569abfcf327daa9351c95f109b1",
447 "bugs": {
448 "url": "https://github.com/SBoudrias/run-async/issues"
449 },
450 "homepage": "https://github.com/SBoudrias/run-async#readme",
451 "_id": "[email protected]",
452 "_nodeVersion": "12.16.1",
453 "_npmVersion": "6.13.4",
454 "dist": {
455 "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==",
456 "shasum": "8440eccf99ea3e70bd409d49aab88e10c189a455",
457 "tarball": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz",
458 "fileCount": 4,
459 "unpackedSize": 6604,
460 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJepnA5CRA9TVsSAnZWagAAWkUP/ioFe+TOHso6jPzihreo\nMoQTLB0+I4coYc642azZ1t306nHsj8m5Ts4JZiWaiTOq3HGY58yzNDINWi06\nsG1hIRL5f1D323sq6d+Ec5H/81qCDGNXFTzDKAVPLdsQCnHiTfcmYgv2C8UD\nDPR3gmTujpONC5S1iIhGXZAcEJFYNVnep6KPs/7UNMxlEP/bnMaWh2oLQg/Q\nllZFcBWh/mGnqO/6o9JshJsO2n6paFb5kuPsc36Atioqiix4QCRn9KG7rEty\n02JXaTOUAmqXeKnEsnKYwK77h2I6mkDrgNz29rDqzJmVmTxFqbGbuxU980Yb\nd4IU+4X/w6USQRjhT6IzRsfwe2EQpJ+39BZblYBlogwt7137DyOzXAAjWaVr\n6x6EeisqUViwmmw4JJn9jspI67GcQD6eE07NYydWNVKGMA5rRl0kaS7f6m6d\ntZlBUggMn3SKMZQmeTiXSK7OukwMlPKURv8G1DpBgYbtdK1ZF9s3Y4o54T+y\nQRzW6na4sKWueC90iBq6a5plYRFOhUMHkvng8YD/8bdG9GMv/ooWkWJOwjbK\n0lGZd4WvDkFGxXA+ASxQUY+rkNhm1nyX6a1UnhiOXJMcvIs3v53mbPwn5UmD\n+2kUIA04LY8OM1p6Pg7p8xp2vUrbuN+r8vwgGrO5pJoYk8plyNBivJr8WYGv\n6AAa\r\n=F96P\r\n-----END PGP SIGNATURE-----\r\n"
461 },
462 "maintainers": [
463 {
464 "name": "sboudrias",
465 "email": "[email protected]"
466 }
467 ],
468 "_npmUser": {
469 "name": "sboudrias",
470 "email": "[email protected]"
471 },
472 "directories": {},
473 "_npmOperationalInternal": {
474 "host": "s3://npm-registry-packages",
475 "tmp": "tmp/run-async_2.4.1_1587966009268_0.1932416029427002"
476 },
477 "_hasShrinkwrap": false
478 }
479 },
480 "readme": "Run Async\n=========\n\n[![npm](https://badge.fury.io/js/run-async.svg)](http://badge.fury.io/js/run-async) [![tests](https://travis-ci.org/SBoudrias/run-async.svg?branch=master)](http://travis-ci.org/SBoudrias/run-async) [![dependencies](https://david-dm.org/SBoudrias/run-async.svg?theme=shields.io)](https://david-dm.org/SBoudrias/run-async)\n\nUtility method to run a function either synchronously or asynchronously using a series of common patterns. This is useful for library author accepting sync or async functions as parameter. `runAsync` will always run them as an async method, and normalize the multiple signature.\n\nInstallation\n=========\n\n```bash\nnpm install --save run-async\n```\n\nUsage\n=========\n\nHere's a simple example print the function results and three options a user can provide a function.\n\n```js\nvar runAsync = require('run-async');\n\nvar printAfter = function (func) {\n var cb = function (err, returnValue) {\n console.log(returnValue);\n };\n runAsync(func, cb)(/* arguments for func */);\n};\n```\n\n#### Using `this.async`\n```js\nprintAfter(function () {\n var done = this.async();\n\n setTimeout(function () {\n done(null, 'done running with callback');\n }, 10);\n});\n```\n\n#### Returning a promise\n```js\nprintAfter(function () {\n return new Promise(function (resolve, reject) {\n resolve('done running with promises');\n });\n});\n```\n\n#### Synchronous function\n```js\nprintAfter(function () {\n return 'done running sync function';\n});\n```\n\n### runAsync.cb\n\n`runAsync.cb` supports all the function types that `runAsync` does and additionally a traditional **callback as the last argument** signature:\n\n```js\nvar runAsync = require('run-async');\n\n// IMPORTANT: The wrapped function must have a fixed number of parameters.\nrunAsync.cb(function(a, b, cb) {\n cb(null, a + b);\n}, function(err, result) {\n console.log(result)\n})(1, 2)\n```\n\nIf your version of node support Promises natively (node >= 0.12), `runAsync` will return a promise. Example: `runAsync(func)(arg1, arg2).then(cb)`\n\nLicence\n========\n\nCopyright (c) 2014 Simon Boudrias (twitter: @vaxilart) \nLicensed under the MIT license.\n",
481 "maintainers": [
482 {
483 "name": "sboudrias",
484 "email": "[email protected]"
485 }
486 ],
487 "time": {
488 "modified": "2020-04-27T05:40:11.770Z",
489 "created": "2014-08-11T01:11:31.399Z",
490 "0.1.0": "2014-08-11T01:11:31.399Z",
491 "1.0.0": "2015-10-13T06:10:24.777Z",
492 "2.0.0": "2015-10-18T21:12:16.901Z",
493 "2.1.0": "2016-01-14T06:51:30.979Z",
494 "2.2.0": "2016-03-17T07:09:37.775Z",
495 "2.3.0": "2016-12-02T05:18:24.544Z",
496 "2.4.0": "2020-02-26T10:06:22.816Z",
497 "2.4.1": "2020-04-27T05:40:09.368Z"
498 },
499 "homepage": "https://github.com/SBoudrias/run-async#readme",
500 "keywords": [
501 "flow",
502 "flow-control",
503 "async"
504 ],
505 "repository": {
506 "type": "git",
507 "url": "git+https://github.com/SBoudrias/run-async.git"
508 },
509 "author": {
510 "name": "Simon Boudrias",
511 "email": "[email protected]"
512 },
513 "bugs": {
514 "url": "https://github.com/SBoudrias/run-async/issues"
515 },
516 "license": "MIT",
517 "readmeFilename": "README.md",
518 "users": {
519 "itonyyo": true,
520 "71emj1": true
521 }
522 }