@hardfin/cli 0.1.0-dev.28 → 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 CHANGED
@@ -455,7 +455,7 @@ if that version is already on npm it increments the patch, so a preview always s
455
455
  the last release.
456
456
 
457
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
458
+ debug ID, and uploads the maps to Sentry under the release `hardfin-cli@<version>`. An error
459
459
  report's stack trace then reads as the TypeScript source. The maps are not in the package, and
460
460
  publishing skips `prepublishOnly`, so the stamped files are the ones published. The upload
461
461
  needs the `SENTRY_AUTH_TOKEN` secret.
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]="497b0264-fbd1-51d6-bd23-fb6c7eed397b")}catch(e){}}();
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){}}();
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, wasReportAttempted } = await import("./program-C3SGdPbf.js");
17
+ const { toCli, wasReportAttempted } = await import("./program-CnXYN9xS.js");
18
18
  await toCli().parseAsync(process.argv);
19
19
  if (wasReportAttempted()) process.exit();
20
20
  } else process.stdout.write(`${answer}\n`);
@@ -27,7 +27,7 @@ async function toCrash(error) {
27
27
  isCrashing = true;
28
28
  process.stderr.write(`error: ${error instanceof Error ? error.message : String(error)}\n`);
29
29
  try {
30
- const { toReported } = await import("./program-C3SGdPbf.js");
30
+ const { toReported } = await import("./program-CnXYN9xS.js");
31
31
  await toReported(error, false, void 0, "fatal");
32
32
  } finally {
33
33
  process.exit(1);
@@ -45,4 +45,4 @@ async function toQuickAnswer(args) {
45
45
  export {};
46
46
 
47
47
  //# sourceMappingURL=cli.js.map
48
- //# debugId=497b0264-fbd1-51d6-bd23-fb6c7eed397b
48
+ //# debugId=39e80611-82c5-527b-ac56-e34310ee122e
@@ -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]="c531fbbe-2dd5-53cf-87a6-723b2926146f")}catch(e){}}();
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){}}();
4
4
  import { a as defineCommand, i as GLOBAL_FLAGS, r as ExitCode, t as toInvocation } from "./scrub-VtQmxap1.js";
5
5
  import { n as toCompletion, t as toAnswer$1 } from "./completion-tree-rR_Rmeij.js";
6
6
  import { createRequire } from "node:module";
@@ -2227,7 +2227,7 @@ function toTelemetry(env = process.env, isCheckout = isRunFromCheckout()) {
2227
2227
  const base = {
2228
2228
  dsn,
2229
2229
  environment: isCheckout ? "local" : version$1.includes("-dev.") ? "preview" : "production",
2230
- release: `@hardfin/cli@${version$1}`
2230
+ release: toRelease(version$1)
2231
2231
  };
2232
2232
  if (env["DO_NOT_TRACK"] && !OFF.has(env["DO_NOT_TRACK"].toLowerCase())) return {
2233
2233
  ...base,
@@ -2275,6 +2275,13 @@ function isDsn(dsn) {
2275
2275
  return false;
2276
2276
  }
2277
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
+ }
2278
2285
  //#endregion
2279
2286
  //#region src/system/host.ts
2280
2287
  const BYTES_PER_GB = 1024 ** 3;
@@ -5997,5 +6004,5 @@ async function toReported(error, isJSON, resolved, level = "error") {
5997
6004
  //#endregion
5998
6005
  export { toCli, toReported, wasReportAttempted };
5999
6006
 
6000
- //# sourceMappingURL=program-C3SGdPbf.js.map
6001
- //# debugId=c531fbbe-2dd5-53cf-87a6-723b2926146f
6007
+ //# sourceMappingURL=program-CnXYN9xS.js.map
6008
+ //# debugId=8979dc06-d236-502b-bea1-b13868301f52
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hardfin/cli",
3
- "version": "0.1.0-dev.28",
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.",