{"_id":"currently-unhandled","_rev":"18549","name":"currently-unhandled","description":"Track the list of currently unhandled promise rejections.","dist-tags":{"latest":"0.4.1"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"time":{"modified":"2021-06-03T09:59:32.000Z","created":"2016-06-02T07:43:51.637Z","0.4.1":"2016-06-02T11:15:15.444Z","0.4.0":"2016-06-02T10:38:52.131Z","0.3.0":"2016-06-02T07:43:51.637Z"},"users":{"gzg1500521074":true},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"repository":{"type":"git","url":"git+https://github.com/jamestalmage/currently-unhandled.git"},"versions":{"0.4.1":{"name":"currently-unhandled","version":"0.4.1","description":"Track the list of currently unhandled promise rejections.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/currently-unhandled.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava"},"files":["index.js","core.js","browser.js"],"keywords":["unhandled","unhandledRejection","rejected","promises"],"dependencies":{"array-find-index":"^1.0.1"},"devDependencies":{"ava":"^0.15.1","bluebird":"^3.4.0","browserify":"^13.0.1","coveralls":"^2.11.9","delay":"^1.3.1","is-ci":"^1.0.8","karma":"^0.13.22","karma-browserify":"^5.0.5","karma-chrome-launcher":"^1.0.1","karma-firefox-launcher":"^1.0.0","karma-mocha":"^1.0.1","mocha":"^2.5.3","nyc":"^6.4.0","watchify":"^3.7.0","xo":"^0.15.0"},"browser":{"./index.js":"./browser.js"},"ava":{"files":"test.js"},"nyc":{"reporter":["lcov","text"]},"xo":{"ignores":["browser-bluebird-test.js"],"envs":["browser","mocha","node"]},"gitHead":"6b998300e8cc2f732d80f99b7ecea37c97ab6ded","bugs":{"url":"https://github.com/jamestalmage/currently-unhandled/issues"},"homepage":"https://github.com/jamestalmage/currently-unhandled#readme","_id":"currently-unhandled@0.4.1","_shasum":"988df33feab191ef799a61369dd76c17adf957ea","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"988df33feab191ef799a61369dd76c17adf957ea","size":2513,"noattachment":false,"key":"/currently-unhandled/-/currently-unhandled-0.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/currently-unhandled/download/currently-unhandled-0.4.1.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/currently-unhandled-0.4.1.tgz_1464866113117_0.9455041608307511"},"directories":{},"publish_time":1464866115444,"_cnpm_publish_time":1464866115444,"_hasShrinkwrap":false},"0.4.0":{"name":"currently-unhandled","version":"0.4.0","description":"Track the list of currently unhandled promise rejections.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/currently-unhandled.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava"},"files":["index.js","core.js","browser.js"],"keywords":["unhandled","unhandledRejection","rejected","promises"],"dependencies":{},"devDependencies":{"array-find-index":"^1.0.1","ava":"^0.15.1","bluebird":"^3.4.0","browserify":"^13.0.1","coveralls":"^2.11.9","delay":"^1.3.1","is-ci":"^1.0.8","karma":"^0.13.22","karma-browserify":"^5.0.5","karma-chrome-launcher":"^1.0.1","karma-firefox-launcher":"^1.0.0","karma-mocha":"^1.0.1","mocha":"^2.5.3","nyc":"^6.4.0","watchify":"^3.7.0","xo":"^0.15.0"},"browser":{"./index.js":"./browser.js"},"ava":{"files":"test.js"},"nyc":{"reporter":["lcov","text"]},"xo":{"ignores":["browser-bluebird-test.js"],"envs":["browser","mocha","node"]},"gitHead":"a06d2b89425d4e25497ef60b4bdff4f42de46347","bugs":{"url":"https://github.com/jamestalmage/currently-unhandled/issues"},"homepage":"https://github.com/jamestalmage/currently-unhandled#readme","_id":"currently-unhandled@0.4.0","_shasum":"02b6758db16b1a0e6bd054fc5d9b71bb7b06a8a4","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"02b6758db16b1a0e6bd054fc5d9b71bb7b06a8a4","size":2512,"noattachment":false,"key":"/currently-unhandled/-/currently-unhandled-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/currently-unhandled/download/currently-unhandled-0.4.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/currently-unhandled-0.4.0.tgz_1464863930885_0.9112431481480598"},"directories":{},"publish_time":1464863932131,"_cnpm_publish_time":1464863932131,"_hasShrinkwrap":false},"0.3.0":{"name":"currently-unhandled","version":"0.3.0","description":"Track the list of currently unhandled promise rejections.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jamestalmage/currently-unhandled.git"},"author":{"name":"James Talmage","email":"james@talmage.io","url":"github.com/jamestalmage"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && nyc ava"},"files":["index.js","core.js","browser.js"],"keywords":["unhandled","unhandledRejection","rejected","promises"],"dependencies":{},"devDependencies":{"array-find-index":"^1.0.1","ava":"^0.15.1","browserify":"^13.0.1","coveralls":"^2.11.9","delay":"^1.3.1","is-ci":"^1.0.8","karma":"^0.13.22","karma-browserify":"^5.0.5","karma-chrome-launcher":"^1.0.1","karma-mocha":"^1.0.1","mocha":"^2.5.3","nyc":"^6.4.0","watchify":"^3.7.0","xo":"^0.15.0"},"browser":{"./index.js":"./browser.js"},"ava":{"files":"test.js"},"nyc":{"reporter":["lcov","text"]},"xo":{"envs":["browser","mocha","node"]},"gitHead":"093d35f6bfe5ffb8bbd122b96ab9bd585346ab8c","bugs":{"url":"https://github.com/jamestalmage/currently-unhandled/issues"},"homepage":"https://github.com/jamestalmage/currently-unhandled#readme","_id":"currently-unhandled@0.3.0","_shasum":"128ff43bb22f6783941bd96974af3e16c435292c","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.10.1","_npmUser":{"name":"jamestalmage","email":"james@talmage.io"},"dist":{"shasum":"128ff43bb22f6783941bd96974af3e16c435292c","size":2297,"noattachment":false,"key":"/currently-unhandled/-/currently-unhandled-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/currently-unhandled/download/currently-unhandled-0.3.0.tgz"},"maintainers":[{"name":"jamestalmage","email":"james@talmage.io"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/currently-unhandled-0.3.0.tgz_1464853429580_0.8422293274197727"},"directories":{},"publish_time":1464853431637,"_cnpm_publish_time":1464853431637,"_hasShrinkwrap":false}},"readme":"# currently-unhandled [![Build Status](https://travis-ci.org/jamestalmage/currently-unhandled.svg?branch=master)](https://travis-ci.org/jamestalmage/currently-unhandled) [![Coverage Status](https://coveralls.io/repos/github/jamestalmage/currently-unhandled/badge.svg?branch=master)](https://coveralls.io/github/jamestalmage/currently-unhandled?branch=master)\n\n> Track the list of currently unhandled promise rejections.\n\n\n## Install\n\n```\n$ npm install --save currently-unhandled\n```\n\n\n## Usage\n\n```js\nconst currentlyUnhandled = require('currently-unhandled')(); // <- note the invocation\n\nvar fooError = new Error('foo');\nvar p = Promise.reject(new Error('foo'));\n\n// on the next tick - unhandled rejected promise is added to the list:\ncurrentlyUnhandled();\n//=> [{promise: p, reason: fooError}]'\n\np.catch(() => {});\n\n// on the next tick - handled promise is now removed from the list:\ncurrentlyUnhandled();\n//=> [];\n```\n\n## API\n\n### currentlyUnhandled()\n\nReturns an array of objects with `promise` and `reason` properties representing the rejected promises that currently do not have a rejection handler. The list grows and shrinks as unhandledRejections are published, and later handled.\n\n## Browser Support\n\nThis module can be bundled with `browserify`. At time of writing, it will work with native Promises in the Chrome browser only. For best cross-browser support, use `bluebird` instead of native Promise support in browsers.\n\n## License\n\nMIT © [James Talmage](http://github.com/jamestalmage)\n","_attachments":{},"homepage":"https://github.com/jamestalmage/currently-unhandled#readme","bugs":{"url":"https://github.com/jamestalmage/currently-unhandled/issues"},"license":"MIT"}