Skip to content

Commit

Permalink
fix #82524 (#206415)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Feb 28, 2024
1 parent 6504145 commit e25f421
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"vscode-oniguruma": "1.7.0",
"vscode-regexpp": "^3.1.0",
"vscode-textmate": "9.0.0",
"yauzl": "^2.9.2",
"yauzl": "^3.0.0",
"yazl": "^2.4.3"
},
"devDependencies": {
Expand All @@ -127,7 +127,7 @@
"@types/wicg-file-system-access": "^2020.9.6",
"@types/windows-foreground-love": "^0.3.0",
"@types/winreg": "^1.2.30",
"@types/yauzl": "^2.9.1",
"@types/yauzl": "^2.10.0",
"@types/yazl": "^2.4.2",
"@typescript-eslint/eslint-plugin": "^5.57.0",
"@typescript-eslint/experimental-utils": "^5.57.0",
Expand Down
2 changes: 1 addition & 1 deletion remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"vscode-oniguruma": "1.7.0",
"vscode-regexpp": "^3.1.0",
"vscode-textmate": "9.0.0",
"yauzl": "^2.9.2",
"yauzl": "^3.0.0",
"yazl": "^2.4.3"
}
}
8 changes: 8 additions & 0 deletions remote/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,14 @@ yauzl@^2.9.2:
buffer-crc32 "~0.2.3"
fd-slicer "~1.1.0"

yauzl@^3.0.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-3.1.1.tgz#d85503cc34933c0bcb3646ee2b97afedbebe32e7"
integrity sha512-MPxA7oN5cvGV0wzfkeHKF2/+Q4TkMpHSWGRy/96I4Cozljmx0ph91+Muxh6HegEtDC4GftJ8qYDE51vghFiEYA==
dependencies:
buffer-crc32 "~0.2.3"
pend "~1.2.0"

yazl@^2.4.3:
version "2.4.3"
resolved "https://registry.yarnpkg.com/yazl/-/yazl-2.4.3.tgz#ec26e5cc87d5601b9df8432dbdd3cd2e5173a071"
Expand Down
4 changes: 2 additions & 2 deletions src/vs/base/node/zip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ async function openZip(zipFile: string, lazy: boolean = false): Promise<ZipFile>
const { open } = await import('yauzl');

return new Promise<ZipFile>((resolve, reject) => {
open(zipFile, lazy ? { lazyEntries: true } : undefined!, (error?: Error, zipfile?: ZipFile) => {
open(zipFile, lazy ? { lazyEntries: true } : undefined!, (error: Error | null, zipfile?: ZipFile) => {
if (error) {
reject(toExtractError(error));
} else {
Expand All @@ -176,7 +176,7 @@ async function openZip(zipFile: string, lazy: boolean = false): Promise<ZipFile>

function openZipStream(zipFile: ZipFile, entry: Entry): Promise<Readable> {
return new Promise<Readable>((resolve, reject) => {
zipFile.openReadStream(entry, (error?: Error, stream?: Readable) => {
zipFile.openReadStream(entry, (error: Error | null, stream?: Readable) => {
if (error) {
reject(toExtractError(error));
} else {
Expand Down
15 changes: 15 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,13 @@
resolved "https://registry.yarnpkg.com/@types/winreg/-/winreg-1.2.30.tgz#91d6710e536d345b9c9b017c574cf6a8da64c518"
integrity sha1-kdZxDlNtNFucmwF8V0z2qNpkxRg=

"@types/yauzl@^2.10.0":
version "2.10.3"
resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.10.3.tgz#e9b2808b4f109504a03cda958259876f61017999"
integrity sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==
dependencies:
"@types/node" "*"

"@types/yauzl@^2.9.1":
version "2.9.1"
resolved "https://registry.yarnpkg.com/@types/yauzl/-/yauzl-2.9.1.tgz#d10f69f9f522eef3cf98e30afb684a1e1ec923af"
Expand Down Expand Up @@ -10464,6 +10471,14 @@ yauzl@^2.2.1:
buffer-crc32 "~0.2.3"
fd-slicer "~1.0.1"

yauzl@^3.0.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/yauzl/-/yauzl-3.1.1.tgz#d85503cc34933c0bcb3646ee2b97afedbebe32e7"
integrity sha512-MPxA7oN5cvGV0wzfkeHKF2/+Q4TkMpHSWGRy/96I4Cozljmx0ph91+Muxh6HegEtDC4GftJ8qYDE51vghFiEYA==
dependencies:
buffer-crc32 "~0.2.3"
pend "~1.2.0"

yazl@^2.2.1, yazl@^2.4.3:
version "2.4.3"
resolved "https://registry.yarnpkg.com/yazl/-/yazl-2.4.3.tgz#ec26e5cc87d5601b9df8432dbdd3cd2e5173a071"
Expand Down

0 comments on commit e25f421

Please sign in to comment.