Socket
Socket
Sign inDemoInstall

await-lock

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-lock - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

build/AwaitLock.js

@@ -33,4 +33,4 @@ "use strict";

},
releaseAsync: {
value: function releaseAsync() {
release: {
value: function release() {
assert(this._acquired, "Trying to release an unacquired lock");

@@ -37,0 +37,0 @@ if (this._waitingResolvers.length > 0) {

{
"name": "await-lock",
"version": "1.0.0",
"version": "1.1.0",
"description": "Mutex locks for ES7 async functions and delegating generator functions",

@@ -5,0 +5,0 @@ "main": "build/AwaitLock.js",

# AwaitLock
Mutex locks for ES7 async functions and delegating generator functions
[![npm package](https://nodei.co/npm/await-lock.png?downloads=true&downl\
oadRank=true&stars=true)](https://nodei.co/npm/await-lock/)
# Usage

@@ -14,3 +17,3 @@

} finally {
await lock.releaseAsync();
lock.release();
}

@@ -29,5 +32,5 @@ }

} finally {
yield lock.releaseAsync();
lock.release();
}
});
```
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