pinsay-cli 0.6.8 → 0.6.9
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/cli.js +5 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ var init_build_constants = __esm({
|
|
|
15
15
|
"src/build-constants.ts"() {
|
|
16
16
|
"use strict";
|
|
17
17
|
BUILD_DEFAULT_SERVER = true ? "https://app.pinsay.dev" : "https://app.pinsay.dev";
|
|
18
|
-
BUILD_CLI_VERSION = true ? "0.6.
|
|
18
|
+
BUILD_CLI_VERSION = true ? "0.6.9" : "0.0.0-dev";
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
|
|
@@ -319,7 +319,10 @@ async function writeGlobalStore(store) {
|
|
|
319
319
|
}
|
|
320
320
|
async function getGlobalCredential(server) {
|
|
321
321
|
const store = await readGlobalStore();
|
|
322
|
-
|
|
322
|
+
const origin = normalizeServerOrigin(server);
|
|
323
|
+
if (!store[origin] && origin === "https://app.pinsay.dev")
|
|
324
|
+
return store["https://api.pinsay.dev"];
|
|
325
|
+
return store[origin];
|
|
323
326
|
}
|
|
324
327
|
async function saveGlobalCredential(server, entry) {
|
|
325
328
|
const store = await readGlobalStore();
|
package/package.json
CHANGED