fluncle 0.199.0 → 0.200.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/bin/fluncle.mjs +9 -4
- package/package.json +1 -1
package/bin/fluncle.mjs
CHANGED
|
@@ -561,7 +561,7 @@ function parseVersion(version) {
|
|
|
561
561
|
var currentVersion;
|
|
562
562
|
var init_version = __esm(() => {
|
|
563
563
|
init_output();
|
|
564
|
-
currentVersion = "0.
|
|
564
|
+
currentVersion = "0.200.0".trim() ? "0.200.0".trim() : "0.1.0";
|
|
565
565
|
});
|
|
566
566
|
|
|
567
567
|
// src/update-notifier.ts
|
|
@@ -797,7 +797,7 @@ var init_env = __esm(() => {
|
|
|
797
797
|
});
|
|
798
798
|
|
|
799
799
|
// src/user-token.ts
|
|
800
|
-
import { mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
800
|
+
import { chmodSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
801
801
|
import { homedir as homedir3 } from "node:os";
|
|
802
802
|
import { dirname as dirname2, join as join3 } from "node:path";
|
|
803
803
|
function activeProfile() {
|
|
@@ -824,9 +824,14 @@ function readUserToken() {
|
|
|
824
824
|
}
|
|
825
825
|
function writeUserToken(value) {
|
|
826
826
|
const path2 = userTokenPath();
|
|
827
|
-
|
|
827
|
+
const dir = dirname2(path2);
|
|
828
|
+
mkdirSync(dir, { mode: 448, recursive: true });
|
|
829
|
+
try {
|
|
830
|
+
chmodSync(dir, 448);
|
|
831
|
+
} catch {}
|
|
828
832
|
writeFileSync(path2, `${JSON.stringify(value, null, 2)}
|
|
829
833
|
`, { mode: 384 });
|
|
834
|
+
chmodSync(path2, 384);
|
|
830
835
|
}
|
|
831
836
|
function clearUserToken() {
|
|
832
837
|
const path2 = userTokenPath();
|
|
@@ -2443,7 +2448,7 @@ function parseVersion2(version) {
|
|
|
2443
2448
|
var currentVersion2, latestReleaseUrl = "https://api.github.com/repos/mauricekleine/fluncle/releases/latest";
|
|
2444
2449
|
var init_version2 = __esm(() => {
|
|
2445
2450
|
init_output();
|
|
2446
|
-
currentVersion2 = "0.
|
|
2451
|
+
currentVersion2 = "0.200.0".trim() ? "0.200.0".trim() : "0.1.0";
|
|
2447
2452
|
});
|
|
2448
2453
|
|
|
2449
2454
|
// ../../packages/registry/src/index.ts
|
package/package.json
CHANGED