File: 09-buffer_from.diff

package info (click to toggle)
node-yarnpkg 1.22.19%2B~cs24.27.18-2%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 94,132 kB
  • sloc: javascript: 42,973; sh: 335; makefile: 21
file content (14 lines) | stat: -rw-r--r-- 363 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Description: Patch away dependency on buffer-from
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>

--- a/peek-stream/index.js
+++ b/peek-stream/index.js
@@ -1,6 +1,6 @@
 var duplexify = require('duplexify')
 var through = require('through2')
-var bufferFrom = require('buffer-from')
+var bufferFrom = Buffer.from
 
 var noop = function() {}