zinkee 0.1.51 → 0.1.53

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.js CHANGED
@@ -250,7 +250,7 @@ ${list}`
250
250
  };
251
251
  }
252
252
  async function showExamples(commandName, json, stdout, filters = {}) {
253
- const { getCommandExamples } = await import("./examples-V3PR2VTY.js");
253
+ const { getCommandExamples } = await import("./examples-SKT3O7KD.js");
254
254
  const examples = getCommandExamples(commandName, filters);
255
255
  if (examples.length === 0) {
256
256
  throw new CliError("invalid_cli_usage", `No examples registered for "${commandName}".`);
@@ -1234,7 +1234,7 @@ function mergeMappings(stringAssignments, jsonAssignments) {
1234
1234
  }
1235
1235
  var AUTOMATION_SOURCE_TYPES = /* @__PURE__ */ new Set(["TRIGGER", "PREVIOUS_ACTION"]);
1236
1236
  function isAutomationValueSource(value) {
1237
- return isJsonObject(value) && typeof value.type === "string" && AUTOMATION_SOURCE_TYPES.has(value.type) && typeof value.id === "string" && value.id.trim().length > 0 && (value.actionId === void 0 || value.type === "PREVIOUS_ACTION" && typeof value.actionId === "string" && value.actionId.trim().length > 0);
1237
+ return isJsonObject(value) && typeof value.type === "string" && AUTOMATION_SOURCE_TYPES.has(value.type) && typeof value.id === "string" && value.id.trim().length > 0 && (value.actionId === void 0 || value.actionId === null || value.type === "PREVIOUS_ACTION" && typeof value.actionId === "string" && value.actionId.trim().length > 0);
1238
1238
  }
1239
1239
  function looksLikeAutomationResolvedValue(value) {
1240
1240
  if (!isJsonObject(value)) {
@@ -1283,7 +1283,7 @@ function normalizeAutomationResolvedValue(value, label, options) {
1283
1283
  source: {
1284
1284
  type: sourceValue.type,
1285
1285
  id: sourceValue.id,
1286
- ...sourceValue.actionId === void 0 ? {} : { actionId: sourceValue.actionId }
1286
+ ...typeof sourceValue.actionId === "string" ? { actionId: sourceValue.actionId } : {}
1287
1287
  }
1288
1288
  };
1289
1289
  }