@stacksjs/browser-extension 0.75.519 → 0.75.522

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.
@@ -25,3 +25,4 @@ export declare interface SubmitSafariAppStoreOptions extends AppStoreConnectClie
25
25
  version: string
26
26
  platforms?: SafariPlatform[]
27
27
  }
28
+ export {};
@@ -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?: unknown): string;
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>;
@@ -37,3 +37,4 @@ declare interface FirefoxSignArgsOptions {
37
37
  timeout: number
38
38
  approvalTimeout: number
39
39
  }
40
+ export {};
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?: unknown, dir?: string): string;
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
@@ -173,6 +173,8 @@ export declare class WebKitUnsupportedError extends Error {
173
173
  name: string;
174
174
  }
175
175
  declare class Issues {
176
+ private byReason;
176
177
  add(reason: string, example: number | string): void;
177
178
  list(): WebKitConversionIssue[];
178
179
  }
180
+ export {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/browser-extension",
3
3
  "type": "module",
4
- "version": "0.75.519",
4
+ "version": "0.75.522",
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": [