@e22m4u/js-repository 0.1.24 → 0.1.26

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e22m4u/js-repository",
3
- "version": "0.1.24",
3
+ "version": "0.1.26",
4
4
  "description": "Модуль для работы с базами данных для Node.js",
5
5
  "type": "module",
6
6
  "types": "./src/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "format": "prettier --write \"./src/**/*.js\"",
21
21
  "test": "npm run lint && c8 --reporter=text-summary mocha --bail",
22
22
  "test:coverage": "npm run lint && c8 --reporter=text mocha --bail",
23
- "build:cjs": "node build-cjs.js",
23
+ "build:cjs": "rimraf ./dist/cjs && node --no-warnings=ExperimentalWarning build-cjs.js",
24
24
  "prepare": "husky"
25
25
  },
26
26
  "repository": {
@@ -63,6 +63,7 @@
63
63
  "husky": "~9.1.6",
64
64
  "mocha": "~10.8.2",
65
65
  "prettier": "~3.3.3",
66
+ "rimraf": "^6.0.1",
66
67
  "tsx": "~4.19.2",
67
68
  "typescript": "~5.6.3",
68
69
  "typescript-eslint": "~8.13.0"
@@ -54,8 +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
- console.log(ctor);
58
- if (typeof ctor === 'function' && ctor.kind === Adapter.name) {
57
+ if (typeof ctor === 'function' && ctor.kind === Adapter.kind) {
59
58
  adapterCtor = ctor;
60
59
  break;
61
60
  }
@@ -11,6 +11,13 @@ import {ServiceContainer} from '@e22m4u/js-service';
11
11
  * Adapter.
12
12
  */
13
13
  export declare class Adapter extends Service {
14
+ /**
15
+ * Kind.
16
+ *
17
+ * @type {string}
18
+ */
19
+ static kind: string;
20
+
14
21
  /**
15
22
  * Settings.
16
23
  */
@@ -19,7 +19,7 @@ export class Adapter extends Service {
19
19
  *
20
20
  * @type {string}
21
21
  */
22
- static kind = Adapter.name;
22
+ static kind = 'Adapter';
23
23
 
24
24
  /**
25
25
  * Settings.