@capgo/cli 8.78.0 → 8.80.0
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/README.md +1 -0
- package/dist/index.js +711 -711
- package/dist/notify-app-ready-worker.js +1 -1
- package/dist/onboarding-worker.js +1 -1
- package/dist/package.json +3 -2
- package/dist/src/build/request.d.ts +6 -0
- package/dist/src/key/capgoAppIdPrompt.d.ts +22 -0
- package/dist/src/key.d.ts +1 -0
- package/dist/src/sdk.js +368 -368
- package/dist/updater-installed-worker.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ExtConfigPairs } from '../config';
|
|
2
|
+
export declare const CAPGO_APP_ID_OPT_IN_MESSAGE = "Create a Capgo app with a random app ID and save it as CapacitorUpdater.appId?";
|
|
3
|
+
export interface CapgoAppIdPromptDeps {
|
|
4
|
+
confirm: (message: string) => Promise<boolean | symbol>;
|
|
5
|
+
logSuccess: (message: string) => void;
|
|
6
|
+
logWarn: (message: string) => void;
|
|
7
|
+
loadConfig: () => Promise<ExtConfigPairs>;
|
|
8
|
+
writeConfig: (config: ExtConfigPairs) => Promise<void>;
|
|
9
|
+
findApiKey: () => string | undefined;
|
|
10
|
+
createApp: (appId: string, apikey: string) => Promise<void>;
|
|
11
|
+
generateRandomAppId: () => string;
|
|
12
|
+
}
|
|
13
|
+
export declare function generateRandomCapgoAppId(): string;
|
|
14
|
+
export declare function persistCapgoAppIdToCapacitorConfig(appId: string, deps?: Pick<CapgoAppIdPromptDeps, 'loadConfig' | 'writeConfig' | 'logWarn'>): Promise<boolean>;
|
|
15
|
+
export type OfferCapgoAppIdPromptOutcome = 'skipped' | 'declined' | 'failed' | 'saved';
|
|
16
|
+
export interface OfferCapgoAppIdPromptOptions {
|
|
17
|
+
skip?: boolean;
|
|
18
|
+
silent?: boolean;
|
|
19
|
+
interactive?: boolean;
|
|
20
|
+
deps?: Partial<CapgoAppIdPromptDeps>;
|
|
21
|
+
}
|
|
22
|
+
export declare function offerCapgoAppIdPrompt(options?: OfferCapgoAppIdPromptOptions): Promise<OfferCapgoAppIdPromptOutcome>;
|
package/dist/src/key.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ interface Options {
|
|
|
8
8
|
force?: boolean;
|
|
9
9
|
setupChannel?: boolean;
|
|
10
10
|
keyDir?: string;
|
|
11
|
+
skipCapgoAppIdPrompt?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare function saveKeyInternal(options: SaveOptions, silent?: boolean): Promise<boolean>;
|
|
13
14
|
export declare function deleteOldPrivateKeyInternal(options: Options, silent?: boolean): Promise<boolean>;
|