@autter/runtime-node 1.7.0 → 1.9.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/testing.cjs CHANGED
@@ -2,22 +2,22 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkRV4MJNM2cjs = require('./chunk-RV4MJNM2.cjs');
6
- require('./chunk-GYTQLITW.cjs');
5
+ var _chunkYWTIKZSIcjs = require('./chunk-YWTIKZSI.cjs');
6
+ require('./chunk-BHYHORUD.cjs');
7
7
 
8
8
  // src/testing.ts
9
9
  function captureRuntime() {
10
- const sink = _chunkRV4MJNM2cjs.memorySink.call(void 0, );
11
- const remove = _chunkRV4MJNM2cjs.addRuntimeSink.call(void 0, sink);
10
+ const sink = _chunkYWTIKZSIcjs.memorySink.call(void 0, );
11
+ const remove = _chunkYWTIKZSIcjs.addRuntimeSink.call(void 0, sink);
12
12
  return {
13
13
  get events() {
14
14
  return [...sink.events];
15
15
  },
16
16
  get operations() {
17
- return sink.events.filter(_chunkRV4MJNM2cjs.isSummary);
17
+ return sink.events.filter(_chunkYWTIKZSIcjs.isSummary);
18
18
  },
19
19
  get logs() {
20
- return sink.events.filter((event) => !_chunkRV4MJNM2cjs.isSummary.call(void 0, event));
20
+ return sink.events.filter((event) => !_chunkYWTIKZSIcjs.isSummary.call(void 0, event));
21
21
  },
22
22
  get exceptions() {
23
23
  return [...sink.exceptions];
@@ -98,7 +98,7 @@ var OperationExpectation = class {
98
98
  }
99
99
  };
100
100
  function expectOperation(source, name) {
101
- const events = Array.isArray(source) ? source.filter(_chunkRV4MJNM2cjs.isSummary) : source.operations;
101
+ const events = Array.isArray(source) ? source.filter(_chunkYWTIKZSIcjs.isSummary) : source.operations;
102
102
  const matches = events.filter((event2) => {
103
103
  const actual = String(_nullishCoalesce(event2.attributes["autter.operation.name"], () => ( "")));
104
104
  return typeof name === "string" ? actual === name : name.test(actual);
@@ -118,4 +118,4 @@ function expectOperation(source, name) {
118
118
 
119
119
 
120
120
 
121
- exports.captureRuntime = captureRuntime; exports.expectOperation = expectOperation; exports.memorySink = _chunkRV4MJNM2cjs.memorySink;
121
+ exports.captureRuntime = captureRuntime; exports.expectOperation = expectOperation; exports.memorySink = _chunkYWTIKZSIcjs.memorySink;
@@ -1,5 +1,5 @@
1
- import { R as RuntimeEvent, a as RuntimeOutcome, C as CapturedException } from './sinks-CPGDyfU8.cjs';
2
- export { M as MemorySink, m as memorySink } from './sinks-CPGDyfU8.cjs';
1
+ import { R as RuntimeEvent, a as RuntimeOutcome, C as CapturedException } from './sinks-CLtQFPnn.cjs';
2
+ export { M as MemorySink, m as memorySink } from './sinks-CLtQFPnn.cjs';
3
3
 
4
4
  /**
5
5
  * Test helpers — `@autter/runtime-node/testing`. No ingester, no network:
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { R as RuntimeEvent, a as RuntimeOutcome, C as CapturedException } from './sinks-CPGDyfU8.js';
2
- export { M as MemorySink, m as memorySink } from './sinks-CPGDyfU8.js';
1
+ import { R as RuntimeEvent, a as RuntimeOutcome, C as CapturedException } from './sinks-CLtQFPnn.js';
2
+ export { M as MemorySink, m as memorySink } from './sinks-CLtQFPnn.js';
3
3
 
4
4
  /**
5
5
  * Test helpers — `@autter/runtime-node/testing`. No ingester, no network:
package/dist/testing.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  addRuntimeSink,
3
3
  isSummary,
4
4
  memorySink
5
- } from "./chunk-KA4AOZX2.js";
6
- import "./chunk-LG52CW3V.js";
5
+ } from "./chunk-HHKQ3UCH.js";
6
+ import "./chunk-ZKM76SDP.js";
7
7
 
8
8
  // src/testing.ts
9
9
  function captureRuntime() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autter/runtime-node",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "Autter Runtime for Node.js: request wide events, coded errors, operation logging, same-origin browser relay and a curated OpenTelemetry server tracker",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -45,16 +45,20 @@
45
45
  "@opentelemetry/sdk-metrics": "^1.30.1",
46
46
  "@opentelemetry/sdk-node": "^0.57.1",
47
47
  "@opentelemetry/sdk-trace-base": "^1.30.1",
48
- "@opentelemetry/semantic-conventions": "^1.28.0"
48
+ "@opentelemetry/semantic-conventions": "^1.28.0",
49
+ "require-in-the-middle": "^7.5.2"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@autter/runtime-core": "0.0.0",
52
53
  "@types/node": "^22.10.0",
54
+ "bunyan": "^1.8.15",
53
55
  "express": "^4.21.2",
54
56
  "fastify": "^5.12.5",
55
57
  "koa": "^3.2.1",
58
+ "pino": "^10.4.0",
56
59
  "tsup": "^8.3.5",
57
- "typescript": "^5.7.0"
60
+ "typescript": "^5.7.0",
61
+ "winston": "^3.19.0"
58
62
  },
59
63
  "engines": {
60
64
  "node": ">=20"