runcloud 0.1.98 → 0.1.99
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/commands/login.js +2 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/commands/login.js
CHANGED
|
@@ -94,8 +94,9 @@ function hostLabel() {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
export async function verifyRunCloudCredential(apiUrl, token) {
|
|
97
|
+
const probe = token.startsWith('nl_live_') ? '/auth/mobile/identity' : '/run-cloud/account';
|
|
97
98
|
try {
|
|
98
|
-
await new ApiClient(normalizeApiUrl(apiUrl), token).get(
|
|
99
|
+
await new ApiClient(normalizeApiUrl(apiUrl), token).get(probe);
|
|
99
100
|
}
|
|
100
101
|
catch (e) {
|
|
101
102
|
if (e instanceof ApiError && (e.status === 401 || e.status === 403)) {
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = '0.1.
|
|
1
|
+
export const CLI_VERSION = '0.1.99';
|