@alwaysmeticulous/backend-recorder-workerd 2.331.0 → 2.331.3

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.
@@ -6,7 +6,11 @@
6
6
  */
7
7
  /** One instrumented source file's slice of the global id space. */
8
8
  interface CoverageMapFile {
9
- /** Source path as the build saw it, project-root-relative where possible. */
9
+ /**
10
+ * Source path as the build saw it, relative to the build root — `../`-prefixed
11
+ * for a file outside it, which the post-process strips to recover the
12
+ * repo-relative path.
13
+ */
10
14
  path: string;
11
15
  /** First global id assigned to this file. */
12
16
  firstId: number;
package/dist/version.js CHANGED
@@ -9,10 +9,10 @@
9
9
  * (vitest, typecheck) working, where no bundler has substituted the value.
10
10
  */
11
11
 
12
- !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]="59d03d8a-6010-5910-963f-cdfa0b2ec0ac")}catch(e){}}();
13
- const WORKERD_SHIM_VERSION = "2.331.0";
12
+ !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]="fda9e4d5-8d0c-5ea1-a5da-2b3069b3bd68")}catch(e){}}();
13
+ const WORKERD_SHIM_VERSION = "2.331.3";
14
14
  //#endregion
15
15
  export { WORKERD_SHIM_VERSION };
16
16
 
17
17
  //# sourceMappingURL=version.js.map
18
- //# debugId=59d03d8a-6010-5910-963f-cdfa0b2ec0ac
18
+ //# debugId=fda9e4d5-8d0c-5ea1-a5da-2b3069b3bd68
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sources":["../src/version.ts"],"sourcesContent":["declare const TSDOWN_WORKERD_SHIM_VERSION: string;\n\n/**\n * npm package version of this shim, baked in at build time. Customers bump\n * `@alwaysmeticulous/backend-recorder-workerd` independently of our cloud\n * deploy, so this is the only way a replay can tell which bundled shim\n * produced its After screenshots.\n *\n * Replaced by tsdown's `define`. The guard keeps a direct source import\n * (vitest, typecheck) working, where no bundler has substituted the value.\n */\nexport const WORKERD_SHIM_VERSION: string =\n typeof TSDOWN_WORKERD_SHIM_VERSION !== \"undefined\"\n ? TSDOWN_WORKERD_SHIM_VERSION\n : \"0.0.0-dev\";\n"],"names":[],"mappings":";;;;;;;;;;;;AAWA,MAAa,uBAAA","debugId":"59d03d8a-6010-5910-963f-cdfa0b2ec0ac"}
1
+ {"version":3,"file":"version.js","sources":["../src/version.ts"],"sourcesContent":["declare const TSDOWN_WORKERD_SHIM_VERSION: string;\n\n/**\n * npm package version of this shim, baked in at build time. Customers bump\n * `@alwaysmeticulous/backend-recorder-workerd` independently of our cloud\n * deploy, so this is the only way a replay can tell which bundled shim\n * produced its After screenshots.\n *\n * Replaced by tsdown's `define`. The guard keeps a direct source import\n * (vitest, typecheck) working, where no bundler has substituted the value.\n */\nexport const WORKERD_SHIM_VERSION: string =\n typeof TSDOWN_WORKERD_SHIM_VERSION !== \"undefined\"\n ? TSDOWN_WORKERD_SHIM_VERSION\n : \"0.0.0-dev\";\n"],"names":[],"mappings":";;;;;;;;;;;;AAWA,MAAa,uBAAA","debugId":"fda9e4d5-8d0c-5ea1-a5da-2b3069b3bd68"}
@@ -1,5 +1,5 @@
1
1
 
2
- !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]="7fbec9c2-540c-58fe-b6f6-faafad8c60ee")}catch(e){}}();
2
+ !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]="e8d45043-758e-5a3e-b440-03ed8b9c29cb")}catch(e){}}();
3
3
  import * as path from "node:path";
4
4
  //#region ../../node_modules/.pnpm/acorn@8.17.0/node_modules/acorn/dist/acorn.mjs
5
5
  var astralIdentifierCodes = [
@@ -6752,13 +6752,19 @@ const isInstrumentable = (filePath, exclude) => {
6752
6752
  /**
6753
6753
  * Root-relative and posix-separated, so the recorded path matches the repo
6754
6754
  * layout the post-process resolves coverage against.
6755
+ *
6756
+ * A file outside the root — a workspace package in a monorepo, where the root is
6757
+ * the app directory — keeps its `../` prefixes rather than falling back to the
6758
+ * absolute path. The post-process strips leading `../` segments, and their count
6759
+ * is the root's own depth, so what it is left with is the path relative to the
6760
+ * directory the root sits in: for `<repo>/apps/web` as root,
6761
+ * `<repo>/packages/ui/x.tsx` resolves back to `packages/ui/x.tsx`. An absolute
6762
+ * path resolves to nothing, since it carries the build machine's checkout
6763
+ * prefix, and the coverage is discarded as unmapped.
6755
6764
  */
6756
- const toRelativePath = (filePath, root) => {
6757
- const normalised = path.relative(root, filePath).split(path.sep).join("/");
6758
- return normalised.startsWith("..") ? filePath : normalised;
6759
- };
6765
+ const toRelativePath = (filePath, root) => path.relative(root, filePath).split(path.sep).join("/");
6760
6766
  //#endregion
6761
6767
  export { meticulousCoverage };
6762
6768
 
6763
6769
  //# sourceMappingURL=index.js.map
6764
- //# debugId=7fbec9c2-540c-58fe-b6f6-faafad8c60ee
6770
+ //# debugId=e8d45043-758e-5a3e-b440-03ed8b9c29cb