@mintlify/cli 4.0.1084 → 4.0.1085

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/bin/config.js CHANGED
@@ -40,3 +40,17 @@ export function setTelemetryEnabled(enabled) {
40
40
  yield writeConfig({ telemetryEnabled: enabled });
41
41
  });
42
42
  }
43
+ export function getConfigValue(key) {
44
+ const config = readConfig();
45
+ return config[key];
46
+ }
47
+ export function setConfigValue(key, value) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ yield writeConfig({ [key]: value });
50
+ });
51
+ }
52
+ export function clearConfigValue(key) {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ yield writeConfig({ [key]: undefined });
55
+ });
56
+ }
package/bin/keyring.js CHANGED
@@ -12,10 +12,13 @@ const ACCESS_TOKEN_ACCOUNT = 'access_token';
12
12
  const REFRESH_TOKEN_ACCOUNT = 'refresh_token';
13
13
  function getKeytar() {
14
14
  return __awaiter(this, void 0, void 0, function* () {
15
+ var _a;
15
16
  try {
16
- return yield import('keytar');
17
+ const mod = yield import('keytar');
18
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- ESM wraps CJS in { default: ... } at runtime despite types
19
+ return (_a = mod.default) !== null && _a !== void 0 ? _a : mod;
17
20
  }
18
- catch (_a) {
21
+ catch (_b) {
19
22
  throw new Error('keytar is required for credential storage but is not installed. Install it with: npm install keytar');
20
23
  }
21
24
  });