@arrirpc/codegen-swift 0.70.1 → 0.71.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 +2 -2
    
        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)}` :  | 
| 1097 | 
            -
              const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` :  | 
| 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)}` :  | 
| 1141 | 
            -
              const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` :  | 
| 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)}` :  | 
| 1091 | 
            -
              const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` :  | 
| 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)}` :  | 
| 1135 | 
            -
              const response = schema.response ? `${context.typePrefix}${validTypeName(schema.response)}` :  | 
| 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. | 
| 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. | 
| 25 | 
            +
                "@arrirpc/codegen-utils": "0.71.0"
         | 
| 26 26 | 
             
              },
         | 
| 27 27 | 
             
              "devDependencies": {}
         | 
| 28 28 | 
             
            }
         |