@theholocron/holocron-plugin-doppler 5.0.0-alpha.231 → 5.0.0-alpha.233
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
|
@@ -48,6 +48,9 @@ declare function createContext(options: DopplerPluginOptions): PluginContext;
|
|
|
48
48
|
declare function vault(ctx: PluginContext): Vault;
|
|
49
49
|
declare function createPlugin(options: DopplerPluginOptions): {
|
|
50
50
|
name: string;
|
|
51
|
+
probes: {
|
|
52
|
+
connection: import("@theholocron/cli").Probe;
|
|
53
|
+
};
|
|
51
54
|
capabilities: {
|
|
52
55
|
vault: () => Vault;
|
|
53
56
|
};
|
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 { createDopplerClient } from "@theholocron/doppler-client";
|
|
3
3
|
import { errorMessage } from "@theholocron/misc-utils";
|
|
4
4
|
//#region src/auth.ts
|
|
@@ -162,6 +162,16 @@ function createPlugin(options) {
|
|
|
162
162
|
const ctx = createContext(options);
|
|
163
163
|
return {
|
|
164
164
|
name: "@theholocron/holocron-plugin-doppler",
|
|
165
|
+
probes: { connection: connectionProbe({
|
|
166
|
+
provider: "Doppler",
|
|
167
|
+
url: options.baseUrl ?? "https://api.doppler.com",
|
|
168
|
+
fetch: options.fetch,
|
|
169
|
+
token: () => resolveToken(options),
|
|
170
|
+
verify: (token) => verifyToken(token, {
|
|
171
|
+
baseUrl: options.baseUrl,
|
|
172
|
+
fetch: options.fetch
|
|
173
|
+
})
|
|
174
|
+
}) },
|
|
165
175
|
capabilities: { vault: () => vault(ctx) }
|
|
166
176
|
};
|
|
167
177
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theholocron/holocron-plugin-doppler",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.233",
|
|
4
4
|
"description": "Holocron plugin for Doppler. Implements the vault capability against Doppler's REST API — projects, configs, secrets, plus verifyToken + AUTH_HINT for `holocron auth`.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"doppler",
|
|
@@ -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.233"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@theholocron/doppler-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.233"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=22"
|