@lob-ox/core-darwin-x64 0.0.3 → 0.0.4
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/core.cjs +23 -3
- package/package.json +1 -1
package/core.cjs
CHANGED
|
@@ -222,6 +222,18 @@ var require_exec_path = __commonJS({
|
|
|
222
222
|
}
|
|
223
223
|
return null;
|
|
224
224
|
}
|
|
225
|
+
var GLOBAL_APP_DIRNAME = "lobox";
|
|
226
|
+
var GLOBAL_BIN_DIRNAME = "bin";
|
|
227
|
+
function globalInstallRoot(platform, home, env) {
|
|
228
|
+
const pl = platform || process.platform;
|
|
229
|
+
const h = home || os2.homedir();
|
|
230
|
+
const e = env || process.env;
|
|
231
|
+
if (pl === "win32") {
|
|
232
|
+
const appdata = e.APPDATA || path2.join(h, "AppData", "Roaming");
|
|
233
|
+
return path2.join(appdata, GLOBAL_APP_DIRNAME, GLOBAL_BIN_DIRNAME);
|
|
234
|
+
}
|
|
235
|
+
return path2.join(h, ".local", GLOBAL_BIN_DIRNAME);
|
|
236
|
+
}
|
|
225
237
|
function standardDirs(platform, home, env) {
|
|
226
238
|
const pl = platform || process.platform;
|
|
227
239
|
const h = home || os2.homedir();
|
|
@@ -329,6 +341,11 @@ var require_exec_path = __commonJS({
|
|
|
329
341
|
const js = dshJsIn(o.npmRoot);
|
|
330
342
|
if (isFile(js)) return asJs(js, null);
|
|
331
343
|
}
|
|
344
|
+
const gRoot = globalInstallRoot(pl, void 0, env);
|
|
345
|
+
{
|
|
346
|
+
const js = dshJsIn(gRoot);
|
|
347
|
+
if (isFile(js)) return asJs(js, null);
|
|
348
|
+
}
|
|
332
349
|
return null;
|
|
333
350
|
}
|
|
334
351
|
function knownDshEntries(opts) {
|
|
@@ -416,7 +433,10 @@ var require_exec_path = __commonJS({
|
|
|
416
433
|
dshJsIn,
|
|
417
434
|
knownDshEntries,
|
|
418
435
|
commandEntryViolation,
|
|
419
|
-
isExecutableFile
|
|
436
|
+
isExecutableFile,
|
|
437
|
+
globalInstallRoot,
|
|
438
|
+
GLOBAL_APP_DIRNAME,
|
|
439
|
+
GLOBAL_BIN_DIRNAME
|
|
420
440
|
};
|
|
421
441
|
}
|
|
422
442
|
});
|
|
@@ -1101,7 +1121,7 @@ var require_config = __commonJS({
|
|
|
1101
1121
|
stopGraceMs: 1e4,
|
|
1102
1122
|
portReleaseWaitMs: 1e4,
|
|
1103
1123
|
apiHost: "127.0.0.1",
|
|
1104
|
-
apiPort:
|
|
1124
|
+
apiPort: 37360,
|
|
1105
1125
|
portPools: null,
|
|
1106
1126
|
stateFile: path2.join(SUP, "state.json"),
|
|
1107
1127
|
logFile: path2.join(SUP, "events", "guard.events.log"),
|
|
@@ -1243,7 +1263,7 @@ var require_version = __commonJS({
|
|
|
1243
1263
|
var fs2 = require("node:fs");
|
|
1244
1264
|
var path2 = require("node:path");
|
|
1245
1265
|
function guardVersion() {
|
|
1246
|
-
if (true) return String("0.0.
|
|
1266
|
+
if (true) return String("0.0.4");
|
|
1247
1267
|
try {
|
|
1248
1268
|
return JSON.parse(fs2.readFileSync(path2.join(__dirname, "..", "..", "package.json"), "utf8")).version || "unknown";
|
|
1249
1269
|
} catch {
|