Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Uses deprecated new Buffer() which gives warning #46

Open
@buckett

Description

@buckett

Description

When running anything that makes requests to the API a warning is emitted on newer versions of nodejs:

(node:41042) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

This is because the code uses the new Buffer(string) method which is deprecated and since version 10 has emitted this warning: https://nodejs.org/api/buffer.html#new-bufferstring-encoding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions