Debian Codegraph @

workspaces/arborist/test/fixtures/registry-mocks/content/hard-rejection.json

raw
1 {
2 "_id": "hard-rejection",
3 "_rev": "4-a04b43cc789f4eaab701b62b3712e2b8",
4 "name": "hard-rejection",
5 "description": "Make unhandled promise rejections fail hard right away instead of the default silent fail",
6 "dist-tags": {
7 "latest": "2.1.0"
8 },
9 "versions": {
10 "0.1.0": {
11 "name": "hard-rejection",
12 "version": "0.1.0",
13 "description": "Make unhandled promise rejections fail hard right away instead of the default silent fail",
14 "license": "MIT",
15 "repository": {
16 "type": "git",
17 "url": "git+https://github.com/sindresorhus/hard-rejection.git"
18 },
19 "author": {
20 "name": "Sindre Sorhus",
21 "email": "[email protected]",
22 "url": "sindresorhus.com"
23 },
24 "engines": {
25 "node": ">=4"
26 },
27 "scripts": {
28 "test": "xo && ava"
29 },
30 "files": [
31 "index.js",
32 "register.js"
33 ],
34 "keywords": [
35 "promise",
36 "promises",
37 "unhandled",
38 "uncaught",
39 "rejection",
40 "hard",
41 "fail",
42 "catch",
43 "throw",
44 "handler",
45 "exit",
46 "debug",
47 "debugging",
48 "verbose",
49 "immediate",
50 "immediately"
51 ],
52 "devDependencies": {
53 "ava": "*",
54 "execa": "^0.4.0",
55 "xo": "*"
56 },
57 "gitHead": "b17d20107d2af3a64fc60ca82fa8a3819f1a00b8",
58 "bugs": {
59 "url": "https://github.com/sindresorhus/hard-rejection/issues"
60 },
61 "homepage": "https://github.com/sindresorhus/hard-rejection#readme",
62 "_id": "[email protected]",
63 "_shasum": "119f7f1a81c0f76f37ee6cb0a06a937aef9495d9",
64 "_from": ".",
65 "_npmVersion": "2.15.9",
66 "_nodeVersion": "4.5.0",
67 "_npmUser": {
68 "name": "sindresorhus",
69 "email": "[email protected]"
70 },
71 "dist": {
72 "shasum": "119f7f1a81c0f76f37ee6cb0a06a937aef9495d9",
73 "tarball": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-0.1.0.tgz"
74 },
75 "maintainers": [
76 {
77 "name": "sindresorhus",
78 "email": "[email protected]"
79 }
80 ],
81 "_npmOperationalInternal": {
82 "host": "packages-16-east.internal.npmjs.com",
83 "tmp": "tmp/hard-rejection-0.1.0.tgz_1472328672666_0.8819668914657086"
84 },
85 "directories": {}
86 },
87 "1.0.0": {
88 "name": "hard-rejection",
89 "version": "1.0.0",
90 "description": "Make unhandled promise rejections fail hard right away instead of the default silent fail",
91 "license": "MIT",
92 "repository": {
93 "type": "git",
94 "url": "git+https://github.com/sindresorhus/hard-rejection.git"
95 },
96 "author": {
97 "name": "Sindre Sorhus",
98 "email": "[email protected]",
99 "url": "sindresorhus.com"
100 },
101 "engines": {
102 "node": ">=4"
103 },
104 "scripts": {
105 "test": "xo && ava"
106 },
107 "files": [
108 "index.js",
109 "register.js"
110 ],
111 "keywords": [
112 "promise",
113 "promises",
114 "unhandled",
115 "uncaught",
116 "rejection",
117 "hard",
118 "fail",
119 "catch",
120 "throw",
121 "handler",
122 "exit",
123 "debug",
124 "debugging",
125 "verbose",
126 "immediate",
127 "immediately"
128 ],
129 "devDependencies": {
130 "ava": "*",
131 "execa": "^0.6.0",
132 "xo": "*"
133 },
134 "gitHead": "f4b230ddbd7ee399bb79327c4a5b36110e5c7939",
135 "bugs": {
136 "url": "https://github.com/sindresorhus/hard-rejection/issues"
137 },
138 "homepage": "https://github.com/sindresorhus/hard-rejection#readme",
139 "_id": "[email protected]",
140 "_shasum": "8f3b476c8e2f221bed73c64640fe217d717dac36",
141 "_from": ".",
142 "_npmVersion": "2.15.11",
143 "_nodeVersion": "4.6.2",
144 "_npmUser": {
145 "name": "sindresorhus",
146 "email": "[email protected]"
147 },
148 "dist": {
149 "shasum": "8f3b476c8e2f221bed73c64640fe217d717dac36",
150 "tarball": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-1.0.0.tgz"
151 },
152 "maintainers": [
153 {
154 "name": "sindresorhus",
155 "email": "[email protected]"
156 }
157 ],
158 "_npmOperationalInternal": {
159 "host": "packages-12-west.internal.npmjs.com",
160 "tmp": "tmp/hard-rejection-1.0.0.tgz_1484302727221_0.9670357657596469"
161 },
162 "directories": {}
163 },
164 "2.0.0": {
165 "name": "hard-rejection",
166 "version": "2.0.0",
167 "description": "Make unhandled promise rejections fail hard right away instead of the default silent fail",
168 "license": "MIT",
169 "repository": {
170 "type": "git",
171 "url": "git+https://github.com/sindresorhus/hard-rejection.git"
172 },
173 "author": {
174 "name": "Sindre Sorhus",
175 "email": "[email protected]",
176 "url": "sindresorhus.com"
177 },
178 "engines": {
179 "node": ">=6"
180 },
181 "scripts": {
182 "test": "xo && ava && tsd-check"
183 },
184 "keywords": [
185 "promise",
186 "promises",
187 "unhandled",
188 "uncaught",
189 "rejection",
190 "hard",
191 "fail",
192 "catch",
193 "throw",
194 "handler",
195 "exit",
196 "debug",
197 "debugging",
198 "verbose",
199 "immediate",
200 "immediately"
201 ],
202 "devDependencies": {
203 "ava": "^1.3.1",
204 "execa": "^1.0.0",
205 "tsd-check": "^0.5.0",
206 "xo": "^0.24.0"
207 },
208 "gitHead": "c7ad279b7b0c8264cace7fb487a6f8ef73867d7d",
209 "bugs": {
210 "url": "https://github.com/sindresorhus/hard-rejection/issues"
211 },
212 "homepage": "https://github.com/sindresorhus/hard-rejection#readme",
213 "_id": "[email protected]",
214 "_nodeVersion": "8.15.0",
215 "_npmVersion": "6.9.0",
216 "_npmUser": {
217 "name": "sindresorhus",
218 "email": "[email protected]"
219 },
220 "dist": {
221 "integrity": "sha512-3u5up+jmoSJjmudS3Z3AuqD0pH586torAxsqRFbWT5Zx4fKv3LQj5aWdNJkkSX+VVdSIkf01NJhz+CAF5JtBMw==",
222 "shasum": "3831e0e6cd26280b261c0686ca3181af575fca1f",
223 "tarball": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.0.0.tgz",
224 "fileCount": 6,
225 "unpackedSize": 4860,
226 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjkNfCRA9TVsSAnZWagAAPBYP/2rMMwidlhDzPUO0X1S3\nMSsNUJwglz8g3VcKF8JGXv7f7ei4bJUYw6YNrVQCqF7TMsWpIvPIoMyTf8NJ\n8wVC2uGMkwn+Tz8Dyjzge/cdjRcneEkt8HszuyjKxN3AFpwG59L7owrnkYmd\nKCVuUKcdE7SZJLXqtZ49QNACfbmJNIERxOIEqwIiIt1JLtZ/HnonEXx/+R4o\nds5gOmSLS+KenFjZ17klduv9XJpRwvloxs8MnnbnMm9dhUJFZ2hRdo0RlD80\nqHt042DrP46dzLyrWuUIBTlwAxnUwFc/Z6JglejiSSexvWzvGDWwU9XK2FTP\nCJdi+nUbN/4otDy4FXMM8/j4M+77cgt0lNYZbRbNroXwnbCooj4HbTX4taPt\nsguhIeeReHrD/tZJUY32ngOtxfUB09RUvL8KsSnr4eHKVwbQ2bl5yy4UaMpY\niYA92Y4YXaz1n9iZ57Nh/BuzHGJ0xKin6sDA8GNv5XDT0jg7KrUM9CS25fWt\nR2yyrF/OZNj3dc5GGAjw9tzq9G1xkwTjcZxbH7dRZQxHYw0LHAiKpDt/FpWx\nCi+vbPlDbxl5Rin+jZcUS89TZ6khvf9vuCd/85CUOPT2dhihe01jZSl6tvwo\nyvkxWiy2/5AVMrgc9qwJcWiUjDlkqCi1uxv8G9sl6nEn58VI1Q5WByolnDUa\nI+Cp\r\n=NC4l\r\n-----END PGP SIGNATURE-----\r\n"
227 },
228 "maintainers": [
229 {
230 "name": "sindresorhus",
231 "email": "[email protected]"
232 }
233 ],
234 "directories": {},
235 "_npmOperationalInternal": {
236 "host": "s3://npm-registry-packages",
237 "tmp": "tmp/hard-rejection_2.0.0_1552827230430_0.6926210459554436"
238 },
239 "_hasShrinkwrap": false
240 },
241 "2.1.0": {
242 "name": "hard-rejection",
243 "version": "2.1.0",
244 "description": "Make unhandled promise rejections fail hard right away instead of the default silent fail",
245 "license": "MIT",
246 "repository": {
247 "type": "git",
248 "url": "git+https://github.com/sindresorhus/hard-rejection.git"
249 },
250 "author": {
251 "name": "Sindre Sorhus",
252 "email": "[email protected]",
253 "url": "sindresorhus.com"
254 },
255 "engines": {
256 "node": ">=6"
257 },
258 "scripts": {
259 "test": "xo && ava && tsd"
260 },
261 "keywords": [
262 "promise",
263 "promises",
264 "unhandled",
265 "uncaught",
266 "rejection",
267 "hard",
268 "fail",
269 "catch",
270 "throw",
271 "handler",
272 "exit",
273 "debug",
274 "debugging",
275 "verbose",
276 "immediate",
277 "immediately"
278 ],
279 "devDependencies": {
280 "ava": "^1.4.1",
281 "execa": "^1.0.0",
282 "tsd": "^0.7.1",
283 "xo": "^0.24.0"
284 },
285 "gitHead": "71300d4b742f2cee0f926f4ad3459b66c88d610f",
286 "bugs": {
287 "url": "https://github.com/sindresorhus/hard-rejection/issues"
288 },
289 "homepage": "https://github.com/sindresorhus/hard-rejection#readme",
290 "_id": "[email protected]",
291 "_nodeVersion": "8.15.0",
292 "_npmVersion": "6.9.0",
293 "_npmUser": {
294 "name": "sindresorhus",
295 "email": "[email protected]"
296 },
297 "dist": {
298 "integrity": "sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==",
299 "shasum": "1c6eda5c1685c63942766d79bb40ae773cecd883",
300 "tarball": "https://registry.npmjs.org/hard-rejection/-/hard-rejection-2.1.0.tgz",
301 "fileCount": 6,
302 "unpackedSize": 5142,
303 "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcoszHCRA9TVsSAnZWagAAX/oP/1rglB8nnb2N698dmy+m\ngo7yTYFFXQNhZruo812YRiNSC05txZHTVkbTny5IboxWH2p/jg/xAAsPlUZ2\na4awtyL7/R+15aJSIJ46fJg0jM8sEbiRV8NyrXN3hPoIKWeMRhUoCIKwVJHj\n7SNJXovwDJ8u1R0ZOmlBoTZtH5Y0dM20UHiVmFoa3RGe3/HPj0fEZVHOW3Wr\ny7cOkpO8UNBU6eoJ77QZjhs0EEU7L08WKk1PwBQxTNAkQP048aPkHZZi48r7\no9SXZYOdohQv/qXC0X2Uze20kn79Jv3Ez/F8acQ3bsGQPdXL/PSuf94yvgHM\nNbZKc0TW/HCq2aLkXN6wZ0hltPl7VPnyKcgi8z5fPGw0NDwCMaIFnvv+cLTF\nfpAxSwG2vHjt3bJYHu2k2Ju3vSAPPTXCzC4oXt1WOEgSaM35XACDhnbmQdfc\n92UUEMQZ5lEAtRyj6C3rXAdWbK5BWEcSGPczhBtcTkdNqUTfW5RZNhWjY2jz\ntUWcm7WtYBuUKCG3aeG/qqzH/i6sjZJqk6y3UeltJ28nkWCApQhomG14EgT/\n2rGgoTiJpW+yEDp3ShTwwm3n2morC8ro7afTrzUc8aItvacnE6toU2Ix32jb\nOhJSiXYkTAeEXLTx058fJoNJ2DBXXRtiEfwP0DGnCanI1WAyqpdXSumI6kBH\nn28E\r\n=KtHy\r\n-----END PGP SIGNATURE-----\r\n"
304 },
305 "maintainers": [
306 {
307 "name": "sindresorhus",
308 "email": "[email protected]"
309 }
310 ],
311 "directories": {},
312 "_npmOperationalInternal": {
313 "host": "s3://npm-registry-packages",
314 "tmp": "tmp/hard-rejection_2.1.0_1554173126513_0.9019311825096288"
315 },
316 "_hasShrinkwrap": false
317 }
318 },
319 "readme": "# hard-rejection [![Build Status](https://travis-ci.org/sindresorhus/hard-rejection.svg?branch=master)](https://travis-ci.org/sindresorhus/hard-rejection)\n\n> Make unhandled promise rejections fail hard right away instead of the default [silent fail](https://gist.github.com/benjamingr/0237932cee84712951a2)\n\nPromises fail silently if you don't attach a `.catch()` handler.\n\nThis module exits the process with an error message right away when an unhandled rejection is encountered.<br>\n**Note: That might not be desirable as unhandled rejections can be [handled at a future point in time](https://nodejs.org/api/process.html#process_event_unhandledrejection), although not common. You've been warned.**\n\nIntended for top-level long-running processes like servers, **but not in reusable modules.**<br>\nFor command-line apps and tests, see [`loud-rejection`](https://github.com/sindresorhus/loud-rejection).\n\n\n## Install\n\n```\n$ npm install hard-rejection\n```\n\n\n## Usage\n\n```js\nconst hardRejection = require('hard-rejection');\nconst promiseFunction = require('some-promise-fn');\n\n// Install the handler\nhardRejection();\n\npromiseFunction();\n```\n\nWithout this module it's more verbose and you might even miss some that will fail silently:\n\n```js\nconst promiseFunction = require('some-promise-fn');\n\nfunction error(error) {\n\tconsole.error(error.stack);\n\tprocess.exit(1);\n}\n\npromiseFunction().catch(error);\n```\n\n### Register script\n\nAlternatively to the above, you may simply require `hard-rejection/register` and the handler will be automagically installed for you.\n\nThis is handy for ES2015 imports:\n\n```js\nimport 'hard-rejection/register';\n```\n\n\n## API\n\n### hardRejection([log])\n\n#### log\n\nType: `Function`<br>\nDefault: `console.error`\n\nCustom logging function to print the rejected promise. Receives the error stack.\n\n\n## Related\n\n- [loud-rejection](https://github.com/sindresorhus/loud-rejection) - Make unhandled promise rejections fail loudly instead of the default silent fail\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n",
320 "maintainers": [
321 {
322 "name": "sindresorhus",
323 "email": "[email protected]"
324 }
325 ],
326 "time": {
327 "modified": "2019-04-02T02:45:29.149Z",
328 "created": "2016-08-27T20:11:13.702Z",
329 "0.1.0": "2016-08-27T20:11:13.702Z",
330 "1.0.0": "2017-01-13T10:18:47.437Z",
331 "2.0.0": "2019-03-17T12:53:50.619Z",
332 "2.1.0": "2019-04-02T02:45:26.609Z"
333 },
334 "homepage": "https://github.com/sindresorhus/hard-rejection#readme",
335 "keywords": [
336 "promise",
337 "promises",
338 "unhandled",
339 "uncaught",
340 "rejection",
341 "hard",
342 "fail",
343 "catch",
344 "throw",
345 "handler",
346 "exit",
347 "debug",
348 "debugging",
349 "verbose",
350 "immediate",
351 "immediately"
352 ],
353 "repository": {
354 "type": "git",
355 "url": "git+https://github.com/sindresorhus/hard-rejection.git"
356 },
357 "author": {
358 "name": "Sindre Sorhus",
359 "email": "[email protected]",
360 "url": "sindresorhus.com"
361 },
362 "bugs": {
363 "url": "https://github.com/sindresorhus/hard-rejection/issues"
364 },
365 "license": "MIT",
366 "readmeFilename": "readme.md"
367 }