Update npm dependencies

This commit is contained in:
Fedor Indutny 2024-06-25 13:28:45 -07:00 committed by GitHub
parent b691e24d5c
commit 751fc80869
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 8066 additions and 10168 deletions

View file

@ -41,6 +41,28 @@ Signal Desktop makes use of the following open source projects.
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.
## @indutny/dicer
Copyright Brian White. All rights reserved.
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.
## @indutny/sneequals
Copyright Fedor Indutny, 2022.
@ -1132,7 +1154,7 @@ Signal Desktop makes use of the following open source projects.
## config
// Copyright 2010-2015, Loren West and other contributors
// Copyright 2010-2018, Loren West and other contributors
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
@ -1190,28 +1212,6 @@ Signal Desktop makes use of the following open source projects.
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## dicer
Copyright Brian White. All rights reserved.
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.
## direction
(The MIT License)

18096
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -47,7 +47,6 @@
"test-node": "cross-env LANG=en-us electron-mocha --timeout 10000 --file test/setup-test-node.js --recursive test/modules ts/test-node ts/test-both",
"test-mock": "mocha --require ts/test-mock/setup-ci.js ts/test-mock/**/*_test.js",
"test-eslint": "mocha .eslint/rules/**/*.test.js --ignore-leaks",
"test-node-coverage": "nyc --reporter=lcov --reporter=text mocha --recursive test/modules ts/test-node ts/test-both",
"test-lint-intl": "ts-node ./build/intl-linter/linter.ts --test",
"eslint": "eslint --cache . --cache-strategy content --max-warnings 0",
"lint": "run-s --print-label lint-prettier lint-css check:types eslint",
@ -64,7 +63,6 @@
"check:types": "tsc --noEmit",
"clean-transpile-once": "rimraf sticker-creator/dist app/**/*.js app/*.js ts/**/*.js ts/*.js bundles tsconfig.tsbuildinfo",
"clean-transpile": "run-s clean-transpile-once clean-transpile-once",
"open-coverage": "open coverage/lcov-report/index.html",
"ready": "npm-run-all --print-label clean-transpile generate --parallel lint lint-deps lint-intl test-node test-electron",
"dev": "npm run build-protobuf && cross-env SIGNAL_ENV=storybook storybook dev --port 6006",
"dev:transpile": "run-p \"check:types --watch\" dev:esbuild dev:icu-types",
@ -97,6 +95,7 @@
"@formatjs/fast-memoize": "1.2.6",
"@formatjs/icu-messageformat-parser": "2.3.0",
"@formatjs/intl-localematcher": "0.2.32",
"@indutny/dicer": "0.3.2",
"@indutny/sneequals": "4.0.0",
"@nodert-win10-rs4/windows.data.xml.dom": "0.4.4",
"@nodert-win10-rs4/windows.ui.notifications": "0.4.4",
@ -116,10 +115,9 @@
"changedpi": "1.0.4",
"cirbuf": "1.0.1",
"classnames": "2.2.5",
"config": "1.28.1",
"config": "1.31.0",
"copy-text-to-clipboard": "2.1.0",
"dashdash": "1.14.1",
"dicer": "0.3.1",
"direction": "1.0.4",
"emoji-datasource": "15.1.2",
"emoji-datasource-apple": "15.1.2",
@ -225,7 +223,7 @@
"@storybook/jest": "0.2.2",
"@storybook/react": "7.4.5",
"@storybook/react-webpack5": "7.4.5",
"@storybook/test-runner": "0.13.0",
"@storybook/test-runner": "0.19.0",
"@storybook/testing-library": "0.2.2",
"@types/backbone": "1.4.16",
"@types/blueimp-load-image": "5.14.1",
@ -235,7 +233,6 @@
"@types/config": "0.0.39",
"@types/dashdash": "1.14.0",
"@types/debug": "4.1.7",
"@types/dicer": "0.2.2",
"@types/direction": "1.0.0",
"@types/filesize": "3.6.0",
"@types/fs-extra": "5.0.5",
@ -257,6 +254,7 @@
"@types/pify": "3.0.2",
"@types/pixelmatch": "5.2.6",
"@types/pngjs": "6.0.4",
"@types/prettier": "2.7.3",
"@types/quill": "1.3.10",
"@types/react": "17.0.45",
"@types/react-dom": "17.0.17",
@ -290,7 +288,7 @@
"cross-env": "5.2.0",
"css-loader": "3.2.0",
"csv-parse": "5.5.2",
"danger": "11.1.2",
"danger": "11.3.1",
"debug": "4.3.3",
"electron": "30.0.9",
"electron-builder": "24.13.3",
@ -310,11 +308,10 @@
"http-server": "14.1.1",
"json-to-ast": "2.1.0",
"mini-css-extract-plugin": "2.7.6",
"mocha": "9.1.3",
"mocha": "9.2.2",
"node-gyp": "10.0.1",
"node-gyp-build": "4.8.1",
"npm-run-all": "4.1.5",
"nyc": "11.4.1",
"p-limit": "3.1.0",
"patch-package": "8.0.0",
"pixelmatch": "5.3.0",
@ -327,7 +324,7 @@
"sass": "1.49.7",
"sass-loader": "10.2.0",
"sinon": "11.1.1",
"storybook": "7.4.5",
"storybook": "7.6.20",
"style-loader": "1.0.0",
"stylelint": "15.4.0",
"stylelint-config-css-modules": "4.2.0",
@ -335,12 +332,11 @@
"stylelint-use-logical-spec": "5.0.0",
"svgo": "3.0.2",
"terser-webpack-plugin": "5.1.1",
"ts-loader": "4.1.0",
"ts-node": "8.3.0",
"typed-scss-modules": "4.1.1",
"typescript": "5.3.3",
"unzipper": "0.10.14",
"wait-on": "7.0.1",
"wait-on": "7.2.0",
"webpack": "5.88.2",
"webpack-cli": "4.9.2",
"webpack-dev-server": "4.11.1"
@ -353,9 +349,20 @@
},
"@types/react": "17.0.45",
"@types/react-dom": "17.0.17",
"fabric": { "canvas": "$nop", "jsdom": "$nop" },
"fast-glob": { "glob-parent": "5.1.2" },
"read-last-lines": { "mz": { "thenify-all": { "thenify": "3.3.1" } } }
"fabric": {
"canvas": "$nop",
"jsdom": "$nop"
},
"fast-glob": {
"glob-parent": "5.1.2"
},
"read-last-lines": {
"mz": {
"thenify-all": {
"thenify": "3.3.1"
}
}
}
},
"engines": {
"node": "20.11.1"

View file

@ -4,12 +4,13 @@
import type { FileHandle } from 'fs/promises';
import { readFile, open } from 'fs/promises';
import type { Readable } from 'stream';
import { pipeline } from 'stream/promises';
import { promisify } from 'util';
import { gunzip as nativeGunzip } from 'zlib';
import got from 'got';
import { chunk as lodashChunk, noop } from 'lodash';
import pMap from 'p-map';
import Dicer from 'dicer';
import Dicer from '@indutny/dicer';
import { strictAssert } from '../util/assert';
import { wrapEventEmitterOnce } from '../util/wrapEventEmitterOnce';
@ -424,18 +425,8 @@ export async function downloadRanges(
const partPromises = new Array<Promise<void>>();
dicer.on('part', part => partPromises.push(onPart(part)));
dicer.once('finish', () => stream.destroy());
stream.once('error', err => dicer.destroy(err));
// Pipe the response stream fully into dicer
// NOTE: we can't use `pipeline` due to a dicer bug:
// https://github.com/mscdex/dicer/issues/26
stream.pipe(dicer);
await wrapEventEmitterOnce(dicer, 'finish');
// Due to the bug above we need to do a manual cleanup
stream.unpipe(dicer);
stream.destroy();
await pipeline(stream, dicer);
// Wait for individual parts to be fully written to FS
await Promise.all(partPromises);

View file

@ -97,6 +97,13 @@
"reasonCategory": "usageTrusted",
"updated": "2023-10-03T18:55:06.301Z"
},
{
"rule": "eval",
"path": "node_modules/@jest/fake-timers/node_modules/@sinonjs/commons/lib/function-name.test.js",
"line": " fn = eval(\"(function*() {})\")().constructor;",
"reasonCategory": "testCode",
"updated": "2024-06-25T17:33:38.376Z"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/@ndelangen/get-tarball/dist/index.js",
@ -829,27 +836,6 @@
"reasonCategory": "falseMatch",
"updated": "2018-09-15T00:38:04.183Z"
},
{
"rule": "eval",
"path": "node_modules/config/node_modules/json5/test/parse.js",
"line": "// native JSON.parse() or ES5 strict-mode eval(). See readme.txt for details.",
"reasonCategory": "testCode",
"updated": "2024-06-24T19:19:28.335Z"
},
{
"rule": "eval",
"path": "node_modules/config/node_modules/json5/test/parse.js",
"line": "// For eval(), remember to wrap the input in parentheses before eval()'ing,",
"reasonCategory": "testCode",
"updated": "2024-06-24T19:19:28.335Z"
},
{
"rule": "eval",
"path": "node_modules/config/node_modules/json5/test/parse.js",
"line": " return eval('\"use strict\"; (\\n' + str + '\\n)');",
"reasonCategory": "testCode",
"updated": "2024-06-24T19:19:28.335Z"
},
{
"rule": "DOM-outerHTML",
"path": "node_modules/domutils/node_modules/dom-serializer/lib/esm/index.js",
@ -1515,6 +1501,18 @@
"reasonCategory": "testCode",
"updated": "2024-06-24T19:19:28.335Z"
},
{
"rule": "DOM-innerHTML",
"path": "node_modules/prettier-fallback/plugins/html.js",
"reasonCategory": "notExercisedByOurApp",
"updated": "2024-06-25T17:33:38.376Z"
},
{
"rule": "DOM-outerHTML",
"path": "node_modules/prettier-fallback/plugins/html.js",
"reasonCategory": "notExercisedByOurApp",
"updated": "2024-06-25T17:33:38.376Z"
},
{
"rule": "eval",
"path": "node_modules/protobufjs/dist/light/protobuf.js",