Comparing version 0.4.1 to 0.4.2
@@ -1,6 +0,2 @@ | ||
'use strict'; | ||
var wait = (delay = 0) => | ||
new Promise((resolve) => setTimeout(resolve, delay)); | ||
module.exports = wait; | ||
module.exports=function(e){return void 0===e&&(e=0),new Promise(function(n){return setTimeout(n,e)})}; | ||
//# sourceMappingURL=wait.js.map |
{ | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"license": "MIT", | ||
"main": "./dist/wait.js", | ||
"source": "wait.js", | ||
"main": "dist/wait.js", | ||
"module": "dist/wait.module.js", | ||
"unpkg": "dist/wait.umd.js", | ||
"typings": "wait.d.ts", | ||
"name": "wait", | ||
"author": "ealush", | ||
"module": "wait.js", | ||
"bin": { | ||
@@ -13,3 +15,4 @@ "wait": "./cli.js" | ||
"scripts": { | ||
"build": "npx rollup wait.js --file ./dist/wait.js --format cjs --name wait" | ||
"build": "microbundle", | ||
"dev": "microbundle watch" | ||
}, | ||
@@ -19,3 +22,6 @@ "repository": { | ||
"url": "git+https://github.com/ealush/wait.git" | ||
}, | ||
"devDependencies": { | ||
"microbundle": "^0.12.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
4674
15
15
0
1