webext-schema 5.2.1 → 5.2.3
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/file-util.js
CHANGED
|
@@ -7,9 +7,9 @@ import fs, { promises as fsPromise } from 'node:fs';
|
|
|
7
7
|
import path from 'node:path';
|
|
8
8
|
import { fileURLToPath } from 'node:url';
|
|
9
9
|
import { getType, isString } from './common.js';
|
|
10
|
-
import { IS_WIN } from './constant.js';
|
|
11
10
|
|
|
12
11
|
/* constants */
|
|
12
|
+
import { IS_WIN } from './constant.js';
|
|
13
13
|
const MASK_BIT = 0o111;
|
|
14
14
|
const PERM_DIR = 0o777;
|
|
15
15
|
const PERM_FILE = 0o666;
|
package/modules/schema.js
CHANGED
|
@@ -10,6 +10,8 @@ import decamelize from 'decamelize';
|
|
|
10
10
|
import sinon from 'sinon';
|
|
11
11
|
import { getType, isObjectNotEmpty, isString } from './common.js';
|
|
12
12
|
import { convertUriToFilePath } from './file-util.js';
|
|
13
|
+
|
|
14
|
+
/* constants */
|
|
13
15
|
import { CHAR } from './constant.js';
|
|
14
16
|
|
|
15
17
|
export class Schema {
|
package/modules/update.js
CHANGED
|
@@ -8,9 +8,9 @@ import process from 'node:process';
|
|
|
8
8
|
import JSON5 from 'json5';
|
|
9
9
|
import { getType, isString } from './common.js';
|
|
10
10
|
import { createFile } from './file-util.js';
|
|
11
|
-
import { CHAR, INDENT } from './constant.js';
|
|
12
11
|
|
|
13
12
|
/* constants */
|
|
13
|
+
import { CHAR, INDENT } from './constant.js';
|
|
14
14
|
const DIR_CWD = process.cwd();
|
|
15
15
|
const PERM_FILE = 0o644;
|
|
16
16
|
export const ESR_VER = 115;
|
package/package.json
CHANGED
|
@@ -17,24 +17,24 @@
|
|
|
17
17
|
"commander": "^11.0.0",
|
|
18
18
|
"decamelize": "^6.0.0",
|
|
19
19
|
"json5": "^2.2.3",
|
|
20
|
-
"sinon": "^
|
|
20
|
+
"sinon": "^16.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@types/firefox-webext-browser": "^111.0.
|
|
24
|
-
"@types/node": "^20.
|
|
25
|
-
"@types/sinon": "^10.0.
|
|
23
|
+
"@types/firefox-webext-browser": "^111.0.2",
|
|
24
|
+
"@types/node": "^20.7.0",
|
|
25
|
+
"@types/sinon": "^10.0.17",
|
|
26
26
|
"c8": "^8.0.1",
|
|
27
|
-
"chai": "^4.3.
|
|
28
|
-
"eslint": "^8.
|
|
27
|
+
"chai": "^4.3.8",
|
|
28
|
+
"eslint": "^8.50.0",
|
|
29
29
|
"eslint-config-standard": "^17.1.0",
|
|
30
|
-
"eslint-plugin-import": "^2.28.
|
|
31
|
-
"eslint-plugin-jsdoc": "^46.
|
|
30
|
+
"eslint-plugin-import": "^2.28.1",
|
|
31
|
+
"eslint-plugin-jsdoc": "^46.8.2",
|
|
32
32
|
"eslint-plugin-regexp": "^1.15.0",
|
|
33
33
|
"eslint-plugin-unicorn": "^48.0.1",
|
|
34
34
|
"mocha": "^10.2.0",
|
|
35
35
|
"npm-run-all": "^4.1.5",
|
|
36
|
-
"typescript": "^5.
|
|
37
|
-
"undici": "^5.
|
|
36
|
+
"typescript": "^5.2.2",
|
|
37
|
+
"undici": "^5.25.2"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "npm run tsc && npm run lint && npm run test",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"update-mail": "node index update --channel=mail -i",
|
|
55
55
|
"update-release": "node index update --channel=release -i"
|
|
56
56
|
},
|
|
57
|
-
"version": "5.2.
|
|
57
|
+
"version": "5.2.3"
|
|
58
58
|
}
|
package/schemas/beta/webext.json
CHANGED
|
@@ -12575,7 +12575,8 @@
|
|
|
12575
12575
|
"unregisteredthreads",
|
|
12576
12576
|
"processcpu",
|
|
12577
12577
|
"power",
|
|
12578
|
-
"responsiveness"
|
|
12578
|
+
"responsiveness",
|
|
12579
|
+
"cpufreq"
|
|
12579
12580
|
]
|
|
12580
12581
|
},
|
|
12581
12582
|
{
|
|
@@ -12575,7 +12575,8 @@
|
|
|
12575
12575
|
"unregisteredthreads",
|
|
12576
12576
|
"processcpu",
|
|
12577
12577
|
"power",
|
|
12578
|
-
"responsiveness"
|
|
12578
|
+
"responsiveness",
|
|
12579
|
+
"cpufreq"
|
|
12579
12580
|
]
|
|
12580
12581
|
},
|
|
12581
12582
|
{
|
|
@@ -10926,20 +10926,58 @@
|
|
|
10926
10926
|
{
|
|
10927
10927
|
"name": "getRaw",
|
|
10928
10928
|
"type": "function",
|
|
10929
|
-
"description": "Returns the unmodified source of a message
|
|
10929
|
+
"description": "Returns the unmodified source of a message. Throws if the message could not be read, for example due to network issues.",
|
|
10930
10930
|
"async": "callback",
|
|
10931
10931
|
"parameters": [
|
|
10932
10932
|
{
|
|
10933
10933
|
"name": "messageId",
|
|
10934
10934
|
"type": "integer"
|
|
10935
10935
|
},
|
|
10936
|
+
{
|
|
10937
|
+
"name": "options",
|
|
10938
|
+
"type": "object",
|
|
10939
|
+
"properties": {
|
|
10940
|
+
"data_format": {
|
|
10941
|
+
"choices": [
|
|
10942
|
+
{
|
|
10943
|
+
"max_manifest_version": 2,
|
|
10944
|
+
"description": "The message can either be returned as a DOM File or as a `binary string <|link-binary-string|>`__. The historic default is to return a binary string (kept for backward compatibility). However, it is now recommended to use the ``File`` format, because the DOM File object can be used as-is with the downloads API and has useful methods to access the content, like `File.text() <|link-DOMFile-text|>`__ and `File.arrayBuffer() <|link-DOMFile-arrayBuffer|>`__. Working with binary strings is error prone and needs special handling: <literalinclude>includes/messages/decodeBinaryString.js<lang>JavaScript</lang></literalinclude> (see MDN for `supported input encodings <|link-input-encoding|>`__).",
|
|
10945
|
+
"type": "string",
|
|
10946
|
+
"enum": [
|
|
10947
|
+
"File",
|
|
10948
|
+
"BinaryString"
|
|
10949
|
+
]
|
|
10950
|
+
},
|
|
10951
|
+
{
|
|
10952
|
+
"min_manifest_version": 3,
|
|
10953
|
+
"description": "The message can either be returned as a DOM File (default) or as a `binary string <|link-binary-string|>`__. It is recommended to use the ``File`` format, because the DOM File object can be used as-is with the downloads API and has useful methods to access the content, like `File.text() <|link-DOMFile-text|>`__ and `File.arrayBuffer() <|link-DOMFile-arrayBuffer|>`__. Working with binary strings is error prone and needs special handling: <literalinclude>includes/messages/decodeBinaryString.js<lang>JavaScript</lang></literalinclude> (see MDN for `supported input encodings <|link-input-encoding|>`__).",
|
|
10954
|
+
"type": "string",
|
|
10955
|
+
"enum": [
|
|
10956
|
+
"File",
|
|
10957
|
+
"BinaryString"
|
|
10958
|
+
]
|
|
10959
|
+
}
|
|
10960
|
+
]
|
|
10961
|
+
}
|
|
10962
|
+
},
|
|
10963
|
+
"optional": true
|
|
10964
|
+
},
|
|
10936
10965
|
{
|
|
10937
10966
|
"type": "function",
|
|
10938
10967
|
"name": "callback",
|
|
10939
10968
|
"optional": true,
|
|
10940
10969
|
"parameters": [
|
|
10941
10970
|
{
|
|
10942
|
-
"
|
|
10971
|
+
"choices": [
|
|
10972
|
+
{
|
|
10973
|
+
"type": "string"
|
|
10974
|
+
},
|
|
10975
|
+
{
|
|
10976
|
+
"type": "object",
|
|
10977
|
+
"isInstanceOf": "File",
|
|
10978
|
+
"additionalProperties": true
|
|
10979
|
+
}
|
|
10980
|
+
]
|
|
10943
10981
|
}
|
|
10944
10982
|
]
|
|
10945
10983
|
}
|
|
@@ -12575,7 +12575,8 @@
|
|
|
12575
12575
|
"unregisteredthreads",
|
|
12576
12576
|
"processcpu",
|
|
12577
12577
|
"power",
|
|
12578
|
-
"responsiveness"
|
|
12578
|
+
"responsiveness",
|
|
12579
|
+
"cpufreq"
|
|
12579
12580
|
]
|
|
12580
12581
|
},
|
|
12581
12582
|
{
|