@e22m4u/js-repository 0.1.18 → 0.1.20

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.
@@ -6193,7 +6193,7 @@ function findAdapterCtorInModule(module2) {
6193
6193
  let adapterCtor;
6194
6194
  if (!module2 || typeof module2 !== "object" || Array.isArray(module2)) return;
6195
6195
  for (const ctor of Object.values(module2)) {
6196
- if (typeof ctor === "function" && ctor.prototype instanceof Adapter) {
6196
+ if (typeof ctor === "function") {
6197
6197
  adapterCtor = ctor;
6198
6198
  break;
6199
6199
  }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@e22m4u/js-repository",
3
- "version": "0.1.18",
3
+ "version": "0.1.20",
4
4
  "description": "Модуль для работы с базами данных для Node.js",
5
5
  "type": "module",
6
+ "types": "./src/index.d.ts",
6
7
  "module": "./src/index.js",
7
8
  "main": "./dist/cjs/index.cjs",
8
9
  "exports": {
@@ -44,26 +45,26 @@
44
45
  "devDependencies": {
45
46
  "@commitlint/cli": "~19.5.0",
46
47
  "@commitlint/config-conventional": "~19.5.0",
47
- "@types/chai": "~5.0.0",
48
+ "@types/chai": "~5.0.1",
48
49
  "@types/chai-as-promised": "~8.0.1",
49
50
  "@types/chai-spies": "~1.0.6",
50
51
  "@types/mocha": "~10.0.9",
51
52
  "c8": "~10.1.2",
52
- "chai": "~5.1.1",
53
+ "chai": "~5.1.2",
53
54
  "chai-as-promised": "~8.0.0",
54
55
  "chai-spies": "~1.1.0",
55
56
  "chai-subset": "~1.6.0",
56
57
  "esbuild": "~0.24.0",
57
- "eslint": "~9.12.0",
58
+ "eslint": "~9.14.0",
58
59
  "eslint-config-prettier": "~9.1.0",
59
60
  "eslint-plugin-chai-expect": "~3.1.0",
60
- "eslint-plugin-jsdoc": "~50.3.1",
61
+ "eslint-plugin-jsdoc": "~50.4.3",
61
62
  "eslint-plugin-mocha": "~10.5.0",
62
63
  "husky": "~9.1.6",
63
- "mocha": "~10.7.3",
64
+ "mocha": "~10.8.2",
64
65
  "prettier": "~3.3.3",
65
- "tsx": "~4.19.1",
66
- "typescript": "~5.5.4",
67
- "typescript-eslint": "~8.8.1"
66
+ "tsx": "~4.19.2",
67
+ "typescript": "~5.6.3",
68
+ "typescript-eslint": "~8.13.0"
68
69
  }
69
70
  }
@@ -54,7 +54,7 @@ function findAdapterCtorInModule(module) {
54
54
  let adapterCtor;
55
55
  if (!module || typeof module !== 'object' || Array.isArray(module)) return;
56
56
  for (const ctor of Object.values(module)) {
57
- if (typeof ctor === 'function' && ctor.prototype instanceof Adapter) {
57
+ if (typeof ctor === 'function') {
58
58
  adapterCtor = ctor;
59
59
  break;
60
60
  }
package/src/chai.js CHANGED
@@ -1,8 +1,8 @@
1
- import * as chaiTools from 'chai';
1
+ import * as chaiModule from 'chai';
2
2
  import chaiSpies from 'chai-spies';
3
3
  import chaiSubset from 'chai-subset';
4
4
  import chaiAsPromised from 'chai-as-promised';
5
- const chai = {...chaiTools};
5
+ const chai = {...chaiModule};
6
6
 
7
7
  chaiSpies(chai, chai.util);
8
8
  chaiSubset(chai, chai.util);