@theholocron/holocron-plugin-infisical 5.0.0-alpha.230 → 5.0.0-alpha.232
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 +3 -0
- package/dist/index.mjs +11 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -56,6 +56,9 @@ declare function createContext(options: InfisicalPluginOptions): PluginContext;
|
|
|
56
56
|
declare function vault(ctx: PluginContext): Vault;
|
|
57
57
|
declare function createPlugin(options: InfisicalPluginOptions): {
|
|
58
58
|
name: string;
|
|
59
|
+
probes: {
|
|
60
|
+
connection: import("@theholocron/cli").Probe;
|
|
61
|
+
};
|
|
59
62
|
capabilities: {
|
|
60
63
|
vault: () => Vault;
|
|
61
64
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuthError, ProviderApiError, createResolveToken } from "@theholocron/cli";
|
|
1
|
+
import { AuthError, ProviderApiError, connectionProbe, createResolveToken } from "@theholocron/cli";
|
|
2
2
|
import { createInfisicalClient } from "@theholocron/infisical-client";
|
|
3
3
|
import { errorMessage } from "@theholocron/misc-utils";
|
|
4
4
|
//#region src/auth.ts
|
|
@@ -203,6 +203,16 @@ function createPlugin(options) {
|
|
|
203
203
|
const ctx = createContext(options);
|
|
204
204
|
return {
|
|
205
205
|
name: "@theholocron/holocron-plugin-infisical",
|
|
206
|
+
probes: { connection: connectionProbe({
|
|
207
|
+
provider: "Infisical",
|
|
208
|
+
url: options.baseUrl ?? "https://app.infisical.com",
|
|
209
|
+
fetch: options.fetch,
|
|
210
|
+
token: () => resolveToken(options),
|
|
211
|
+
verify: (token) => verifyToken(token, {
|
|
212
|
+
baseUrl: options.baseUrl,
|
|
213
|
+
fetch: options.fetch
|
|
214
|
+
})
|
|
215
|
+
}) },
|
|
206
216
|
capabilities: { vault: () => vault(ctx) }
|
|
207
217
|
};
|
|
208
218
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-infisical",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.232",
|
|
4
4
|
"description": "Holocron plugin for Infisical. Implements the vault capability against Infisical's REST API, plus exports verifyToken + AUTH_HINT for `holocron auth`.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"holocron",
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"tsx": "4.23.15",
|
|
48
48
|
"typescript": "^5.9.3",
|
|
49
49
|
"vitest": "^4.1.11",
|
|
50
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
50
|
+
"@theholocron/cli": "5.0.0-alpha.232"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@theholocron/infisical-client": "^1.43.1",
|
|
54
54
|
"@theholocron/misc-utils": "^1.16.0",
|
|
55
|
-
"@theholocron/cli": "5.0.0-alpha.
|
|
55
|
+
"@theholocron/cli": "5.0.0-alpha.232"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
58
58
|
"@theholocron/infisical-client": {}
|