showpane 0.3.1 → 0.4.0
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/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { createServer } from "net";
|
|
|
9
9
|
import path from "path";
|
|
10
10
|
import os from "os";
|
|
11
11
|
import { fileURLToPath } from "url";
|
|
12
|
-
var { mkdirSync, readFileSync, writeFileSync } = fs;
|
|
12
|
+
var { chmodSync, mkdirSync, readFileSync, writeFileSync } = fs;
|
|
13
13
|
var { resolve, dirname, join } = path;
|
|
14
14
|
var { homedir } = os;
|
|
15
15
|
var RESET = "\x1B[0m";
|
|
@@ -251,6 +251,7 @@ async function login() {
|
|
|
251
251
|
JSON.stringify(
|
|
252
252
|
{
|
|
253
253
|
accessToken: data.accessToken,
|
|
254
|
+
accessTokenExpiresAt: data.tokenExpiresAt,
|
|
254
255
|
orgSlug: data.orgSlug,
|
|
255
256
|
portalUrl: data.portalUrl,
|
|
256
257
|
vercelProjectId: data.vercelProjectId,
|
|
@@ -261,6 +262,7 @@ async function login() {
|
|
|
261
262
|
2
|
|
262
263
|
)
|
|
263
264
|
);
|
|
265
|
+
chmodSync(configPath, 384);
|
|
264
266
|
console.log();
|
|
265
267
|
green(`Authenticated! Connected to ${BOLD}${data.orgSlug}${RESET}`);
|
|
266
268
|
console.log();
|