@theholocron/infisical-client 1.6.0 → 1.6.2

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.
Files changed (2) hide show
  1. package/README.md +11 -11
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -14,7 +14,7 @@ pnpm add @theholocron/infisical-client
14
14
  import { createInfisicalClient } from "@theholocron/infisical-client";
15
15
 
16
16
  const infisical = createInfisicalClient({
17
- token: process.env.INFISICAL_TOKEN!,
17
+ token: process.env.INFISICAL_TOKEN!,
18
18
  });
19
19
 
20
20
  // List workspaces
@@ -31,28 +31,28 @@ await infisical.workspaces.createEnvironment("workspace-id", "Staging", "stg");
31
31
 
32
32
  // List secrets
33
33
  const { secrets } = await infisical.secrets.list({
34
- workspaceId: "workspace-id",
35
- environment: "dev",
34
+ workspaceId: "workspace-id",
35
+ environment: "dev",
36
36
  });
37
37
 
38
38
  // Read a secret
39
39
  const { secret } = await infisical.secrets.get("DB_URL", {
40
- workspaceId: "workspace-id",
41
- environment: "dev",
40
+ workspaceId: "workspace-id",
41
+ environment: "dev",
42
42
  });
43
43
 
44
44
  // Create a secret
45
45
  await infisical.secrets.create("DB_URL", {
46
- workspaceId: "workspace-id",
47
- environment: "dev",
48
- secretValue: "postgres://...",
46
+ workspaceId: "workspace-id",
47
+ environment: "dev",
48
+ secretValue: "postgres://...",
49
49
  });
50
50
 
51
51
  // Update a secret
52
52
  await infisical.secrets.update("DB_URL", {
53
- workspaceId: "workspace-id",
54
- environment: "dev",
55
- secretValue: "postgres://new-host/db",
53
+ workspaceId: "workspace-id",
54
+ environment: "dev",
55
+ secretValue: "postgres://new-host/db",
56
56
  });
57
57
  ```
58
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/infisical-client",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "description": "A TypeScript client for the Infisical API",
5
5
  "homepage": "https://github.com/theholocron/clients/tree/main/packages/infisical-client#readme",
6
6
  "bugs": "https://github.com/theholocron/clients/issues",
@@ -30,16 +30,16 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@theholocron/http-client": "^1.6.0"
33
+ "@theholocron/http-client": "^1.6.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/node": "^26.1.2",
37
- "@theholocron/eslint-config": "^7.6.1",
38
- "@theholocron/tsconfig": "^7.6.1",
39
- "@theholocron/tsdown-config": "^7.6.1",
40
- "@theholocron/vitest-config": "^7.6.1",
37
+ "@theholocron/eslint-config": "^7.8.1",
38
+ "@theholocron/tsconfig": "^7.8.1",
39
+ "@theholocron/tsdown-config": "^7.7.0",
40
+ "@theholocron/vitest-config": "^7.7.0",
41
41
  "@vitest/coverage-v8": "^4.1.10",
42
- "@vitest/eslint-plugin": "^1.6.24",
42
+ "@vitest/eslint-plugin": "^1.6.25",
43
43
  "eslint": "^10.8.0",
44
44
  "eslint-plugin-n": "^18.2.2",
45
45
  "eslint-plugin-simple-import-sort": "^14.0.0",