@naturalcycles/db-lib 8.46.0 → 8.46.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.
@@ -112,7 +112,7 @@ class CommonDao {
112
112
  let dbm;
113
113
  if (opt.timeout) {
114
114
  // todo: possibly remove it after debugging is done
115
- dbm = (await (0, js_lib_1.pTimeout)(this.cfg.db.getByIds(table, [id]), {
115
+ dbm = (await (0, js_lib_1.pTimeout)(() => this.cfg.db.getByIds(table, [id]), {
116
116
  timeout: opt.timeout,
117
117
  name: `getById(${table})`,
118
118
  }))[0];
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "prepare": "husky install"
5
5
  },
6
6
  "dependencies": {
7
- "@naturalcycles/js-lib": "^14.0.0",
7
+ "@naturalcycles/js-lib": "^14.116.0",
8
8
  "@naturalcycles/nodejs-lib": "^12.0.0",
9
9
  "fs-extra": "^11.1.0"
10
10
  },
@@ -41,7 +41,7 @@
41
41
  "engines": {
42
42
  "node": ">=14.15"
43
43
  },
44
- "version": "8.46.0",
44
+ "version": "8.46.1",
45
45
  "description": "Lowest Common Denominator API to supported Databases",
46
46
  "keywords": [
47
47
  "db",
@@ -134,7 +134,7 @@ export class CommonDao<
134
134
  if (opt.timeout) {
135
135
  // todo: possibly remove it after debugging is done
136
136
  dbm = (
137
- await pTimeout(this.cfg.db.getByIds<DBM>(table, [id]), {
137
+ await pTimeout(() => this.cfg.db.getByIds<DBM>(table, [id]), {
138
138
  timeout: opt.timeout,
139
139
  name: `getById(${table})`,
140
140
  })