@absolutejs/absolute 0.20.0-beta.87 → 0.20.0-beta.88
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/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/cli/index.js +1 -1
- package/dist/cli/{mobile-c94a5y9k.js → mobile-bg1jy34n.js} +10 -5
- package/dist/mobile/index.js +10 -5
- package/dist/mobile/index.js.map +3 -3
- package/dist/mobile/shellAuth.js +79 -1
- package/dist/mobile/shellUpdate.js +50 -11
- package/dist/src/mobile/shellAuth.d.ts +8 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
var __require = import.meta.require;
|
|
3
3
|
|
|
4
|
-
// .angular-partial-tmp-
|
|
4
|
+
// .angular-partial-tmp-RPnula/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-RPnula/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-RPnula/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
|
@@ -203,7 +203,7 @@ if (command === "dev") {
|
|
|
203
203
|
sendTelemetryEvent("cli:command", {
|
|
204
204
|
command: `mobile:${workspaceCommand ?? "unknown"}`
|
|
205
205
|
});
|
|
206
|
-
const { runMobile } = await import("./mobile-
|
|
206
|
+
const { runMobile } = await import("./mobile-bg1jy34n.js");
|
|
207
207
|
try {
|
|
208
208
|
await runMobile(args);
|
|
209
209
|
} catch (error) {
|
|
@@ -17519,9 +17519,12 @@ public final class AbsoluteMobileUpdateWatchdogPlugin: CAPPlugin, CAPBridgedPlug
|
|
|
17519
17519
|
private static func recover(_ reason: String) -> (String, String?, Bool)? {
|
|
17520
17520
|
var value = state()
|
|
17521
17521
|
guard let release = value["pendingRelease"] as? String, validRelease(release) else { return nil }
|
|
17522
|
-
let previous = value["previousPath"] as? String
|
|
17523
17522
|
let active = value["activeRelease"] as? String
|
|
17524
|
-
let
|
|
17523
|
+
let activePath = active.flatMap { candidate in
|
|
17524
|
+
validRelease(candidate) ? snapshotRoot()?.appendingPathComponent(candidate, isDirectory: true).path : nil
|
|
17525
|
+
}
|
|
17526
|
+
let hasActive = activePath.map { FileManager.default.fileExists(atPath: $0) } ?? false
|
|
17527
|
+
let previous = hasActive ? activePath : nil
|
|
17525
17528
|
let started = value["pendingStartedAt"] as? Double ?? Date().timeIntervalSince1970 * 1000
|
|
17526
17529
|
let duration = max(0, Date().timeIntervalSince1970 * 1000 - started)
|
|
17527
17530
|
value.removeValue(forKey: "pendingRelease")
|
|
@@ -17693,8 +17696,10 @@ public final class AbsoluteMobileUpdateWatchdogPlugin extends Plugin {
|
|
|
17693
17696
|
JSONObject value = state(context);
|
|
17694
17697
|
String release = value.optString("pendingRelease", "");
|
|
17695
17698
|
if (!validRelease(release)) return null;
|
|
17696
|
-
String
|
|
17697
|
-
|
|
17699
|
+
String activeRelease = value.optString("activeRelease", "");
|
|
17700
|
+
File activePath = new File(snapshotRoot(context), activeRelease);
|
|
17701
|
+
boolean hasActive = validRelease(activeRelease) && activePath.isDirectory();
|
|
17702
|
+
String previous = hasActive ? activePath.getAbsolutePath() : "";
|
|
17698
17703
|
long started = value.optLong("pendingStartedAt", System.currentTimeMillis());
|
|
17699
17704
|
long duration = Math.max(0, System.currentTimeMillis() - started);
|
|
17700
17705
|
value.remove("pendingRelease");
|
|
@@ -18888,7 +18893,7 @@ var connectTarget = async (target) => {
|
|
|
18888
18893
|
};
|
|
18889
18894
|
var isTransientEvaluationError = (error) => {
|
|
18890
18895
|
const message = error instanceof Error ? error.message : String(error);
|
|
18891
|
-
return /execution context|cannot find context|inspected target navigated|context.*destroyed/iu.test(message);
|
|
18896
|
+
return /execution context|cannot find context|inspected target navigated|context.*destroyed|CDP Runtime\.evaluate timed out/iu.test(message);
|
|
18892
18897
|
};
|
|
18893
18898
|
var createWaitFor = (evaluate) => async (expression, options = {}) => {
|
|
18894
18899
|
const timeoutMs = options.timeoutMs ?? CDP_COMMAND_TIMEOUT_MS;
|
package/dist/mobile/index.js
CHANGED
|
@@ -32004,9 +32004,12 @@ public final class AbsoluteMobileUpdateWatchdogPlugin: CAPPlugin, CAPBridgedPlug
|
|
|
32004
32004
|
private static func recover(_ reason: String) -> (String, String?, Bool)? {
|
|
32005
32005
|
var value = state()
|
|
32006
32006
|
guard let release = value["pendingRelease"] as? String, validRelease(release) else { return nil }
|
|
32007
|
-
let previous = value["previousPath"] as? String
|
|
32008
32007
|
let active = value["activeRelease"] as? String
|
|
32009
|
-
let
|
|
32008
|
+
let activePath = active.flatMap { candidate in
|
|
32009
|
+
validRelease(candidate) ? snapshotRoot()?.appendingPathComponent(candidate, isDirectory: true).path : nil
|
|
32010
|
+
}
|
|
32011
|
+
let hasActive = activePath.map { FileManager.default.fileExists(atPath: $0) } ?? false
|
|
32012
|
+
let previous = hasActive ? activePath : nil
|
|
32010
32013
|
let started = value["pendingStartedAt"] as? Double ?? Date().timeIntervalSince1970 * 1000
|
|
32011
32014
|
let duration = max(0, Date().timeIntervalSince1970 * 1000 - started)
|
|
32012
32015
|
value.removeValue(forKey: "pendingRelease")
|
|
@@ -32178,8 +32181,10 @@ public final class AbsoluteMobileUpdateWatchdogPlugin extends Plugin {
|
|
|
32178
32181
|
JSONObject value = state(context);
|
|
32179
32182
|
String release = value.optString("pendingRelease", "");
|
|
32180
32183
|
if (!validRelease(release)) return null;
|
|
32181
|
-
String
|
|
32182
|
-
|
|
32184
|
+
String activeRelease = value.optString("activeRelease", "");
|
|
32185
|
+
File activePath = new File(snapshotRoot(context), activeRelease);
|
|
32186
|
+
boolean hasActive = validRelease(activeRelease) && activePath.isDirectory();
|
|
32187
|
+
String previous = hasActive ? activePath.getAbsolutePath() : "";
|
|
32183
32188
|
long started = value.optLong("pendingStartedAt", System.currentTimeMillis());
|
|
32184
32189
|
long duration = Math.max(0, System.currentTimeMillis() - started);
|
|
32185
32190
|
value.remove("pendingRelease");
|
|
@@ -40308,5 +40313,5 @@ export {
|
|
|
40308
40313
|
writeAbsoluteMobileUpdateRegistry
|
|
40309
40314
|
};
|
|
40310
40315
|
|
|
40311
|
-
//# debugId=
|
|
40316
|
+
//# debugId=40C25ACB8CEC459864756E2164756E21
|
|
40312
40317
|
//# sourceMappingURL=index.js.map
|