@absolutejs/absolute 0.19.0-beta.1053 → 0.19.0-beta.1054
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-u9gKxb/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-u9gKxb/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-u9gKxb/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
|
@@ -178580,6 +178580,17 @@ var resolveDevPort = async (requestedPort, options = {}) => {
|
|
|
178580
178580
|
init_utils();
|
|
178581
178581
|
var cliTag = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[cli]\x1B[0m ${color}${message}\x1B[0m`;
|
|
178582
178582
|
var DEFAULT_PORT_RANGE = 10;
|
|
178583
|
+
var NODE_API_IMPORT_ERROR = "To load Node-API modules, use require() or process.dlopen instead of import.";
|
|
178584
|
+
var formatServerBootDiagnostic = (output, serverEntry) => {
|
|
178585
|
+
if (!output.includes(NODE_API_IMPORT_ERROR))
|
|
178586
|
+
return null;
|
|
178587
|
+
return [
|
|
178588
|
+
`Server boot failed while evaluating ${serverEntry}.`,
|
|
178589
|
+
"Bun is trying to load a native Node-API addon from an ESM import.",
|
|
178590
|
+
'Load `.node` addons with require()/process.dlopen, or gate `with { type: "file" }` asset imports so they only run in compiled builds.'
|
|
178591
|
+
].join(`
|
|
178592
|
+
`);
|
|
178593
|
+
};
|
|
178583
178594
|
var HEAP_SNAPSHOT_PRELOAD = `process.on('SIGUSR2', () => {
|
|
178584
178595
|
try {
|
|
178585
178596
|
const file = 'heap-' + process.pid + '-' + Date.now() + '.heapsnapshot';
|
|
@@ -178890,7 +178901,8 @@ var dev = async (serverEntry, configPath2) => {
|
|
|
178890
178901
|
},
|
|
178891
178902
|
stdio: ["ignore", "pipe", "pipe"]
|
|
178892
178903
|
});
|
|
178893
|
-
|
|
178904
|
+
let printedBootDiagnostic = false;
|
|
178905
|
+
const forward = (source, dest, sourceName) => {
|
|
178894
178906
|
if (!source)
|
|
178895
178907
|
return;
|
|
178896
178908
|
source.on("data", (chunk) => {
|
|
@@ -178899,10 +178911,21 @@ var dev = async (serverEntry, configPath2) => {
|
|
|
178899
178911
|
dest.write(chunk);
|
|
178900
178912
|
writeInstanceLog(chunk.toString());
|
|
178901
178913
|
handleChunk(chunk);
|
|
178914
|
+
if (sourceName === "stderr" && !printedBootDiagnostic) {
|
|
178915
|
+
const diagnostic = formatServerBootDiagnostic(chunk.toString(), serverEntry);
|
|
178916
|
+
if (diagnostic) {
|
|
178917
|
+
printedBootDiagnostic = true;
|
|
178918
|
+
const formatted = cliTag("\x1B[33m", diagnostic);
|
|
178919
|
+
process.stderr.write(`${formatted}
|
|
178920
|
+
`);
|
|
178921
|
+
writeInstanceLog(`${formatted}
|
|
178922
|
+
`);
|
|
178923
|
+
}
|
|
178924
|
+
}
|
|
178902
178925
|
});
|
|
178903
178926
|
};
|
|
178904
|
-
forward(proc.stdout, process.stdout);
|
|
178905
|
-
forward(proc.stderr, process.stderr);
|
|
178927
|
+
forward(proc.stdout, process.stdout, "stdout");
|
|
178928
|
+
forward(proc.stderr, process.stderr, "stderr");
|
|
178906
178929
|
return proc;
|
|
178907
178930
|
};
|
|
178908
178931
|
let serverProcess = await spawnServer();
|