@wxt-dev/browser 0.1.37 → 0.1.38
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/package.json +3 -3
- package/src/gen/index.d.ts +11 -8
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wxt-dev/browser",
|
|
3
3
|
"description": "Provides a cross-browser API for using extension APIs and types based on @types/chrome",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.38",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.mjs",
|
|
7
7
|
"types": "src/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"src"
|
|
20
20
|
],
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@types/chrome": "0.1.
|
|
23
|
-
"
|
|
22
|
+
"@types/chrome": "0.1.38",
|
|
23
|
+
"@types/node": "^20.0.0",
|
|
24
24
|
"nano-spawn": "^2.0.0",
|
|
25
25
|
"typescript": "^5.9.3",
|
|
26
26
|
"vitest": "^4.0.18"
|
package/src/gen/index.d.ts
CHANGED
|
@@ -4076,14 +4076,17 @@ export namespace Browser {
|
|
|
4076
4076
|
id: string;
|
|
4077
4077
|
/**
|
|
4078
4078
|
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed.
|
|
4079
|
-
*
|
|
4079
|
+
*
|
|
4080
|
+
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each key can be used for signing data at most once, unless the extension is allowlisted by the KeyPermissions policy, in which case the key can be used indefinitely.
|
|
4081
|
+
*
|
|
4080
4082
|
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
|
4081
4083
|
*/
|
|
4082
4084
|
subtleCrypto: SubtleCrypto;
|
|
4083
4085
|
/**
|
|
4084
|
-
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed.
|
|
4085
|
-
*
|
|
4086
|
-
* Only non-extractable keys can be generated. The supported key
|
|
4086
|
+
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed. Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
|
|
4087
|
+
*
|
|
4088
|
+
* Only non-extractable keys can be generated. The only supported key type is RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048. up to 2048. Each key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely.
|
|
4089
|
+
*
|
|
4087
4090
|
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
|
4088
4091
|
* @since Chrome 97
|
|
4089
4092
|
*/
|
|
@@ -9692,7 +9695,7 @@ export namespace Browser {
|
|
|
9692
9695
|
/** Sent after onSuspend to indicate that the app won't be unloaded after all. */
|
|
9693
9696
|
export const onSuspendCanceled: events.Event<() => void>;
|
|
9694
9697
|
|
|
9695
|
-
/** Fired when a message is sent from either
|
|
9698
|
+
/** Fired when a message is sent from either {@link runtime.sendMessage} or {@link tabs.sendMessage}. */
|
|
9696
9699
|
export const onMessage: events.Event<
|
|
9697
9700
|
(message: any, sender: MessageSender, sendResponse: (response?: any) => void) => void
|
|
9698
9701
|
>;
|
|
@@ -11058,7 +11061,7 @@ export namespace Browser {
|
|
|
11058
11061
|
sessionId?: string | undefined;
|
|
11059
11062
|
/**
|
|
11060
11063
|
* The ID of the Split View that the tab belongs to.
|
|
11061
|
-
* @since Chrome
|
|
11064
|
+
* @since Chrome 140
|
|
11062
11065
|
*/
|
|
11063
11066
|
splitViewId?: number | undefined;
|
|
11064
11067
|
/**
|
|
@@ -11134,7 +11137,7 @@ export namespace Browser {
|
|
|
11134
11137
|
|
|
11135
11138
|
/**
|
|
11136
11139
|
* An ID that represents the absence of a split tab.
|
|
11137
|
-
* @since Chrome
|
|
11140
|
+
* @since Chrome 140
|
|
11138
11141
|
*/
|
|
11139
11142
|
export const SPLIT_VIEW_ID_NONE: -1;
|
|
11140
11143
|
|
|
@@ -11581,7 +11584,7 @@ export namespace Browser {
|
|
|
11581
11584
|
export function duplicate(tabId: number, callback: (tab?: Tab) => void): void;
|
|
11582
11585
|
|
|
11583
11586
|
/**
|
|
11584
|
-
* Sends a single message to the content script(s) in the specified tab
|
|
11587
|
+
* Sends a single message to the content script(s) in the specified tab. The {@link runtime.onMessage} event is fired in each content script running in the specified tab for the current extension.
|
|
11585
11588
|
*
|
|
11586
11589
|
* Can return its result via Promise in Manifest V3 or later since Chrome 99.
|
|
11587
11590
|
*/
|