@naturalcycles/datastore-lib 4.10.0 → 4.11.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.
- package/dist/datastore.db.js +3 -3
- package/package.json +1 -1
- package/src/datastore.db.ts +3 -3
package/dist/datastore.db.js
CHANGED
|
@@ -128,7 +128,7 @@ export class DatastoreDB extends BaseCommonDB {
|
|
|
128
128
|
catch (err) {
|
|
129
129
|
if (err instanceof TimeoutError) {
|
|
130
130
|
_errorDataAppend(err, {
|
|
131
|
-
fingerprint:
|
|
131
|
+
fingerprint: DATASTORE_TIMEOUT,
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
134
|
throw err;
|
|
@@ -232,7 +232,7 @@ export class DatastoreDB extends BaseCommonDB {
|
|
|
232
232
|
catch (err) {
|
|
233
233
|
if (err instanceof TimeoutError) {
|
|
234
234
|
_errorDataAppend(err, {
|
|
235
|
-
fingerprint:
|
|
235
|
+
fingerprint: DATASTORE_TIMEOUT,
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
// console.log(`datastore.save ${kind}`, { obj, entity })
|
|
@@ -449,7 +449,7 @@ export class DatastoreDB extends BaseCommonDB {
|
|
|
449
449
|
logger: this.cfg.logger,
|
|
450
450
|
// not appending fingerprint here, otherwise it would just group all kinds of errors, not just Timeout errors
|
|
451
451
|
// errorData: {
|
|
452
|
-
// fingerprint:
|
|
452
|
+
// fingerprint: DATASTORE_TIMEOUT,
|
|
453
453
|
// },
|
|
454
454
|
};
|
|
455
455
|
}
|
package/package.json
CHANGED
package/src/datastore.db.ts
CHANGED
|
@@ -199,7 +199,7 @@ export class DatastoreDB extends BaseCommonDB implements CommonDB {
|
|
|
199
199
|
} catch (err) {
|
|
200
200
|
if (err instanceof TimeoutError) {
|
|
201
201
|
_errorDataAppend(err, {
|
|
202
|
-
fingerprint:
|
|
202
|
+
fingerprint: DATASTORE_TIMEOUT,
|
|
203
203
|
})
|
|
204
204
|
}
|
|
205
205
|
throw err
|
|
@@ -364,7 +364,7 @@ export class DatastoreDB extends BaseCommonDB implements CommonDB {
|
|
|
364
364
|
} catch (err) {
|
|
365
365
|
if (err instanceof TimeoutError) {
|
|
366
366
|
_errorDataAppend(err, {
|
|
367
|
-
fingerprint:
|
|
367
|
+
fingerprint: DATASTORE_TIMEOUT,
|
|
368
368
|
})
|
|
369
369
|
}
|
|
370
370
|
|
|
@@ -638,7 +638,7 @@ export class DatastoreDB extends BaseCommonDB implements CommonDB {
|
|
|
638
638
|
logger: this.cfg.logger,
|
|
639
639
|
// not appending fingerprint here, otherwise it would just group all kinds of errors, not just Timeout errors
|
|
640
640
|
// errorData: {
|
|
641
|
-
// fingerprint:
|
|
641
|
+
// fingerprint: DATASTORE_TIMEOUT,
|
|
642
642
|
// },
|
|
643
643
|
}
|
|
644
644
|
}
|