@allwright.dev/core 0.0.48 → 0.0.49
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/bootstrap.js +2 -3
- package/dist/mobile.js +1 -2
- package/package.json +1 -1
package/dist/bootstrap.js
CHANGED
|
@@ -12,7 +12,7 @@ const ALLWRIGHT_HOME_ENV_VAR = "ALLWRIGHT_HOME";
|
|
|
12
12
|
const ALLWRIGHT_REPOSITORY_ENV_VAR = "ALLWRIGHT_REPOSITORY";
|
|
13
13
|
const ALLWRIGHT_VERSION_ENV_VAR = "ALLWRIGHT_VERSION";
|
|
14
14
|
const DEFAULT_RELEASE_REPOSITORY = "allwright-dev/allwright";
|
|
15
|
-
const DEFAULT_RELEASE_VERSION = "0.0.
|
|
15
|
+
const DEFAULT_RELEASE_VERSION = "0.0.49";
|
|
16
16
|
const STARTUP_TIMEOUT_MS = 20_000;
|
|
17
17
|
const PING_TIMEOUT_MS = 1_000;
|
|
18
18
|
const PROTO_ROOT = fileURLToPath(new URL("../proto/", import.meta.url));
|
|
@@ -49,12 +49,11 @@ export async function ensureRuntimeReady(serverAddr) {
|
|
|
49
49
|
managedServerStderr = "";
|
|
50
50
|
managedServerSpawnError = null;
|
|
51
51
|
}
|
|
52
|
-
const cliPath = await ensureCliAvailable(expectedVersion);
|
|
53
|
-
ensurePluginsInstalledWithCli(cliPath, expectedVersion, ["web"]);
|
|
54
52
|
let resolvedServerAddr = serverAddr;
|
|
55
53
|
if (status && status.version !== expectedVersion) {
|
|
56
54
|
resolvedServerAddr = await allocateManagedServerAddr(serverAddr);
|
|
57
55
|
}
|
|
56
|
+
const cliPath = await ensureCliAvailable(expectedVersion);
|
|
58
57
|
managedServer = spawn(cliPath, ["serve", "--listen-addr", cliListenAddr(resolvedServerAddr)], {
|
|
59
58
|
stdio: ["ignore", "pipe", "pipe"],
|
|
60
59
|
});
|
package/dist/mobile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { invokePlugin } from "./bootstrap.js";
|
|
2
2
|
import { chainMobileSelectorForTransport, normalizeMobileSelectorForTransport } from "./mobileSelectors.js";
|
|
3
3
|
function timeoutMsOf(options) {
|
|
4
4
|
return options?.timeoutMs;
|
|
@@ -107,7 +107,6 @@ class MobileAndroidDeviceImpl {
|
|
|
107
107
|
}
|
|
108
108
|
class MobileAndroidSurfaceImpl {
|
|
109
109
|
async connect(options = {}) {
|
|
110
|
-
await ensurePluginsInstalled(["mobile-android"]);
|
|
111
110
|
const connectInfo = await invokeAndroidExpected("connect", {
|
|
112
111
|
command: "connect",
|
|
113
112
|
platform: "android",
|