await-timeout
Advanced tools
Comparing version 0.1.5 to 0.1.6
{ | ||
"name": "await-timeout", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "A Promise-based API for setTimeout / clearTimeout", | ||
@@ -16,5 +16,5 @@ "author": { | ||
}, | ||
"main": "index.umd.js", | ||
"main": "dist/index.umd.js", | ||
"scripts": { | ||
"code": "eslint index.js webpack.config.js test scripts", | ||
"code": "eslint src test scripts webpack.config.js", | ||
"build": "webpack", | ||
@@ -21,0 +21,0 @@ "test": "mocha test/specs -r test/setup", |
@@ -138,5 +138,6 @@ <div align="center"> | ||
## Related resources | ||
* https://italonascimento.github.io/applying-a-timeout-to-your-promises/ | ||
* https://stackoverflow.com/questions/22707475/how-to-make-a-promise-from-settimeout | ||
* https://stackoverflow.com/questions/34255351/is-there-a-version-of-settimeout-that-returns-an-es6-promise | ||
* [The right way to clear timeout in Promise.race()](https://jslive.com/p/3x2x9h-the-right-way-to-clear-timeout-in-promiserace) | ||
* [Applying a timeout to your promises](https://italonascimento.github.io/applying-a-timeout-to-your-promises/) | ||
* [How to make a promise from setTimeout](https://stackoverflow.com/questions/22707475/how-to-make-a-promise-from-settimeout) | ||
* [Is there a version of setTimeout that returns an ES6 promise?](https://stackoverflow.com/questions/34255351/is-there-a-version-of-settimeout-that-returns-an-es6-promise) | ||
@@ -143,0 +144,0 @@ ## License |
@@ -9,3 +9,3 @@ require('babel-register')({ | ||
global.assert = require('assert'); | ||
global.Timeout = require(process.env.LIB_PATH || '../index'); | ||
global.Timeout = require(process.env.LIB_PATH || '../src/index'); | ||
global.sleep = ms => new Promise(r => setTimeout(r, ms)); |
@@ -7,5 +7,5 @@ | ||
module.exports = { | ||
entry: './index', | ||
entry: './src/index', | ||
output: { | ||
path: path.resolve('.'), | ||
path: path.resolve('dist'), | ||
filename: 'index.umd.js', | ||
@@ -12,0 +12,0 @@ libraryTarget: 'umd', |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
19804
149
1