@descryy/runtime-adapter-typescript 0.3.4 → 0.3.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-runtime-adapter.d.ts","sourceRoot":"","sources":["../src/typescript-runtime-adapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAA2C,MAAM,sCAAsC,CAAC;AAYpH,MAAM,WAAW,+BAA+B;IAC9C,qGAAqG;IACrG,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,+BAAoC,GAAG,cAAc,CA6B5G"}
1
+ {"version":3,"file":"typescript-runtime-adapter.d.ts","sourceRoot":"","sources":["../src/typescript-runtime-adapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAsE,MAAM,sCAAsC,CAAC;AAgB/I,MAAM,WAAW,+BAA+B;IAC9C,qGAAqG;IACrG,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,8BAA8B,CAAC,OAAO,GAAE,+BAAoC,GAAG,cAAc,CA2C5G"}
@@ -9,6 +9,10 @@ import { createLogCollector } from "@descryy/runtime-backend-observation";
9
9
  // loaded via `node --import` INSIDE the observed process; importing it here
10
10
  // would instrument this process instead (scripts/package-index-side-effects.test.mjs)
11
11
  import { FETCH_PRELOAD_MODULE_PATH } from "@descryy/runtime-external-service-observation";
12
+ // path constant only, same reasoning as FETCH_PRELOAD_MODULE_PATH above:
13
+ // sqlite-instrumentation.ts is loaded via `node --import` INSIDE the
14
+ // observed process, never imported directly by this one.
15
+ import { SQLITE_PRELOAD_MODULE_PATH } from "@descryy/runtime-database-observation";
12
16
  import { createV8LineClassifier } from "./v8-frame-parsing.js";
13
17
  import { createNodeSourceLocationResolver } from "./node-source-location-resolver.js";
14
18
  import { createV8StackTraceParser } from "./v8-stack-trace-parser.js";
@@ -25,16 +29,29 @@ export function createTypeScriptRuntimeAdapter(options = {}) {
25
29
  }
26
30
  // `--import` loads the preload module before the entry script so the
27
31
  // patch installs before any application code captures an unpatched
28
- // `fetch` reference: `node --import <preload> server.mjs`.
32
+ // `fetch` reference. Declared as an interpreter flag, not a rewritten
33
+ // `command` string -- the controller passes it via NODE_OPTIONS so it
34
+ // still reaches Node even when the spawned command is a CLI wrapper
35
+ // ("next", "vite") rather than literally `node`.
29
36
  function outboundHttpLaunch() {
30
37
  return { interpreterArgs: ["--import", FETCH_PRELOAD_MODULE_PATH] };
31
38
  }
39
+ // RG-5(a): same launch-time capture point as outboundHttpLaunch above, for
40
+ // node:sqlite instrumentation instead of fetch. `--disable-warning=Experimen
41
+ // talWarning` suppresses the interpreter's own experimental-API notice for
42
+ // node:sqlite, which otherwise fires at module load time whether or not the
43
+ // application ever touches it (found the hard way: it broke a downstream
44
+ // zero-evidence gate that counted the whole unfiltered stream).
45
+ function databaseObservationLaunch() {
46
+ return { interpreterArgs: ["--disable-warning=ExperimentalWarning", "--import", SQLITE_PRELOAD_MODULE_PATH] };
47
+ }
32
48
  return {
33
49
  language: "typescript",
34
50
  stackTraceParser,
35
51
  sourceLocationResolver,
36
52
  createBackendCollectors,
37
53
  outboundHttpLaunch,
54
+ databaseObservationLaunch,
38
55
  };
39
56
  }
40
57
  //# sourceMappingURL=typescript-runtime-adapter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript-runtime-adapter.js","sourceRoot":"","sources":["../src/typescript-runtime-adapter.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,gFAAgF;AAChF,4EAA4E;AAC5E,sFAAsF;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAE1F,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB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CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descryy/runtime-adapter-typescript",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "type": "module",
5
5
  "description": "TypeScript/Node runtime adapter: V8 stack-trace parsing, Node source-map resolution, the concrete RuntimeAdapter for TS/Node.",
6
6
  "license": "UNLICENSED",
@@ -29,12 +29,13 @@
29
29
  "build": "tsc -b"
30
30
  },
31
31
  "dependencies": {
32
- "@descryy/runtime-contracts": "0.3.1",
33
- "@descryy/runtime-backend-observation": "0.3.4",
32
+ "@descryy/runtime-contracts": "0.3.3",
33
+ "@descryy/runtime-backend-observation": "0.3.6",
34
+ "@descryy/runtime-database-observation": "0.4.7",
34
35
  "@jridgewell/trace-mapping": "^0.3.31",
35
- "@descryy/runtime-external-service-observation": "0.3.3"
36
+ "@descryy/runtime-external-service-observation": "0.3.5"
36
37
  },
37
38
  "devDependencies": {
38
- "@descryy/runtime-evidence-store": "*"
39
+ "@descryy/runtime-evidence-store": "0.4.2"
39
40
  }
40
41
  }