Skip to content

Commit 241fcc2

Browse files
committed
Merge remote-tracking branch 'origin/master' into ab/fix-291
2 parents e7deac0 + 2b2ff34 commit 241fcc2

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,6 @@ jobs:
2121
- 16
2222
- 14
2323
- 12
24-
- 10
25-
- 9
26-
- '8'
27-
- '7'
28-
- '6'
29-
- '4'
30-
- '0.12'
31-
# - '0.10'
3224
steps:
3325
# checkout code
3426
- uses: actions/checkout@v2

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"test": "mocha"
1111
},
1212
"dependencies": {
13-
"buffer-from": "^1.0.0",
1413
"source-map": "^0.6.0"
1514
},
1615
"devDependencies": {
@@ -27,5 +26,8 @@
2726
"bugs": {
2827
"url": "https://github.com/evanw/node-source-map-support/issues"
2928
},
30-
"license": "MIT"
29+
"license": "MIT",
30+
"engines": {
31+
"node": ">=12"
32+
}
3133
}

source-map-support.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ try {
1212
/* nop */
1313
}
1414

15-
var bufferFrom = require('buffer-from');
16-
1715
/**
1816
* Requires a module which is protected against bundler minification.
1917
*
@@ -171,7 +169,7 @@ retrieveMapHandlers.push(function(source) {
171169
if (reSourceMap.test(sourceMappingURL)) {
172170
// Support source map URL as a data url
173171
var rawData = sourceMappingURL.slice(sourceMappingURL.indexOf(',') + 1);
174-
sourceMapData = bufferFrom(rawData, "base64").toString();
172+
sourceMapData = Buffer.from(rawData, "base64").toString();
175173
sourceMappingURL = source;
176174
} else {
177175
// Support source map URLs relative to the source URL

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var SourceMapGenerator = require('source-map').SourceMapGenerator;
66
var child_process = require('child_process');
77
var assert = require('assert');
88
var fs = require('fs');
9-
var bufferFrom = require('buffer-from');
9+
var bufferFrom = Buffer.from;
1010

1111
function compareLines(actual, expected) {
1212
assert(actual.length >= expected.length, 'got ' + actual.length + ' lines but expected at least ' + expected.length + ' lines');

0 commit comments

Comments
 (0)