Socket
Socket
Sign inDemoInstall

wait-then

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wait-then - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

contributors.md

4

package.json
{
"name": "wait-then",
"version": "0.0.3",
"version": "0.0.4",
"description": "Utility function that returns a promise that resolves after x ms",

@@ -12,3 +12,3 @@ "main": "lib/index.js",

"test": "mocha",
"coverage": "istanbul cover _mocha && open ./coverage/lcov-report/index.html",
"coverage": "istanbul cover _mocha && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && open ./coverage/lcov-report/index.html",
"prepublish": "npm run lint && npm test && npm run coverage"

@@ -15,0 +15,0 @@ },

@@ -44,4 +44,6 @@ # wait-then

Note: This relies on the existence of a [global `Promise` object](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) as defined in the ECMAScript 6 (Harmony) proposal.
__Note__: This relies on the existence of a global [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) object as defined in the ECMAScript 6 (Harmony) proposal.
How this differs from [`co-sleep`](https://github.com/eugeneware/co-sleep) and [`co-wait`](https://github.com/juliangruber/co-wait) is that both of them use _thunks_, support for which is set to be [deprecated](https://github.com/tj/co#thunks). `wait-then` instead uses _Promises_, which are also [yieldable](https://github.com/tj/co#yieldables).
[npm-img]: http://img.shields.io/npm/v/wait-then.svg

@@ -48,0 +50,0 @@ [downloads-img]: http://img.shields.io/npm/dm/wait-then.svg

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