trickle-observe 0.2.103 → 0.2.104

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.
@@ -40,6 +40,7 @@ const wrap_1 = require("./wrap");
40
40
  const fetch_observer_1 = require("./fetch-observer");
41
41
  const express_1 = require("./express");
42
42
  const trace_var_1 = require("./trace-var");
43
+ const call_trace_1 = require("./call-trace");
43
44
  const vite_plugin_1 = require("./vite-plugin");
44
45
  // ── Source map support ──
45
46
  // Lightweight VLQ decoder for mapping compiled JS lines back to original TS lines
@@ -1016,6 +1017,8 @@ if (enabled) {
1016
1017
  if (process.env.TRICKLE_TRACE_VARS !== '0') {
1017
1018
  (0, trace_var_1.initVarTracer)({ debug });
1018
1019
  }
1020
+ // ── Hook 0b2: Initialize call trace ──
1021
+ (0, call_trace_1.initCallTrace)();
1019
1022
  // ── Hook 0c: Capture environment snapshot ──
1020
1023
  try {
1021
1024
  const envDir = process.env.TRICKLE_LOCAL_DIR || path_1.default.join(process.cwd(), '.trickle');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trickle-observe",
3
- "version": "0.2.103",
3
+ "version": "0.2.104",
4
4
  "description": "Runtime type observability for JavaScript applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,6 +37,7 @@ import { WrapOptions } from './types';
37
37
  import { patchFetch } from './fetch-observer';
38
38
  import { instrumentExpress, trickleMiddleware } from './express';
39
39
  import { initVarTracer, traceVar } from './trace-var';
40
+ import { initCallTrace } from './call-trace';
40
41
  import {
41
42
  findReassignments,
42
43
  findForLoopVars,
@@ -1004,6 +1005,9 @@ if (enabled) {
1004
1005
  initVarTracer({ debug });
1005
1006
  }
1006
1007
 
1008
+ // ── Hook 0b2: Initialize call trace ──
1009
+ initCallTrace();
1010
+
1007
1011
  // ── Hook 0c: Capture environment snapshot ──
1008
1012
  try {
1009
1013
  const envDir = process.env.TRICKLE_LOCAL_DIR || path.join(process.cwd(), '.trickle');