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

@matrixai/async-locks

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matrixai/async-locks - npm Package Compare versions

Comparing version 3.1.2 to 3.2.0

dist/Semaphore.d.ts

5

dist/errors.d.ts

@@ -14,2 +14,5 @@ import { AbstractError } from '@matrixai/errors';

}
export { ErrorAsyncLocks, ErrorAsyncLocksTimeout, ErrorAsyncLocksLockBoxConflict, ErrorAsyncLocksBarrierCount, };
declare class ErrorAsyncLocksSemaphoreLimit<T> extends ErrorAsyncLocks<T> {
static description: string;
}
export { ErrorAsyncLocks, ErrorAsyncLocksTimeout, ErrorAsyncLocksLockBoxConflict, ErrorAsyncLocksBarrierCount, ErrorAsyncLocksSemaphoreLimit, };

6

dist/errors.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorAsyncLocksBarrierCount = exports.ErrorAsyncLocksLockBoxConflict = exports.ErrorAsyncLocksTimeout = exports.ErrorAsyncLocks = void 0;
exports.ErrorAsyncLocksSemaphoreLimit = exports.ErrorAsyncLocksBarrierCount = exports.ErrorAsyncLocksLockBoxConflict = exports.ErrorAsyncLocksTimeout = exports.ErrorAsyncLocks = void 0;
const errors_1 = require("@matrixai/errors");

@@ -21,2 +21,6 @@ class ErrorAsyncLocks extends errors_1.AbstractError {

ErrorAsyncLocksBarrierCount.description = 'Barrier must be created with a count >= 0';
class ErrorAsyncLocksSemaphoreLimit extends ErrorAsyncLocks {
}
exports.ErrorAsyncLocksSemaphoreLimit = ErrorAsyncLocksSemaphoreLimit;
ErrorAsyncLocksSemaphoreLimit.description = 'Semaphore must be created with a limit >= 1';
//# sourceMappingURL=errors.js.map

@@ -6,4 +6,5 @@ export { default as Lock } from './Lock';

export { default as Barrier } from './Barrier';
export { default as Semaphore } from './Semaphore';
export * as utils from './utils';
export * as errors from './errors';
export * from './types';

@@ -32,3 +32,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.errors = exports.utils = exports.Barrier = exports.LockBox = exports.RWLockWriter = exports.RWLockReader = exports.Lock = void 0;
exports.errors = exports.utils = exports.Semaphore = exports.Barrier = exports.LockBox = exports.RWLockWriter = exports.RWLockReader = exports.Lock = void 0;
var Lock_1 = require("./Lock");

@@ -44,2 +44,4 @@ Object.defineProperty(exports, "Lock", { enumerable: true, get: function () { return __importDefault(Lock_1).default; } });

Object.defineProperty(exports, "Barrier", { enumerable: true, get: function () { return __importDefault(Barrier_1).default; } });
var Semaphore_1 = require("./Semaphore");
Object.defineProperty(exports, "Semaphore", { enumerable: true, get: function () { return __importDefault(Semaphore_1).default; } });
exports.utils = __importStar(require("./utils"));

@@ -46,0 +48,0 @@ exports.errors = __importStar(require("./errors"));

{
"name": "@matrixai/async-locks",
"version": "3.1.2",
"version": "3.2.0",
"author": "Roger Qiu",

@@ -5,0 +5,0 @@ "description": "Asynchronous locking utilities",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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