File tree Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Expand file tree Collapse file tree 4 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 21
21
- 16
22
22
- 14
23
23
- 12
24
- - 10
25
- - 9
26
- - ' 8'
27
- - ' 7'
28
- - ' 6'
29
- - ' 4'
30
- - ' 0.12'
31
- # - '0.10'
32
24
steps :
33
25
# checkout code
34
26
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change 10
10
"test" : " mocha"
11
11
},
12
12
"dependencies" : {
13
- "buffer-from" : " ^1.0.0" ,
14
13
"source-map" : " ^0.6.0"
15
14
},
16
15
"devDependencies" : {
27
26
"bugs" : {
28
27
"url" : " https://github.com/evanw/node-source-map-support/issues"
29
28
},
30
- "license" : " MIT"
29
+ "license" : " MIT" ,
30
+ "engines" : {
31
+ "node" : " >=12"
32
+ }
31
33
}
Original file line number Diff line number Diff line change 12
12
/* nop */
13
13
}
14
14
15
- var bufferFrom = require ( 'buffer-from' ) ;
16
-
17
15
/**
18
16
* Requires a module which is protected against bundler minification.
19
17
*
@@ -171,7 +169,7 @@ retrieveMapHandlers.push(function(source) {
171
169
if ( reSourceMap . test ( sourceMappingURL ) ) {
172
170
// Support source map URL as a data url
173
171
var rawData = sourceMappingURL . slice ( sourceMappingURL . indexOf ( ',' ) + 1 ) ;
174
- sourceMapData = bufferFrom ( rawData , "base64" ) . toString ( ) ;
172
+ sourceMapData = Buffer . from ( rawData , "base64" ) . toString ( ) ;
175
173
sourceMappingURL = source ;
176
174
} else {
177
175
// Support source map URLs relative to the source URL
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ var SourceMapGenerator = require('source-map').SourceMapGenerator;
6
6
var child_process = require ( 'child_process' ) ;
7
7
var assert = require ( 'assert' ) ;
8
8
var fs = require ( 'fs' ) ;
9
- var bufferFrom = require ( 'buffer- from' ) ;
9
+ var bufferFrom = Buffer . from ;
10
10
11
11
function compareLines ( actual , expected ) {
12
12
assert ( actual . length >= expected . length , 'got ' + actual . length + ' lines but expected at least ' + expected . length + ' lines' ) ;
You can’t perform that action at this time.
0 commit comments