@arrirpc/codegen-kotlin 0.61.0 → 0.62.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 CHANGED
@@ -983,11 +983,11 @@ function kotlinInt64FromSchema(schema, context) {
983
983
  toJson(input, target) {
984
984
  if (schema.nullable) {
985
985
  return `${target} += when (${input}) {
986
- is Long -> "\\"$${input}\\""
986
+ is Long -> "\\"\${${input}}\\""
987
987
  else -> "null"
988
988
  }`;
989
989
  }
990
- return `${target} += "\\"$${input}\\""`;
990
+ return `${target} += "\\"\${${input}}\\""`;
991
991
  },
992
992
  toQueryString(input, target, key) {
993
993
  return defaultToQueryString(context, input, target, key);
@@ -1101,11 +1101,11 @@ function kotlinUint64FromSchema(schema, context) {
1101
1101
  toJson(input, target) {
1102
1102
  if (schema.nullable) {
1103
1103
  return `${target} += when (${input}) {
1104
- is ULong -> "\\"$${input}\\""
1104
+ is ULong -> "\\"\${${input}}\\""
1105
1105
  else -> "null"
1106
1106
  }`;
1107
1107
  }
1108
- return `${target} += "\\"$${input}\\""`;
1108
+ return `${target} += "\\"\${${input}}\\""`;
1109
1109
  },
1110
1110
  toQueryString(input, target, key) {
1111
1111
  return defaultToQueryString(context, input, target, key);
package/dist/index.mjs CHANGED
@@ -977,11 +977,11 @@ function kotlinInt64FromSchema(schema, context) {
977
977
  toJson(input, target) {
978
978
  if (schema.nullable) {
979
979
  return `${target} += when (${input}) {
980
- is Long -> "\\"$${input}\\""
980
+ is Long -> "\\"\${${input}}\\""
981
981
  else -> "null"
982
982
  }`;
983
983
  }
984
- return `${target} += "\\"$${input}\\""`;
984
+ return `${target} += "\\"\${${input}}\\""`;
985
985
  },
986
986
  toQueryString(input, target, key) {
987
987
  return defaultToQueryString(context, input, target, key);
@@ -1095,11 +1095,11 @@ function kotlinUint64FromSchema(schema, context) {
1095
1095
  toJson(input, target) {
1096
1096
  if (schema.nullable) {
1097
1097
  return `${target} += when (${input}) {
1098
- is ULong -> "\\"$${input}\\""
1098
+ is ULong -> "\\"\${${input}}\\""
1099
1099
  else -> "null"
1100
1100
  }`;
1101
1101
  }
1102
- return `${target} += "\\"$${input}\\""`;
1102
+ return `${target} += "\\"\${${input}}\\""`;
1103
1103
  },
1104
1104
  toQueryString(input, target, key) {
1105
1105
  return defaultToQueryString(context, input, target, key);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/codegen-kotlin",
3
- "version": "0.61.0",
3
+ "version": "0.62.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -22,6 +22,6 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@arrirpc/codegen-utils": "0.61.0"
25
+ "@arrirpc/codegen-utils": "0.62.0"
26
26
  }
27
27
  }