@absolutejs/absolute 0.20.0-beta.116 → 0.20.0-beta.117
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 +11 -0
- package/changelog.json +24 -1
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/build.js +9 -4
- package/dist/build.js.map +5 -4
- package/dist/cli/{androidEmulatorController-nybhzc6c.js → androidEmulatorController-v6chbhem.js} +2 -2
- package/dist/cli/{androidNativeWatcher-2930tb8c.js → androidNativeWatcher-mgqws6ag.js} +2 -2
- package/dist/cli/{compile-kbhxgjat.js → compile-5m830csy.js} +2 -2
- package/dist/cli/{dev-daa7tdht.js → dev-ww30tdrv.js} +10 -7
- package/dist/cli/{expoProject-kcfcmfba.js → expoProject-w2pzjwnx.js} +1 -1
- package/dist/cli/{index-28pbrd3q.js → index-18q9qc7f.js} +15 -2
- package/dist/cli/{index-vjepnxr0.js → index-5268nwjx.js} +1 -1
- package/dist/cli/{index-5skbydh0.js → index-hneb973j.js} +1 -1
- package/dist/cli/{index-82wpxhvv.js → index-k8r00xh9.js} +1 -1
- package/dist/cli/{index-bhcxtf1x.js → index-nxcwg9ma.js} +268 -141
- package/dist/cli/{index-qr0pc777.js → index-wtyg9cy0.js} +1 -1
- package/dist/cli/index.js +5 -5
- package/dist/cli/{iosNativeWatcher-t6gv0p1w.js → iosNativeWatcher-8w1gawg4.js} +2 -2
- package/dist/cli/{iosSimulatorController-5n2a9fxv.js → iosSimulatorController-5vhqvhg6.js} +2 -2
- package/dist/cli/{mobile-03zwncxx.js → mobile-21vsmrjd.js} +28 -39
- package/dist/cli/{start-r606d5v9.js → start-3bhf56tj.js} +3 -3
- package/dist/index.js +12 -6
- package/dist/index.js.map +6 -5
- package/dist/mobile/index.js +207 -100
- package/dist/mobile/index.js.map +6 -5
- package/dist/mobile/remoteMacAgentEntry.js +251 -184
- package/dist/src/dev/serverEntryCopies.d.ts +2 -0
- package/dist/src/mobile/capacitorProject.d.ts +4 -0
- package/dist/src/mobile/nativePackages.d.ts +10 -0
- package/package.json +4 -2
package/dist/cli/{androidEmulatorController-nybhzc6c.js → androidEmulatorController-v6chbhem.js}
RENAMED
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
redactAbsoluteAndroidLog,
|
|
10
10
|
repairAbsoluteAndroidDevSession,
|
|
11
11
|
startAbsoluteAndroidDevSession
|
|
12
|
-
} from "./index-
|
|
13
|
-
import"./index-
|
|
12
|
+
} from "./index-wtyg9cy0.js";
|
|
13
|
+
import"./index-18q9qc7f.js";
|
|
14
14
|
import"./index-knt92dm8.js";
|
|
15
15
|
import"./index-t84wxk1p.js";
|
|
16
16
|
import"./index-wtfnv3n2.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
fingerprintAbsoluteAndroidNativeProject
|
|
4
|
-
} from "./index-
|
|
5
|
-
import"./index-
|
|
4
|
+
} from "./index-wtyg9cy0.js";
|
|
5
|
+
import"./index-18q9qc7f.js";
|
|
6
6
|
import"./index-knt92dm8.js";
|
|
7
7
|
import"./index-t84wxk1p.js";
|
|
8
8
|
import"./index-wtfnv3n2.js";
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
createIslandRegistryDefinitionPlugin,
|
|
16
16
|
finalizeAbsoluteMobileCompatibilityBuild,
|
|
17
17
|
resolveServerBundleExternals
|
|
18
|
-
} from "./index-
|
|
18
|
+
} from "./index-k8r00xh9.js";
|
|
19
19
|
import {
|
|
20
20
|
loadIslandRegistryBuildInfo
|
|
21
21
|
} from "./index-bzs19w3r.js";
|
|
@@ -36,7 +36,7 @@ import"./index-w5vswatm.js";
|
|
|
36
36
|
import {
|
|
37
37
|
normalizeAbsoluteMobileConfig
|
|
38
38
|
} from "./index-exdd5k1g.js";
|
|
39
|
-
import"./index-
|
|
39
|
+
import"./index-nxcwg9ma.js";
|
|
40
40
|
import {
|
|
41
41
|
ABSOLUTE_NATIVE_AUTH_CLIENTS_ENV,
|
|
42
42
|
installAbsoluteMobileAuthEnvironment
|
|
@@ -65,6 +65,9 @@ import {
|
|
|
65
65
|
__require
|
|
66
66
|
} from "./index-mywsk201.js";
|
|
67
67
|
|
|
68
|
+
// src/dev/serverEntryCopies.ts
|
|
69
|
+
var isAbsoluteServerEntryCopyPath = (path) => /(?:^|[/\\])\.absolutejs-hmr-/.test(path);
|
|
70
|
+
|
|
68
71
|
// src/cli/scripts/dev.ts
|
|
69
72
|
var {$, env } = globalThis.Bun;
|
|
70
73
|
import { spawn as nodeSpawn } from "child_process";
|
|
@@ -1286,16 +1289,16 @@ var loadAbsoluteMobileDevModules = async () => {
|
|
|
1286
1289
|
expoNativeWatcher
|
|
1287
1290
|
] = await Promise.all([
|
|
1288
1291
|
import("./config-rjeexvza.js"),
|
|
1289
|
-
import("./expoProject-
|
|
1292
|
+
import("./expoProject-w2pzjwnx.js"),
|
|
1290
1293
|
import("./expoDevController-zz516pdd.js"),
|
|
1291
1294
|
import("./nativeAuth-zx4tsb1f.js"),
|
|
1292
|
-
import("./androidEmulatorController-
|
|
1295
|
+
import("./androidEmulatorController-v6chbhem.js"),
|
|
1293
1296
|
import("./emulatorDoctor-y2nqmaha.js"),
|
|
1294
1297
|
import("./emulatorInstaller-3shdna4g.js"),
|
|
1295
|
-
import("./androidNativeWatcher-
|
|
1296
|
-
import("./iosSimulatorController-
|
|
1298
|
+
import("./androidNativeWatcher-mgqws6ag.js"),
|
|
1299
|
+
import("./iosSimulatorController-5vhqvhg6.js"),
|
|
1297
1300
|
import("./remoteMacProtocol-dybpgazw.js"),
|
|
1298
|
-
import("./iosNativeWatcher-
|
|
1301
|
+
import("./iosNativeWatcher-8w1gawg4.js"),
|
|
1299
1302
|
import("./expoNativeWatcher-rmc95bak.js")
|
|
1300
1303
|
]);
|
|
1301
1304
|
return {
|
|
@@ -2610,7 +2613,7 @@ var dev = async (serverEntry, configPath, options = {}) => {
|
|
|
2610
2613
|
"generated",
|
|
2611
2614
|
"indexes"
|
|
2612
2615
|
]);
|
|
2613
|
-
const isAtomicWriteTemp = (filename) => filename.endsWith(".log") || filename.endsWith(".tmp") || filename.includes(".tmp.") || filename.endsWith("~") || filename.startsWith(".#") || filename
|
|
2616
|
+
const isAtomicWriteTemp = (filename) => filename.endsWith(".log") || filename.endsWith(".tmp") || filename.includes(".tmp.") || filename.endsWith("~") || filename.startsWith(".#") || isAbsoluteServerEntryCopyPath(filename) || /^sed[A-Za-z0-9]{6,}$/.test(filename) || filename === "4913";
|
|
2614
2617
|
const serverEntryBasename = absServerEntry.slice(absServerEntry.lastIndexOf("/") + 1);
|
|
2615
2618
|
const configBasename = configPath ? configPath.slice(configPath.lastIndexOf("/") + 1) : "absolute.config.ts";
|
|
2616
2619
|
const ATOMIC_RECOVERY_WINDOW_MS = 1000;
|
|
@@ -2668,7 +2671,7 @@ var dev = async (serverEntry, configPath, options = {}) => {
|
|
|
2668
2671
|
}, ATOMIC_RECOVERY_DELAY_MS);
|
|
2669
2672
|
};
|
|
2670
2673
|
const watcher = watch(serverEntryDir, { recursive: false }, (event, filename) => {
|
|
2671
|
-
if (!filename)
|
|
2674
|
+
if (!filename || isAbsoluteServerEntryCopyPath(filename))
|
|
2672
2675
|
return;
|
|
2673
2676
|
if (isAtomicWriteTemp(filename)) {
|
|
2674
2677
|
if (event === "rename")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
// src/mobile/capacitorProject.ts
|
|
3
|
-
import { access, readFile, rename, writeFile } from "fs/promises";
|
|
3
|
+
import { access, mkdir, readFile, rename, writeFile } from "fs/promises";
|
|
4
4
|
import { relative, resolve } from "path";
|
|
5
5
|
var CONFIG_FILE = "capacitor.config.ts";
|
|
6
6
|
var portableRelative = (root, path) => relative(root, path).replaceAll("\\", "/");
|
|
@@ -28,6 +28,19 @@ var exists = async (path) => {
|
|
|
28
28
|
return false;
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
|
+
var prepareAbsoluteCapacitorInitialization = async (config) => {
|
|
32
|
+
await mkdir(config.bundleDirectory, { recursive: true });
|
|
33
|
+
try {
|
|
34
|
+
await writeFile(resolve(config.bundleDirectory, "index.html"), '<!doctype html><html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>App preparation</title><body><main><h1>Your native project is ready</h1><p>Build your AbsoluteJS mobile bundle before running this app.</p></main></body></html>', { flag: "wx" });
|
|
35
|
+
} catch (error) {
|
|
36
|
+
if (!(error instanceof Error && ("code" in error) && error.code === "EEXIST"))
|
|
37
|
+
throw error;
|
|
38
|
+
}
|
|
39
|
+
return Promise.all(config.platforms.map(async (platform) => ({
|
|
40
|
+
command: await exists(resolve(config.nativeProjectDirectory, platform)) ? "sync" : "add",
|
|
41
|
+
platform
|
|
42
|
+
})));
|
|
43
|
+
};
|
|
31
44
|
var writeAbsoluteCapacitorConfig = async (config, options) => {
|
|
32
45
|
const projectRoot = resolve(options.projectRoot);
|
|
33
46
|
const destination = resolve(projectRoot, CONFIG_FILE);
|
|
@@ -46,4 +59,4 @@ var writeAbsoluteCapacitorConfig = async (config, options) => {
|
|
|
46
59
|
return { changed: true, path: destination };
|
|
47
60
|
};
|
|
48
61
|
|
|
49
|
-
export { writeAbsoluteCapacitorConfig };
|
|
62
|
+
export { prepareAbsoluteCapacitorInitialization, writeAbsoluteCapacitorConfig };
|