@zapier/zapier-sdk-cli 0.31.0 → 0.31.2
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/CHANGELOG.md +14 -0
- package/dist/cli.cjs +5 -2
- package/dist/cli.mjs +5 -2
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/package.json +1 -1
- package/dist/src/utils/cli-generator.js +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @zapier/zapier-sdk-cli
|
|
2
2
|
|
|
3
|
+
## 0.31.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [0055854]
|
|
8
|
+
- @zapier/zapier-sdk@0.30.0
|
|
9
|
+
- @zapier/zapier-sdk-mcp@0.9.5
|
|
10
|
+
|
|
11
|
+
## 0.31.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- a49a7af: Fix bug in array option handling in the CLI causing create-client-credentials to fail.
|
|
16
|
+
|
|
3
17
|
## 0.31.0
|
|
4
18
|
|
|
5
19
|
### Minor Changes
|
package/dist/cli.cjs
CHANGED
|
@@ -1365,6 +1365,9 @@ function convertCliArgsToSdkParams(parameters, positionalArgs, options) {
|
|
|
1365
1365
|
const camelKey = key.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
|
|
1366
1366
|
const param = parameters.find((p) => p.name === camelKey);
|
|
1367
1367
|
if (param && value !== void 0) {
|
|
1368
|
+
if (param.type === "array" && Array.isArray(value) && value.length === 0) {
|
|
1369
|
+
return;
|
|
1370
|
+
}
|
|
1368
1371
|
sdkParams[camelKey] = convertValue(value, param.type);
|
|
1369
1372
|
}
|
|
1370
1373
|
});
|
|
@@ -1801,7 +1804,7 @@ var LoginSchema = zod.z.object({
|
|
|
1801
1804
|
|
|
1802
1805
|
// package.json
|
|
1803
1806
|
var package_default = {
|
|
1804
|
-
version: "0.31.
|
|
1807
|
+
version: "0.31.2"};
|
|
1805
1808
|
|
|
1806
1809
|
// src/telemetry/builders.ts
|
|
1807
1810
|
function createCliBaseEvent(context = {}) {
|
|
@@ -3580,7 +3583,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
3580
3583
|
// package.json with { type: 'json' }
|
|
3581
3584
|
var package_default2 = {
|
|
3582
3585
|
name: "@zapier/zapier-sdk-cli",
|
|
3583
|
-
version: "0.31.
|
|
3586
|
+
version: "0.31.2"};
|
|
3584
3587
|
function detectPackageManager(cwd = process.cwd()) {
|
|
3585
3588
|
const ua = process.env.npm_config_user_agent;
|
|
3586
3589
|
if (ua) {
|
package/dist/cli.mjs
CHANGED
|
@@ -1329,6 +1329,9 @@ function convertCliArgsToSdkParams(parameters, positionalArgs, options) {
|
|
|
1329
1329
|
const camelKey = key.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
|
|
1330
1330
|
const param = parameters.find((p) => p.name === camelKey);
|
|
1331
1331
|
if (param && value !== void 0) {
|
|
1332
|
+
if (param.type === "array" && Array.isArray(value) && value.length === 0) {
|
|
1333
|
+
return;
|
|
1334
|
+
}
|
|
1332
1335
|
sdkParams[camelKey] = convertValue(value, param.type);
|
|
1333
1336
|
}
|
|
1334
1337
|
});
|
|
@@ -1765,7 +1768,7 @@ var LoginSchema = z.object({
|
|
|
1765
1768
|
|
|
1766
1769
|
// package.json
|
|
1767
1770
|
var package_default = {
|
|
1768
|
-
version: "0.31.
|
|
1771
|
+
version: "0.31.2"};
|
|
1769
1772
|
|
|
1770
1773
|
// src/telemetry/builders.ts
|
|
1771
1774
|
function createCliBaseEvent(context = {}) {
|
|
@@ -3544,7 +3547,7 @@ function createZapierCliSdk(options = {}) {
|
|
|
3544
3547
|
// package.json with { type: 'json' }
|
|
3545
3548
|
var package_default2 = {
|
|
3546
3549
|
name: "@zapier/zapier-sdk-cli",
|
|
3547
|
-
version: "0.31.
|
|
3550
|
+
version: "0.31.2"};
|
|
3548
3551
|
function detectPackageManager(cwd = process.cwd()) {
|
|
3549
3552
|
const ua = process.env.npm_config_user_agent;
|
|
3550
3553
|
if (ua) {
|
package/dist/index.cjs
CHANGED
package/dist/index.mjs
CHANGED
package/dist/package.json
CHANGED
|
@@ -535,6 +535,14 @@ function convertCliArgsToSdkParams(parameters, positionalArgs, options) {
|
|
|
535
535
|
const camelKey = key.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
|
|
536
536
|
const param = parameters.find((p) => p.name === camelKey);
|
|
537
537
|
if (param && value !== undefined) {
|
|
538
|
+
// Skip empty arrays — Commander initializes repeatable options with []
|
|
539
|
+
// so an empty array means the user didn't pass the flag. Omitting it
|
|
540
|
+
// lets Zod's .default() supply the intended default value.
|
|
541
|
+
if (param.type === "array" &&
|
|
542
|
+
Array.isArray(value) &&
|
|
543
|
+
value.length === 0) {
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
538
546
|
sdkParams[camelKey] = convertValue(value, param.type);
|
|
539
547
|
}
|
|
540
548
|
});
|