@alwaysmeticulous/backend-recorder-workerd 2.331.3 → 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/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]="fda9e4d5-8d0c-5ea1-a5da-2b3069b3bd68")}catch(e){}}();
13
- const WORKERD_SHIM_VERSION = "2.331.3";
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=fda9e4d5-8d0c-5ea1-a5da-2b3069b3bd68
18
+ //# debugId=562b72f7-cbbc-5923-8402-9ab98d9dfb40
@@ -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":"fda9e4d5-8d0c-5ea1-a5da-2b3069b3bd68"}
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"}
@@ -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]="e8d45043-758e-5a3e-b440-03ed8b9c29cb")}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]="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}=${ENTER}();`);
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, {
@@ -6767,4 +6767,4 @@ const toRelativePath = (filePath, root) => path.relative(root, filePath).split(p
6767
6767
  export { meticulousCoverage };
6768
6768
 
6769
6769
  //# sourceMappingURL=index.js.map
6770
- //# debugId=e8d45043-758e-5a3e-b440-03ed8b9c29cb
6770
+ //# debugId=ab5bdae8-c370-5978-a6b0-dc92b575118d