summaryrefslogtreecommitdiff
path: root/school/node_modules/whatwg-encoding
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
committerMinteck <contact@minteck.org>2023-02-23 19:34:56 +0100
commit3d1cd02f27518f1a04374c7c8320cd5d82ede6e9 (patch)
tree75be5fba4368472fb11c8015aee026b2b9a71888 /school/node_modules/whatwg-encoding
parent8cc1f13c17fa2fb5a4410542d39e650e02945634 (diff)
downloadpluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.gz
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.tar.bz2
pluralconnect-3d1cd02f27518f1a04374c7c8320cd5d82ede6e9.zip
Updated 40 files, added 37 files, deleted 1103 files and renamed 3905 files (automated)
Diffstat (limited to 'school/node_modules/whatwg-encoding')
-rw-r--r--school/node_modules/whatwg-encoding/LICENSE.txt7
-rw-r--r--school/node_modules/whatwg-encoding/README.md50
-rw-r--r--school/node_modules/whatwg-encoding/lib/labels-to-names.json207
-rw-r--r--school/node_modules/whatwg-encoding/lib/supported-names.json37
-rw-r--r--school/node_modules/whatwg-encoding/lib/whatwg-encoding.js47
-rw-r--r--school/node_modules/whatwg-encoding/package.json29
6 files changed, 0 insertions, 377 deletions
diff --git a/school/node_modules/whatwg-encoding/LICENSE.txt b/school/node_modules/whatwg-encoding/LICENSE.txt
deleted file mode 100644
index c106e37..0000000
--- a/school/node_modules/whatwg-encoding/LICENSE.txt
+++ /dev/null
@@ -1,7 +0,0 @@
-Copyright © 2016–2018 Domenic Denicola <d@domenic.me>
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/school/node_modules/whatwg-encoding/README.md b/school/node_modules/whatwg-encoding/README.md
deleted file mode 100644
index 5c7e468..0000000
--- a/school/node_modules/whatwg-encoding/README.md
+++ /dev/null
@@ -1,50 +0,0 @@
-# Decode According to the WHATWG Encoding Standard
-
-This package provides a thin layer on top of [iconv-lite](https://github.com/ashtuchkin/iconv-lite) which makes it expose some of the same primitives as the [Encoding Standard](https://encoding.spec.whatwg.org/).
-
-```js
-const whatwgEncoding = require("whatwg-encoding");
-
-console.assert(whatwgEncoding.labelToName("latin1") === "windows-1252");
-console.assert(whatwgEncoding.labelToName(" CYRILLic ") === "ISO-8859-5");
-
-console.assert(whatwgEncoding.isSupported("IBM866") === true);
-
-// Not supported by the Encoding Standard
-console.assert(whatwgEncoding.isSupported("UTF-32") === false);
-
-// In the Encoding Standard, but this package can't decode it
-console.assert(whatwgEncoding.isSupported("x-mac-cyrillic") === false);
-
-console.assert(whatwgEncoding.getBOMEncoding(new Buffer([0xFE, 0xFF])) === "UTF-16BE");
-console.assert(whatwgEncoding.getBOMEncoding(new Buffer([0x48, 0x69])) === null);
-
-console.assert(whatwgEncoding.decode(new Buffer([0x48, 0x69]), "UTF-8") === "Hi");
-```
-
-## API
-
-- `decode(buffer, fallbackEncodingName)`: performs the [decode](https://encoding.spec.whatwg.org/#decode) algorithm (in which any BOM will override the passed fallback encoding), and returns the resulting string
-- `labelToName(label)`: performs the [get an encoding](https://encoding.spec.whatwg.org/#concept-encoding-get) algorithm and returns the resulting encoding's name, or `null` for failure
-- `isSupported(name)`: returns whether the encoding is one of [the encodings](https://encoding.spec.whatwg.org/#names-and-labels) of the Encoding Standard, _and_ is an encoding that this package can decode (via iconv-lite)
-- `getBOMEncoding(buffer)`: sniffs the first 2–3 bytes of the supplied `Buffer`, returning one of the encoding names `"UTF-8"`, `"UTF-16LE"`, or `"UTF-16BE"` if the appropriate BOM is present, or `null` if no BOM is present
-
-## Unsupported encodings
-
-Since we rely on iconv-lite, we are limited to support only the encodings that they support. Currently we are missing support for:
-
-- ISO-2022-JP
-- ISO-8859-8-I
-- replacement
-- x-mac-cyrillic
-- x-user-defined
-
-Passing these encoding names will return `false` when calling `isSupported`, and passing any of the possible labels for these encodings to `labelToName` will return `null`.
-
-## Credits
-
-This package was originally based on the excellent work of [@nicolashenry](https://github.com/nicolashenry), [in jsdom](https://github.com/tmpvar/jsdom/blob/7ce11776ce161e8d5921a7a183585327400f786b/lib/jsdom/living/helpers/encoding.js). It has since been pulled out into this separate package.
-
-## Alternatives
-
-If you are looking for a JavaScript implementation of the Encoding Standard's `TextEncoder` and `TextDecoder` APIs, you'll want [@inexorabletash](https://github.com/inexorabletash)'s [text-encoding](https://github.com/inexorabletash/text-encoding) package.
diff --git a/school/node_modules/whatwg-encoding/lib/labels-to-names.json b/school/node_modules/whatwg-encoding/lib/labels-to-names.json
deleted file mode 100644
index 917e657..0000000
--- a/school/node_modules/whatwg-encoding/lib/labels-to-names.json
+++ /dev/null
@@ -1,207 +0,0 @@
-{
- "866": "IBM866",
- "unicode-1-1-utf-8": "UTF-8",
- "utf-8": "UTF-8",
- "utf8": "UTF-8",
- "cp866": "IBM866",
- "csibm866": "IBM866",
- "ibm866": "IBM866",
- "csisolatin2": "ISO-8859-2",
- "iso-8859-2": "ISO-8859-2",
- "iso-ir-101": "ISO-8859-2",
- "iso8859-2": "ISO-8859-2",
- "iso88592": "ISO-8859-2",
- "iso_8859-2": "ISO-8859-2",
- "iso_8859-2:1987": "ISO-8859-2",
- "l2": "ISO-8859-2",
- "latin2": "ISO-8859-2",
- "csisolatin3": "ISO-8859-3",
- "iso-8859-3": "ISO-8859-3",
- "iso-ir-109": "ISO-8859-3",
- "iso8859-3": "ISO-8859-3",
- "iso88593": "ISO-8859-3",
- "iso_8859-3": "ISO-8859-3",
- "iso_8859-3:1988": "ISO-8859-3",
- "l3": "ISO-8859-3",
- "latin3": "ISO-8859-3",
- "csisolatin4": "ISO-8859-4",
- "iso-8859-4": "ISO-8859-4",
- "iso-ir-110": "ISO-8859-4",
- "iso8859-4": "ISO-8859-4",
- "iso88594": "ISO-8859-4",
- "iso_8859-4": "ISO-8859-4",
- "iso_8859-4:1988": "ISO-8859-4",
- "l4": "ISO-8859-4",
- "latin4": "ISO-8859-4",
- "csisolatincyrillic": "ISO-8859-5",
- "cyrillic": "ISO-8859-5",
- "iso-8859-5": "ISO-8859-5",
- "iso-ir-144": "ISO-8859-5",
- "iso8859-5": "ISO-8859-5",
- "iso88595": "ISO-8859-5",
- "iso_8859-5": "ISO-8859-5",
- "iso_8859-5:1988": "ISO-8859-5",
- "arabic": "ISO-8859-6",
- "asmo-708": "ISO-8859-6",
- "csiso88596e": "ISO-8859-6",
- "csiso88596i": "ISO-8859-6",
- "csisolatinarabic": "ISO-8859-6",
- "ecma-114": "ISO-8859-6",
- "iso-8859-6": "ISO-8859-6",
- "iso-8859-6-e": "ISO-8859-6",
- "iso-8859-6-i": "ISO-8859-6",
- "iso-ir-127": "ISO-8859-6",
- "iso8859-6": "ISO-8859-6",
- "iso88596": "ISO-8859-6",
- "iso_8859-6": "ISO-8859-6",
- "iso_8859-6:1987": "ISO-8859-6",
- "csisolatingreek": "ISO-8859-7",
- "ecma-118": "ISO-8859-7",
- "elot_928": "ISO-8859-7",
- "greek": "ISO-8859-7",
- "greek8": "ISO-8859-7",
- "iso-8859-7": "ISO-8859-7",
- "iso-ir-126": "ISO-8859-7",
- "iso8859-7": "ISO-8859-7",
- "iso88597": "ISO-8859-7",
- "iso_8859-7": "ISO-8859-7",
- "iso_8859-7:1987": "ISO-8859-7",
- "sun_eu_greek": "ISO-8859-7",
- "csiso88598e": "ISO-8859-8",
- "csisolatinhebrew": "ISO-8859-8",
- "hebrew": "ISO-8859-8",
- "iso-8859-8": "ISO-8859-8",
- "iso-8859-8-e": "ISO-8859-8",
- "iso-ir-138": "ISO-8859-8",
- "iso8859-8": "ISO-8859-8",
- "iso88598": "ISO-8859-8",
- "iso_8859-8": "ISO-8859-8",
- "iso_8859-8:1988": "ISO-8859-8",
- "visual": "ISO-8859-8",
- "csisolatin6": "ISO-8859-10",
- "iso-8859-10": "ISO-8859-10",
- "iso-ir-157": "ISO-8859-10",
- "iso8859-10": "ISO-8859-10",
- "iso885910": "ISO-8859-10",
- "l6": "ISO-8859-10",
- "latin6": "ISO-8859-10",
- "iso-8859-13": "ISO-8859-13",
- "iso8859-13": "ISO-8859-13",
- "iso885913": "ISO-8859-13",
- "iso-8859-14": "ISO-8859-14",
- "iso8859-14": "ISO-8859-14",
- "iso885914": "ISO-8859-14",
- "csisolatin9": "ISO-8859-15",
- "iso-8859-15": "ISO-8859-15",
- "iso8859-15": "ISO-8859-15",
- "iso885915": "ISO-8859-15",
- "iso_8859-15": "ISO-8859-15",
- "l9": "ISO-8859-15",
- "iso-8859-16": "ISO-8859-16",
- "cskoi8r": "KOI8-R",
- "koi": "KOI8-R",
- "koi8": "KOI8-R",
- "koi8-r": "KOI8-R",
- "koi8_r": "KOI8-R",
- "koi8-ru": "KOI8-U",
- "koi8-u": "KOI8-U",
- "csmacintosh": "macintosh",
- "mac": "macintosh",
- "macintosh": "macintosh",
- "x-mac-roman": "macintosh",
- "dos-874": "windows-874",
- "iso-8859-11": "windows-874",
- "iso8859-11": "windows-874",
- "iso885911": "windows-874",
- "tis-620": "windows-874",
- "windows-874": "windows-874",
- "cp1250": "windows-1250",
- "windows-1250": "windows-1250",
- "x-cp1250": "windows-1250",
- "cp1251": "windows-1251",
- "windows-1251": "windows-1251",
- "x-cp1251": "windows-1251",
- "ansi_x3.4-1968": "windows-1252",
- "ascii": "windows-1252",
- "cp1252": "windows-1252",
- "cp819": "windows-1252",
- "csisolatin1": "windows-1252",
- "ibm819": "windows-1252",
- "iso-8859-1": "windows-1252",
- "iso-ir-100": "windows-1252",
- "iso8859-1": "windows-1252",
- "iso88591": "windows-1252",
- "iso_8859-1": "windows-1252",
- "iso_8859-1:1987": "windows-1252",
- "l1": "windows-1252",
- "latin1": "windows-1252",
- "us-ascii": "windows-1252",
- "windows-1252": "windows-1252",
- "x-cp1252": "windows-1252",
- "cp1253": "windows-1253",
- "windows-1253": "windows-1253",
- "x-cp1253": "windows-1253",
- "cp1254": "windows-1254",
- "csisolatin5": "windows-1254",
- "iso-8859-9": "windows-1254",
- "iso-ir-148": "windows-1254",
- "iso8859-9": "windows-1254",
- "iso88599": "windows-1254",
- "iso_8859-9": "windows-1254",
- "iso_8859-9:1989": "windows-1254",
- "l5": "windows-1254",
- "latin5": "windows-1254",
- "windows-1254": "windows-1254",
- "x-cp1254": "windows-1254",
- "cp1255": "windows-1255",
- "windows-1255": "windows-1255",
- "x-cp1255": "windows-1255",
- "cp1256": "windows-1256",
- "windows-1256": "windows-1256",
- "x-cp1256": "windows-1256",
- "cp1257": "windows-1257",
- "windows-1257": "windows-1257",
- "x-cp1257": "windows-1257",
- "cp1258": "windows-1258",
- "windows-1258": "windows-1258",
- "x-cp1258": "windows-1258",
- "chinese": "GBK",
- "csgb2312": "GBK",
- "csiso58gb231280": "GBK",
- "gb2312": "GBK",
- "gb_2312": "GBK",
- "gb_2312-80": "GBK",
- "gbk": "GBK",
- "iso-ir-58": "GBK",
- "x-gbk": "GBK",
- "gb18030": "gb18030",
- "big5": "Big5",
- "big5-hkscs": "Big5",
- "cn-big5": "Big5",
- "csbig5": "Big5",
- "x-x-big5": "Big5",
- "cseucpkdfmtjapanese": "EUC-JP",
- "euc-jp": "EUC-JP",
- "x-euc-jp": "EUC-JP",
- "csshiftjis": "Shift_JIS",
- "ms932": "Shift_JIS",
- "ms_kanji": "Shift_JIS",
- "shift-jis": "Shift_JIS",
- "shift_jis": "Shift_JIS",
- "sjis": "Shift_JIS",
- "windows-31j": "Shift_JIS",
- "x-sjis": "Shift_JIS",
- "cseuckr": "EUC-KR",
- "csksc56011987": "EUC-KR",
- "euc-kr": "EUC-KR",
- "iso-ir-149": "EUC-KR",
- "korean": "EUC-KR",
- "ks_c_5601-1987": "EUC-KR",
- "ks_c_5601-1989": "EUC-KR",
- "ksc5601": "EUC-KR",
- "ksc_5601": "EUC-KR",
- "windows-949": "EUC-KR",
- "utf-16be": "UTF-16BE",
- "utf-16": "UTF-16LE",
- "utf-16le": "UTF-16LE"
-} \ No newline at end of file
diff --git a/school/node_modules/whatwg-encoding/lib/supported-names.json b/school/node_modules/whatwg-encoding/lib/supported-names.json
deleted file mode 100644
index bcb282e..0000000
--- a/school/node_modules/whatwg-encoding/lib/supported-names.json
+++ /dev/null
@@ -1,37 +0,0 @@
-[
- "UTF-8",
- "IBM866",
- "ISO-8859-2",
- "ISO-8859-3",
- "ISO-8859-4",
- "ISO-8859-5",
- "ISO-8859-6",
- "ISO-8859-7",
- "ISO-8859-8",
- "ISO-8859-10",
- "ISO-8859-13",
- "ISO-8859-14",
- "ISO-8859-15",
- "ISO-8859-16",
- "KOI8-R",
- "KOI8-U",
- "macintosh",
- "windows-874",
- "windows-1250",
- "windows-1251",
- "windows-1252",
- "windows-1253",
- "windows-1254",
- "windows-1255",
- "windows-1256",
- "windows-1257",
- "windows-1258",
- "GBK",
- "gb18030",
- "Big5",
- "EUC-JP",
- "Shift_JIS",
- "EUC-KR",
- "UTF-16BE",
- "UTF-16LE"
-] \ No newline at end of file
diff --git a/school/node_modules/whatwg-encoding/lib/whatwg-encoding.js b/school/node_modules/whatwg-encoding/lib/whatwg-encoding.js
deleted file mode 100644
index d04eab5..0000000
--- a/school/node_modules/whatwg-encoding/lib/whatwg-encoding.js
+++ /dev/null
@@ -1,47 +0,0 @@
-"use strict";
-const iconvLite = require("iconv-lite");
-const supportedNames = require("./supported-names.json");
-const labelsToNames = require("./labels-to-names.json");
-
-const supportedNamesSet = new Set(supportedNames);
-
-// https://encoding.spec.whatwg.org/#concept-encoding-get
-exports.labelToName = label => {
- label = String(label).trim().toLowerCase();
-
- return labelsToNames[label] || null;
-};
-
-// https://encoding.spec.whatwg.org/#decode
-exports.decode = (buffer, fallbackEncodingName) => {
- let encoding = fallbackEncodingName;
- if (!exports.isSupported(encoding)) {
- throw new RangeError(`"${encoding}" is not a supported encoding name`);
- }
-
- const bomEncoding = exports.getBOMEncoding(buffer);
- if (bomEncoding !== null) {
- encoding = bomEncoding;
- }
-
- // iconv-lite will strip BOMs for us, so no need to do the stuff the spec does
-
- return iconvLite.decode(buffer, encoding);
-};
-
-// https://github.com/whatwg/html/issues/1910#issuecomment-254017369
-exports.getBOMEncoding = buffer => {
- if (buffer[0] === 0xFE && buffer[1] === 0xFF) {
- return "UTF-16BE";
- } else if (buffer[0] === 0xFF && buffer[1] === 0xFE) {
- return "UTF-16LE";
- } else if (buffer[0] === 0xEF && buffer[1] === 0xBB && buffer[2] === 0xBF) {
- return "UTF-8";
- }
-
- return null;
-};
-
-exports.isSupported = name => {
- return supportedNamesSet.has(String(name));
-};
diff --git a/school/node_modules/whatwg-encoding/package.json b/school/node_modules/whatwg-encoding/package.json
deleted file mode 100644
index be29b91..0000000
--- a/school/node_modules/whatwg-encoding/package.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "whatwg-encoding",
- "description": "Decode strings according to the WHATWG Encoding Standard",
- "keywords": [
- "encoding",
- "whatwg"
- ],
- "version": "1.0.5",
- "author": "Domenic Denicola <d@domenic.me> (https://domenic.me/)",
- "license": "MIT",
- "repository": "jsdom/whatwg-encoding",
- "main": "lib/whatwg-encoding.js",
- "files": [
- "lib/"
- ],
- "scripts": {
- "test": "mocha",
- "lint": "eslint lib test",
- "prepare": "node scripts/update.js"
- },
- "dependencies": {
- "iconv-lite": "0.4.24"
- },
- "devDependencies": {
- "eslint": "^5.3.0",
- "got": "^9.0.0",
- "mocha": "^5.2.0"
- }
-}