@orizm/cli 2.2.5 → 2.2.6
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/cli.cjs +13 -10
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +13 -10
- package/dist/cli.js.map +1 -1
- package/package.json +6 -5
package/dist/cli.cjs
CHANGED
|
@@ -461,7 +461,12 @@ function renderModuleTypes(mod) {
|
|
|
461
461
|
]);
|
|
462
462
|
const updateType = renderTypeBlock(`${name}UpdateInput`, [
|
|
463
463
|
"id?: string;",
|
|
464
|
-
...cols.map(
|
|
464
|
+
...cols.map(
|
|
465
|
+
(col) => renderColumnField(col, {
|
|
466
|
+
optional: !col.required,
|
|
467
|
+
suffix: "UpdateInput"
|
|
468
|
+
})
|
|
469
|
+
)
|
|
465
470
|
]);
|
|
466
471
|
return [rowType, createType, updateType].join("\n\n");
|
|
467
472
|
}
|
|
@@ -536,15 +541,7 @@ var cmsGenerateCommand = new import_commander.Command("generate").description("g
|
|
|
536
541
|
// src/cms/pull/command.ts
|
|
537
542
|
var import_commander2 = require("commander");
|
|
538
543
|
|
|
539
|
-
// ../internal-shared/dist/chunk-
|
|
540
|
-
function assertValidUrlOrigin(origin) {
|
|
541
|
-
const url = new URL(origin);
|
|
542
|
-
if (url.origin !== origin) {
|
|
543
|
-
throw new Error(`${origin} is not a valid URL origin`);
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
// ../../node_modules/.pnpm/openapi-fetch@0.17.0/node_modules/openapi-fetch/dist/index.mjs
|
|
544
|
+
// ../internal-shared/dist/chunk-TTAO2AN2.js
|
|
548
545
|
var PATH_PARAM_RE = /\{[^{}]+\}/g;
|
|
549
546
|
var supportsRequestInitExt = () => {
|
|
550
547
|
return typeof process === "object" && Number.parseInt(process?.versions?.node?.substring(0, 2)) >= 18 && process.versions.undici;
|
|
@@ -1019,6 +1016,12 @@ function removeTrailingSlash(url) {
|
|
|
1019
1016
|
}
|
|
1020
1017
|
return url;
|
|
1021
1018
|
}
|
|
1019
|
+
function assertValidUrlOrigin(origin) {
|
|
1020
|
+
const url = new URL(origin);
|
|
1021
|
+
if (url.origin !== origin) {
|
|
1022
|
+
throw new Error(`${origin} is not a valid URL origin`);
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1022
1025
|
|
|
1023
1026
|
// ../internal-shared/dist/api-clients/dev-v2-api-client.js
|
|
1024
1027
|
function createDeveloperAPIv2Client({
|