@onexapis/cli 1.1.55 → 1.1.59
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 +2 -15
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +2 -15
- package/dist/cli.mjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1539,7 +1539,7 @@ async function installDependencies(projectPath, packageManager = "npm") {
|
|
|
1539
1539
|
var AUTH_DIR = path8.join(os.homedir(), ".onexthm");
|
|
1540
1540
|
var AUTH_FILE = path8.join(AUTH_DIR, "auth.json");
|
|
1541
1541
|
function getApiUrl() {
|
|
1542
|
-
return process.env.ONEXTHM_API_URL ||
|
|
1542
|
+
return process.env.ONEXTHM_API_URL || "https://platform-dev.onexeos.com";
|
|
1543
1543
|
}
|
|
1544
1544
|
async function saveAuthTokens(tokens) {
|
|
1545
1545
|
await fs.ensureDir(AUTH_DIR);
|
|
@@ -1566,7 +1566,7 @@ async function clearAuthTokens() {
|
|
|
1566
1566
|
}
|
|
1567
1567
|
}
|
|
1568
1568
|
function isTokenExpired(tokens) {
|
|
1569
|
-
return Date.now() / 1e3 > tokens.expiresAt -
|
|
1569
|
+
return Date.now() / 1e3 > tokens.expiresAt - 300;
|
|
1570
1570
|
}
|
|
1571
1571
|
async function getValidTokens() {
|
|
1572
1572
|
const tokens = loadAuthTokens();
|