Skip to content

Update Buffer indication#49

Open
sobocinski wants to merge 1 commit intomhr3:masterfrom
sobocinski:fix/buffer-alloc
Open

Update Buffer indication#49
sobocinski wants to merge 1 commit intomhr3:masterfrom
sobocinski:fix/buffer-alloc

Conversation

@sobocinski
Copy link

I prepare a small update to eliminate Buffer constructor has been deprecated due to security and usability issues.

DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Related to: #38

Copy link

@NinjaManatee NinjaManatee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a few more instances of the Buffer constructor that have not been changed. These instances can be found in lib/unzip-stream.js at lines 665 and 678.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants