Skip to content

Commit e5bd021

Browse files
chore(deps): bump chardet from 0.8.0 to 1.0.0 (#875)
* chore(deps): bump chardet from 0.8.0 to 1.0.0 Bumps [chardet](https://github.com/runk/node-chardet) from 0.8.0 to 1.0.0. - [Release notes](https://github.com/runk/node-chardet/releases) - [Commits](runk/node-chardet@v0.8.0...v1.0.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * changed detectAll to analyse and removed redundant chardet @types Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Chris Johnston <chris.johnston@sport80.com>
1 parent 2f1f37a commit e5bd021

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"watch:css": "yarn run build:css -w"
5050
},
5151
"dependencies": {
52-
"chardet": "^0.8.0",
52+
"chardet": "^1.0.0",
5353
"dayjs": "^1.8.23",
5454
"minimatch": "^3.0.4",
5555
"original-fs": "^1.0.0",
@@ -60,7 +60,6 @@
6060
"devDependencies": {
6161
"@semantic-release/changelog": "^5.0.1",
6262
"@semantic-release/git": "^9.0.0",
63-
"@types/chardet": "^0.8.0",
6463
"@types/glob": "^7.1.1",
6564
"@types/mocha": "^7.0.2",
6665
"@types/node": "^12.11.7",

src/encoding.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function detectEncoding(buffer: Buffer): string | null {
6262
false
6363
);
6464
if (experimental) {
65-
const detected = chardet.detectAll(buffer);
65+
const detected = chardet.analyse(buffer);
6666
const encodingPriorities = configuration.get<string[]>(
6767
"experimental.encoding_priority",
6868
[]

yarn.lock

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,6 @@
247247
resolved "https://registry.yarnpkg.com/@tootallnate/once/-/once-1.0.0.tgz#9c13c2574c92d4503b005feca8f2e16cc1611506"
248248
integrity sha512-KYyTT/T6ALPkIRd2Ge080X/BsXvy9O0hcWTtMWkPvwAwF99+vn6Dv4GzrFT/Nn1LePr+FFDbRXXlqmsy9lw2zA==
249249

250-
"@types/chardet@^0.8.0":
251-
version "0.8.0"
252-
resolved "https://registry.yarnpkg.com/@types/chardet/-/chardet-0.8.0.tgz#40932a9d751bb1ff22e7403312faaf81755ad432"
253-
integrity sha512-0PFX0r+bt2W6np4tZzF2Gh28pPLTM7lgjLMs0DJnV/Y4rPI3kLJCwtwRTb4aGl1iHmuF8TEmizzfJOw/7XQRfw==
254-
dependencies:
255-
"@types/node" "*"
256-
257250
"@types/color-name@^1.1.1":
258251
version "1.1.1"
259252
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
@@ -913,10 +906,10 @@ chardet@^0.7.0:
913906
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e"
914907
integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==
915908

916-
chardet@^0.8.0:
917-
version "0.8.0"
918-
resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.8.0.tgz#215e9e457296aa88fb0c38b010fd7a7e20482ed3"
919-
integrity sha512-fRAe54sDSPvCz9I3puKUoUpLBEIUjlwBoNyNcD2eAiP5Ybw2iXnrT7w15hfkNywosXFNllWwvOKsxl7UUCKQaQ==
909+
chardet@^1.0.0:
910+
version "1.0.0"
911+
resolved "https://registry.yarnpkg.com/chardet/-/chardet-1.0.0.tgz#65ba4e0ceed0434be13ceb20cc4ff4925981ae55"
912+
integrity sha512-sRgcGMB9CDh4AnAELRZ0++YGu2W6MOx0gyNliIQddywtvIBXuA83ePfgyszHkrWI9dOuz51WyfC6lCizS4arpg==
920913

921914
cheerio@^1.0.0-rc.1:
922915
version "1.0.0-rc.3"

0 commit comments

Comments
 (0)