@alwaysmeticulous/backend-recorder-workerd 2.331.0 → 2.333.0
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/coverage/coverage.types.d.ts +5 -1
- package/dist/version.js +3 -3
- package/dist/version.js.map +1 -1
- package/dist/vite/index.js +14 -8
- package/dist/vite/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,11 @@
|
|
|
6
6
|
*/
|
|
7
7
|
/** One instrumented source file's slice of the global id space. */
|
|
8
8
|
interface CoverageMapFile {
|
|
9
|
-
/**
|
|
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]="
|
|
13
|
-
const WORKERD_SHIM_VERSION = "2.
|
|
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]="562b72f7-cbbc-5923-8402-9ab98d9dfb40")}catch(e){}}();
|
|
13
|
+
const WORKERD_SHIM_VERSION = "2.333.0";
|
|
14
14
|
//#endregion
|
|
15
15
|
export { WORKERD_SHIM_VERSION };
|
|
16
16
|
|
|
17
17
|
//# sourceMappingURL=version.js.map
|
|
18
|
-
//# debugId=
|
|
18
|
+
//# debugId=562b72f7-cbbc-5923-8402-9ab98d9dfb40
|
package/dist/version.js.map
CHANGED
|
@@ -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":"
|
|
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":"562b72f7-cbbc-5923-8402-9ab98d9dfb40"}
|
package/dist/vite/index.js
CHANGED
|
@@ -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]="
|
|
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]="ab5bdae8-c370-5978-a6b0-dc92b575118d")}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 = [
|
|
@@ -6216,12 +6216,12 @@ const instrumentModule = ({ code, fileName, firstId, runtimeModuleId, resolveOri
|
|
|
6216
6216
|
magic.appendLeft(node.start, `${SINK}&&(${SINK}[${id}]=1);`);
|
|
6217
6217
|
};
|
|
6218
6218
|
const openFunctionBody = (body) => {
|
|
6219
|
-
magic.appendLeft(body.start + 1, `const ${SINK}
|
|
6219
|
+
magic.appendLeft(body.start + 1, `const ${SINK}=typeof ${ENTER}==="function"?${ENTER}():undefined;`);
|
|
6220
6220
|
};
|
|
6221
6221
|
const markConciseArrowBody = (body) => {
|
|
6222
6222
|
const id = nextId(body);
|
|
6223
6223
|
if (id === null) return;
|
|
6224
|
-
magic.appendLeft(body.start, `(${HIT}(${id}),`);
|
|
6224
|
+
magic.appendLeft(body.start, `(typeof ${HIT}==="function"&&${HIT}(${id}),`);
|
|
6225
6225
|
magic.appendRight(body.end, ")");
|
|
6226
6226
|
};
|
|
6227
6227
|
visitProgram(program, {
|
|
@@ -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=
|
|
6770
|
+
//# debugId=ab5bdae8-c370-5978-a6b0-dc92b575118d
|