@absolutejs/absolute 0.19.0-beta.1017 → 0.19.0-beta.1018
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-Z9cr7t/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-Z9cr7t/src/core/streamingSlotRegistrar.ts
|
|
5
5
|
var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
|
|
6
6
|
var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
|
|
7
7
|
var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
|
|
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
|
|
|
48
48
|
getWarningController()?.maybeWarn(primitiveName);
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// .angular-partial-tmp-
|
|
51
|
+
// .angular-partial-tmp-Z9cr7t/src/core/streamingSlotRegistry.ts
|
|
52
52
|
var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
|
|
53
53
|
var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
|
|
54
54
|
var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
|
package/dist/cli/index.js
CHANGED
|
@@ -502,7 +502,13 @@ var registeredPids, exitHandlerRegistered = false, instanceFilePath = (pid) => j
|
|
|
502
502
|
};
|
|
503
503
|
var init_instanceRegistry = __esm(() => {
|
|
504
504
|
registeredPids = new Set;
|
|
505
|
-
SOURCES = [
|
|
505
|
+
SOURCES = [
|
|
506
|
+
"compiled",
|
|
507
|
+
"dev",
|
|
508
|
+
"standalone",
|
|
509
|
+
"start",
|
|
510
|
+
"workspace"
|
|
511
|
+
];
|
|
506
512
|
});
|
|
507
513
|
|
|
508
514
|
// src/utils/loadConfig.ts
|
|
@@ -2677,10 +2683,10 @@ var cliTag4 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[c
|
|
|
2677
2683
|
${imports.join(`
|
|
2678
2684
|
`)}
|
|
2679
2685
|
|
|
2680
|
-
import { existsSync } from "node:fs";
|
|
2686
|
+
import { existsSync, mkdirSync, unlinkSync } from "node:fs";
|
|
2681
2687
|
import { mkdir } from "node:fs/promises";
|
|
2682
|
-
import { dirname, join } from "node:path";
|
|
2683
|
-
import { tmpdir } from "node:os";
|
|
2688
|
+
import { basename, dirname, join } from "node:path";
|
|
2689
|
+
import { homedir, tmpdir } from "node:os";
|
|
2684
2690
|
import { createHash } from "node:crypto";
|
|
2685
2691
|
import { readFileSync, writeFileSync } from "node:fs";
|
|
2686
2692
|
import { pathToFileURL } from "node:url";
|
|
@@ -2877,6 +2883,49 @@ const server = Bun.serve({
|
|
|
2877
2883
|
},
|
|
2878
2884
|
});
|
|
2879
2885
|
|
|
2886
|
+
// Register in the global instance registry so 'absolute ls' can see this
|
|
2887
|
+
// compiled binary. Best-effort; never blocks startup. Dead entries are pruned
|
|
2888
|
+
// on read, so a hard kill that skips the exit handler is harmless.
|
|
2889
|
+
try {
|
|
2890
|
+
const absInstancesDir = join(homedir(), ".absolutejs", "instances");
|
|
2891
|
+
mkdirSync(absInstancesDir, { recursive: true });
|
|
2892
|
+
const absInstanceFile = join(absInstancesDir, process.pid + ".json");
|
|
2893
|
+
writeFileSync(
|
|
2894
|
+
absInstanceFile,
|
|
2895
|
+
JSON.stringify(
|
|
2896
|
+
{
|
|
2897
|
+
// Bun sets process.argv[0] to "bun" in a compiled binary;
|
|
2898
|
+
// process.execPath is the real standalone executable path.
|
|
2899
|
+
command: process.execPath ? [process.execPath] : [],
|
|
2900
|
+
configPath: null,
|
|
2901
|
+
controllerPid: process.pid,
|
|
2902
|
+
cwd: process.cwd(),
|
|
2903
|
+
frameworks: [],
|
|
2904
|
+
host: "localhost",
|
|
2905
|
+
https: false,
|
|
2906
|
+
logFile: null,
|
|
2907
|
+
name: basename(process.execPath || "compiled"),
|
|
2908
|
+
pid: process.pid,
|
|
2909
|
+
port: server.port,
|
|
2910
|
+
ppid: process.ppid,
|
|
2911
|
+
source: "compiled",
|
|
2912
|
+
startedAt: new Date().toISOString()
|
|
2913
|
+
},
|
|
2914
|
+
null,
|
|
2915
|
+
2
|
|
2916
|
+
)
|
|
2917
|
+
);
|
|
2918
|
+
process.on("exit", () => {
|
|
2919
|
+
try {
|
|
2920
|
+
unlinkSync(absInstanceFile);
|
|
2921
|
+
} catch {
|
|
2922
|
+
/* already gone */
|
|
2923
|
+
}
|
|
2924
|
+
});
|
|
2925
|
+
} catch {
|
|
2926
|
+
/* registry is best-effort */
|
|
2927
|
+
}
|
|
2928
|
+
|
|
2880
2929
|
const assetCount = Object.keys(ASSETS).length;
|
|
2881
2930
|
const pageCount = Object.keys(PAGES).length;
|
|
2882
2931
|
console.log(\`
|