runcloud 0.1.97 → 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.
@@ -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('/run-cloud/account');
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/diagnose.js CHANGED
@@ -1,11 +1,11 @@
1
1
  const DEFAULT_URLS = {
2
2
  dev: {
3
- apiOps: 'https://cp-api-ops-dev.newly.app',
4
- worker: 'https://cp-worker-dev.newly.app',
3
+ apiOps: 'https://cp-api-ops-dev-97683904813.us-east4.run.app',
4
+ worker: 'https://cp-worker-dev-97683904813.us-east4.run.app',
5
5
  },
6
6
  prod: {
7
- apiOps: 'https://cp-api-ops-prod.newly.app',
8
- worker: 'https://cp-worker-prod.newly.app',
7
+ apiOps: 'https://cp-api-ops-prod-350096142301.us-east4.run.app',
8
+ worker: 'https://cp-worker-prod-350096142301.us-east4.run.app',
9
9
  },
10
10
  };
11
11
  function stripSlash(url) {
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = '0.1.97';
1
+ export const CLI_VERSION = '0.1.99';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "runcloud",
3
- "version": "0.1.97",
3
+ "version": "0.1.99",
4
4
  "description": "Create and control run.cloud remote mobile simulators and cloud sandboxes",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [