@arrirpc/codegen-ts 0.74.1 → 0.75.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/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -915,8 +915,8 @@ function tsRpcFromDefinition(def, context) {
|
|
|
915
915
|
}
|
|
916
916
|
function httpRpcFromDefinition(def, context) {
|
|
917
917
|
const key = getRpcKey(context);
|
|
918
|
-
const params = def.params ? `${context.typePrefix}${codegenUtils.pascalCase(validVarName(def.params))}` :
|
|
919
|
-
const response = def.response ? `${context.typePrefix}${codegenUtils.pascalCase(validVarName(def.response), { normalize: true })}` :
|
|
918
|
+
const params = def.params ? `${context.typePrefix}${codegenUtils.pascalCase(validVarName(def.params))}` : void 0;
|
|
919
|
+
const response = def.response ? `${context.typePrefix}${codegenUtils.pascalCase(validVarName(def.response), { normalize: true })}` : void 0;
|
|
920
920
|
const serializerMethod = def.method === "get" ? "toUrlQueryString" : "toJsonString";
|
|
921
921
|
if (def.isEventStream) {
|
|
922
922
|
context.usedFeatures.sse = true;
|
|
@@ -960,8 +960,8 @@ function httpRpcFromDefinition(def, context) {
|
|
|
960
960
|
function wsRpcFromDefinition(def, context) {
|
|
961
961
|
context.usedFeatures.ws = true;
|
|
962
962
|
const key = getRpcKey(context);
|
|
963
|
-
const params = def.params ? `${context.typePrefix}${codegenUtils.pascalCase(validVarName(def.params))}` :
|
|
964
|
-
const response = def.response ? `${context.typePrefix}${codegenUtils.pascalCase(validVarName(def.response), { normalize: true })}` :
|
|
963
|
+
const params = def.params ? `${context.typePrefix}${codegenUtils.pascalCase(validVarName(def.params))}` : void 0;
|
|
964
|
+
const response = def.response ? `${context.typePrefix}${codegenUtils.pascalCase(validVarName(def.response), { normalize: true })}` : void 0;
|
|
965
965
|
return `${getJsDocComment({
|
|
966
966
|
description: def.description,
|
|
967
967
|
isDeprecated: def.isDeprecated
|
package/dist/index.mjs
CHANGED
|
@@ -909,8 +909,8 @@ function tsRpcFromDefinition(def, context) {
|
|
|
909
909
|
}
|
|
910
910
|
function httpRpcFromDefinition(def, context) {
|
|
911
911
|
const key = getRpcKey(context);
|
|
912
|
-
const params = def.params ? `${context.typePrefix}${pascalCase(validVarName(def.params))}` :
|
|
913
|
-
const response = def.response ? `${context.typePrefix}${pascalCase(validVarName(def.response), { normalize: true })}` :
|
|
912
|
+
const params = def.params ? `${context.typePrefix}${pascalCase(validVarName(def.params))}` : void 0;
|
|
913
|
+
const response = def.response ? `${context.typePrefix}${pascalCase(validVarName(def.response), { normalize: true })}` : void 0;
|
|
914
914
|
const serializerMethod = def.method === "get" ? "toUrlQueryString" : "toJsonString";
|
|
915
915
|
if (def.isEventStream) {
|
|
916
916
|
context.usedFeatures.sse = true;
|
|
@@ -954,8 +954,8 @@ function httpRpcFromDefinition(def, context) {
|
|
|
954
954
|
function wsRpcFromDefinition(def, context) {
|
|
955
955
|
context.usedFeatures.ws = true;
|
|
956
956
|
const key = getRpcKey(context);
|
|
957
|
-
const params = def.params ? `${context.typePrefix}${pascalCase(validVarName(def.params))}` :
|
|
958
|
-
const response = def.response ? `${context.typePrefix}${pascalCase(validVarName(def.response), { normalize: true })}` :
|
|
957
|
+
const params = def.params ? `${context.typePrefix}${pascalCase(validVarName(def.params))}` : void 0;
|
|
958
|
+
const response = def.response ? `${context.typePrefix}${pascalCase(validVarName(def.response), { normalize: true })}` : void 0;
|
|
959
959
|
return `${getJsDocComment({
|
|
960
960
|
description: def.description,
|
|
961
961
|
isDeprecated: def.isDeprecated
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arrirpc/codegen-ts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"prettier": "^3.
|
|
26
|
-
"@arrirpc/codegen-utils": "0.
|
|
25
|
+
"prettier": "^3.5.1",
|
|
26
|
+
"@arrirpc/codegen-utils": "0.75.0"
|
|
27
27
|
}
|
|
28
28
|
}
|