@naturalcycles/datastore-lib 3.21.0 → 3.22.0

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.
@@ -10,7 +10,7 @@ const DatastoreStreamReadable_1 = require("./DatastoreStreamReadable");
10
10
  const query_util_1 = require("./query.util");
11
11
  // Datastore (also Firestore and other Google APIs) supports max 500 of items when saving/deleting, etc.
12
12
  const MAX_ITEMS = 500;
13
- const RETRY_ON = ['GOAWAY', 'UNAVAILABLE', 'UNKNOWN'];
13
+ const RETRY_ON = ['GOAWAY', 'UNAVAILABLE', 'UNKNOWN', 'much contention'];
14
14
  // Examples of errors:
15
15
  // UNKNOWN: Stream removed
16
16
  const methodMap = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalcycles/datastore-lib",
3
- "version": "3.21.0",
3
+ "version": "3.22.0",
4
4
  "description": "Opinionated library to work with Google Datastore",
5
5
  "scripts": {
6
6
  "prepare": "husky install"
@@ -14,9 +14,12 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@naturalcycles/dev-lib": "^13.0.0",
17
- "@types/node": "^17.0.8",
17
+ "@types/node": "^18.7.2",
18
18
  "jest": "^28.1.0"
19
19
  },
20
+ "resolutions": {
21
+ "long": "^4.0.0"
22
+ },
20
23
  "files": [
21
24
  "dist",
22
25
  "src",
@@ -45,7 +45,7 @@ import { dbQueryToDatastoreQuery } from './query.util'
45
45
  // Datastore (also Firestore and other Google APIs) supports max 500 of items when saving/deleting, etc.
46
46
  const MAX_ITEMS = 500
47
47
 
48
- const RETRY_ON = ['GOAWAY', 'UNAVAILABLE', 'UNKNOWN']
48
+ const RETRY_ON = ['GOAWAY', 'UNAVAILABLE', 'UNKNOWN', 'much contention']
49
49
  // Examples of errors:
50
50
  // UNKNOWN: Stream removed
51
51