headlamp 0.1.19 → 0.1.21

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/index.js CHANGED
@@ -61075,8 +61075,7 @@ module.exports = class BridgeEnv extends NodeEnvironment {
61075
61075
  const dbgPath = process.env.JEST_BRIDGE_DEBUG_PATH;
61076
61076
  this._dbg = (msg) => {
61077
61077
  try {
61078
- if (process.env.JEST_BRIDGE_DEBUG && dbgPath) fs.appendFileSync(dbgPath, String(msg) + '
61079
- ', 'utf8');
61078
+ if (process.env.JEST_BRIDGE_DEBUG && dbgPath) fs.appendFileSync(dbgPath, String(msg) + '\\n', 'utf8');
61080
61079
  } catch {}
61081
61080
  };
61082
61081
  } catch {}
@@ -61107,8 +61106,7 @@ module.exports = class BridgeEnv extends NodeEnvironment {
61107
61106
  } catch {
61108
61107
  line += JSON.stringify({ type: String(payload && payload.type || 'unknown') });
61109
61108
  }
61110
- stderr.write(line + '
61111
- ');
61109
+ stderr.write(line + '\\n');
61112
61110
  } catch {}
61113
61111
  };
61114
61112
  // Expose to class methods (e.g., handleTestEvent). Also keep a safe fallback.
@@ -62540,7 +62538,7 @@ var program = async () => {
62540
62538
  os4.tmpdir(),
62541
62539
  `jest-bridge-${Date.now()}-${Math.random().toString(36).slice(2)}.json`
62542
62540
  );
62543
- const reporterPath = path13.resolve("scripts/jest-vitest-bridge.cjs");
62541
+ const reporterPath = path13.join(os4.tmpdir(), "headlamp", "jest-vitest-bridge.cjs");
62544
62542
  try {
62545
62543
  const needsWrite = (() => {
62546
62544
  try {
@@ -62554,7 +62552,7 @@ var program = async () => {
62554
62552
  fsSync3.mkdirSync(path13.dirname(reporterPath), { recursive: true });
62555
62553
  fsSync3.writeFileSync(reporterPath, JEST_BRIDGE_REPORTER_SOURCE, "utf8");
62556
62554
  }
62557
- const envPath = path13.resolve("scripts/jest-bridge-env.cjs");
62555
+ const envPath = path13.join(os4.tmpdir(), "headlamp", "jest-bridge-env.cjs");
62558
62556
  try {
62559
62557
  const existingEnv = fsSync3.readFileSync(envPath, "utf8");
62560
62558
  if (existingEnv !== JEST_BRIDGE_ENV_SOURCE) {