sleep-promise
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -1,1 +0,1 @@ | ||
'use strict';var cachedSetTimeout=setTimeout;function createSleepPromise(a){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},c=b.useCachedSetTimeout,d=c?cachedSetTimeout:setTimeout;return new Promise(function(b){d(b,a)})}function sleep(a){function b(a){return e.then(function(){return a})}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=c.useCachedSetTimeout,e=createSleepPromise(a,{useCachedSetTimeout:d});return b.then=function(){return e.then.apply(e,arguments)},b.catch=Promise.resolve().catch,b}module.exports=sleep; | ||
'use strict';var cachedSetTimeout=setTimeout;function createSleepPromise(a,b){var c=b.useCachedSetTimeout,d=c?cachedSetTimeout:setTimeout;return new Promise(function(b){d(b,a)})}function sleep(a){function b(a){return e.then(function(){return a})}var c=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},d=c.useCachedSetTimeout,e=createSleepPromise(a,{useCachedSetTimeout:d});return b.then=function(){return e.then.apply(e,arguments)},b.catch=Promise.resolve().catch,b}module.exports=sleep; |
{ | ||
"name": "sleep-promise", | ||
"author": "Jan Brummelte <sleep-promise@jan-brummelte.de> (https://jan-brummelte.de)", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "Resolves a promise after a specified delay.", | ||
@@ -35,2 +35,5 @@ "main": "build/cjs.js", | ||
"homepage": "https://github.com/brummelte/sleep-promise", | ||
"jest-junit": { | ||
"output": "coverage/junit/js-test-results.xml" | ||
}, | ||
"devDependencies": { | ||
@@ -44,2 +47,3 @@ "@babel/cli": "^7.0.0-beta.49", | ||
"copyfiles": "^2.0.0", | ||
"coveralls": "^3.0.1", | ||
"eslint": "^4.19.1", | ||
@@ -46,0 +50,0 @@ "jest": "^23.1.0", |
@@ -1,2 +0,2 @@ | ||
# sleep-promise | ||
# sleep-promise [![License][license-image]][license-url] [![NPM version][npm-image]][npm-url] [![NPM downloads][npm-downloads-image]][npm-downloads-url] [![Build][build-image]][build-url] [![Coverage][coverage-image]][coverage-url] | ||
@@ -82,1 +82,16 @@ _sleep-promise_ resolves a promise after a specified delay. | ||
``` | ||
## License | ||
[MIT](LICENSE.md) | ||
[license-image]: https://img.shields.io/github/license/brummelte/sleep-promise.svg | ||
[license-url]: https://github.com/brummelte/sleep-promise/blob/master/LICENSE.md | ||
[npm-image]: https://img.shields.io/npm/v/sleep-promise.svg | ||
[npm-url]: https://www.npmjs.com/package/sleep-promise | ||
[npm-downloads-image]: https://img.shields.io/npm/dm/sleep-promise.svg | ||
[npm-downloads-url]: https://www.npmjs.com/package/sleep-promise | ||
[build-image]: https://img.shields.io/circleci/project/github/brummelte/sleep-promise/master.svg | ||
[build-url]: https://circleci.com/gh/brummelte/sleep-promise | ||
[coverage-image]: https://img.shields.io/coveralls/github/brummelte/sleep-promise/master.svg | ||
[coverage-url]: https://coveralls.io/github/brummelte/sleep-promise?branch=master |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
195058
97
18
22