New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

async-singleton

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-singleton - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

16

package.json
{
"name": "async-singleton",
"version": "0.0.1",
"version": "0.0.2",
"description": "make async/promise function execute only one at a time.",

@@ -35,3 +35,15 @@ "main": "index.js",

},
"dependencies": {}
"dependencies": {},
"directories": {
"lib": "lib",
"test": "test"
},
"repository": {
"type": "git",
"url": "git+https://github.com/shokai/async-singleton.git"
},
"bugs": {
"url": "https://github.com/shokai/async-singleton/issues"
},
"homepage": "https://github.com/shokai/async-singleton#readme"
}

11

README.md

@@ -13,2 +13,4 @@ # async-singleton

### singleton
```js

@@ -32,3 +34,3 @@ const asyncSingleton = require('async-singleton')

singleCountUp(10) // skip this
await singleCountUp(20) // skip this
await singleCountUp(20) // skip this, but wait for "singleCountUp(0)" to finish

@@ -38,4 +40,5 @@ singleCountUp(30) // run this

result
#### result
```

@@ -65,6 +68,6 @@ 0

singleCountUp(20) // skip
singleCountUp(30) // run after "sinleCountUp(0)"
singleCountUp(30) // run, but wait for "sinleCountUp(0)" to finish
```
result
#### result

@@ -71,0 +74,0 @@ ```

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