webext-schema 5.5.7 → 5.6.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 CHANGED
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * update.js
3
3
  */
4
+ /* eslint-disable no-await-in-loop */
4
5
 
5
6
  /* api */
6
7
  import path from 'node:path';
@@ -13,7 +14,7 @@ import { createFile } from './file-util.js';
13
14
  import { CHAR, INDENT } from './constant.js';
14
15
  const DIR_CWD = process.cwd();
15
16
  const PERM_FILE = 0o644;
16
- export const ESR_VER = 128;
17
+ export const ESR_VER = 115;
17
18
 
18
19
  /**
19
20
  * fetch text
@@ -116,14 +117,14 @@ export const getAllSchemaData = async (baseUrl, info) => {
116
117
  throw new TypeError(`Expected String but got ${getType(baseUrl)}.`);
117
118
  }
118
119
  const items = await getFileList(baseUrl);
119
- const func = [];
120
+ const schemas = [];
120
121
  for (const item of items) {
121
122
  if (info) {
122
123
  console.info(`Fetching ${item}`);
123
124
  }
124
- func.push(getSchemaData(item, baseUrl));
125
+ const schema = await getSchemaData(item, baseUrl);
126
+ schemas.push(schema);
125
127
  }
126
- const schemas = await Promise.all(func);
127
128
  return schemas;
128
129
  };
129
130
 
@@ -141,14 +142,14 @@ export const getListedSchemaData = async (baseUrl, arr, info) => {
141
142
  if (!Array.isArray(arr)) {
142
143
  throw new TypeError(`Expected Array but got ${getType(arr)}.`);
143
144
  }
144
- const func = [];
145
+ const schemas = [];
145
146
  for (const item of arr) {
146
147
  if (info) {
147
148
  console.info(`Fetching ${item}`);
148
149
  }
149
- func.push(getSchemaData(item, baseUrl));
150
+ const schema = await getSchemaData(item, baseUrl);
151
+ schemas.push(schema);
150
152
  }
151
- const schemas = await Promise.all(func);
152
153
  return schemas;
153
154
  };
154
155
 
@@ -168,16 +169,16 @@ export const getMailExtSchemaData = async (baseUrl, info) => {
168
169
  'commands.json',
169
170
  'pkcs11.json'
170
171
  ];
171
- const func = [];
172
+ const schemas = [];
172
173
  for (const item of items) {
173
174
  if (!excludeFile.includes(item)) {
174
175
  if (info) {
175
176
  console.info(`Fetching ${item}`);
176
177
  }
177
- func.push(getSchemaData(item, schemaUrl));
178
+ const schema = await getSchemaData(item, schemaUrl);
179
+ schemas.push(schema);
178
180
  }
179
181
  }
180
- const schemas = await Promise.all(func);
181
182
  return schemas;
182
183
  };
183
184
 
package/package.json CHANGED
@@ -19,44 +19,44 @@
19
19
  "types": "types/index.d.ts",
20
20
  "dependencies": {
21
21
  "camelize": "^1.0.1",
22
- "commander": "^13.1.0",
22
+ "commander": "^14.0.0",
23
23
  "decamelize": "^6.0.0",
24
24
  "json5": "^2.2.3",
25
25
  "sinon": "^20.0.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/firefox-webext-browser": "^120.0.4",
29
- "@types/node": "^22.15.3",
29
+ "@types/node": "^22.15.21",
30
30
  "@types/sinon": "^17.0.4",
31
31
  "c8": "^10.1.3",
32
- "eslint": "^9.25.1",
33
- "eslint-plugin-jsdoc": "^50.6.11",
32
+ "eslint": "^9.27.0",
33
+ "eslint-plugin-jsdoc": "^50.6.17",
34
34
  "eslint-plugin-regexp": "^2.7.0",
35
- "eslint-plugin-unicorn": "^59.0.0",
36
- "globals": "^16.0.0",
37
- "mocha": "^11.2.2",
35
+ "eslint-plugin-unicorn": "^59.0.1",
36
+ "globals": "^16.2.0",
37
+ "mocha": "^11.5.0",
38
38
  "neostandard": "^0.12.1",
39
- "npm-run-all2": "^7.0.2",
39
+ "npm-run-all2": "^8.0.4",
40
40
  "typescript": "^5.8.3",
41
- "undici": "^7.8.0"
41
+ "undici": "^7.10.0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "npm run tsc && npm run lint && npm run test",
45
45
  "lint": "eslint . --fix",
46
46
  "start": "node index",
47
- "test": "npm run test-central",
48
- "test-beta": "c8 mocha --require=test/mocha/setup.js --channel=beta --exit test/*.test.js",
49
- "test-central": "c8 mocha --require=test/mocha/setup.js --channel=central --exit test/*.test.js",
50
- "test-esr": "c8 mocha --require=test/mocha/setup.js --channel=esr --exit test/*.test.js",
51
- "test-release": "c8 mocha --require=test/mocha/setup.js --channel=release --exit test/*.test.js",
52
- "test_all": "npm-run-all -s test-*",
47
+ "test": "npm run test:central",
48
+ "test:beta": "c8 mocha --require=test/mocha/setup.js --channel=beta --exit test/*.test.js",
49
+ "test:central": "c8 mocha --require=test/mocha/setup.js --channel=central --exit test/*.test.js",
50
+ "test:esr": "c8 mocha --require=test/mocha/setup.js --channel=esr --exit test/*.test.js",
51
+ "test:release": "c8 mocha --require=test/mocha/setup.js --channel=release --exit test/*.test.js",
52
+ "testall": "npm-run-all -s test:*",
53
53
  "tsc": "node index clean --dir=types -i && npx tsc",
54
54
  "update": "node index update -i",
55
- "update-beta": "node index update --channel=beta -i",
56
- "update-central": "node index update --channel=central -i",
57
- "update-esr": "node index update --channel=esr -i",
58
- "update-mail": "node index update --channel=mail -i",
59
- "update-release": "node index update --channel=release -i"
55
+ "update:beta": "node index update --channel=beta -i",
56
+ "update:central": "node index update --channel=central -i",
57
+ "update:esr": "node index update --channel=esr -i",
58
+ "update:mail": "node index update --channel=mail -i",
59
+ "update:release": "node index update --channel=release -i"
60
60
  },
61
- "version": "5.5.7"
61
+ "version": "5.6.0"
62
62
  }
@@ -4434,7 +4434,6 @@
4434
4434
  {
4435
4435
  "type": "object",
4436
4436
  "name": "queryInfo",
4437
- "optional": true,
4438
4437
  "properties": {
4439
4438
  "collapsed": {
4440
4439
  "type": "boolean",
@@ -4543,6 +4542,16 @@
4543
4542
  {
4544
4543
  "$ref": "TabGroup",
4545
4544
  "name": "group"
4545
+ },
4546
+ {
4547
+ "type": "object",
4548
+ "name": "removeInfo",
4549
+ "properties": {
4550
+ "isWindowClosing": {
4551
+ "type": "boolean",
4552
+ "description": "True when the tab group is being closed because its window is being closed."
4553
+ }
4554
+ }
4546
4555
  }
4547
4556
  ]
4548
4557
  },
@@ -9410,6 +9419,7 @@
9410
9419
  "id": "SameSiteStatus",
9411
9420
  "type": "string",
9412
9421
  "enum": [
9422
+ "unspecified",
9413
9423
  "no_restriction",
9414
9424
  "lax",
9415
9425
  "strict"
@@ -9703,7 +9713,7 @@
9703
9713
  "$ref": "SameSiteStatus",
9704
9714
  "optional": true,
9705
9715
  "description": "The cookie's same-site status.",
9706
- "default": "no_restriction"
9716
+ "default": "unspecified"
9707
9717
  },
9708
9718
  "expirationDate": {
9709
9719
  "type": "number",
@@ -9957,7 +9967,7 @@
9957
9967
  {
9958
9968
  "id": "ResourceType",
9959
9969
  "type": "string",
9960
- "description": "How the requested resource will be used. Comparable to the webRequest.ResourceType type.",
9970
+ "description": "How the requested resource will be used. Comparable to the webRequest.ResourceType type. object_subrequest is unsupported.",
9961
9971
  "enum": [
9962
9972
  "main_frame",
9963
9973
  "sub_frame",
@@ -14323,12 +14333,13 @@
14323
14333
  "enum": [
14324
14334
  "authenticationInfo",
14325
14335
  "bookmarksInfo",
14326
- "browsingHistory",
14336
+ "browsingActivity",
14327
14337
  "financialAndPaymentInfo",
14328
14338
  "healthInfo",
14329
14339
  "locationInfo",
14330
14340
  "personalCommunications",
14331
14341
  "personallyIdentifyingInfo",
14342
+ "searchTerms",
14332
14343
  "websiteActivity",
14333
14344
  "websiteContent"
14334
14345
  ]
@@ -20906,7 +20917,6 @@
20906
20917
  "script",
20907
20918
  "image",
20908
20919
  "object",
20909
- "object_subrequest",
20910
20920
  "xmlhttprequest",
20911
20921
  "xslt",
20912
20922
  "ping",