andrewrk / andrewrk/node-fd-slicer

Buffer deprecated warning

Offen
#3 5 Kommentare 14 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
30
Forks
19
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I am developer from VS Code and we are using the module `yauzl v2.9.2` which depends on this module and it throws following warning.

```
internal/process/warning.js:127
throw warning;
^

DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
at showFlaggedDeprecation (buffer.js:156:11)
at new Buffer (buffer.js:171:3)
at /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar/fd-slicer/index.js:109:18
at pendGo (/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar/pend/index.js:54:3)
at onCb (/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar/pend/index.js:41:7)
at /Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar/fd-slicer/index.js:31:7
at FSReqCallback.wrapper [as oncomplete] (fs.js:477:5) {
name: 'DeprecationWarning',
code: 'DEP0005'
}
```

https://github.com/thejoshwolfe/yauzl/issues/114
https://github.com/microsoft/vscode/issues/82524

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.