Skip to content
  • wincent's avatar
    Silence deprecation warning about `new Buffer()` · b83ef92c
    wincent authored
    ```
    [DEP0005] 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:152:11)
        at new Buffer (buffer.js:167:3)
        at base64 ($SRCROOT/masochist/src/common/toGlobalId.js:12:12)
        at base64 ($SRCROOT/masochist/src/common/toGlobalId.js:21:10)
        at getCacheKey ($SRCROOT/masochist/src/server/loadContent.js:35:10)
        at getCacheKey ($SRCROOT/masochist/src/server/loadContent.js:54:20)
        at process.internalTickCallback (internal/process/next_tick.js:77:7)
    ```
    b83ef92c