@treatwell/moleculer-call-wrapper 1.0.0 → 1.0.2

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/README.md CHANGED
@@ -133,6 +133,8 @@ Install `moleculer-call-wrapper` with your package manager:
133
133
  yarn add -D @treatwell/moleculer-call-wrapper
134
134
  ```
135
135
 
136
+ > This package has a peerDependency to `typescript` >= 5.8. You need to have it declared in your dev dependencies.
137
+
136
138
  ## Usage
137
139
 
138
140
  To generate the wrapper file, you need to call the `createWrapperCall` function exported by the package and provide:
package/dist/index.cjs CHANGED
@@ -527,7 +527,7 @@ function injectDatabaseMixinV2Builtins(context, actions, service, sourceFile) {
527
527
  const dbActions = actions.filter((a) => a.actionName?.startsWith(`${version}${service.name}.`)).filter((a) => !a.params || !a.returnType);
528
528
  const importName = addDepToImports(
529
529
  context.imports,
530
- "@treatwell/moleculer-essentials"
530
+ "@treatwell/moleculer-essentials/mixins/database"
531
531
  );
532
532
  for (const action of dbActions) {
533
533
  const actionName = action.actionName?.replace(
package/dist/index.mjs CHANGED
@@ -525,7 +525,7 @@ function injectDatabaseMixinV2Builtins(context, actions, service, sourceFile) {
525
525
  const dbActions = actions.filter((a) => a.actionName?.startsWith(`${version}${service.name}.`)).filter((a) => !a.params || !a.returnType);
526
526
  const importName = addDepToImports(
527
527
  context.imports,
528
- "@treatwell/moleculer-essentials"
528
+ "@treatwell/moleculer-essentials/mixins/database"
529
529
  );
530
530
  for (const action of dbActions) {
531
531
  const actionName = action.actionName?.replace(
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "git",
6
6
  "url": "https://github.com/treatwell/moleculer-call-wrapper"
7
7
  },
8
- "version": "1.0.0",
8
+ "version": "1.0.2",
9
9
  "type": "module",
10
10
  "main": "./dist/index.cjs",
11
11
  "module": "./dist/index.mjs",
@@ -27,17 +27,17 @@
27
27
  "test:lint": "eslint . --max-warnings=0 && prettier -c ."
28
28
  },
29
29
  "dependencies": {
30
- "ts-clone-node": "^4.0.0",
31
- "typescript": "~5.9.2"
30
+ "ts-clone-node": "^4.0.0"
32
31
  },
33
32
  "peerDependencies": {
34
- "moleculer": "^0.14.33"
33
+ "moleculer": "^0.14.33",
34
+ "typescript": "^5.8.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@eslint/js": "^9.33.0",
37
+ "@eslint/js": "^9.34.0",
38
38
  "@tsconfig/node-lts": "^22.0.2",
39
39
  "@types/node": "^22.17.2",
40
- "eslint": "^9.33.0",
40
+ "eslint": "^9.34.0",
41
41
  "eslint-config-prettier": "^10.1.8",
42
42
  "eslint-plugin-prettier": "^5.5.4",
43
43
  "jiti": "^2.5.1",
@@ -46,7 +46,7 @@
46
46
  "prettier": "^3.6.2",
47
47
  "semantic-release": "^24.2.7",
48
48
  "typescript": "~5.9.2",
49
- "typescript-eslint": "^8.39.1"
49
+ "typescript-eslint": "^8.41.0"
50
50
  },
51
51
  "files": [
52
52
  "dist"