@absolutejs/absolute 0.20.0-beta.120 → 0.20.0-beta.122
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/CHANGELOG.md +21 -0
- package/changelog.json +37 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +14 -2
- package/dist/angular/index.js.map +5 -4
- package/dist/angular/server.js +14 -2
- package/dist/angular/server.js.map +5 -4
- package/dist/build.js +15 -3
- package/dist/build.js.map +6 -5
- package/dist/cli/{add-kt4qx8sh.js → add-9sa7e3vd.js} +5 -5
- package/dist/cli/{androidEmulatorController-v6chbhem.js → androidEmulatorController-sj141e1c.js} +3 -3
- package/dist/cli/{androidNativeWatcher-mgqws6ag.js → androidNativeWatcher-dnp95nk2.js} +3 -3
- package/dist/cli/{api-xtq3zqfg.js → api-2hd8cahp.js} +1 -1
- package/dist/cli/{compile-5m830csy.js → compile-hywymh6y.js} +1 -1
- package/dist/cli/config/server.js +59 -9
- package/dist/cli/db-8wweexdp.js +1100 -0
- package/dist/cli/{dev-ww30tdrv.js → dev-pdefc9ac.js} +9 -9
- package/dist/cli/{emulatorDoctor-y2nqmaha.js → emulatorDoctor-gzarrsex.js} +2 -2
- package/dist/cli/{emulatorInstaller-3shdna4g.js → emulatorInstaller-pjw4ex6q.js} +3 -3
- package/dist/cli/{expoDevController-zz516pdd.js → expoDevController-weywa74d.js} +3 -3
- package/dist/cli/{generate-zy3d9bce.js → generate-069p0dk3.js} +4 -4
- package/dist/cli/{htmx-63kt9qj1.js → htmx-5wh1jh75.js} +2 -2
- package/dist/cli/{index-t84wxk1p.js → index-00wfffav.js} +50 -8
- package/dist/cli/{index-wtyg9cy0.js → index-1ys3dnrs.js} +1 -1
- package/dist/cli/{index-knt92dm8.js → index-255xs63d.js} +1 -1
- package/dist/cli/{index-wspj2mq3.js → index-3x5wpx5d.js} +1 -1
- package/dist/cli/{index-28nxv57v.js → index-5cgsrv62.js} +12 -2
- package/dist/cli/{index-mxmg15c5.js → index-ddakkws4.js} +2 -2
- package/dist/cli/{index-ce870r79.js → index-erngp7a9.js} +1 -1
- package/dist/cli/{index-pa3hmzj7.js → index-j2nw3edf.js} +1 -1
- package/dist/cli/{index-1wgc9e0v.js → index-keg69zm1.js} +1 -1
- package/dist/cli/{index-5268nwjx.js → index-q3sq287p.js} +1 -1
- package/dist/cli/{index-jf1f6npt.js → index-rqbk0b30.js} +1 -1
- package/dist/cli/{index-q1d4ns4n.js → index-v26ze17p.js} +1 -1
- package/dist/cli/{index-hneb973j.js → index-vkkqe08e.js} +2 -2
- package/dist/cli/index.js +23 -18
- package/dist/cli/{info-crpftzxh.js → info-d74dr585.js} +1 -1
- package/dist/cli/{iosNativeWatcher-8w1gawg4.js → iosNativeWatcher-kggp7j9a.js} +4 -4
- package/dist/cli/{iosSimulatorController-5vhqvhg6.js → iosSimulatorController-xcxxfkzx.js} +4 -4
- package/dist/cli/{mobile-21vsmrjd.js → mobile-00bqw12c.js} +9 -9
- package/dist/cli/{ps-ha7bhpc6.js → ps-8y28kzmb.js} +1 -1
- package/dist/cli/{psTui-rxszyyz8.js → psTui-8e96mwgz.js} +1 -1
- package/dist/cli/{remoteMacProtocol-dybpgazw.js → remoteMacProtocol-r38jhg44.js} +4 -4
- package/dist/cli/{remove-pwfv4wsd.js → remove-3fd1z2hx.js} +4 -4
- package/dist/cli/{start-3bhf56tj.js → start-q08avhxg.js} +2 -2
- package/dist/cli/{typecheck-7n5599tp.js → typecheck-yj9s13eb.js} +1 -1
- package/dist/cli/{workspace-h7czpaqh.js → workspace-e3jt4as8.js} +1 -1
- package/dist/client/chunks/index-dk743xs6.js +146 -0
- package/dist/client/chunks/index-dk743xs6.js.map +10 -0
- package/dist/client/chunks/index-jrcwp722.js +12 -0
- package/dist/client/chunks/index-jrcwp722.js.map +10 -0
- package/dist/client/chunks/{islands-xj2n8nwf.js → islands-50dg63j9.js} +6 -3
- package/dist/client/chunks/{islands-xj2n8nwf.js.map → islands-50dg63j9.js.map} +3 -3
- package/dist/client/chunks/{react-pdg4325x.js → react-yq4ss9y4.js} +4 -3
- package/dist/client/chunks/{react-pdg4325x.js.map → react-yq4ss9y4.js.map} +2 -2
- package/dist/client/index.js +5 -4
- package/dist/client/index.js.map +2 -2
- package/dist/index.js +15 -3
- package/dist/index.js.map +6 -5
- package/dist/islands/index.js +14 -2
- package/dist/islands/index.js.map +5 -4
- package/dist/mobile/index.js +13 -3
- package/dist/mobile/index.js.map +4 -4
- package/dist/mobile/remoteMacAgentEntry.js +162 -162
- package/dist/react/index.js +14 -2
- package/dist/react/index.js.map +5 -4
- package/dist/react/server.js +14 -2
- package/dist/react/server.js.map +5 -4
- package/dist/src/cli/scripts/db.d.ts +2 -19
- package/dist/src/cli/scripts/dbEngines/detect.d.ts +8 -0
- package/dist/src/cli/scripts/dbEngines/mssql.d.ts +4 -0
- package/dist/src/cli/scripts/dbEngines/mysql.d.ts +2 -0
- package/dist/src/cli/scripts/dbEngines/open.d.ts +2 -0
- package/dist/src/cli/scripts/dbEngines/postgres.d.ts +2 -0
- package/dist/src/cli/scripts/dbEngines/sqlText.d.ts +13 -0
- package/dist/src/cli/scripts/dbEngines/sqlite.d.ts +4 -0
- package/dist/src/cli/scripts/dbEngines/values.d.ts +12 -0
- package/dist/src/cli/utils.d.ts +7 -0
- package/dist/src/client/browserTranslation.d.ts +3 -0
- package/dist/src/client/browserTranslationAttributes.d.ts +2 -0
- package/dist/src/utils/userAgentFunctions.d.ts +1 -1
- package/dist/src/vue/components/Image.d.ts +1 -1
- package/dist/svelte/index.js +14 -2
- package/dist/svelte/index.js.map +5 -4
- package/dist/svelte/server.js +14 -2
- package/dist/svelte/server.js.map +5 -4
- package/dist/types/db.d.ts +109 -0
- package/dist/vue/browser.js +75 -8
- package/dist/vue/browser.js.map +5 -4
- package/dist/vue/index.js +77 -9
- package/dist/vue/index.js.map +6 -5
- package/dist/vue/server.js +14 -2
- package/dist/vue/server.js.map +5 -4
- package/package.json +13 -1
- package/dist/cli/db-tejnwt9j.js +0 -238
- package/dist/client/chunks/index-5py90ctf.js +0 -87
- package/dist/client/chunks/index-5py90ctf.js.map +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
applyAbsoluteConfigEdit
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-3x5wpx5d.js";
|
|
5
5
|
import {
|
|
6
6
|
installFrameworkDependencies,
|
|
7
7
|
installPackages
|
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
} from "./index-5xfxd7xa.js";
|
|
13
13
|
import {
|
|
14
14
|
generatePage
|
|
15
|
-
} from "./index-
|
|
16
|
-
import"./index-
|
|
15
|
+
} from "./index-ddakkws4.js";
|
|
16
|
+
import"./index-j2nw3edf.js";
|
|
17
17
|
import {
|
|
18
18
|
configuredFrameworks,
|
|
19
19
|
frameworks,
|
|
@@ -21,13 +21,13 @@ import {
|
|
|
21
21
|
isFrameworkKey,
|
|
22
22
|
readAbsoluteConfigValues,
|
|
23
23
|
resolveProject
|
|
24
|
-
} from "./index-
|
|
24
|
+
} from "./index-keg69zm1.js";
|
|
25
25
|
import"./index-v1k46q3x.js";
|
|
26
26
|
import {
|
|
27
27
|
colors
|
|
28
28
|
} from "./index-8nym68py.js";
|
|
29
29
|
import"./index-06cmrcdq.js";
|
|
30
|
-
import"./index-
|
|
30
|
+
import"./index-00wfffav.js";
|
|
31
31
|
import"./index-wtfnv3n2.js";
|
|
32
32
|
import"./index-prwyfnn3.js";
|
|
33
33
|
import"./index-czwrxgdj.js";
|
package/dist/cli/{androidEmulatorController-v6chbhem.js → androidEmulatorController-sj141e1c.js}
RENAMED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
redactAbsoluteAndroidLog,
|
|
10
10
|
repairAbsoluteAndroidDevSession,
|
|
11
11
|
startAbsoluteAndroidDevSession
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-1ys3dnrs.js";
|
|
13
13
|
import"./index-18q9qc7f.js";
|
|
14
|
-
import"./index-
|
|
15
|
-
import"./index-
|
|
14
|
+
import"./index-255xs63d.js";
|
|
15
|
+
import"./index-00wfffav.js";
|
|
16
16
|
import"./index-wtfnv3n2.js";
|
|
17
17
|
import"./index-prwyfnn3.js";
|
|
18
18
|
import"./index-czwrxgdj.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
fingerprintAbsoluteAndroidNativeProject
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-1ys3dnrs.js";
|
|
5
5
|
import"./index-18q9qc7f.js";
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
6
|
+
import"./index-255xs63d.js";
|
|
7
|
+
import"./index-00wfffav.js";
|
|
8
8
|
import"./index-wtfnv3n2.js";
|
|
9
9
|
import"./index-prwyfnn3.js";
|
|
10
10
|
import"./index-czwrxgdj.js";
|
|
@@ -39210,8 +39210,16 @@ var renderSpaNotFound = async (framework, pageName, request) => {
|
|
|
39210
39210
|
});
|
|
39211
39211
|
};
|
|
39212
39212
|
|
|
39213
|
+
// src/client/browserTranslationAttributes.ts
|
|
39214
|
+
var TRANSLATABLE_ATTRIBUTES = [
|
|
39215
|
+
"alt",
|
|
39216
|
+
"title",
|
|
39217
|
+
"placeholder",
|
|
39218
|
+
"aria-label"
|
|
39219
|
+
];
|
|
39220
|
+
|
|
39213
39221
|
// src/core/browserTranslation.ts
|
|
39214
|
-
var BROWSER_TRANSLATION_BASELINE_SCRIPT = "window.__ABSOLUTE_SSR_TEXT_BASELINES__=new WeakMap();" + "{const r=document.body,b=window.__ABSOLUTE_SSR_TEXT_BASELINES__;" + 'if(r)for(const e of [r,...r.querySelectorAll("*")]){' + "const t=new Map();for(const [i,n]of[...e.childNodes].entries())" + 'if(n.nodeType===3)t.set(i,n.nodeValue??"");if(t.size)b.set(e,t);}}
|
|
39222
|
+
var BROWSER_TRANSLATION_BASELINE_SCRIPT = "window.__ABSOLUTE_SSR_TEXT_BASELINES__=new WeakMap();" + "window.__ABSOLUTE_SSR_ATTRIBUTE_BASELINES__=new WeakMap();" + "{const r=document.body,b=window.__ABSOLUTE_SSR_TEXT_BASELINES__," + "a=window.__ABSOLUTE_SSR_ATTRIBUTE_BASELINES__;" + 'if(r)for(const e of [r,...r.querySelectorAll("*")]){' + "const t=new Map();for(const [i,n]of[...e.childNodes].entries())" + 'if(n.nodeType===3)t.set(i,n.nodeValue??"");if(t.size)b.set(e,t);' + `const v=new Map();for(const k of ${JSON.stringify(TRANSLATABLE_ATTRIBUTES)}){` + "const s=e.getAttribute(k);if(s!==null)v.set(k,s);}if(v.size)a.set(e,v);}}";
|
|
39215
39223
|
|
|
39216
39224
|
// src/react/pageHandler.ts
|
|
39217
39225
|
var withRequestUrl = (props, url) => Object.assign(Object.create(null), props, { url });
|
|
@@ -39312,7 +39320,7 @@ var handleReactPageRequest = async (input) => {
|
|
|
39312
39320
|
|
|
39313
39321
|
// src/cli/utils.ts
|
|
39314
39322
|
import { execSync } from "child_process";
|
|
39315
|
-
import { existsSync as existsSync2, readFileSync as readFileSync2 } from "fs";
|
|
39323
|
+
import { existsSync as existsSync2, readFileSync as readFileSync2, realpathSync } from "fs";
|
|
39316
39324
|
var isWSLEnvironment = () => {
|
|
39317
39325
|
try {
|
|
39318
39326
|
const release = readFileSync2("/proc/version", "utf-8");
|
|
@@ -39326,6 +39334,35 @@ var safeKill = (pid) => {
|
|
|
39326
39334
|
process.kill(pid, "SIGTERM");
|
|
39327
39335
|
} catch {}
|
|
39328
39336
|
};
|
|
39337
|
+
var tryRead = (read) => {
|
|
39338
|
+
try {
|
|
39339
|
+
return { ok: true, value: read() };
|
|
39340
|
+
} catch {
|
|
39341
|
+
return { ok: false };
|
|
39342
|
+
}
|
|
39343
|
+
};
|
|
39344
|
+
var firstReadable = (fallback, ...readers) => {
|
|
39345
|
+
for (const read of readers) {
|
|
39346
|
+
const result = tryRead(read);
|
|
39347
|
+
if (result.ok)
|
|
39348
|
+
return result.value;
|
|
39349
|
+
}
|
|
39350
|
+
return fallback;
|
|
39351
|
+
};
|
|
39352
|
+
var processCommand = (pid) => firstReadable("", () => readFileSync2(`/proc/${pid}/cmdline`, "utf-8").split("\x00").join(" ").trim(), () => execSync(`ps -o command= -p ${pid}`, {
|
|
39353
|
+
encoding: "utf-8"
|
|
39354
|
+
}).trim());
|
|
39355
|
+
var listedDirectory = (pid) => {
|
|
39356
|
+
const listed = execSync(`lsof -a -p ${pid} -d cwd -Fn 2>/dev/null`, {
|
|
39357
|
+
encoding: "utf-8"
|
|
39358
|
+
});
|
|
39359
|
+
const line = listed.split(`
|
|
39360
|
+
`).find((entry) => entry.startsWith("n"));
|
|
39361
|
+
return line ? line.slice(1) : null;
|
|
39362
|
+
};
|
|
39363
|
+
var processDirectory = (pid) => firstReadable(null, () => realpathSync(`/proc/${pid}/cwd`), () => listedDirectory(pid));
|
|
39364
|
+
var ABSOLUTE_PROCESS = /@absolutejs[\\/+]absolute|serverBootstrap|[\\/]\.absolutejs[\\/]|\babsolute (?:dev|start|compile|preview)\b/;
|
|
39365
|
+
var isOwnStaleProcess = (command, directory, projectDirectory) => ABSOLUTE_PROCESS.test(command) && (directory === projectDirectory || command.includes(projectDirectory));
|
|
39329
39366
|
var killStaleProcesses = (port, logMessage) => {
|
|
39330
39367
|
let output;
|
|
39331
39368
|
try {
|
|
@@ -39338,18 +39375,31 @@ var killStaleProcesses = (port, logMessage) => {
|
|
|
39338
39375
|
if (!output) {
|
|
39339
39376
|
return;
|
|
39340
39377
|
}
|
|
39378
|
+
const report = (message) => {
|
|
39379
|
+
if (logMessage) {
|
|
39380
|
+
logMessage(message);
|
|
39381
|
+
return;
|
|
39382
|
+
}
|
|
39383
|
+
console.log(`\x1B[2m${formatTimestamp()}\x1B[0m \x1B[33m[cli]\x1B[0m \x1B[33m${message}\x1B[0m`);
|
|
39384
|
+
};
|
|
39341
39385
|
const pids = output.split(`
|
|
39342
39386
|
`).map(Number).filter((pid) => pid !== process.pid && pid > 0);
|
|
39343
39387
|
if (pids.length === 0) {
|
|
39344
39388
|
return;
|
|
39345
39389
|
}
|
|
39346
|
-
|
|
39347
|
-
const
|
|
39348
|
-
|
|
39349
|
-
|
|
39350
|
-
|
|
39351
|
-
}
|
|
39352
|
-
|
|
39390
|
+
const projectDirectory = realpathSync(process.cwd());
|
|
39391
|
+
const holders = pids.map((pid) => ({
|
|
39392
|
+
command: processCommand(pid),
|
|
39393
|
+
directory: processDirectory(pid),
|
|
39394
|
+
pid
|
|
39395
|
+
}));
|
|
39396
|
+
const own = holders.filter((holder) => isOwnStaleProcess(holder.command, holder.directory, projectDirectory));
|
|
39397
|
+
const foreign = holders.filter((holder) => !own.includes(holder));
|
|
39398
|
+
own.forEach((holder) => safeKill(holder.pid));
|
|
39399
|
+
if (own.length > 0)
|
|
39400
|
+
report(`Killed ${own.length} stale ${own.length === 1 ? "process" : "processes"} on port ${port}.`);
|
|
39401
|
+
for (const holder of foreign)
|
|
39402
|
+
report(`Port ${port} is in use by another process (pid ${holder.pid}: ${holder.command.slice(0, 120) || "unknown"}). It was left running; stop it or choose another port.`);
|
|
39353
39403
|
};
|
|
39354
39404
|
var openUrlInBrowser = (url, onError) => {
|
|
39355
39405
|
if (process.env.ABSOLUTE_NO_OPEN)
|