@arrirpc/codegen-swift 0.70.1 → 0.71.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.cjs CHANGED
@@ -1093,8 +1093,8 @@ function swiftHttpProcedureFromSchema(schema, context) {
1093
1093
  },
1094
1094
  " "
1095
1095
  );
1096
- const params = schema.params ? `${context.typePrefix}${validTypeName(schema.params)}` : void 0;
1097
- const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` : void 0;
1096
+ const params = schema.params ? `${context.typePrefix}${validTypeName(schema.params)}` : undefined;
1097
+ const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` : undefined;
1098
1098
  if (schema.isEventStream) {
1099
1099
  return `${comments} public func ${rpcName}(${params ? `_ params: ${params}, ` : ""}options: EventSourceOptions<${response ?? "EmptyArriModel"}>) -> Task<(), Never> {
1100
1100
  let task = Task {
@@ -1137,8 +1137,8 @@ function swiftWsProcedureFromSchema(schema, context) {
1137
1137
  "[swift-codegen] Websocket procedures are not supported at this time."
1138
1138
  );
1139
1139
  const name = getRpcName(context.instancePath);
1140
- const params = schema.params ? `${context.typePrefix}${validTypeName(schema.params)}` : void 0;
1141
- const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` : void 0;
1140
+ const params = schema.params ? `${context.typePrefix}${validTypeName(schema.params)}` : undefined;
1141
+ const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` : undefined;
1142
1142
  const comments = codeComments(
1143
1143
  {
1144
1144
  metadata: {
package/dist/index.mjs CHANGED
@@ -1087,8 +1087,8 @@ function swiftHttpProcedureFromSchema(schema, context) {
1087
1087
  },
1088
1088
  " "
1089
1089
  );
1090
- const params = schema.params ? `${context.typePrefix}${validTypeName(schema.params)}` : void 0;
1091
- const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` : void 0;
1090
+ const params = schema.params ? `${context.typePrefix}${validTypeName(schema.params)}` : undefined;
1091
+ const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` : undefined;
1092
1092
  if (schema.isEventStream) {
1093
1093
  return `${comments} public func ${rpcName}(${params ? `_ params: ${params}, ` : ""}options: EventSourceOptions<${response ?? "EmptyArriModel"}>) -> Task<(), Never> {
1094
1094
  let task = Task {
@@ -1131,8 +1131,8 @@ function swiftWsProcedureFromSchema(schema, context) {
1131
1131
  "[swift-codegen] Websocket procedures are not supported at this time."
1132
1132
  );
1133
1133
  const name = getRpcName(context.instancePath);
1134
- const params = schema.params ? `${context.typePrefix}${validTypeName(schema.params)}` : void 0;
1135
- const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` : void 0;
1134
+ const params = schema.params ? `${context.typePrefix}${validTypeName(schema.params)}` : undefined;
1135
+ const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` : undefined;
1136
1136
  const comments = codeComments(
1137
1137
  {
1138
1138
  metadata: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/codegen-swift",
3
- "version": "0.70.1",
3
+ "version": "0.71.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
- "@arrirpc/codegen-utils": "0.70.1"
25
+ "@arrirpc/codegen-utils": "0.71.0"
26
26
  },
27
27
  "devDependencies": {}
28
28
  }