mongo-locks 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/index.ts +1 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MongoLocksError = void 0;
|
|
12
|
+
exports.LockManager = exports.MongoLocksError = void 0;
|
|
13
13
|
const mongodb_1 = require("mongodb");
|
|
14
14
|
class MongoLocksError extends Error {
|
|
15
15
|
constructor(message) {
|
|
@@ -114,4 +114,4 @@ class LockManager {
|
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
exports.
|
|
117
|
+
exports.LockManager = LockManager;
|
package/index.ts
CHANGED
|
@@ -84,7 +84,7 @@ class Lock {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
class LockManager {
|
|
87
|
+
export class LockManager {
|
|
88
88
|
collection: Collection<LockModel>;
|
|
89
89
|
MongoLocksError = MongoLocksError;
|
|
90
90
|
|
|
@@ -124,5 +124,4 @@ class LockManager {
|
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
export default LockManager;
|
|
128
127
|
export type { LockModel, Lock };
|