webext-schema 5.2.1 → 5.2.2

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 CHANGED
@@ -21,20 +21,20 @@
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/firefox-webext-browser": "^111.0.1",
24
- "@types/node": "^20.4.5",
24
+ "@types/node": "^20.5.7",
25
25
  "@types/sinon": "^10.0.16",
26
26
  "c8": "^8.0.1",
27
- "chai": "^4.3.7",
28
- "eslint": "^8.46.0",
27
+ "chai": "^4.3.8",
28
+ "eslint": "^8.48.0",
29
29
  "eslint-config-standard": "^17.1.0",
30
- "eslint-plugin-import": "^2.28.0",
31
- "eslint-plugin-jsdoc": "^46.4.5",
30
+ "eslint-plugin-import": "^2.28.1",
31
+ "eslint-plugin-jsdoc": "^46.5.1",
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.1.6",
37
- "undici": "^5.22.1"
36
+ "typescript": "^5.2.2",
37
+ "undici": "^5.23.0"
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.1"
57
+ "version": "5.2.2"
58
58
  }
@@ -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 as a `binary string <|link-binary-string|>`__, which is a simple series of 8-bit values. Throws if the message could not be read, for example due to network issues. If the message contains non-ASCII characters, the body parts in the binary string cannot be read directly and must be decoded according to their character sets. Use :ref:`messages.getFull` to get the correctly decoded parts. Manually decoding the raw message is probably too error-prone, especially if the message contains MIME parts with different character set encodings or attachments.\n\nTo get a readable version of the raw message as it appears in Thunderbird's message source view, it may be sufficient to decode the message according to the character set specified in its main `content-type <|link-content-type|>`__ header (example: <value>text/html; charset=UTF-8</value>) using the following function (see MDN for `supported input encodings <|link-input-encoding|>`__): <literalinclude>includes/messages/decodeBinaryString.js<lang>JavaScript</lang></literalinclude>",
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
- "type": "string"
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
  }