@technicity/openapi-sdk-generator 5.0.0 → 5.0.1
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/generate-remix.js +4 -4
- package/package.json +1 -1
- package/src/generate-remix.ts +4 -4
package/dist/generate-remix.js
CHANGED
|
@@ -144,15 +144,15 @@ async function getCode(input) {
|
|
|
144
144
|
const _v = (input.query as any)[k];
|
|
145
145
|
if (_v === void 0) {
|
|
146
146
|
continue;
|
|
147
|
-
}
|
|
148
|
-
if (Array.isArray(_v)) {
|
|
147
|
+
} else if (Array.isArray(_v)) {
|
|
149
148
|
for (let __v of _v) {
|
|
150
149
|
const v = typeof __v === "string" ? __v : String(__v);
|
|
151
150
|
q.push([k, v]);
|
|
152
151
|
}
|
|
152
|
+
} else {
|
|
153
|
+
const v = typeof _v === "string" ? _v : String(_v);
|
|
154
|
+
q.push([k, v]);
|
|
153
155
|
}
|
|
154
|
-
const v = typeof _v === "string" ? _v : String(_v);
|
|
155
|
-
q.push([k, v]);
|
|
156
156
|
}
|
|
157
157
|
url += \`?\${new URLSearchParams(q)}\`;
|
|
158
158
|
}`
|
package/package.json
CHANGED
package/src/generate-remix.ts
CHANGED
|
@@ -179,15 +179,15 @@ async function getCode(input: {
|
|
|
179
179
|
const _v = (input.query as any)[k];
|
|
180
180
|
if (_v === void 0) {
|
|
181
181
|
continue;
|
|
182
|
-
}
|
|
183
|
-
if (Array.isArray(_v)) {
|
|
182
|
+
} else if (Array.isArray(_v)) {
|
|
184
183
|
for (let __v of _v) {
|
|
185
184
|
const v = typeof __v === "string" ? __v : String(__v);
|
|
186
185
|
q.push([k, v]);
|
|
187
186
|
}
|
|
187
|
+
} else {
|
|
188
|
+
const v = typeof _v === "string" ? _v : String(_v);
|
|
189
|
+
q.push([k, v]);
|
|
188
190
|
}
|
|
189
|
-
const v = typeof _v === "string" ? _v : String(_v);
|
|
190
|
-
q.push([k, v]);
|
|
191
191
|
}
|
|
192
192
|
url += \`?\${new URLSearchParams(q)}\`;
|
|
193
193
|
}`
|