gcf-common-lib 0.22.5 → 0.23.6
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/package.json +7 -8
- package/src/mongo-lock.ts +1 -1
- package/tsconfig.json +1 -9
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gcf-common-lib",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.23.6",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"branches": [
|
|
@@ -18,19 +18,18 @@
|
|
|
18
18
|
"url": "https://github.com/TopTechnologies/gcf-common.git"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@google-cloud/pubsub": "^3.
|
|
22
|
-
"@google-cloud/secret-manager": "^4.2.
|
|
23
|
-
"@google-cloud/storage": "^6.9.
|
|
24
|
-
"bluebird": "^3.7.2",
|
|
21
|
+
"@google-cloud/pubsub": "^3.3.0",
|
|
22
|
+
"@google-cloud/secret-manager": "^4.2.1",
|
|
23
|
+
"@google-cloud/storage": "^6.9.3",
|
|
25
24
|
"lodash": "^4.17.21",
|
|
26
25
|
"moment": "^2.29.4",
|
|
27
|
-
"mongodb": "^
|
|
26
|
+
"mongodb": "^5.1.0",
|
|
28
27
|
"rxjs": "^7.8.0"
|
|
29
28
|
},
|
|
30
29
|
"devDependencies": {
|
|
31
|
-
"@tsconfig/
|
|
30
|
+
"@tsconfig/node18": "^1.0.1",
|
|
32
31
|
"@types/lodash": "^4.14.191",
|
|
33
|
-
"@types/node": "^14.
|
|
32
|
+
"@types/node": "^18.14.1"
|
|
34
33
|
},
|
|
35
34
|
"author": "alert83@gmail.com",
|
|
36
35
|
"license": "MIT"
|
package/src/mongo-lock.ts
CHANGED
|
@@ -50,7 +50,7 @@ export class MongoLock {
|
|
|
50
50
|
|
|
51
51
|
async releaseLock(name: string) {
|
|
52
52
|
const collection = await this.getCollection();
|
|
53
|
-
return collection.deleteOne({_id: name});
|
|
53
|
+
return collection.deleteOne({_id: name as any});
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
async acquireAndExecute(name: string, ttlSeconds: number, wait: boolean, fn: () => Promise<any>) {
|
package/tsconfig.json
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/tsconfig",
|
|
3
|
-
"extends": "@tsconfig/
|
|
3
|
+
"extends": "@tsconfig/node18/tsconfig.json",
|
|
4
4
|
"compilerOptions": {
|
|
5
|
-
"target": "ES6",
|
|
6
|
-
"lib": [
|
|
7
|
-
"ES2018",
|
|
8
|
-
"ES2019",
|
|
9
|
-
"ES2020",
|
|
10
|
-
"ES2021",
|
|
11
|
-
"ESNext"
|
|
12
|
-
]
|
|
13
5
|
},
|
|
14
6
|
"exclude": [
|
|
15
7
|
"node_modules/**",
|