1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
subject: remove depend on buffer-from
author: Bastien Roucariès <rouca@debian.org>
forwarded: not-needed
Index: node-source-map-support/package.json
===================================================================
--- node-source-map-support.orig/package.json
+++ node-source-map-support/package.json
@@ -10,7 +10,6 @@
"test": "mocha"
},
"dependencies": {
- "buffer-from": "^1.0.0",
"source-map": "^0.6.0"
},
"devDependencies": {
Index: node-source-map-support/source-map-support.js
===================================================================
--- node-source-map-support.orig/source-map-support.js
+++ node-source-map-support/source-map-support.js
@@ -12,7 +12,7 @@ try {
/* nop */
}
-var bufferFrom = require('buffer-from');
+var bufferFrom = Buffer.from;
// Only install once if called multiple times
var errorFormatterInstalled = false;
Index: node-source-map-support/test.js
===================================================================
--- node-source-map-support.orig/test.js
+++ node-source-map-support/test.js
@@ -6,7 +6,7 @@ var SourceMapGenerator = require('source
var child_process = require('child_process');
var assert = require('assert');
var fs = require('fs');
-var bufferFrom = require('buffer-from');
+var bufferFrom = Buffer.from;
function compareLines(actual, expected) {
assert(actual.length >= expected.length, 'got ' + actual.length + ' lines but expected at least ' + expected.length + ' lines');
|