@hardfin/cli 0.1.1-dev.65 → 0.1.1-dev.67
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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="61135054-c950-5fd7-a811-e4c83d75d885")}catch(e){}}();
|
|
4
4
|
import module from "node:module";
|
|
5
5
|
//#region src/cli.ts
|
|
6
6
|
module.enableCompileCache?.();
|
|
@@ -14,7 +14,7 @@ process.on("unhandledRejection", (error) => void toCrash(error));
|
|
|
14
14
|
try {
|
|
15
15
|
const answer = await toQuickAnswer(process.argv.slice(2));
|
|
16
16
|
if (answer === void 0) {
|
|
17
|
-
const { toCli, toParseExitCode, wasReportAttempted } = await import("./program-
|
|
17
|
+
const { toCli, toParseExitCode, wasReportAttempted } = await import("./program-D8yu8l1H.js");
|
|
18
18
|
try {
|
|
19
19
|
await toCli().parseAsync(process.argv);
|
|
20
20
|
} catch (error) {
|
|
@@ -33,7 +33,7 @@ async function toCrash(error) {
|
|
|
33
33
|
isCrashing = true;
|
|
34
34
|
const isJSON = process.argv.includes("--json") || !process.stdout.isTTY;
|
|
35
35
|
try {
|
|
36
|
-
const { toReported, writeCrash } = await import("./program-
|
|
36
|
+
const { toReported, writeCrash } = await import("./program-D8yu8l1H.js");
|
|
37
37
|
writeCrash(error, isJSON);
|
|
38
38
|
await toReported(error, isJSON, void 0, "fatal");
|
|
39
39
|
} catch {
|
|
@@ -54,4 +54,4 @@ async function toQuickAnswer(args) {
|
|
|
54
54
|
export {};
|
|
55
55
|
|
|
56
56
|
//# sourceMappingURL=cli.js.map
|
|
57
|
-
//# debugId=
|
|
57
|
+
//# debugId=61135054-c950-5fd7-a811-e4c83d75d885
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="21ac6651-23d4-5fad-a188-4e2a04e10634")}catch(e){}}();
|
|
4
4
|
import { a as defineCommand, i as GLOBAL_FLAGS, r as ExitCode, t as toInvocation } from "./scrub-BZ0egWxC.js";
|
|
5
5
|
import { n as toAnswer$1, r as toCompletion, t as PATH_VALUES } from "./completion-tree-DLC6ARLR.js";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
@@ -1719,7 +1719,8 @@ async function runOperation(operation, input) {
|
|
|
1719
1719
|
writeFailure("invalid_input", given.message, input.isJSON);
|
|
1720
1720
|
return ExitCode.USAGE;
|
|
1721
1721
|
}
|
|
1722
|
-
const
|
|
1722
|
+
const unset = toUnsetNames(input.flags);
|
|
1723
|
+
const missing = operation.bodyFlags.concat(operation.upload?.fields ?? []).filter((flag) => flag.required && input.flags[toOptionKey(flag.name)] === void 0 && !unset.has(flag.name) && !hasPath(given, flag.jsonPath));
|
|
1723
1724
|
if (missing.length > 0) {
|
|
1724
1725
|
writeFailure("missing_flag", `this command needs ${missing.map((flag) => `--${flag.name}`).join(", ")}`, input.isJSON);
|
|
1725
1726
|
return ExitCode.USAGE;
|
|
@@ -1914,10 +1915,14 @@ function toApart(operation, flags, body) {
|
|
|
1914
1915
|
}
|
|
1915
1916
|
}
|
|
1916
1917
|
}
|
|
1918
|
+
/** toUnsetNames answers the flags --unset names, without their leading dashes. */
|
|
1919
|
+
function toUnsetNames(flags) {
|
|
1920
|
+
const named = flags["unset"];
|
|
1921
|
+
return new Set((Array.isArray(named) ? named : named === void 0 ? [] : [named]).map((name) => toText(name).replace(/^--/, "")));
|
|
1922
|
+
}
|
|
1917
1923
|
/** toOverlap refuses clearing an object while also setting one of its fields. */
|
|
1918
1924
|
function toOverlap(operation, flags) {
|
|
1919
|
-
const
|
|
1920
|
-
const unset = new Set((Array.isArray(named) ? named : named === void 0 ? [] : [named]).map((name) => toText(name).replace(/^--/, "")));
|
|
1925
|
+
const unset = toUnsetNames(flags);
|
|
1921
1926
|
const sent = operation.bodyFlags.filter((flag) => flags[toOptionKey(flag.name)] !== void 0 || unset.has(flag.name));
|
|
1922
1927
|
for (const whole of sent) {
|
|
1923
1928
|
const part = sent.find((flag) => flag.jsonPath.length > whole.jsonPath.length && whole.jsonPath.every((name, index) => flag.jsonPath[index] === name));
|
|
@@ -12897,5 +12902,5 @@ async function toReported(error, isJSON, resolved, level = "error") {
|
|
|
12897
12902
|
//#endregion
|
|
12898
12903
|
export { toCli, toParseExitCode, toReported, wasReportAttempted, writeCrash };
|
|
12899
12904
|
|
|
12900
|
-
//# sourceMappingURL=program-
|
|
12901
|
-
//# debugId=
|
|
12905
|
+
//# sourceMappingURL=program-D8yu8l1H.js.map
|
|
12906
|
+
//# debugId=21ac6651-23d4-5fad-a188-4e2a04e10634
|
package/dist/sentry-CC0H3uMB.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ed00bba9-17fd-5903-a01e-886425732bd7")}catch(e){}}();
|
|
4
4
|
import { n as toScrubbed } from "./scrub-BZ0egWxC.js";
|
|
5
5
|
import { dirname } from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
@@ -4401,4 +4401,4 @@ function toTags(delivery) {
|
|
|
4401
4401
|
export { send };
|
|
4402
4402
|
|
|
4403
4403
|
//# sourceMappingURL=sentry-CC0H3uMB.js.map
|
|
4404
|
-
//# debugId=
|
|
4404
|
+
//# debugId=ed00bba9-17fd-5903-a01e-886425732bd7
|