@absolutejs/absolute 0.19.0-beta.1031 → 0.19.0-beta.1033
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/angular/browser.js +18 -16
- package/dist/angular/browser.js.map +8 -8
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/hmrPreserveCore.ts +86 -121
- package/dist/angular/index.js +57 -50
- package/dist/angular/index.js.map +17 -17
- package/dist/angular/server.js +42 -35
- package/dist/angular/server.js.map +12 -12
- package/dist/build.js +145 -138
- package/dist/build.js.map +31 -31
- package/dist/cli/config/client.js +1 -1
- package/dist/cli/config/server.js +43 -43
- package/dist/cli/index.js +71 -18
- package/dist/client/index.js +17 -10
- package/dist/client/index.js.map +10 -10
- package/dist/dev/client/errorOverlay.ts +4 -4
- package/dist/dev/client/handlers/angularHmrShim.ts +18 -18
- package/dist/dev/client/handlers/angularRemount.ts +10 -8
- package/dist/dev/client/handlers/angularRemountWiring.ts +2 -2
- package/dist/dev/client/hmrToast.ts +20 -20
- package/dist/index.js +159 -153
- package/dist/index.js.map +38 -38
- package/dist/islands/browser.js.map +1 -1
- package/dist/islands/index.js +13 -6
- package/dist/islands/index.js.map +8 -8
- package/dist/react/browser.js.map +1 -1
- package/dist/react/components/index.js +2 -2
- package/dist/react/components/index.js.map +3 -3
- package/dist/react/hooks/index.js.map +1 -1
- package/dist/react/index.js +29 -22
- package/dist/react/index.js.map +11 -11
- package/dist/react/server.js +17 -17
- package/dist/react/server.js.map +5 -5
- package/dist/src/angular/hmrPreserveCore.d.ts +6 -19
- package/dist/src/angular/islands.d.ts +1 -1
- package/dist/src/angular/ssrRender.d.ts +4 -1
- package/dist/src/cli/config/packageJson/editPackageJson.d.ts +2 -2
- package/dist/src/cli/config/schema/fromJsonSchema.d.ts +1 -1
- package/dist/src/cli/instanceStatus.d.ts +1 -0
- package/dist/src/client/hydrators/react.d.ts +1 -1
- package/dist/src/client/hydrators/svelte.d.ts +1 -1
- package/dist/src/client/hydrators/vue.d.ts +1 -1
- package/dist/src/client/islandStore.d.ts +3 -3
- package/dist/src/core/build.d.ts +1 -1
- package/dist/src/core/devRouteRegistrationCallsite.d.ts +1 -5
- package/dist/src/dev/angular/fastHmrCompiler.d.ts +2 -2
- package/dist/src/dev/angular/hmrCompiler.d.ts +1 -1
- package/dist/src/dev/angular/resolveOwningComponents.d.ts +1 -1
- package/dist/src/svelte/router/hashMode.d.ts +1 -6
- package/dist/src/svelte/router/matchPath.d.ts +2 -22
- package/dist/src/svelte/router/page.svelte.d.ts +1 -10
- package/dist/src/svelte/router/prefetchCache.d.ts +2 -6
- package/dist/src/utils/formatBytes.d.ts +2 -0
- package/dist/src/utils/generatedDir.d.ts +1 -1
- package/dist/src/utils/inlinePageCss.d.ts +1 -3
- package/dist/src/utils/jsonLd.d.ts +1 -1
- package/dist/src/utils/loadConfig.d.ts +2 -3
- package/dist/src/utils/resolveConvention.d.ts +1 -1
- package/dist/src/utils/resolveDevPort.d.ts +4 -1
- package/dist/src/utils/runtimeMode.d.ts +1 -1
- package/dist/src/vue/defineVuePage.d.ts +1 -11
- package/dist/svelte/browser.js.map +1 -1
- package/dist/svelte/index.js +34 -27
- package/dist/svelte/index.js.map +11 -11
- package/dist/svelte/router/hashMode.ts +6 -12
- package/dist/svelte/router/matchPath.ts +23 -45
- package/dist/svelte/router/page.d.ts +1 -10
- package/dist/svelte/router/page.js +6 -6
- package/dist/svelte/router/prefetchCache.ts +17 -21
- package/dist/svelte/server.js +22 -22
- package/dist/svelte/server.js.map +5 -5
- package/dist/types/cli.d.ts +2 -0
- package/dist/vue/browser.js +2 -2
- package/dist/vue/browser.js.map +4 -4
- package/dist/vue/index.js +37 -30
- package/dist/vue/index.js.map +14 -14
- package/dist/vue/server.js +24 -24
- package/dist/vue/server.js.map +7 -7
- package/package.json +38 -38
|
@@ -31414,7 +31414,7 @@ var VIRTUAL_NAME = "__absolute_type_introspect__.ts", MAX_DEPTH2 = 6, isFramewor
|
|
|
31414
31414
|
resolve6(cwd, "package.json")
|
|
31415
31415
|
]) {
|
|
31416
31416
|
try {
|
|
31417
|
-
const version3 = JSON.parse(readFileSync9(candidate, "utf-8"))
|
|
31417
|
+
const { version: version3 } = JSON.parse(readFileSync9(candidate, "utf-8"));
|
|
31418
31418
|
if (typeof version3 === "string")
|
|
31419
31419
|
return version3;
|
|
31420
31420
|
} catch {}
|
|
@@ -31806,7 +31806,7 @@ var lineStartOffset = (text, position) => {
|
|
|
31806
31806
|
writeFileSync5(configPath, text.slice(0, start) + valueText + text.slice(end), "utf-8");
|
|
31807
31807
|
return { message: `Updated ${request.name}`, ok: true };
|
|
31808
31808
|
}
|
|
31809
|
-
const properties = object
|
|
31809
|
+
const { properties } = object;
|
|
31810
31810
|
const entry = `${request.name}: ${valueText}`;
|
|
31811
31811
|
if (properties.length > 0) {
|
|
31812
31812
|
const last = properties[properties.length - 1];
|
|
@@ -31855,7 +31855,18 @@ var detectFormatting3 = (text) => {
|
|
|
31855
31855
|
return { insertSpaces: false, tabSize: 1 };
|
|
31856
31856
|
}
|
|
31857
31857
|
return { insertSpaces: true, tabSize: indent.length };
|
|
31858
|
-
}, setPath = (text, path, value) => applyEdits(text, modify(text, path, value, { formattingOptions: detectFormatting3(text) })),
|
|
31858
|
+
}, setPath = (text, path, value) => applyEdits(text, modify(text, path, value, { formattingOptions: detectFormatting3(text) })), applyFieldEdit = (configPath, edit) => {
|
|
31859
|
+
try {
|
|
31860
|
+
const text = readFileSync12(configPath, "utf-8");
|
|
31861
|
+
writeFileSync6(configPath, setPath(text, [edit.name], edit.remove ? undefined : edit.value), "utf-8");
|
|
31862
|
+
return {
|
|
31863
|
+
message: edit.remove ? `Removed ${edit.name}` : `Updated ${edit.name}`,
|
|
31864
|
+
ok: true
|
|
31865
|
+
};
|
|
31866
|
+
} catch (error) {
|
|
31867
|
+
return { message: String(error), ok: false };
|
|
31868
|
+
}
|
|
31869
|
+
}, applyScriptEdit = (configPath, edit) => {
|
|
31859
31870
|
try {
|
|
31860
31871
|
let text = readFileSync12(configPath, "utf-8");
|
|
31861
31872
|
if (edit.remove) {
|
|
@@ -31875,17 +31886,6 @@ var detectFormatting3 = (text) => {
|
|
|
31875
31886
|
} catch (error) {
|
|
31876
31887
|
return { message: String(error), ok: false };
|
|
31877
31888
|
}
|
|
31878
|
-
}, applyFieldEdit = (configPath, edit) => {
|
|
31879
|
-
try {
|
|
31880
|
-
const text = readFileSync12(configPath, "utf-8");
|
|
31881
|
-
writeFileSync6(configPath, setPath(text, [edit.name], edit.remove ? undefined : edit.value), "utf-8");
|
|
31882
|
-
return {
|
|
31883
|
-
message: edit.remove ? `Removed ${edit.name}` : `Updated ${edit.name}`,
|
|
31884
|
-
ok: true
|
|
31885
|
-
};
|
|
31886
|
-
} catch (error) {
|
|
31887
|
-
return { message: String(error), ok: false };
|
|
31888
|
-
}
|
|
31889
31889
|
};
|
|
31890
31890
|
var init_editPackageJson = __esm(() => {
|
|
31891
31891
|
init_main();
|
|
@@ -32292,6 +32292,22 @@ var FieldEditor = (props) => {
|
|
|
32292
32292
|
// src/cli/config/schema/fromJsonSchema.ts
|
|
32293
32293
|
var MAX_DEPTH = 6;
|
|
32294
32294
|
var opaque = () => ({ kind: "opaque", typeText: "json" });
|
|
32295
|
+
var eslintOptionsSchema = (metaSchema) => {
|
|
32296
|
+
if (Array.isArray(metaSchema)) {
|
|
32297
|
+
if (metaSchema.length === 0)
|
|
32298
|
+
return { kind: "opaque", typeText: "options" };
|
|
32299
|
+
return {
|
|
32300
|
+
items: metaSchema.map((entry) => fromJsonSchema(entry)),
|
|
32301
|
+
kind: "tuple"
|
|
32302
|
+
};
|
|
32303
|
+
}
|
|
32304
|
+
if (isRecord(metaSchema)) {
|
|
32305
|
+
if (metaSchema.type === "array")
|
|
32306
|
+
return fromJsonSchema(metaSchema);
|
|
32307
|
+
return { items: [fromJsonSchema(metaSchema)], kind: "tuple" };
|
|
32308
|
+
}
|
|
32309
|
+
return { kind: "opaque", typeText: "options" };
|
|
32310
|
+
};
|
|
32295
32311
|
var fromJsonSchema = (schema, depth = 0) => {
|
|
32296
32312
|
if (depth > MAX_DEPTH || !isRecord(schema))
|
|
32297
32313
|
return opaque();
|
|
@@ -32316,7 +32332,7 @@ var fromJsonSchema = (schema, depth = 0) => {
|
|
|
32316
32332
|
if (type === "boolean")
|
|
32317
32333
|
return { kind: "boolean" };
|
|
32318
32334
|
if (type === "array") {
|
|
32319
|
-
const items = schema
|
|
32335
|
+
const { items } = schema;
|
|
32320
32336
|
if (Array.isArray(items)) {
|
|
32321
32337
|
return {
|
|
32322
32338
|
items: items.map((item) => fromJsonSchema(item, depth + 1)),
|
|
@@ -32353,22 +32369,6 @@ var fromJsonSchema = (schema, depth = 0) => {
|
|
|
32353
32369
|
}
|
|
32354
32370
|
return opaque();
|
|
32355
32371
|
};
|
|
32356
|
-
var eslintOptionsSchema = (metaSchema) => {
|
|
32357
|
-
if (Array.isArray(metaSchema)) {
|
|
32358
|
-
if (metaSchema.length === 0)
|
|
32359
|
-
return { kind: "opaque", typeText: "options" };
|
|
32360
|
-
return {
|
|
32361
|
-
items: metaSchema.map((entry) => fromJsonSchema(entry)),
|
|
32362
|
-
kind: "tuple"
|
|
32363
|
-
};
|
|
32364
|
-
}
|
|
32365
|
-
if (isRecord(metaSchema)) {
|
|
32366
|
-
if (metaSchema.type === "array")
|
|
32367
|
-
return fromJsonSchema(metaSchema);
|
|
32368
|
-
return { items: [fromJsonSchema(metaSchema)], kind: "tuple" };
|
|
32369
|
-
}
|
|
32370
|
-
return { kind: "opaque", typeText: "options" };
|
|
32371
|
-
};
|
|
32372
32372
|
|
|
32373
32373
|
// src/cli/config/eslint/EslintPanel.tsx
|
|
32374
32374
|
var jsx_dev_runtime2 = __toESM(require_jsx_dev_runtime(), 1);
|
|
@@ -33579,7 +33579,7 @@ var Control2 = ({ busy, isSet, onSave, option, value }) => {
|
|
|
33579
33579
|
}, undefined, false, undefined, this);
|
|
33580
33580
|
};
|
|
33581
33581
|
var OptionRow2 = ({ busy, current, onSave, option }) => {
|
|
33582
|
-
const name = option
|
|
33582
|
+
const { name } = option;
|
|
33583
33583
|
if (name === undefined)
|
|
33584
33584
|
return null;
|
|
33585
33585
|
const isSet = Object.prototype.hasOwnProperty.call(current, name);
|
|
@@ -36498,6 +36498,14 @@ var getMap = () => {
|
|
|
36498
36498
|
return empty;
|
|
36499
36499
|
};
|
|
36500
36500
|
var normalizeConventionPageName = (name) => toPascal(name).replace(/\d+$/, "");
|
|
36501
|
+
var hasErrorConvention = (framework) => {
|
|
36502
|
+
const conventions = getMap()[framework];
|
|
36503
|
+
if (!conventions)
|
|
36504
|
+
return false;
|
|
36505
|
+
if (conventions.defaults?.error)
|
|
36506
|
+
return true;
|
|
36507
|
+
return Object.values(conventions.pages ?? {}).some((page) => Boolean(page.error));
|
|
36508
|
+
};
|
|
36501
36509
|
var resolveErrorConventionPath = (framework, pageName) => {
|
|
36502
36510
|
const conventions = getMap()[framework];
|
|
36503
36511
|
if (!conventions)
|
|
@@ -36513,14 +36521,6 @@ var resolveErrorConventionPath = (framework, pageName) => {
|
|
|
36513
36521
|
}
|
|
36514
36522
|
return conventions.defaults?.error;
|
|
36515
36523
|
};
|
|
36516
|
-
var hasErrorConvention = (framework) => {
|
|
36517
|
-
const conventions = getMap()[framework];
|
|
36518
|
-
if (!conventions)
|
|
36519
|
-
return false;
|
|
36520
|
-
if (conventions.defaults?.error)
|
|
36521
|
-
return true;
|
|
36522
|
-
return Object.values(conventions.pages ?? {}).some((page) => Boolean(page.error));
|
|
36523
|
-
};
|
|
36524
36524
|
var isDev = () => true;
|
|
36525
36525
|
var buildErrorProps = (error) => {
|
|
36526
36526
|
if (error instanceof Error) {
|
|
@@ -36530,7 +36530,7 @@ var buildErrorProps = (error) => {
|
|
|
36530
36530
|
...isDev() && error.stack ? { stack: error.stack } : {}
|
|
36531
36531
|
};
|
|
36532
36532
|
}
|
|
36533
|
-
return {
|
|
36533
|
+
return { message: String(error), name: "Error" };
|
|
36534
36534
|
};
|
|
36535
36535
|
var renderReactError = async (conventionPath, errorProps) => {
|
|
36536
36536
|
const { createElement } = await Promise.resolve().then(() => __toESM(require_react(), 1));
|
|
@@ -36678,7 +36678,7 @@ var buildRefreshSetup = () => {
|
|
|
36678
36678
|
return "window.__REFRESH_BUFFER__=[];" + "window.$RefreshReg$=function(t,i){window.__REFRESH_BUFFER__.push([t,i])};" + "window.$RefreshSig$=function(){return function(t){return t}};";
|
|
36679
36679
|
};
|
|
36680
36680
|
var handleReactPageRequest = async (input) => {
|
|
36681
|
-
const Page = input
|
|
36681
|
+
const { Page } = input;
|
|
36682
36682
|
const resolvedIndex = input.index;
|
|
36683
36683
|
const options = input;
|
|
36684
36684
|
const userProps = input.props;
|
|
@@ -36872,8 +36872,8 @@ var getClientBundle = async () => {
|
|
|
36872
36872
|
return cachedClientBundle;
|
|
36873
36873
|
};
|
|
36874
36874
|
var renderShell = (panel) => handleReactPageRequest({
|
|
36875
|
-
Page: ConfigShell,
|
|
36876
36875
|
index: CLIENT_ROUTE,
|
|
36876
|
+
Page: ConfigShell,
|
|
36877
36877
|
props: { panel }
|
|
36878
36878
|
});
|
|
36879
36879
|
var isSeverity = (value) => value === "off" || value === "warn" || value === "error";
|
package/dist/cli/index.js
CHANGED
|
@@ -316,7 +316,7 @@ var heldLocks, HELD_LOCKS_ENV = "ABSOLUTE_HELD_BUILD_DIRECTORY_LOCKS", exitHandl
|
|
|
316
316
|
process.kill(pid, 0);
|
|
317
317
|
return true;
|
|
318
318
|
} catch (err) {
|
|
319
|
-
const code = err
|
|
319
|
+
const { code } = err;
|
|
320
320
|
if (code === "ESRCH")
|
|
321
321
|
return false;
|
|
322
322
|
if (code === "EPERM")
|
|
@@ -171118,6 +171118,21 @@ var init_ls = __esm(() => {
|
|
|
171118
171118
|
];
|
|
171119
171119
|
});
|
|
171120
171120
|
|
|
171121
|
+
// src/utils/formatBytes.ts
|
|
171122
|
+
var formatBytes = (bytes) => {
|
|
171123
|
+
if (bytes === null || bytes <= 0)
|
|
171124
|
+
return "-";
|
|
171125
|
+
if (bytes < BYTES_PER_KILOBYTE)
|
|
171126
|
+
return `${bytes} B`;
|
|
171127
|
+
const kilobytes = bytes / BYTES_PER_KILOBYTE;
|
|
171128
|
+
if (kilobytes < BYTES_PER_KILOBYTE)
|
|
171129
|
+
return `${Math.round(kilobytes)} KB`;
|
|
171130
|
+
return `${(kilobytes / BYTES_PER_KILOBYTE).toFixed(1)} MB`;
|
|
171131
|
+
};
|
|
171132
|
+
var init_formatBytes = __esm(() => {
|
|
171133
|
+
init_constants();
|
|
171134
|
+
});
|
|
171135
|
+
|
|
171121
171136
|
// src/cli/discoverInstances.ts
|
|
171122
171137
|
var MS_PER_SECOND = 1000, isJsRuntime = (command) => /\b(bun|deno|node)\b/.test(command), untrackedName = (command) => {
|
|
171123
171138
|
const entry = command.split(/\s+/).find((token) => /\.(cjs|js|mjs|ts)$/.test(token));
|
|
@@ -171176,6 +171191,7 @@ var init_discoverInstances = __esm(() => {
|
|
|
171176
171191
|
|
|
171177
171192
|
// src/cli/instanceStatus.ts
|
|
171178
171193
|
import { createConnection as createConnection2 } from "net";
|
|
171194
|
+
var {$: $4 } = globalThis.Bun;
|
|
171179
171195
|
var displayHost = (host) => host === "0.0.0.0" || host === "::" ? "localhost" : host, probePort = (host, port) => {
|
|
171180
171196
|
const { promise, resolve: resolve11 } = Promise.withResolvers();
|
|
171181
171197
|
const socket = createConnection2({ host: displayHost(host), port });
|
|
@@ -171200,11 +171216,28 @@ var displayHost = (host) => host === "0.0.0.0" || host === "::" ? "localhost" :
|
|
|
171200
171216
|
}
|
|
171201
171217
|
const reachable = await probePort(record.host, record.port);
|
|
171202
171218
|
return reachable ? "ready" : "starting";
|
|
171219
|
+
}, readMemory = async (pids) => {
|
|
171220
|
+
const result = new Map;
|
|
171221
|
+
if (pids.length === 0)
|
|
171222
|
+
return result;
|
|
171223
|
+
const output = await $4`ps -o pid=,rss= -p ${pids.join(",")}`.quiet().nothrow().text();
|
|
171224
|
+
output.split(`
|
|
171225
|
+
`).forEach((line) => {
|
|
171226
|
+
const match = line.trim().match(/^(\d+)\s+(\d+)$/);
|
|
171227
|
+
if (match) {
|
|
171228
|
+
result.set(Number(match[1]), Number(match[2]) * BYTES_PER_KILOBYTE);
|
|
171229
|
+
}
|
|
171230
|
+
});
|
|
171231
|
+
return result;
|
|
171203
171232
|
}, enrichInstances = async (records) => {
|
|
171204
171233
|
const now = Date.now();
|
|
171205
|
-
const statuses = await Promise.all(
|
|
171234
|
+
const [statuses, memory] = await Promise.all([
|
|
171235
|
+
Promise.all(records.map(probeStatus)),
|
|
171236
|
+
readMemory(records.map((record) => record.pid))
|
|
171237
|
+
]);
|
|
171206
171238
|
return records.map((record, index) => ({
|
|
171207
171239
|
...record,
|
|
171240
|
+
memoryBytes: memory.get(record.pid) ?? null,
|
|
171208
171241
|
status: statuses[index] ?? "starting",
|
|
171209
171242
|
uptimeMs: Math.max(0, now - Date.parse(record.startedAt)),
|
|
171210
171243
|
url: instanceUrl(record)
|
|
@@ -171225,7 +171258,7 @@ __export(exports_psTui, {
|
|
|
171225
171258
|
});
|
|
171226
171259
|
import { spawn } from "child_process";
|
|
171227
171260
|
import { closeSync, fstatSync, openSync as openSync3, readSync } from "fs";
|
|
171228
|
-
var TUI_HEADERS, STATUS_INDEX =
|
|
171261
|
+
var TUI_HEADERS, STATUS_INDEX = 6, URL_INDEX = 7, helpLines2, statusLevelColor = (level) => {
|
|
171229
171262
|
if (level === "error")
|
|
171230
171263
|
return colors.red;
|
|
171231
171264
|
if (level === "warn")
|
|
@@ -171245,6 +171278,7 @@ var TUI_HEADERS, STATUS_INDEX = 5, URL_INDEX = 6, helpLines2, statusLevelColor =
|
|
|
171245
171278
|
instance.port === null ? "-" : String(instance.port),
|
|
171246
171279
|
String(instance.pid),
|
|
171247
171280
|
getDurationString(instance.uptimeMs),
|
|
171281
|
+
formatBytes(instance.memoryBytes),
|
|
171248
171282
|
instance.status,
|
|
171249
171283
|
instance.url ?? "-"
|
|
171250
171284
|
], columnWidths2 = (allCells) => TUI_HEADERS.map((header, index) => Math.max(visibleLength(header), ...allCells.map((cells) => visibleLength(cells[index] ?? "")))), layoutWidths = (allCells, width) => {
|
|
@@ -171431,11 +171465,14 @@ var TUI_HEADERS, STATUS_INDEX = 5, URL_INDEX = 6, helpLines2, statusLevelColor =
|
|
|
171431
171465
|
terminal.off("data", onData);
|
|
171432
171466
|
if (terminal.setRawMode)
|
|
171433
171467
|
terminal.setRawMode(false);
|
|
171468
|
+
terminal.pause();
|
|
171434
171469
|
if (terminal !== process.stdin)
|
|
171435
171470
|
terminal.destroy();
|
|
171436
171471
|
process.stdout.write("\x1B[?25h\x1B[?1049l");
|
|
171437
171472
|
};
|
|
171438
171473
|
const quit = () => {
|
|
171474
|
+
process.off("SIGINT", quit);
|
|
171475
|
+
process.off("SIGTERM", quit);
|
|
171439
171476
|
dispose();
|
|
171440
171477
|
resolveExit();
|
|
171441
171478
|
};
|
|
@@ -171457,7 +171494,8 @@ var TUI_HEADERS, STATUS_INDEX = 5, URL_INDEX = 6, helpLines2, statusLevelColor =
|
|
|
171457
171494
|
};
|
|
171458
171495
|
const enterPortMode = () => {
|
|
171459
171496
|
mode = "port";
|
|
171460
|
-
|
|
171497
|
+
const selectedPort = selectedInstance()?.port;
|
|
171498
|
+
portBuffer = typeof selectedPort === "number" ? String(selectedPort) : "";
|
|
171461
171499
|
scheduleRender();
|
|
171462
171500
|
};
|
|
171463
171501
|
const enterConfirmMode = () => {
|
|
@@ -171715,6 +171753,7 @@ var TUI_HEADERS, STATUS_INDEX = 5, URL_INDEX = 6, helpLines2, statusLevelColor =
|
|
|
171715
171753
|
};
|
|
171716
171754
|
var init_psTui = __esm(() => {
|
|
171717
171755
|
init_constants();
|
|
171756
|
+
init_formatBytes();
|
|
171718
171757
|
init_getDurationString();
|
|
171719
171758
|
init_discoverInstances();
|
|
171720
171759
|
init_instanceStatus();
|
|
@@ -171726,6 +171765,7 @@ var init_psTui = __esm(() => {
|
|
|
171726
171765
|
"PORT",
|
|
171727
171766
|
"PID",
|
|
171728
171767
|
"UPTIME",
|
|
171768
|
+
"MEM",
|
|
171729
171769
|
"STATUS",
|
|
171730
171770
|
"URL"
|
|
171731
171771
|
];
|
|
@@ -171735,7 +171775,7 @@ var init_psTui = __esm(() => {
|
|
|
171735
171775
|
" s Stop the selected server",
|
|
171736
171776
|
" r Restart the selected server",
|
|
171737
171777
|
" o Open the selected server in the browser",
|
|
171738
|
-
" f Free a port (
|
|
171778
|
+
" f Free a port (prefilled with the selected one)",
|
|
171739
171779
|
" x Stop every listed server",
|
|
171740
171780
|
" PgUp/PgDn Scroll the log pane",
|
|
171741
171781
|
" ? or h Toggle this help",
|
|
@@ -171767,6 +171807,7 @@ var killPid = (pid) => {
|
|
|
171767
171807
|
instance.port === null ? "-" : String(instance.port),
|
|
171768
171808
|
String(instance.pid),
|
|
171769
171809
|
getDurationString(instance.uptimeMs),
|
|
171810
|
+
formatBytes(instance.memoryBytes),
|
|
171770
171811
|
`${statusColor2(instance.status)}${instance.status}${colors.reset}`,
|
|
171771
171812
|
instance.url ?? "-"
|
|
171772
171813
|
], columnWidths3 = (rows) => TABLE_HEADERS.map((header, index) => Math.max(visibleLength(header), ...rows.map((cells) => visibleLength(cells[index] ?? "")))), renderRow = (cells, widths) => cells.map((cell, index) => padLine(cell, widths[index] ?? 0)).join(" ".repeat(LIST_TUI_COLUMN_GAP)), printInstanceTable = (instances) => {
|
|
@@ -171821,6 +171862,7 @@ var killPid = (pid) => {
|
|
|
171821
171862
|
};
|
|
171822
171863
|
var init_ps = __esm(() => {
|
|
171823
171864
|
init_constants();
|
|
171865
|
+
init_formatBytes();
|
|
171824
171866
|
init_getDurationString();
|
|
171825
171867
|
init_discoverInstances();
|
|
171826
171868
|
init_instanceStatus();
|
|
@@ -171831,6 +171873,7 @@ var init_ps = __esm(() => {
|
|
|
171831
171873
|
"PORT",
|
|
171832
171874
|
"PID",
|
|
171833
171875
|
"UPTIME",
|
|
171876
|
+
"MEM",
|
|
171834
171877
|
"STATUS",
|
|
171835
171878
|
"URL"
|
|
171836
171879
|
];
|
|
@@ -172056,13 +172099,13 @@ var cliTag4 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[c
|
|
|
172056
172099
|
const destDir = join13(outdir, "node_modules", ...specifier.split("/"));
|
|
172057
172100
|
rmSync4(destDir, { force: true, recursive: true });
|
|
172058
172101
|
cpSync(srcDir, destDir, {
|
|
172102
|
+
force: true,
|
|
172103
|
+
recursive: true,
|
|
172059
172104
|
filter(source) {
|
|
172060
172105
|
const rel = relative3(srcDir, source);
|
|
172061
172106
|
const [firstSegment] = rel.split(/[\\/]/);
|
|
172062
172107
|
return firstSegment !== "node_modules" && firstSegment !== ".git";
|
|
172063
|
-
}
|
|
172064
|
-
force: true,
|
|
172065
|
-
recursive: true
|
|
172108
|
+
}
|
|
172066
172109
|
});
|
|
172067
172110
|
const deps = {
|
|
172068
172111
|
...pkg.dependencies ?? {},
|
|
@@ -172141,7 +172184,7 @@ var cliTag4 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[c
|
|
|
172141
172184
|
if (!existsSync13(packageJsonPath))
|
|
172142
172185
|
return null;
|
|
172143
172186
|
const pkg = JSON.parse(readFileSync14(packageJsonPath, "utf-8"));
|
|
172144
|
-
const exportKey = resolvedPackageDir
|
|
172187
|
+
const exportKey = resolvedPackageDir !== subPackageDir && subpath ? `.${subpath}` : ".";
|
|
172145
172188
|
const rootExport = pkg.exports?.[exportKey];
|
|
172146
172189
|
const entry = pickExportEntry(rootExport) ?? (resolvedPackageDir === subPackageDir || !subpath ? pkg.module ?? pkg.main ?? "index.js" : `.${subpath}`);
|
|
172147
172190
|
return join13(resolvedPackageDir, entry);
|
|
@@ -172649,15 +172692,25 @@ console.log(\`
|
|
|
172649
172692
|
return;
|
|
172650
172693
|
});
|
|
172651
172694
|
}
|
|
172652
|
-
}), FRAMEWORK_EXTERNALS,
|
|
172653
|
-
|
|
172654
|
-
|
|
172655
|
-
|
|
172656
|
-
|
|
172657
|
-
|
|
172658
|
-
|
|
172659
|
-
|
|
172660
|
-
|
|
172695
|
+
}), FRAMEWORK_EXTERNALS, collectUserServerExternals = (buildConfig) => {
|
|
172696
|
+
const bunBuild = buildConfig.bunBuild;
|
|
172697
|
+
if (!bunBuild)
|
|
172698
|
+
return [];
|
|
172699
|
+
const override = Array.isArray(bunBuild.external) ? bunBuild.external : [];
|
|
172700
|
+
const fromDefault = Array.isArray(bunBuild.default?.external) ? bunBuild.default.external : [];
|
|
172701
|
+
return [...override, ...fromDefault];
|
|
172702
|
+
}, resolveServerBundleExternals = (buildConfig) => [
|
|
172703
|
+
...FRAMEWORK_EXTERNALS.filter((specifier) => {
|
|
172704
|
+
if (buildConfig.reactDirectory && (specifier === "react" || specifier.startsWith("react/") || specifier.startsWith("react-dom")))
|
|
172705
|
+
return false;
|
|
172706
|
+
if (buildConfig.vueDirectory && (specifier === "vue" || specifier.startsWith("vue/") || specifier === "@vue/server-renderer"))
|
|
172707
|
+
return false;
|
|
172708
|
+
if (buildConfig.svelteDirectory && (specifier === "svelte" || specifier.startsWith("svelte/")))
|
|
172709
|
+
return false;
|
|
172710
|
+
return true;
|
|
172711
|
+
}),
|
|
172712
|
+
...collectUserServerExternals(buildConfig)
|
|
172713
|
+
], compile = async (serverEntry, outdir, outfile, configPath2) => {
|
|
172661
172714
|
const resolvedOutdir = resolve12(outdir ?? "dist");
|
|
172662
172715
|
await withBuildDirectoryLock(resolvedOutdir, () => compileUnlocked(serverEntry, resolvedOutdir, outfile, configPath2));
|
|
172663
172716
|
}, compileUnlocked = async (serverEntry, resolvedOutdir, outfile, configPath2) => {
|
package/dist/client/index.js
CHANGED
|
@@ -266,7 +266,7 @@ var reactIslandRoots, isPropsRecord = (value) => typeof value === "object" && va
|
|
|
266
266
|
continue;
|
|
267
267
|
Reflect.deleteProperty(element, key);
|
|
268
268
|
}
|
|
269
|
-
},
|
|
269
|
+
}, hydrateReactIsland = (component, element, props) => {
|
|
270
270
|
const existingRoot = reactIslandRoots.get(element);
|
|
271
271
|
if (existingRoot) {
|
|
272
272
|
existingRoot.render(isPropsRecord(props) ? createElement(component, props) : createElement(component));
|
|
@@ -278,7 +278,7 @@ var reactIslandRoots, isPropsRecord = (value) => typeof value === "object" && va
|
|
|
278
278
|
return;
|
|
279
279
|
}
|
|
280
280
|
reactIslandRoots.set(element, hydrateRoot(element, createElement(component, props)));
|
|
281
|
-
};
|
|
281
|
+
}, isReactComponent = (value) => typeof value === "function";
|
|
282
282
|
var init_react = __esm(() => {
|
|
283
283
|
reactIslandRoots = new WeakMap;
|
|
284
284
|
HOST_REACT_EXPANDO_PREFIXES = [
|
|
@@ -298,12 +298,12 @@ __export(exports_svelte, {
|
|
|
298
298
|
hydrateSvelteIsland: () => hydrateSvelteIsland
|
|
299
299
|
});
|
|
300
300
|
import { hydrate as hydrateSvelte } from "svelte";
|
|
301
|
-
var isPropsRecord2 = (value) => typeof value === "object" && value !== null,
|
|
301
|
+
var isPropsRecord2 = (value) => typeof value === "object" && value !== null, hydrateSvelteIsland = (component, element, props) => {
|
|
302
302
|
hydrateSvelte(component, {
|
|
303
303
|
props: isPropsRecord2(props) ? props : undefined,
|
|
304
304
|
target: element
|
|
305
305
|
});
|
|
306
|
-
};
|
|
306
|
+
}, isSvelteComponent = (value) => typeof value === "function";
|
|
307
307
|
var init_svelte = () => {};
|
|
308
308
|
|
|
309
309
|
// src/client/hydrators/vue.ts
|
|
@@ -313,7 +313,7 @@ __export(exports_vue, {
|
|
|
313
313
|
hydrateVueIsland: () => hydrateVueIsland
|
|
314
314
|
});
|
|
315
315
|
import { createSSRApp, h } from "vue";
|
|
316
|
-
var vueIslandApps, isPropsRecord3 = (value) => typeof value === "object" && value !== null,
|
|
316
|
+
var vueIslandApps, isPropsRecord3 = (value) => typeof value === "object" && value !== null, hydrateVueIsland = (component, element, props) => {
|
|
317
317
|
if (vueIslandApps.has(element)) {
|
|
318
318
|
return;
|
|
319
319
|
}
|
|
@@ -322,7 +322,7 @@ var vueIslandApps, isPropsRecord3 = (value) => typeof value === "object" && valu
|
|
|
322
322
|
});
|
|
323
323
|
app.mount(element);
|
|
324
324
|
vueIslandApps.set(element, app);
|
|
325
|
-
};
|
|
325
|
+
}, isVueComponent = (value) => typeof value === "function" || isPropsRecord3(value);
|
|
326
326
|
var init_vue = __esm(() => {
|
|
327
327
|
vueIslandApps = new WeakMap;
|
|
328
328
|
});
|
|
@@ -369,7 +369,7 @@ var resolveAngularPackageDir = (specifier) => {
|
|
|
369
369
|
var init_resolveAngularPackage = () => {};
|
|
370
370
|
|
|
371
371
|
// src/utils/runtimeMode.ts
|
|
372
|
-
var ENV_VAR = "NODE_ENV",
|
|
372
|
+
var ENV_VAR = "NODE_ENV", isDevelopmentRuntime = () => process.env[ENV_VAR] === "development", isProductionRuntime = () => process.env[ENV_VAR] === "production";
|
|
373
373
|
|
|
374
374
|
// src/angular/angularPatch.ts
|
|
375
375
|
var exports_angularPatch = {};
|
|
@@ -461,7 +461,14 @@ var ensureHead = (doc) => {
|
|
|
461
461
|
}
|
|
462
462
|
try {
|
|
463
463
|
const adapter = new \u{275}DominoAdapter;
|
|
464
|
-
const
|
|
464
|
+
const resolveSeedDoc = () => {
|
|
465
|
+
if (typeof adapter.createHtmlDocument === "function")
|
|
466
|
+
return adapter.createHtmlDocument();
|
|
467
|
+
if (typeof adapter.getDefaultDocument === "function")
|
|
468
|
+
return adapter.getDefaultDocument();
|
|
469
|
+
return null;
|
|
470
|
+
};
|
|
471
|
+
const seedDoc = resolveSeedDoc();
|
|
465
472
|
if (seedDoc) {
|
|
466
473
|
patchElementLayout(seedDoc);
|
|
467
474
|
const probe = seedDoc.createElement("div");
|
|
@@ -747,7 +754,7 @@ __export(exports_islands, {
|
|
|
747
754
|
isAngularComponent: () => isAngularComponent,
|
|
748
755
|
getAngularIslandSelector: () => getAngularIslandSelector
|
|
749
756
|
});
|
|
750
|
-
var angularIslandSelector = "abs-angular-island", isAngularComponent = (value) => typeof value === "function",
|
|
757
|
+
var angularIslandSelector = "abs-angular-island", getAngularIslandSelector = (_islandId) => angularIslandSelector, isAngularComponent = (value) => typeof value === "function", getSelectorFromRenderedIsland = (rootElement) => {
|
|
751
758
|
const firstChild = rootElement.firstElementChild;
|
|
752
759
|
if (!(firstChild instanceof HTMLElement)) {
|
|
753
760
|
return null;
|
|
@@ -1256,5 +1263,5 @@ export {
|
|
|
1256
1263
|
createIslandManifestResolver
|
|
1257
1264
|
};
|
|
1258
1265
|
|
|
1259
|
-
//# debugId=
|
|
1266
|
+
//# debugId=71CCB6F96721218C64756E2164756E21
|
|
1260
1267
|
//# sourceMappingURL=index.js.map
|