@amerged/ohmyhost-cli 0.1.19 → 0.1.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # @amerged/ohmyhost-cli
2
2
 
3
- ohmyho.st cli client, version 0.1.19.
3
+ ohmyho.st cli client, version 0.1.21.
4
4
 
5
5
  ```sh
6
6
  npm install --global @amerged/ohmyhost-cli
package/dist/bin.js CHANGED
@@ -2,8 +2,8 @@
2
2
  import { createRequire as __ohmyhostCreateRequire } from "node:module"; const require = __ohmyhostCreateRequire(import.meta.url);
3
3
  import {
4
4
  runProductionCli
5
- } from "./chunk-57UUB7RK.js";
6
- import "./chunk-4HFQ54FP.js";
5
+ } from "./chunk-EPTONNNW.js";
6
+ import "./chunk-7D2RFLWM.js";
7
7
 
8
8
  // apps/product-cli/dist/bin.js
9
9
  var controller = new AbortController();
@@ -48,10 +48,12 @@ var CredentialStoreIntegrityError = class extends Error {
48
48
  this.name = "CredentialStoreIntegrityError";
49
49
  }
50
50
  };
51
- var CREDENTIAL_ACCOUNT = "credential";
51
+ var LEGACY_CREDENTIAL_ACCOUNT = "credential";
52
52
  var NativeNapiKeyringCredentialStore = class {
53
+ account;
53
54
  createEntry;
54
- constructor(createEntry = void 0, serviceName = "ohmyhost") {
55
+ constructor(createEntry = void 0, serviceName = "ohmyhost", account = LEGACY_CREDENTIAL_ACCOUNT) {
56
+ this.account = account;
55
57
  this.createEntry = createEntry ?? createNativeEntryFactory(serviceName);
56
58
  }
57
59
  async read() {
@@ -73,7 +75,7 @@ var NativeNapiKeyringCredentialStore = class {
73
75
  throw new CredentialStoreIntegrityError();
74
76
  }
75
77
  entry() {
76
- return this.createEntry(CREDENTIAL_ACCOUNT);
78
+ return this.createEntry(this.account);
77
79
  }
78
80
  };
79
81
  var parseVerifiedCredential = (serialized) => {
@@ -132,7 +134,9 @@ export {
132
134
  __toESM,
133
135
  CredentialStoreUnavailableError,
134
136
  CredentialStoreIntegrityError,
137
+ LEGACY_CREDENTIAL_ACCOUNT,
135
138
  NativeNapiKeyringCredentialStore,
139
+ createNativeEntryFactory,
136
140
  serializeCredential,
137
141
  parseCredential
138
142
  };