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.0.0 to 3.1.0

dist/Barrier.d.ts

5

dist/errors.d.ts

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

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

6

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

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

ErrorAsyncLocksLockBoxConflict.description = 'LockBox cannot lock same ID with different Lockable classes';
class ErrorAsyncLocksBarrierCount extends ErrorAsyncLocks {
}
exports.ErrorAsyncLocksBarrierCount = ErrorAsyncLocksBarrierCount;
ErrorAsyncLocksBarrierCount.description = 'Barrier must be created with a count >= 0';
//# sourceMappingURL=errors.js.map

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

export { default as LockBox } from './LockBox';
export { default as Barrier } from './Barrier';
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.LockBox = exports.RWLockWriter = exports.RWLockReader = exports.Lock = void 0;
exports.errors = exports.utils = exports.Barrier = exports.LockBox = exports.RWLockWriter = exports.RWLockReader = exports.Lock = void 0;
var Lock_1 = require("./Lock");

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

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

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

{
"name": "@matrixai/async-locks",
"version": "3.0.0",
"version": "3.1.0",
"author": "Roger Qiu",

@@ -24,3 +24,3 @@ "description": "Asynchronous locking utilities",

"dependencies": {
"@matrixai/errors": "^1.1.1",
"@matrixai/errors": "^1.1.2",
"@matrixai/resources": "^1.1.3",

@@ -27,0 +27,0 @@ "async-mutex": "^0.3.2"

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