@theholocron/infisical-client 1.15.1 → 1.16.1

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 InfisicalClientOptions {
4
5
  /** Infisical Universal Auth machine identity token or personal token. */
@@ -7,6 +8,10 @@ interface InfisicalClientOptions {
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/secrets/secrets.d.ts
package/dist/index.mjs CHANGED
@@ -46,7 +46,9 @@ function createInfisicalRestClient(opts) {
46
46
  baseUrl: opts.baseUrl ?? "https://app.infisical.com/api",
47
47
  token: opts.token,
48
48
  vendor: "Infisical",
49
- fetch: opts.fetch
49
+ fetch: opts.fetch,
50
+ logger: opts.logger,
51
+ errors: opts.errors
50
52
  });
51
53
  }
52
54
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/infisical-client",
3
- "version": "1.15.1",
3
+ "version": "1.16.1",
4
4
  "description": "A TypeScript client for the Infisical API",
5
5
  "keywords": [
6
6
  "infisical",
@@ -32,15 +32,17 @@
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.1"
36
37
  },
37
38
  "devDependencies": {
39
+ "@theholocron/cli": "5.0.0-alpha.3",
38
40
  "@theholocron/eslint-config": "^8.2.0",
39
41
  "@theholocron/tsconfig": "^8.2.0",
40
42
  "@theholocron/tsdown-config": "^8.2.0",
41
43
  "@theholocron/vitest-config": "^8.2.0",
42
44
  "@types/node": "^26.4.1",
43
- "@vitest/coverage-v8": "^4.1.10",
45
+ "@vitest/coverage-v8": "^5.0.0",
44
46
  "@vitest/eslint-plugin": "^1.6.25",
45
47
  "eslint": "^10.8.1",
46
48
  "eslint-plugin-n": "^18.3.0",
@@ -48,7 +50,7 @@
48
50
  "globals": "^17.12.0",
49
51
  "tsdown": "^0.22.14",
50
52
  "typescript": "^5.9.3",
51
- "vitest": "^4.1.10"
53
+ "vitest": "^5.0.0"
52
54
  },
53
55
  "engines": {
54
56
  "node": ">=22.0.0"
@@ -59,11 +61,10 @@
59
61
  "releases": "https://github.com/theholocron/clients/releases",
60
62
  "wiki": "https://github.com/theholocron/clients/wiki",
61
63
  "scripts": {
62
- "build": "tsdown",
63
- "lint": "eslint .",
64
- "test": "vitest run",
65
- "test:coverage": "vitest run --coverage",
64
+ "delivery.build": "tsdown",
65
+ "sourceQuality.staticAnalysis": "holocron run sourceQuality.staticAnalysis --",
66
66
  "test:watch": "vitest",
67
- "typecheck": "tsc --noEmit"
67
+ "verification.typeSafety": "holocron run verification.typeSafety --",
68
+ "verification.unitTests": "holocron run verification.unitTests --"
68
69
  }
69
70
  }