@hardfin/cli 0.1.0-dev.27 → 0.1.0-dev.29
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/README.md +6 -0
- package/dist/cli.js +7 -2
- package/dist/completion-quick-BJHDp8OL.js +5 -0
- package/dist/completion-tree-rR_Rmeij.js +5 -0
- package/dist/{program-C3SGdPbf.js → program-CnXYN9xS.js} +13 -1
- package/dist/scrub-VtQmxap1.js +5 -0
- package/dist/sentry-D5lKx0nm.js +5 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -454,6 +454,12 @@ The workflow picks the preview version itself. It reads `version` from `package.
|
|
|
454
454
|
if that version is already on npm it increments the patch, so a preview always sorts after
|
|
455
455
|
the last release.
|
|
456
456
|
|
|
457
|
+
Before publishing, the workflow stamps each file in `dist` and its source map with a matching
|
|
458
|
+
debug ID, and uploads the maps to Sentry under the release `hardfin-cli@<version>`. An error
|
|
459
|
+
report's stack trace then reads as the TypeScript source. The maps are not in the package, and
|
|
460
|
+
publishing skips `prepublishOnly`, so the stamped files are the ones published. The upload
|
|
461
|
+
needs the `SENTRY_AUTH_TOKEN` secret.
|
|
462
|
+
|
|
457
463
|
### Cut a release
|
|
458
464
|
|
|
459
465
|
1. Open a pull request against `dev` that sets `version` in `package.json` to the version
|
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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]="39e80611-82c5-527b-ac56-e34310ee122e")}catch(e){}}();
|
|
2
4
|
import module from "node:module";
|
|
3
5
|
//#region src/cli.ts
|
|
4
6
|
module.enableCompileCache?.();
|
|
@@ -12,7 +14,7 @@ process.on("unhandledRejection", (error) => void toCrash(error));
|
|
|
12
14
|
try {
|
|
13
15
|
const answer = await toQuickAnswer(process.argv.slice(2));
|
|
14
16
|
if (answer === void 0) {
|
|
15
|
-
const { toCli, wasReportAttempted } = await import("./program-
|
|
17
|
+
const { toCli, wasReportAttempted } = await import("./program-CnXYN9xS.js");
|
|
16
18
|
await toCli().parseAsync(process.argv);
|
|
17
19
|
if (wasReportAttempted()) process.exit();
|
|
18
20
|
} else process.stdout.write(`${answer}\n`);
|
|
@@ -25,7 +27,7 @@ async function toCrash(error) {
|
|
|
25
27
|
isCrashing = true;
|
|
26
28
|
process.stderr.write(`error: ${error instanceof Error ? error.message : String(error)}\n`);
|
|
27
29
|
try {
|
|
28
|
-
const { toReported } = await import("./program-
|
|
30
|
+
const { toReported } = await import("./program-CnXYN9xS.js");
|
|
29
31
|
await toReported(error, false, void 0, "fatal");
|
|
30
32
|
} finally {
|
|
31
33
|
process.exit(1);
|
|
@@ -41,3 +43,6 @@ async function toQuickAnswer(args) {
|
|
|
41
43
|
}
|
|
42
44
|
//#endregion
|
|
43
45
|
export {};
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=cli.js.map
|
|
48
|
+
//# debugId=39e80611-82c5-527b-ac56-e34310ee122e
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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]="a0e4ab3e-9a55-518b-a49b-37189993952e")}catch(e){}}();
|
|
2
4
|
import { n as toCompletion, t as toAnswer } from "./completion-tree-rR_Rmeij.js";
|
|
3
5
|
import { readFileSync } from "node:fs";
|
|
4
6
|
//#region src/command/completion-quick.ts
|
|
@@ -18,3 +20,6 @@ function toQuickAnswer(words, location = new URL("./completion-tree.json", impor
|
|
|
18
20
|
}
|
|
19
21
|
//#endregion
|
|
20
22
|
export { toQuickAnswer };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=completion-quick-BJHDp8OL.js.map
|
|
25
|
+
//# debugId=a0e4ab3e-9a55-518b-a49b-37189993952e
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
//#region src/command/completion-tree.ts
|
|
3
3
|
/** Directive is the last line of an answer, which tells the script what to do beyond the candidates. */
|
|
4
|
+
|
|
5
|
+
!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]="b5b3cdcd-37e1-50f6-880a-13e965b5e7ed")}catch(e){}}();
|
|
4
6
|
const Directive = {
|
|
5
7
|
NONE: ":0",
|
|
6
8
|
FILES: ":1"
|
|
@@ -158,3 +160,6 @@ function toLine(description) {
|
|
|
158
160
|
}
|
|
159
161
|
//#endregion
|
|
160
162
|
export { toCompletion as n, toAnswer as t };
|
|
163
|
+
|
|
164
|
+
//# sourceMappingURL=completion-tree-rR_Rmeij.js.map
|
|
165
|
+
//# debugId=b5b3cdcd-37e1-50f6-880a-13e965b5e7ed
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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]="8979dc06-d236-502b-bea1-b13868301f52")}catch(e){}}();
|
|
2
4
|
import { a as defineCommand, i as GLOBAL_FLAGS, r as ExitCode, t as toInvocation } from "./scrub-VtQmxap1.js";
|
|
3
5
|
import { n as toCompletion, t as toAnswer$1 } from "./completion-tree-rR_Rmeij.js";
|
|
4
6
|
import { createRequire } from "node:module";
|
|
@@ -2225,7 +2227,7 @@ function toTelemetry(env = process.env, isCheckout = isRunFromCheckout()) {
|
|
|
2225
2227
|
const base = {
|
|
2226
2228
|
dsn,
|
|
2227
2229
|
environment: isCheckout ? "local" : version$1.includes("-dev.") ? "preview" : "production",
|
|
2228
|
-
release:
|
|
2230
|
+
release: toRelease(version$1)
|
|
2229
2231
|
};
|
|
2230
2232
|
if (env["DO_NOT_TRACK"] && !OFF.has(env["DO_NOT_TRACK"].toLowerCase())) return {
|
|
2231
2233
|
...base,
|
|
@@ -2273,6 +2275,13 @@ function isDsn(dsn) {
|
|
|
2273
2275
|
return false;
|
|
2274
2276
|
}
|
|
2275
2277
|
}
|
|
2278
|
+
/**
|
|
2279
|
+
* toRelease names a version as Sentry knows it. Sentry refuses a slash in a release name, so
|
|
2280
|
+
* the scoped package name @hardfin/cli cannot be used, and hardfin-cli stands in for it.
|
|
2281
|
+
*/
|
|
2282
|
+
function toRelease(of) {
|
|
2283
|
+
return `hardfin-cli@${of}`;
|
|
2284
|
+
}
|
|
2276
2285
|
//#endregion
|
|
2277
2286
|
//#region src/system/host.ts
|
|
2278
2287
|
const BYTES_PER_GB = 1024 ** 3;
|
|
@@ -5994,3 +6003,6 @@ async function toReported(error, isJSON, resolved, level = "error") {
|
|
|
5994
6003
|
}
|
|
5995
6004
|
//#endregion
|
|
5996
6005
|
export { toCli, toReported, wasReportAttempted };
|
|
6006
|
+
|
|
6007
|
+
//# sourceMappingURL=program-CnXYN9xS.js.map
|
|
6008
|
+
//# debugId=8979dc06-d236-502b-bea1-b13868301f52
|
package/dist/scrub-VtQmxap1.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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]="9fab3688-8d6c-599c-94b2-64daa75cd233")}catch(e){}}();
|
|
2
4
|
import { z } from "zod";
|
|
3
5
|
import { homedir } from "node:os";
|
|
4
6
|
//#region src/command/registry.ts
|
|
@@ -106,3 +108,6 @@ function toFlag(flags, word) {
|
|
|
106
108
|
}
|
|
107
109
|
//#endregion
|
|
108
110
|
export { defineCommand as a, GLOBAL_FLAGS as i, toScrubbed as n, ExitCode as r, toInvocation as t };
|
|
111
|
+
|
|
112
|
+
//# sourceMappingURL=scrub-VtQmxap1.js.map
|
|
113
|
+
//# debugId=9fab3688-8d6c-599c-94b2-64daa75cd233
|
package/dist/sentry-D5lKx0nm.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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]="a251c173-a448-5d16-93ea-bc9547e82365")}catch(e){}}();
|
|
2
4
|
import { n as toScrubbed } from "./scrub-VtQmxap1.js";
|
|
3
5
|
import { dirname } from "node:path";
|
|
4
6
|
import { request } from "node:http";
|
|
@@ -4382,3 +4384,6 @@ function toTags(delivery) {
|
|
|
4382
4384
|
}
|
|
4383
4385
|
//#endregion
|
|
4384
4386
|
export { send };
|
|
4387
|
+
|
|
4388
|
+
//# sourceMappingURL=sentry-D5lKx0nm.js.map
|
|
4389
|
+
//# debugId=a251c173-a448-5d16-93ea-bc9547e82365
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardfin/cli",
|
|
3
|
-
"version": "0.1.0-dev.
|
|
3
|
+
"version": "0.1.0-dev.29",
|
|
4
4
|
"description": "Command line interface for the Hardfin API",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Hardfin, Inc.",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"hardfin": "dist/cli.js"
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
|
-
"dist"
|
|
26
|
+
"dist",
|
|
27
|
+
"!dist/**/*.map"
|
|
27
28
|
],
|
|
28
29
|
"engines": {
|
|
29
30
|
"node": ">=20"
|