@stacksjs/browser-extension 0.75.520 → 0.75.524
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ChromeWebStoreConfig, ExtensionConfig } from './types';
|
|
2
2
|
/** Build the RS256 assertion Google exchanges for a short-lived OAuth token. */
|
|
3
|
-
export declare function chromeWebStoreServiceAccountAssertion(serviceAccount: GoogleServiceAccount, now?:
|
|
3
|
+
export declare function chromeWebStoreServiceAccountAssertion(serviceAccount: GoogleServiceAccount, now?: ReturnType<typeof Math.floor>): string;
|
|
4
4
|
/** Build, package, upload, and optionally submit an existing Chrome Web Store item. */
|
|
5
5
|
export declare function publishChromeExtension(config: ExtensionConfig, options: ChromeWebStorePublishOptions): Promise<ChromeWebStorePublishResult>;
|
|
6
6
|
export declare interface GoogleServiceAccount {
|
|
@@ -64,7 +64,11 @@ export declare interface ChromeWebStorePublishOptions extends ChromeWebStoreClie
|
|
|
64
64
|
blockOnWarnings?: boolean
|
|
65
65
|
}
|
|
66
66
|
export declare class ChromeWebStoreClient {
|
|
67
|
+
private options;
|
|
68
|
+
private baseUrl;
|
|
69
|
+
private accessToken;
|
|
67
70
|
constructor(options?: ChromeWebStoreClientOptions);
|
|
71
|
+
private request;
|
|
68
72
|
fetchStatus(config: ChromeWebStoreConfig): Promise<ChromeWebStoreStatus>;
|
|
69
73
|
upload(config: ChromeWebStoreConfig, packagePath: string): Promise<ChromeUploadResult>;
|
|
70
74
|
publish(config: ChromeWebStoreConfig, options?: { blockOnWarnings?: boolean }): Promise<ChromePublishResult>;
|
package/dist/firefox-addons.d.ts
CHANGED
package/dist/safari.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ import type { ExtensionConfig, SafariPlatform } from './types';
|
|
|
17
17
|
/** App target name from the extension display name (`Very Good AdBlock` → `VeryGoodAdBlock`). */
|
|
18
18
|
export declare function safariAppName(config: ExtensionConfig): string;
|
|
19
19
|
/** Directory the container app is scaffolded into. */
|
|
20
|
-
export declare function safariProjectDir(cwd?:
|
|
20
|
+
export declare function safariProjectDir(cwd?: ReturnType<typeof process.cwd>, dir?: string): string;
|
|
21
21
|
/** Safari platforms selected in config, de-duplicated in stable order. */
|
|
22
22
|
export declare function resolveSafariPlatforms(config: ExtensionConfig, platforms?: SafariPlatform[]): SafariPlatform[];
|
|
23
23
|
export declare function safariPackagerArgs(input: string, projectLocation: string, appName: string, bundleId: string, platforms: SafariPlatform[]): string[];
|
package/dist/webkit.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/browser-extension",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.524",
|
|
5
5
|
"description": "Build MV3 browser extensions (Chrome, Firefox, Safari) the Stacks way — manifest, content/background scripts, DNR rules, packaging, Safari container app, all config-driven.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|