@prismatic-io/spectral 10.3.6 → 10.3.8
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.
|
@@ -76,6 +76,11 @@ const runMain = (process) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
76
76
|
}),
|
|
77
77
|
description: "This skips the signature verification process, always returning a component signature in the component manifest.",
|
|
78
78
|
},
|
|
79
|
+
version: {
|
|
80
|
+
flag: ["--version"],
|
|
81
|
+
value: (0, getFlagBooleanValue_1.getFlagsBooleanValue)({ args, flags: ["--version"] }),
|
|
82
|
+
description: "Display the version of @prismatic-io/spectral this component manifest generator uses.",
|
|
83
|
+
},
|
|
79
84
|
help: {
|
|
80
85
|
flag: ["--help", "-h"],
|
|
81
86
|
value: (0, getFlagBooleanValue_1.getFlagsBooleanValue)({
|
|
@@ -85,6 +90,11 @@ const runMain = (process) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
85
90
|
description: "Show this help message.",
|
|
86
91
|
},
|
|
87
92
|
};
|
|
93
|
+
if (flags.version.value) {
|
|
94
|
+
const { version } = require("../../../package.json");
|
|
95
|
+
console.log(version);
|
|
96
|
+
process.exit(0);
|
|
97
|
+
}
|
|
88
98
|
if (flags.help.value) {
|
|
89
99
|
(0, createFlagHelpText_1.createFlagHelpText)({
|
|
90
100
|
command: "component-manifest",
|
|
@@ -87,8 +87,8 @@ const getInputValueType = (input) => {
|
|
|
87
87
|
}
|
|
88
88
|
if (input.collection === "valuelist") {
|
|
89
89
|
return typeof valueType === "string"
|
|
90
|
-
?
|
|
91
|
-
: Object.assign(Object.assign({}, valueType), { type:
|
|
90
|
+
? `Array<${valueType}>`
|
|
91
|
+
: Object.assign(Object.assign({}, valueType), { type: `Array<${valueType.type}>` });
|
|
92
92
|
}
|
|
93
93
|
return valueType;
|
|
94
94
|
};
|
|
@@ -72,6 +72,7 @@ export type ActionContext<TConfigVars extends ConfigVarResultCollection = Config
|
|
|
72
72
|
startedAt: string;
|
|
73
73
|
invokeFlow: FlowInvoker<TFlows>;
|
|
74
74
|
executionFrame: ExecutionFrame;
|
|
75
|
+
globalDebug: boolean;
|
|
75
76
|
};
|
|
76
77
|
type TriggerOptionChoice = "invalid" | "valid" | "required";
|
|
77
78
|
export interface TriggerPayload {
|
package/dist/testing.js
CHANGED
|
@@ -113,7 +113,7 @@ const createActionContext = (context) => {
|
|
|
113
113
|
executionStartedAt: "",
|
|
114
114
|
stepName: "some-step",
|
|
115
115
|
loopPath: "",
|
|
116
|
-
} }, context);
|
|
116
|
+
}, globalDebug: false }, context);
|
|
117
117
|
};
|
|
118
118
|
const createDataSourceContext = (context) => {
|
|
119
119
|
return Object.assign({ logger: (0, exports.loggerMock)(), configVars: {}, customer: {
|
|
@@ -66,5 +66,7 @@ export type ActionContext<TConfigVars extends ConfigVarResultCollection = Config
|
|
|
66
66
|
invokeFlow: FlowInvoker<TFlows>;
|
|
67
67
|
/** Reference to the current execution and, when applicable, the current step. */
|
|
68
68
|
executionFrame: ExecutionFrame;
|
|
69
|
+
/** Denotes whether code should be executed in debug mode. */
|
|
70
|
+
globalDebug: boolean;
|
|
69
71
|
};
|
|
70
72
|
export {};
|