webext-schema 5.0.11 → 5.1.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/modules/update.js +0 -1
- package/package.json +6 -7
- package/schemas/beta/webext.json +61 -2
- package/schemas/central/webext.json +6 -1
package/modules/update.js
CHANGED
|
@@ -8,7 +8,6 @@ import JSON5 from 'json5';
|
|
|
8
8
|
import { createFile } from './file-util.js';
|
|
9
9
|
import { getType, isString } from './common.js';
|
|
10
10
|
import { program as commander } from 'commander';
|
|
11
|
-
import fetch from 'node-fetch';
|
|
12
11
|
import path from 'node:path';
|
|
13
12
|
import process from 'node:process';
|
|
14
13
|
|
package/package.json
CHANGED
|
@@ -29,25 +29,24 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"camelize": "^1.0.1",
|
|
32
|
-
"commander": "^
|
|
32
|
+
"commander": "^10.0.0",
|
|
33
33
|
"decamelize": "^6.0.0",
|
|
34
34
|
"json5": "^2.2.3",
|
|
35
|
-
"node-fetch": "^3.3.0",
|
|
36
35
|
"sinon": "^15.0.1"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
39
38
|
"c8": "^7.12.0",
|
|
40
39
|
"chai": "^4.3.7",
|
|
41
|
-
"eslint": "^8.
|
|
40
|
+
"eslint": "^8.32.0",
|
|
42
41
|
"eslint-config-standard": "^17.0.0",
|
|
43
|
-
"eslint-plugin-import": "^2.
|
|
42
|
+
"eslint-plugin-import": "^2.27.4",
|
|
44
43
|
"eslint-plugin-jsdoc": "^39.6.4",
|
|
45
44
|
"eslint-plugin-node": "^11.1.0",
|
|
46
45
|
"eslint-plugin-promise": "^6.1.1",
|
|
47
46
|
"eslint-plugin-unicorn": "^45.0.2",
|
|
48
47
|
"mocha": "^10.2.0",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
48
|
+
"npm-run-all": "^4.1.5",
|
|
49
|
+
"undici": "^5.15.0"
|
|
51
50
|
},
|
|
52
|
-
"version": "5.0
|
|
51
|
+
"version": "5.1.0"
|
|
53
52
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -2507,6 +2507,7 @@
|
|
|
2507
2507
|
},
|
|
2508
2508
|
"bookmarkId": {
|
|
2509
2509
|
"type": "string",
|
|
2510
|
+
"optional": true,
|
|
2510
2511
|
"description": "The id of the bookmark where the context menu was clicked, if it was on a bookmark."
|
|
2511
2512
|
},
|
|
2512
2513
|
"modifiers": {
|
|
@@ -10106,6 +10107,42 @@
|
|
|
10106
10107
|
}
|
|
10107
10108
|
],
|
|
10108
10109
|
"functions": [
|
|
10110
|
+
{
|
|
10111
|
+
"name": "updateDynamicRules",
|
|
10112
|
+
"type": "function",
|
|
10113
|
+
"description": "Modifies the current set of dynamic rules for the extension. The rules with IDs listed in options.removeRuleIds are first removed, and then the rules given in options.addRules are added. These rules are persisted across browser sessions and extension updates.",
|
|
10114
|
+
"async": "callback",
|
|
10115
|
+
"parameters": [
|
|
10116
|
+
{
|
|
10117
|
+
"name": "options",
|
|
10118
|
+
"type": "object",
|
|
10119
|
+
"properties": {
|
|
10120
|
+
"removeRuleIds": {
|
|
10121
|
+
"type": "array",
|
|
10122
|
+
"optional": true,
|
|
10123
|
+
"description": "IDs of the rules to remove. Any invalid IDs will be ignored.",
|
|
10124
|
+
"items": {
|
|
10125
|
+
"type": "integer"
|
|
10126
|
+
}
|
|
10127
|
+
},
|
|
10128
|
+
"addRules": {
|
|
10129
|
+
"type": "array",
|
|
10130
|
+
"optional": true,
|
|
10131
|
+
"description": "Rules to add.",
|
|
10132
|
+
"items": {
|
|
10133
|
+
"$ref": "Rule"
|
|
10134
|
+
}
|
|
10135
|
+
}
|
|
10136
|
+
}
|
|
10137
|
+
},
|
|
10138
|
+
{
|
|
10139
|
+
"name": "callback",
|
|
10140
|
+
"type": "function",
|
|
10141
|
+
"description": "Called when the dynamic rules have been updated",
|
|
10142
|
+
"parameters": []
|
|
10143
|
+
}
|
|
10144
|
+
]
|
|
10145
|
+
},
|
|
10109
10146
|
{
|
|
10110
10147
|
"name": "updateSessionRules",
|
|
10111
10148
|
"type": "function",
|
|
@@ -10216,6 +10253,27 @@
|
|
|
10216
10253
|
}
|
|
10217
10254
|
]
|
|
10218
10255
|
},
|
|
10256
|
+
{
|
|
10257
|
+
"name": "getDynamicRules",
|
|
10258
|
+
"type": "function",
|
|
10259
|
+
"description": "Returns the current set of dynamic rules for the extension.",
|
|
10260
|
+
"async": "callback",
|
|
10261
|
+
"parameters": [
|
|
10262
|
+
{
|
|
10263
|
+
"name": "callback",
|
|
10264
|
+
"type": "function",
|
|
10265
|
+
"parameters": [
|
|
10266
|
+
{
|
|
10267
|
+
"name": "dynamicRules",
|
|
10268
|
+
"type": "array",
|
|
10269
|
+
"items": {
|
|
10270
|
+
"$ref": "Rule"
|
|
10271
|
+
}
|
|
10272
|
+
}
|
|
10273
|
+
]
|
|
10274
|
+
}
|
|
10275
|
+
]
|
|
10276
|
+
},
|
|
10219
10277
|
{
|
|
10220
10278
|
"name": "getSessionRules",
|
|
10221
10279
|
"type": "function",
|
|
@@ -10227,6 +10285,7 @@
|
|
|
10227
10285
|
"type": "function",
|
|
10228
10286
|
"parameters": [
|
|
10229
10287
|
{
|
|
10288
|
+
"name": "sessionRules",
|
|
10230
10289
|
"type": "array",
|
|
10231
10290
|
"items": {
|
|
10232
10291
|
"$ref": "Rule"
|
|
@@ -13596,7 +13655,6 @@
|
|
|
13596
13655
|
"extension_ids": {
|
|
13597
13656
|
"optional": true,
|
|
13598
13657
|
"type": "array",
|
|
13599
|
-
"minItems": 1,
|
|
13600
13658
|
"items": {
|
|
13601
13659
|
"choices": [
|
|
13602
13660
|
{
|
|
@@ -17457,7 +17515,7 @@
|
|
|
17457
17515
|
{
|
|
17458
17516
|
"name": "submitPing",
|
|
17459
17517
|
"type": "function",
|
|
17460
|
-
"description": "Submits a custom ping to the Telemetry back-end. See <code>submitExternalPing</code> inside TelemetryController.
|
|
17518
|
+
"description": "Submits a custom ping to the Telemetry back-end. See <code>submitExternalPing</code> inside TelemetryController.sys.mjs for more details.",
|
|
17461
17519
|
"async": true,
|
|
17462
17520
|
"parameters": [
|
|
17463
17521
|
{
|
|
@@ -19614,6 +19672,7 @@
|
|
|
19614
19672
|
"enum": [
|
|
19615
19673
|
"webRequest",
|
|
19616
19674
|
"webRequestBlocking",
|
|
19675
|
+
"webRequestFilterResponse",
|
|
19617
19676
|
"webRequestFilterResponse.serviceWorkerScript"
|
|
19618
19677
|
]
|
|
19619
19678
|
}
|
|
@@ -1898,6 +1898,11 @@
|
|
|
1898
1898
|
"description": "Find only ranges with case sensitive match.",
|
|
1899
1899
|
"optional": true
|
|
1900
1900
|
},
|
|
1901
|
+
"matchDiacritics": {
|
|
1902
|
+
"type": "boolean",
|
|
1903
|
+
"description": "Find only ranges with diacritic sensitive match.",
|
|
1904
|
+
"optional": true
|
|
1905
|
+
},
|
|
1901
1906
|
"entireWord": {
|
|
1902
1907
|
"type": "boolean",
|
|
1903
1908
|
"description": "Find only ranges that match entire word.",
|
|
@@ -13655,7 +13660,6 @@
|
|
|
13655
13660
|
"extension_ids": {
|
|
13656
13661
|
"optional": true,
|
|
13657
13662
|
"type": "array",
|
|
13658
|
-
"minItems": 1,
|
|
13659
13663
|
"items": {
|
|
13660
13664
|
"choices": [
|
|
13661
13665
|
{
|
|
@@ -19673,6 +19677,7 @@
|
|
|
19673
19677
|
"enum": [
|
|
19674
19678
|
"webRequest",
|
|
19675
19679
|
"webRequestBlocking",
|
|
19680
|
+
"webRequestFilterResponse",
|
|
19676
19681
|
"webRequestFilterResponse.serviceWorkerScript"
|
|
19677
19682
|
]
|
|
19678
19683
|
}
|