webext-schema 5.1.13 → 5.1.15

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 CHANGED
@@ -17,7 +17,6 @@ export const ESR_VER = 102;
17
17
 
18
18
  /**
19
19
  * fetch text
20
- *
21
20
  * @param {string} url - URL
22
21
  * @returns {Promise.<string>} - content text
23
22
  */
@@ -36,7 +35,6 @@ export const fetchText = async url => {
36
35
 
37
36
  /**
38
37
  * get channel url
39
- *
40
38
  * @param {string} channel - release channel
41
39
  * @returns {string} - channel URL
42
40
  */
@@ -63,7 +61,6 @@ export const getChannelUrl = channel => {
63
61
 
64
62
  /**
65
63
  * get schema data
66
- *
67
64
  * @param {string} file - file name
68
65
  * @param {string} baseUrl - base URL
69
66
  * @returns {Promise.<object>} - schema data
@@ -85,7 +82,6 @@ export const getSchemaData = async (file, baseUrl) => {
85
82
 
86
83
  /**
87
84
  * get schema file list from jar manifest
88
- *
89
85
  * @param {string} baseUrl - base URL
90
86
  * @returns {Promise.<Array.<string>>} - schema file list
91
87
  */
@@ -111,7 +107,6 @@ export const getFileList = async baseUrl => {
111
107
 
112
108
  /**
113
109
  * get all schema data
114
- *
115
110
  * @param {string} baseUrl - base URL
116
111
  * @returns {Promise.<Array>} - schemas data in array
117
112
  */
@@ -129,7 +124,6 @@ export const getAllSchemaData = async baseUrl => {
129
124
 
130
125
  /**
131
126
  * get listed schema data
132
- *
133
127
  * @param {string} baseUrl - base URL
134
128
  * @param {Array} arr - array of schema file names
135
129
  * @returns {Promise.<Array>} - schema data in array
@@ -150,7 +144,6 @@ export const getListedSchemaData = async (baseUrl, arr) => {
150
144
 
151
145
  /**
152
146
  * get MailExtensions schema data
153
- *
154
147
  * @param {string} baseUrl - base URL
155
148
  * @returns {Promise.<Array>} - results of each handler
156
149
  */
@@ -173,7 +166,6 @@ export const getMailExtSchemaData = async baseUrl => {
173
166
 
174
167
  /**
175
168
  * create unified schema
176
- *
177
169
  * @param {string} channel - release channel
178
170
  * @returns {Promise.<object>} - schema
179
171
  */
@@ -216,7 +208,6 @@ export const createUnifiedSchema = async channel => {
216
208
 
217
209
  /**
218
210
  * save schema file
219
- *
220
211
  * @param {string} channel - release channel
221
212
  * @param {boolean} info - console info
222
213
  * @returns {Promise.<string>} - file path
@@ -241,7 +232,6 @@ export const saveSchemaFile = async (channel, info) => {
241
232
 
242
233
  /**
243
234
  * update schemas files
244
- *
245
235
  * @param {object} cmdOpts - command options
246
236
  * @returns {Promise.<void>} - void
247
237
  */
package/package.json CHANGED
@@ -14,29 +14,29 @@
14
14
  "types": "types/index.d.ts",
15
15
  "dependencies": {
16
16
  "@types/firefox-webext-browser": "^111.0.1",
17
- "@types/node": "^18.15.11",
18
- "@types/sinon": "^10.0.13",
17
+ "@types/node": "^20.1.1",
18
+ "@types/sinon": "^10.0.14",
19
19
  "camelize": "^1.0.1",
20
- "commander": "^10.0.0",
20
+ "commander": "^10.0.1",
21
21
  "decamelize": "^6.0.0",
22
22
  "json5": "^2.2.3",
23
- "sinon": "^15.0.3"
23
+ "sinon": "^15.0.4"
24
24
  },
25
25
  "devDependencies": {
26
26
  "c8": "^7.13.0",
27
27
  "chai": "^4.3.7",
28
- "eslint": "^8.38.0",
28
+ "eslint": "^8.40.0",
29
29
  "eslint-config-standard": "^17.0.0",
30
30
  "eslint-plugin-import": "^2.27.5",
31
- "eslint-plugin-jsdoc": "^41.1.1",
31
+ "eslint-plugin-jsdoc": "^44.0.2",
32
32
  "eslint-plugin-node": "^11.1.0",
33
33
  "eslint-plugin-promise": "^6.1.1",
34
- "eslint-plugin-regexp": "^1.14.0",
35
- "eslint-plugin-unicorn": "^46.0.0",
34
+ "eslint-plugin-regexp": "^1.15.0",
35
+ "eslint-plugin-unicorn": "^47.0.0",
36
36
  "mocha": "^10.2.0",
37
37
  "npm-run-all": "^4.1.5",
38
38
  "typescript": "^5.0.4",
39
- "undici": "^5.21.2"
39
+ "undici": "^5.22.0"
40
40
  },
41
41
  "scripts": {
42
42
  "build": "npm run tsc && npm run lint && npm run test",
@@ -56,5 +56,5 @@
56
56
  "update-mail": "node index update --channel=mail -i",
57
57
  "update-release": "node index update --channel=release -i"
58
58
  },
59
- "version": "5.1.13"
59
+ "version": "5.1.15"
60
60
  }
@@ -4029,7 +4029,7 @@
4029
4029
  "browser_style": {
4030
4030
  "type": "boolean",
4031
4031
  "optional": true,
4032
- "default": true
4032
+ "description": "Defaults to true in Manifest V2; Deprecated in Manifest V3."
4033
4033
  },
4034
4034
  "default_panel": {
4035
4035
  "type": "string",
@@ -7652,7 +7652,7 @@
7652
7652
  "browser_style": {
7653
7653
  "type": "boolean",
7654
7654
  "optional": true,
7655
- "default": false
7655
+ "description": "Deprecated in Manifest V3."
7656
7656
  },
7657
7657
  "default_area": {
7658
7658
  "description": "Defines the location the browserAction will appear by default. The default location is navbar.",
@@ -13684,11 +13684,13 @@
13684
13684
  "browser_style": {
13685
13685
  "type": "boolean",
13686
13686
  "optional": true,
13687
- "default": true
13687
+ "description": "Defaults to true in Manifest V2; Deprecated in Manifest V3."
13688
13688
  },
13689
13689
  "chrome_style": {
13690
13690
  "type": "boolean",
13691
- "optional": true
13691
+ "optional": true,
13692
+ "max_manifest_version": 2,
13693
+ "description": "chrome_style is ignored in Firefox. Its replacement (browser_style) has been deprecated."
13692
13694
  },
13693
13695
  "open_in_tab": {
13694
13696
  "type": "boolean",
@@ -13696,8 +13698,7 @@
13696
13698
  }
13697
13699
  },
13698
13700
  "additionalProperties": {
13699
- "type": "any",
13700
- "deprecated": "An unexpected property was found in the WebExtension manifest"
13701
+ "$ref": "UnrecognizedProperty"
13701
13702
  }
13702
13703
  },
13703
13704
  "content_scripts": {
@@ -13793,13 +13794,11 @@
13793
13794
  "min_manifest_version": 3,
13794
13795
  "type": "array",
13795
13796
  "postprocess": "webAccessibleMatching",
13796
- "minItems": 1,
13797
13797
  "items": {
13798
13798
  "type": "object",
13799
13799
  "properties": {
13800
13800
  "resources": {
13801
13801
  "type": "array",
13802
- "minItems": 1,
13803
13802
  "items": {
13804
13803
  "type": "string"
13805
13804
  }
@@ -13807,7 +13806,6 @@
13807
13806
  "matches": {
13808
13807
  "optional": true,
13809
13808
  "type": "array",
13810
- "minItems": 1,
13811
13809
  "items": {
13812
13810
  "$ref": "MatchPattern"
13813
13811
  }
@@ -13829,6 +13827,9 @@
13829
13827
  ]
13830
13828
  }
13831
13829
  }
13830
+ },
13831
+ "additionalProperties": {
13832
+ "$ref": "UnrecognizedProperty"
13832
13833
  }
13833
13834
  }
13834
13835
  }
@@ -14958,7 +14959,7 @@
14958
14959
  "browser_style": {
14959
14960
  "type": "boolean",
14960
14961
  "optional": true,
14961
- "default": false
14962
+ "description": "Deprecated in Manifest V3."
14962
14963
  },
14963
14964
  "show_matches": {
14964
14965
  "type": "array",
@@ -4029,7 +4029,7 @@
4029
4029
  "browser_style": {
4030
4030
  "type": "boolean",
4031
4031
  "optional": true,
4032
- "default": true
4032
+ "description": "Defaults to true in Manifest V2; Deprecated in Manifest V3."
4033
4033
  },
4034
4034
  "default_panel": {
4035
4035
  "type": "string",
@@ -7652,7 +7652,7 @@
7652
7652
  "browser_style": {
7653
7653
  "type": "boolean",
7654
7654
  "optional": true,
7655
- "default": false
7655
+ "description": "Deprecated in Manifest V3."
7656
7656
  },
7657
7657
  "default_area": {
7658
7658
  "description": "Defines the location the browserAction will appear by default. The default location is navbar.",
@@ -13684,11 +13684,13 @@
13684
13684
  "browser_style": {
13685
13685
  "type": "boolean",
13686
13686
  "optional": true,
13687
- "default": true
13687
+ "description": "Defaults to true in Manifest V2; Deprecated in Manifest V3."
13688
13688
  },
13689
13689
  "chrome_style": {
13690
13690
  "type": "boolean",
13691
- "optional": true
13691
+ "optional": true,
13692
+ "max_manifest_version": 2,
13693
+ "description": "chrome_style is ignored in Firefox. Its replacement (browser_style) has been deprecated."
13692
13694
  },
13693
13695
  "open_in_tab": {
13694
13696
  "type": "boolean",
@@ -13696,8 +13698,7 @@
13696
13698
  }
13697
13699
  },
13698
13700
  "additionalProperties": {
13699
- "type": "any",
13700
- "deprecated": "An unexpected property was found in the WebExtension manifest"
13701
+ "$ref": "UnrecognizedProperty"
13701
13702
  }
13702
13703
  },
13703
13704
  "content_scripts": {
@@ -13793,13 +13794,11 @@
13793
13794
  "min_manifest_version": 3,
13794
13795
  "type": "array",
13795
13796
  "postprocess": "webAccessibleMatching",
13796
- "minItems": 1,
13797
13797
  "items": {
13798
13798
  "type": "object",
13799
13799
  "properties": {
13800
13800
  "resources": {
13801
13801
  "type": "array",
13802
- "minItems": 1,
13803
13802
  "items": {
13804
13803
  "type": "string"
13805
13804
  }
@@ -13807,7 +13806,6 @@
13807
13806
  "matches": {
13808
13807
  "optional": true,
13809
13808
  "type": "array",
13810
- "minItems": 1,
13811
13809
  "items": {
13812
13810
  "$ref": "MatchPattern"
13813
13811
  }
@@ -13829,6 +13827,9 @@
13829
13827
  ]
13830
13828
  }
13831
13829
  }
13830
+ },
13831
+ "additionalProperties": {
13832
+ "$ref": "UnrecognizedProperty"
13832
13833
  }
13833
13834
  }
13834
13835
  }
@@ -14958,7 +14959,7 @@
14958
14959
  "browser_style": {
14959
14960
  "type": "boolean",
14960
14961
  "optional": true,
14961
- "default": false
14962
+ "description": "Deprecated in Manifest V3."
14962
14963
  },
14963
14964
  "show_matches": {
14964
14965
  "type": "array",