@theholocron/doppler-client 1.15.1 → 1.16.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/index.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import "@theholocron/http-client";
2
+ import { ErrorSink, Logger } from "@theholocron/observability/core";
2
3
  //#region src/utils.d.ts
3
4
  interface DopplerClientOptions {
4
5
  /** Doppler service token or personal token. */
@@ -7,6 +8,10 @@ interface DopplerClientOptions {
7
8
  baseUrl?: string;
8
9
  /** Override fetch for testing. Defaults to globalThis.fetch. */
9
10
  fetch?: typeof fetch;
11
+ /** Structured logger for request/response diagnostics. Defaults to a no-op. */
12
+ logger?: Logger;
13
+ /** Reports transport failures and unexpected 5xx. Defaults to a no-op. */
14
+ errors?: ErrorSink;
10
15
  }
11
16
  //#endregion
12
17
  //#region src/environments/environments.d.ts
package/dist/index.mjs CHANGED
@@ -64,7 +64,9 @@ function createDopplerRestClient(opts) {
64
64
  baseUrl: opts.baseUrl ?? "https://api.doppler.com/v3",
65
65
  token: opts.token,
66
66
  vendor: "Doppler",
67
- fetch: opts.fetch
67
+ fetch: opts.fetch,
68
+ logger: opts.logger,
69
+ errors: opts.errors
68
70
  });
69
71
  }
70
72
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/doppler-client",
3
- "version": "1.15.1",
3
+ "version": "1.16.0",
4
4
  "description": "A TypeScript client for the Doppler API",
5
5
  "keywords": [
6
6
  "doppler",
@@ -32,7 +32,8 @@
32
32
  "dist"
33
33
  ],
34
34
  "dependencies": {
35
- "@theholocron/http-client": "^1.15.1"
35
+ "@theholocron/observability": "^0.3.0",
36
+ "@theholocron/http-client": "^1.16.0"
36
37
  },
37
38
  "devDependencies": {
38
39
  "@theholocron/eslint-config": "^8.2.0",