imean-service-engine 1.4.2 → 1.5.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/README.md +582 -582
- package/dist/mod.cjs +6 -2
- package/dist/mod.js +6 -2
- package/package.json +87 -86
package/dist/mod.cjs
CHANGED
@@ -292,8 +292,6 @@ async function formatCode(code) {
|
|
292
292
|
return code;
|
293
293
|
}
|
294
294
|
}
|
295
|
-
|
296
|
-
// core/generator.ts
|
297
295
|
function getZodTypeString(schema, defaultOptional = false) {
|
298
296
|
function processType(type) {
|
299
297
|
const def = type._def;
|
@@ -303,6 +301,9 @@ function getZodTypeString(schema, defaultOptional = false) {
|
|
303
301
|
if (def.typeName === "ZodOptional") {
|
304
302
|
return processType(def.innerType);
|
305
303
|
}
|
304
|
+
if (def.typeName === "ZodEffects" && def.schema?._def.typeName !== "ZodAny") {
|
305
|
+
return processType(def.schema);
|
306
|
+
}
|
306
307
|
switch (def.typeName) {
|
307
308
|
case "ZodString": {
|
308
309
|
return "string";
|
@@ -310,6 +311,9 @@ function getZodTypeString(schema, defaultOptional = false) {
|
|
310
311
|
case "ZodNumber": {
|
311
312
|
return "number";
|
312
313
|
}
|
314
|
+
case "ZodBigInt": {
|
315
|
+
return "bigint";
|
316
|
+
}
|
313
317
|
case "ZodBoolean": {
|
314
318
|
return "boolean";
|
315
319
|
}
|
package/dist/mod.js
CHANGED
@@ -283,8 +283,6 @@ async function formatCode(code) {
|
|
283
283
|
return code;
|
284
284
|
}
|
285
285
|
}
|
286
|
-
|
287
|
-
// core/generator.ts
|
288
286
|
function getZodTypeString(schema, defaultOptional = false) {
|
289
287
|
function processType(type) {
|
290
288
|
const def = type._def;
|
@@ -294,6 +292,9 @@ function getZodTypeString(schema, defaultOptional = false) {
|
|
294
292
|
if (def.typeName === "ZodOptional") {
|
295
293
|
return processType(def.innerType);
|
296
294
|
}
|
295
|
+
if (def.typeName === "ZodEffects" && def.schema?._def.typeName !== "ZodAny") {
|
296
|
+
return processType(def.schema);
|
297
|
+
}
|
297
298
|
switch (def.typeName) {
|
298
299
|
case "ZodString": {
|
299
300
|
return "string";
|
@@ -301,6 +302,9 @@ function getZodTypeString(schema, defaultOptional = false) {
|
|
301
302
|
case "ZodNumber": {
|
302
303
|
return "number";
|
303
304
|
}
|
305
|
+
case "ZodBigInt": {
|
306
|
+
return "bigint";
|
307
|
+
}
|
304
308
|
case "ZodBoolean": {
|
305
309
|
return "boolean";
|
306
310
|
}
|
package/package.json
CHANGED
@@ -1,86 +1,87 @@
|
|
1
|
-
{
|
2
|
-
"name": "imean-service-engine",
|
3
|
-
"version": "1.
|
4
|
-
"description": "microservice engine",
|
5
|
-
"keywords": [
|
6
|
-
"microservice",
|
7
|
-
"websocket",
|
8
|
-
"http",
|
9
|
-
"node"
|
10
|
-
],
|
11
|
-
"author": "imean",
|
12
|
-
"type": "module",
|
13
|
-
"license": "MIT",
|
14
|
-
"repository": {
|
15
|
-
"type": "git",
|
16
|
-
"url": "git+https://git.imean.tech/imean/imean-microservice-framework.git"
|
17
|
-
},
|
18
|
-
"main": "dist/mod.js",
|
19
|
-
"module": "dist/mod.js",
|
20
|
-
"types": "dist/mod.d.ts",
|
21
|
-
"exports": {
|
22
|
-
".": {
|
23
|
-
"types": "./dist/mod.d.ts",
|
24
|
-
"import": "./dist/mod.js",
|
25
|
-
"require": "./dist/mod.cjs"
|
26
|
-
}
|
27
|
-
},
|
28
|
-
"files": [
|
29
|
-
"dist",
|
30
|
-
"README.md",
|
31
|
-
"LICENSE"
|
32
|
-
],
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"
|
36
|
-
"
|
37
|
-
"
|
38
|
-
|
39
|
-
|
40
|
-
"
|
41
|
-
"hono": "^
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
|
48
|
-
|
49
|
-
"
|
50
|
-
"
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"@opentelemetry/
|
56
|
-
"
|
57
|
-
|
58
|
-
|
59
|
-
"@opentelemetry/
|
60
|
-
"@opentelemetry/
|
61
|
-
"@opentelemetry/
|
62
|
-
"@opentelemetry/
|
63
|
-
"@
|
64
|
-
"@
|
65
|
-
"@
|
66
|
-
"@
|
67
|
-
"@
|
68
|
-
"
|
69
|
-
"
|
70
|
-
"
|
71
|
-
"
|
72
|
-
"
|
73
|
-
"
|
74
|
-
"
|
75
|
-
"
|
76
|
-
"
|
77
|
-
|
78
|
-
|
79
|
-
"
|
80
|
-
|
81
|
-
|
82
|
-
"
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
}
|
1
|
+
{
|
2
|
+
"name": "imean-service-engine",
|
3
|
+
"version": "1.5.0",
|
4
|
+
"description": "microservice engine",
|
5
|
+
"keywords": [
|
6
|
+
"microservice",
|
7
|
+
"websocket",
|
8
|
+
"http",
|
9
|
+
"node"
|
10
|
+
],
|
11
|
+
"author": "imean",
|
12
|
+
"type": "module",
|
13
|
+
"license": "MIT",
|
14
|
+
"repository": {
|
15
|
+
"type": "git",
|
16
|
+
"url": "git+https://git.imean.tech/imean/imean-microservice-framework.git"
|
17
|
+
},
|
18
|
+
"main": "dist/mod.js",
|
19
|
+
"module": "dist/mod.js",
|
20
|
+
"types": "dist/mod.d.ts",
|
21
|
+
"exports": {
|
22
|
+
".": {
|
23
|
+
"types": "./dist/mod.d.ts",
|
24
|
+
"import": "./dist/mod.js",
|
25
|
+
"require": "./dist/mod.cjs"
|
26
|
+
}
|
27
|
+
},
|
28
|
+
"files": [
|
29
|
+
"dist",
|
30
|
+
"README.md",
|
31
|
+
"LICENSE"
|
32
|
+
],
|
33
|
+
"scripts": {
|
34
|
+
"dev": "tsx watch dev/index.ts",
|
35
|
+
"build": "tsup",
|
36
|
+
"test": "vitest run",
|
37
|
+
"prepublishOnly": "npm run build && npm run test"
|
38
|
+
},
|
39
|
+
"dependencies": {
|
40
|
+
"@hono/node-server": "^1.13.7",
|
41
|
+
"@hono/node-ws": "^1.0.6",
|
42
|
+
"@modelcontextprotocol/sdk": "^1.8.0",
|
43
|
+
"dayjs": "^1.11.13",
|
44
|
+
"ejson": "^2.2.3",
|
45
|
+
"etcd3": "^1.1.2",
|
46
|
+
"fs-extra": "^11.3.0",
|
47
|
+
"hono": "^4.6.17",
|
48
|
+
"lru-cache": "^11.0.2",
|
49
|
+
"prettier": "^3.4.2",
|
50
|
+
"ulid": "^3.0.0",
|
51
|
+
"winston": "^3.17.0",
|
52
|
+
"zod": "^3.24.1"
|
53
|
+
},
|
54
|
+
"peerDependencies": {
|
55
|
+
"@opentelemetry/api": "^1.x",
|
56
|
+
"ioredis": "^5.6.0"
|
57
|
+
},
|
58
|
+
"devDependencies": {
|
59
|
+
"@opentelemetry/auto-instrumentations-node": "^0.55.3",
|
60
|
+
"@opentelemetry/exporter-logs-otlp-proto": "^0.57.1",
|
61
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "^0.57.1",
|
62
|
+
"@opentelemetry/exporter-trace-otlp-proto": "^0.57.1",
|
63
|
+
"@opentelemetry/instrumentation-winston": "^0.44.0",
|
64
|
+
"@opentelemetry/sdk-logs": "^0.57.1",
|
65
|
+
"@opentelemetry/sdk-metrics": "^1.30.1",
|
66
|
+
"@opentelemetry/sdk-node": "^0.57.1",
|
67
|
+
"@opentelemetry/sdk-trace-node": "^1.30.1",
|
68
|
+
"@opentelemetry/winston-transport": "^0.10.0",
|
69
|
+
"@types/ejson": "^2.2.2",
|
70
|
+
"@types/fs-extra": "^11.0.4",
|
71
|
+
"@types/ioredis-mock": "^8.2.5",
|
72
|
+
"@types/node": "^20.0.0",
|
73
|
+
"@vitest/coverage-v8": "^3.0.4",
|
74
|
+
"imean-service-client": "^1.5.0",
|
75
|
+
"ioredis-mock": "^8.9.0",
|
76
|
+
"opentelemetry-instrumentation-fetch-node": "^1.2.3",
|
77
|
+
"tslib": "^2.8.1",
|
78
|
+
"tsup": "^8.0.1",
|
79
|
+
"tsx": "^4.19.2",
|
80
|
+
"typescript": "^5.3.3",
|
81
|
+
"vite-tsconfig-paths": "^5.1.4",
|
82
|
+
"vitest": "^3.0.3"
|
83
|
+
},
|
84
|
+
"engines": {
|
85
|
+
"node": ">=20"
|
86
|
+
}
|
87
|
+
}
|