Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

await-timeout

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

await-timeout - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

dist/index.umd.js

6

package.json
{
"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',

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc