vaultkeeper 0.5.0 → 0.5.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.cjs CHANGED
@@ -2273,7 +2273,17 @@ function currentPlatform() {
2273
2273
 
2274
2274
  // src/doctor/runner.ts
2275
2275
  async function runDoctor(options) {
2276
- const platform = currentPlatform();
2276
+ let platform;
2277
+ try {
2278
+ platform = options?.platform ?? currentPlatform();
2279
+ } catch {
2280
+ return {
2281
+ checks: [],
2282
+ ready: false,
2283
+ warnings: [],
2284
+ nextSteps: ["Unsupported platform. vaultkeeper supports macOS, Linux, and Windows."]
2285
+ };
2286
+ }
2277
2287
  const entries = buildCheckList(platform);
2278
2288
  const resolved = await Promise.all(
2279
2289
  entries.map(async ({ check, required }) => {
@@ -2362,7 +2372,7 @@ var VaultKeeper = class _VaultKeeper {
2362
2372
  return runDoctor();
2363
2373
  }
2364
2374
  /**
2365
- * Store a secret and return a JWE token that encapsulates it.
2375
+ * Retrieve a secret from the backend and return a JWE token that encapsulates it.
2366
2376
  *
2367
2377
  * @param secretName - Identifier for the secret
2368
2378
  * @param options - Setup options
@@ -2682,5 +2692,6 @@ exports.UsageLimitExceededError = UsageLimitExceededError;
2682
2692
  exports.VaultError = VaultError;
2683
2693
  exports.VaultKeeper = VaultKeeper;
2684
2694
  exports.isListableBackend = isListableBackend;
2695
+ exports.runDoctor = runDoctor;
2685
2696
  //# sourceMappingURL=index.cjs.map
2686
2697
  //# sourceMappingURL=index.cjs.map