dsh-mobile 0.6.3 → 0.6.4
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 +22 -0
- package/CONTRIBUTORS.md +10 -2
- package/README.en.md +6 -2
- package/README.md +6 -2
- package/THIRD_PARTY_NOTICES.md +29 -1
- package/apps/mobile/README.md +11 -3
- package/cordis.patch.yml +5 -2
- package/docs/ATTACH_EXISTING_FRPS.en.md +1 -1
- package/docs/ATTACH_EXISTING_FRPS.md +1 -1
- package/docs/MOBILE_COMPOSER_TOOLBAR.en.md +8 -0
- package/docs/MOBILE_COMPOSER_TOOLBAR.md +8 -0
- package/docs/SELF_HOSTED_FRP.en.md +3 -1
- package/docs/SELF_HOSTED_FRP.md +3 -1
- package/docs/SLOW_CONNECTIONS.en.md +6 -0
- package/docs/SLOW_CONNECTIONS.md +6 -0
- package/lib/cli.js +139 -19
- package/lib/cli.js.map +1 -1
- package/lib/client.js +400 -9
- package/lib/client.js.map +1 -1
- package/lib/index.d.mts +10 -5
- package/lib/index.mjs +571 -291
- package/lib/index.mjs.map +1 -1
- package/package.json +3 -1
- package/packages/question-fixes/package.json +1 -1
package/lib/index.d.mts
CHANGED
|
@@ -465,8 +465,8 @@ export declare class JsonMobileAccessControlStore implements MobileAccessControl
|
|
|
465
465
|
private readonly file;
|
|
466
466
|
private readonly initiallyEnabled;
|
|
467
467
|
constructor(file: string, initiallyEnabled: boolean);
|
|
468
|
-
/**
|
|
469
|
-
disableIfPresent(): Promise<
|
|
468
|
+
/** Disable an existing preference, returning the state only after private-file preparation completes. */
|
|
469
|
+
disableIfPresent(): Promise<MobileAccessControlState>;
|
|
470
470
|
load(): Promise<MobileAccessControlState>;
|
|
471
471
|
save(state: MobileAccessControlState): Promise<void>;
|
|
472
472
|
}
|
|
@@ -1612,7 +1612,12 @@ interface RemoteProviderStatus {
|
|
|
1612
1612
|
}
|
|
1613
1613
|
/** Lifecycle shared by selectable remote providers. */
|
|
1614
1614
|
interface RemoteProviderController {
|
|
1615
|
-
|
|
1615
|
+
/**
|
|
1616
|
+
* Initialize from the current startup preparation, without retaining a permission-success cache.
|
|
1617
|
+
* @param initialState - Fresh state prepared by this controller's own store; omission reads that store.
|
|
1618
|
+
* @returns Completion of the normal provider initialization and optional startup.
|
|
1619
|
+
*/
|
|
1620
|
+
initialize(initialState?: MobileAccessControlState): Promise<void>;
|
|
1616
1621
|
gateway(): MobileAccessGateway | undefined;
|
|
1617
1622
|
status(): RemoteProviderStatus;
|
|
1618
1623
|
setEnabled(enabled: boolean): Promise<RemoteProviderStatus>;
|
|
@@ -1720,7 +1725,7 @@ export declare class FrpController implements RemoteProviderController {
|
|
|
1720
1725
|
private ingressCertificateTimer;
|
|
1721
1726
|
constructor(options: FrpControllerOptions);
|
|
1722
1727
|
/** Restore the remembered FRP switch without changing LAN or other providers. */
|
|
1723
|
-
initialize(): Promise<void>;
|
|
1728
|
+
initialize(initialState?: MobileAccessControlState): Promise<void>;
|
|
1724
1729
|
/** Return the active FRP-backed DSH gateway. */
|
|
1725
1730
|
gateway(): MobileAccessGateway | undefined;
|
|
1726
1731
|
/** Return state safe for the desktop control UI. */
|
|
@@ -2085,7 +2090,7 @@ export declare class CloudflaredController implements RemoteProviderController {
|
|
|
2085
2090
|
private startupRounds;
|
|
2086
2091
|
constructor(options: CloudflaredControllerOptions);
|
|
2087
2092
|
/** Restore the remembered cloudflared switch independently from LAN and other providers. */
|
|
2088
|
-
initialize(): Promise<void>;
|
|
2093
|
+
initialize(initialState?: MobileAccessControlState): Promise<void>;
|
|
2089
2094
|
/** Return the active cloudflared-backed DSH gateway. */
|
|
2090
2095
|
gateway(): MobileAccessGateway | undefined;
|
|
2091
2096
|
/** Return state safe for the desktop control UI. */
|