@arrirpc/codegen-ts 0.63.2 → 0.63.3
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/dist/index.cjs +6 -3
- package/dist/index.mjs +6 -3
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -68,9 +68,12 @@ function getTsTypeName(schema, context) {
|
|
|
68
68
|
);
|
|
69
69
|
return validVarName(name2);
|
|
70
70
|
}
|
|
71
|
-
const name = codegenUtils.pascalCase(
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
const name = codegenUtils.pascalCase(
|
|
72
|
+
context.instancePath.split("/").join("_").split("[").join("_").split("]").join("_"),
|
|
73
|
+
{
|
|
74
|
+
normalize: true
|
|
75
|
+
}
|
|
76
|
+
);
|
|
74
77
|
return validVarName(name);
|
|
75
78
|
}
|
|
76
79
|
|
package/dist/index.mjs
CHANGED
|
@@ -62,9 +62,12 @@ function getTsTypeName(schema, context) {
|
|
|
62
62
|
);
|
|
63
63
|
return validVarName(name2);
|
|
64
64
|
}
|
|
65
|
-
const name = pascalCase(
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
const name = pascalCase(
|
|
66
|
+
context.instancePath.split("/").join("_").split("[").join("_").split("]").join("_"),
|
|
67
|
+
{
|
|
68
|
+
normalize: true
|
|
69
|
+
}
|
|
70
|
+
);
|
|
68
71
|
return validVarName(name);
|
|
69
72
|
}
|
|
70
73
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arrirpc/codegen-ts",
|
|
3
|
-
"version": "0.63.
|
|
3
|
+
"version": "0.63.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"prettier": "^3.3.3",
|
|
26
|
-
"@arrirpc/codegen-utils": "0.63.
|
|
26
|
+
"@arrirpc/codegen-utils": "0.63.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {}
|
|
29
29
|
}
|