@naturalcycles/firestore-lib 1.2.0 → 1.2.2

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 CHANGED
@@ -4,18 +4,18 @@
4
4
  "prepare": "husky install"
5
5
  },
6
6
  "dependencies": {
7
- "@google-cloud/firestore": "^4.5.0",
7
+ "@google-cloud/firestore": "^6.0.0",
8
8
  "@naturalcycles/db-lib": "^8.2.0",
9
9
  "@naturalcycles/js-lib": "^14.6.0",
10
10
  "@naturalcycles/nodejs-lib": "^12.4.0",
11
- "firebase-admin": "^10.0.0"
11
+ "firebase-admin": "^11.0.0"
12
12
  },
13
13
  "devDependencies": {
14
- "@naturalcycles/dev-lib": "^12.1.2",
14
+ "@naturalcycles/dev-lib": "^13.0.1",
15
15
  "@naturalcycles/test-lib": "^1.0.3",
16
- "@types/node": "^17.0.22",
16
+ "@types/node": "^18.0.0",
17
17
  "dotenv": "^16.0.0",
18
- "jest": "^27.0.6"
18
+ "jest": "^29.1.2"
19
19
  },
20
20
  "files": [
21
21
  "dist",
@@ -37,7 +37,7 @@
37
37
  "engines": {
38
38
  "node": ">=14.15.0"
39
39
  },
40
- "version": "1.2.0",
40
+ "version": "1.2.2",
41
41
  "description": "Firestore implementation of CommonDB interface",
42
42
  "author": "Natural Cycles Team",
43
43
  "license": "MIT"
@@ -142,8 +142,7 @@ export class FirestoreDB extends BaseCommonDB implements CommonDB {
142
142
  row.id,
143
143
  `firestore-db doesn't support id auto-generation, but empty id was provided in saveBatch`,
144
144
  )
145
-
146
- batch[method](
145
+ ;(batch as any)[method](
147
146
  this.cfg.firestore.collection(table).doc(escapeDocId(row.id)),
148
147
  _filterUndefinedValues(row),
149
148
  )