@matrixai/async-locks
Advanced tools
Comparing version 3.0.0 to 3.1.0
@@ -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, }; |
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75723
30
1017
Updated@matrixai/errors@^1.1.2