@elisra-devops/docgen-skins 0.29.0 → 0.30.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.
@@ -16,6 +16,14 @@ export interface DiagnosticEvent {
16
16
  code?: string;
17
17
  stack?: string;
18
18
  };
19
+ context?: {
20
+ method?: string;
21
+ url?: string;
22
+ status?: number;
23
+ attempt?: number;
24
+ requestBody?: string;
25
+ responseExcerpt?: string;
26
+ };
19
27
  retainPending?: boolean;
20
28
  }
21
29
  export interface LogSink {
@@ -1 +1 @@
1
- {"version":3,"file":"logSink.js","sourceRoot":"","sources":["../../src/services/logSink.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAqCb,gCAEC;AAED,wCAEC;AAZD,4EAA4E;AAC5E,2EAA2E;AAC3E,6FAA6F;AAC7F,6FAA6F;AAC7F,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAEtD,SAAgB,UAAU;IACxB,OAAQ,UAAsC,CAAC,GAAG,CAAwB,CAAC;AAC7E,CAAC;AAED,SAAgB,cAAc,CAAC,IAAa;IACzC,UAAsC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;AACtD,CAAC"}
1
+ {"version":3,"file":"logSink.js","sourceRoot":"","sources":["../../src/services/logSink.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AA+Cb,gCAEC;AAED,wCAEC;AAZD,4EAA4E;AAC5E,2EAA2E;AAC3E,6FAA6F;AAC7F,6FAA6F;AAC7F,MAAM,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,6BAA6B,CAAC,CAAC;AAEtD,SAAgB,UAAU;IACxB,OAAQ,UAAsC,CAAC,GAAG,CAAwB,CAAC;AAC7E,CAAC;AAED,SAAgB,cAAc,CAAC,IAAa;IACzC,UAAsC,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;AACtD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elisra-devops/docgen-skins",
3
- "version": "0.29.0",
3
+ "version": "0.30.0",
4
4
  "description": "Can be outputed in various types:",
5
5
  "main": "./bin/index.js",
6
6
  "types": "./bin/index.d.ts",
@@ -19,6 +19,16 @@ export interface DiagnosticEvent {
19
19
  userId?: string;
20
20
  message: string;
21
21
  err?: { message: string; code?: string; stack?: string };
22
+ // A sanitized description of the failed outbound request (set by the data-provider on ADO
23
+ // failures) — kept in sync with docgen-data-provider-package's copy of this type.
24
+ context?: {
25
+ method?: string;
26
+ url?: string;
27
+ status?: number;
28
+ attempt?: number;
29
+ requestBody?: string;
30
+ responseExcerpt?: string;
31
+ };
22
32
  // Phase 6b — set on a debug/info event captured under retain-on-failure. Deleted by
23
33
  // api-gate at the run's one success point; left alone (and thus permanent, subject to the
24
34
  // normal TTL) if the run fails.