@theholocron/infisical-client 1.5.6 → 1.6.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/README.md +11 -11
- package/package.json +6 -6
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
|
-
|
|
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
|
-
|
|
35
|
-
|
|
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
|
-
|
|
41
|
-
|
|
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
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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.
|
|
3
|
+
"version": "1.6.1",
|
|
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,14 +30,14 @@
|
|
|
30
30
|
}
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@theholocron/http-client": "^1.
|
|
33
|
+
"@theholocron/http-client": "^1.6.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^26.1.2",
|
|
37
|
-
"@theholocron/eslint-config": "^7.
|
|
38
|
-
"@theholocron/tsconfig": "^7.
|
|
39
|
-
"@theholocron/tsdown-config": "^7.
|
|
40
|
-
"@theholocron/vitest-config": "^7.
|
|
37
|
+
"@theholocron/eslint-config": "^7.7.0",
|
|
38
|
+
"@theholocron/tsconfig": "^7.7.0",
|
|
39
|
+
"@theholocron/tsdown-config": "^7.7.0",
|
|
40
|
+
"@theholocron/vitest-config": "^7.7.0",
|
|
41
41
|
"@vitest/coverage-v8": "^4.1.10",
|
|
42
42
|
"@vitest/eslint-plugin": "^1.6.24",
|
|
43
43
|
"eslint": "^10.8.0",
|