extension 4.0.21 → 4.0.22
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/49.cjs +21 -7
- package/dist/browsers.cjs +152 -94
- package/dist/cli.cjs +218 -134
- package/dist/extension/browsers/browsers-lib/banner.d.ts +5 -0
- package/dist/extension/browsers/browsers-lib/messages.d.ts +4 -1
- package/dist/extension/browsers/browsers-lib/shared-utils.d.ts +7 -0
- package/dist/extension/browsers/run-chromium/chromium-types.d.ts +2 -0
- package/dist/extension/helpers/cli-failure.d.ts +1 -0
- package/dist/extension/helpers/messages.d.ts +1 -1
- package/package.json +4 -4
|
@@ -8,6 +8,7 @@ type HostPort = {
|
|
|
8
8
|
host?: string;
|
|
9
9
|
port?: number | string;
|
|
10
10
|
};
|
|
11
|
+
type BinaryProvenance = 'managed' | 'pinned' | 'system' | 'snapshot';
|
|
11
12
|
export declare function expectedChromiumExtensionId(outPath: string): string;
|
|
12
13
|
export declare function printDevBannerOnce(opts: {
|
|
13
14
|
browser: BrowserType;
|
|
@@ -21,6 +22,8 @@ export declare function printDevBannerOnce(opts: {
|
|
|
21
22
|
};
|
|
22
23
|
browserVersionLine?: string;
|
|
23
24
|
profilePath?: string;
|
|
25
|
+
binaryPath?: string;
|
|
26
|
+
binaryProvenance?: BinaryProvenance;
|
|
24
27
|
}): Promise<boolean>;
|
|
25
28
|
export declare function printProdBannerOnce(opts: {
|
|
26
29
|
browser: BrowserType;
|
|
@@ -35,5 +38,7 @@ export declare function printProdBannerOnce(opts: {
|
|
|
35
38
|
readyPath?: string;
|
|
36
39
|
includeRunId?: boolean;
|
|
37
40
|
profilePath?: string;
|
|
41
|
+
binaryPath?: string;
|
|
42
|
+
binaryProvenance?: BinaryProvenance;
|
|
38
43
|
}): Promise<boolean>;
|
|
39
44
|
export {};
|
|
@@ -10,7 +10,6 @@ export declare function firefoxRdpRuntimeCapabilitySummary(state: 'available' |
|
|
|
10
10
|
export declare function skippingBrowserLaunchDueToCompileErrors(): string;
|
|
11
11
|
export declare function browserNotInstalledError(browser: Browser, browserBinaryLocation: string): string;
|
|
12
12
|
export declare function usingManagedChromiumFamilyFallback(requestedBrowser: Browser, fallbackBrowser: Browser, binaryPath: string): string;
|
|
13
|
-
export declare function resolvedBrowserBinary(browser: Browser, binaryPath: string, versionLine?: string): string;
|
|
14
13
|
export declare function preferringSystemBrowserOverSnapshot(systemBinary: string, snapshotBinary: string): string;
|
|
15
14
|
export declare function mv2NotSupportedByChromium(extensionPath: string): string;
|
|
16
15
|
export declare function mv3BackgroundScriptsNotSupportedByChromium(extensionPath: string): string;
|
|
@@ -117,10 +116,14 @@ export interface DevClientMessage {
|
|
|
117
116
|
management?: DevClientManagementInfo;
|
|
118
117
|
};
|
|
119
118
|
}
|
|
119
|
+
export declare function collapseHomeDirInCardValue(value: string): string;
|
|
120
|
+
export declare function binaryProvenanceNote(provenance?: 'managed' | 'pinned' | 'system' | 'snapshot'): string;
|
|
120
121
|
export declare function runningInDevelopment(manifest: DevManifestInfo, browser: BrowserType, message: DevClientMessage, browserVersionLine?: string, updateSuffix?: string, opts?: {
|
|
121
122
|
includeExtensionId?: boolean;
|
|
122
123
|
runLabel?: string;
|
|
123
124
|
profilePath?: string;
|
|
125
|
+
binaryPath?: string;
|
|
126
|
+
binaryProvenance?: 'managed' | 'pinned' | 'system' | 'snapshot';
|
|
124
127
|
}): string;
|
|
125
128
|
export declare function emptyLine(): string;
|
|
126
129
|
export declare function separatorLine(): string;
|
|
@@ -14,6 +14,13 @@ export declare function chooseChromiumBinaryPreferringStable(opts: {
|
|
|
14
14
|
managedCacheRoot?: string;
|
|
15
15
|
preferManagedSnapshot?: boolean;
|
|
16
16
|
}): ChromiumBinaryChoice;
|
|
17
|
+
export type BinaryProvenance = 'managed' | 'pinned' | 'system' | 'snapshot';
|
|
18
|
+
export declare function classifyBinaryProvenance(opts: {
|
|
19
|
+
binaryPath: string;
|
|
20
|
+
managedCacheRoot: string;
|
|
21
|
+
pinnedByFlag?: boolean;
|
|
22
|
+
usedManagedSnapshot?: boolean;
|
|
23
|
+
}): BinaryProvenance;
|
|
17
24
|
export declare function parseEnvBrowserFlags(raw: string | undefined | null): string[];
|
|
18
25
|
export declare function isHeadlessGuardRequested(env?: NodeJS.ProcessEnv): boolean;
|
|
19
26
|
export declare function mergeChromiumFeatureSwitches(flags: string[]): string[];
|
|
@@ -41,6 +41,8 @@ export interface ChromiumPluginRuntime extends ChromiumLaunchOptions {
|
|
|
41
41
|
bannerPrintedOnce?: boolean;
|
|
42
42
|
cdpController?: Controller;
|
|
43
43
|
browserVersionLine?: string;
|
|
44
|
+
binaryPath?: string;
|
|
45
|
+
binaryProvenance?: 'managed' | 'pinned' | 'system' | 'snapshot';
|
|
44
46
|
extensionLoadRefused?: string;
|
|
45
47
|
printBannerOnRecovery?: () => Promise<void>;
|
|
46
48
|
}
|
|
@@ -10,6 +10,7 @@ interface CommanderErrorLike {
|
|
|
10
10
|
export declare function isCommanderError(err: unknown): err is CommanderErrorLike;
|
|
11
11
|
export declare function commanderExitCode(err: CommanderErrorLike): number;
|
|
12
12
|
export declare function commanderErrorEnvelope(err: CommanderErrorLike, command: string): ReturnType<typeof ENVELOPE.fail>;
|
|
13
|
+
export declare function commanderHumanError(err: CommanderErrorLike, command: string): string;
|
|
13
14
|
export declare function internalErrorEnvelope(err: unknown, command: string): ReturnType<typeof ENVELOPE.fail>;
|
|
14
15
|
export declare function earlyExitEnvelope(command: string, code: ErrorCode, message: string, refs?: EnvelopeErrorRefs): ReturnType<typeof ENVELOPE.fail>;
|
|
15
16
|
export declare function writeStdoutFrame(frame: unknown): void;
|
|
@@ -119,7 +119,7 @@ declare const COMMAND_TABLE: readonly [{
|
|
|
119
119
|
readonly name: 'project-path';
|
|
120
120
|
readonly required: false;
|
|
121
121
|
}];
|
|
122
|
-
readonly description: 'Inspect a page or content DOM through the agent bridge (CDP-free
|
|
122
|
+
readonly description: 'Inspect a page or content DOM through the agent bridge (CDP-free, requires --allow-control)';
|
|
123
123
|
readonly supportsSourceInspection: true;
|
|
124
124
|
}, {
|
|
125
125
|
readonly name: 'publish';
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"extension": "./bin/extension.cjs"
|
|
39
39
|
},
|
|
40
40
|
"name": "extension",
|
|
41
|
-
"version": "4.0.
|
|
41
|
+
"version": "4.0.22",
|
|
42
42
|
"description": "The cross-browser extension framework. Build Chrome, Edge, Firefox, and Safari extensions with no build configuration.",
|
|
43
43
|
"homepage": "https://extension.js.org/",
|
|
44
44
|
"bugs": {
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
"vivaldi-location2": "2.1.0",
|
|
107
107
|
"waterfox-location": "2.1.0",
|
|
108
108
|
"yandex-location": "2.1.0",
|
|
109
|
-
"extension-create": "4.0.
|
|
110
|
-
"extension-develop": "4.0.
|
|
111
|
-
"extension-install": "4.0.
|
|
109
|
+
"extension-create": "4.0.22",
|
|
110
|
+
"extension-develop": "4.0.22",
|
|
111
|
+
"extension-install": "4.0.22",
|
|
112
112
|
"commander": "^15.0.0",
|
|
113
113
|
"pintor": "0.3.0",
|
|
114
114
|
"semver": "^7.7.3",
|