File tree 5 files changed +11
-10
lines changed
5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ results
15
15
16
16
npm-debug.log
17
17
node_modules
18
+ package-lock.json
18
19
* .sublime *
19
20
.travis.yml
20
21
test
Original file line number Diff line number Diff line change 18
18
</tr >
19
19
<tr >
20
20
<td >Node Version</td >
21
- <td >>= 0.10 </td >
21
+ <td >>= 6 </td >
22
22
</tr >
23
23
<tr >
24
24
<td >Less Version</td >
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ module.exports = function (options) {
86
86
}
87
87
88
88
renderLess ( str , opts ) . then ( function ( res ) {
89
- file . contents = new Buffer ( res . result ) ;
89
+ file . contents = Buffer . from ( res . result ) ;
90
90
file . path = replaceExt ( file . path , '.css' ) ;
91
91
if ( res . sourcemap ) {
92
92
res . sourcemap . file = file . relative ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gulp-less" ,
3
- "version" : " 4 .0.1 " ,
3
+ "version" : " 5 .0.0 " ,
4
4
"description" : " Less for Gulp" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
11
11
"url" : " git://github.com/gulp-community/gulp-less.git"
12
12
},
13
13
"engines" : {
14
- "node" : " >=0.10.0 "
14
+ "node" : " >=6 "
15
15
},
16
16
"keywords" : [
17
17
" gulpplugin" ,
23
23
"dependencies" : {
24
24
"less" : " ^3.7.1 || ^4.0.0" ,
25
25
"object-assign" : " ^4.0.1" ,
26
- "plugin-error" : " ^0.1.2 " ,
27
- "replace-ext" : " ^1 .0.0" ,
28
- "through2" : " ^2 .0.0" ,
26
+ "plugin-error" : " ^1.0.0 " ,
27
+ "replace-ext" : " ^2 .0.0" ,
28
+ "through2" : " ^4 .0.0" ,
29
29
"vinyl-sourcemaps-apply" : " ^0.2.0"
30
30
},
31
31
"devDependencies" : {
32
32
"jshint" : " ^2.9.4" ,
33
- "mocha" : " ^3.4.2 " ,
34
- "should" : " ^11.2 .0" ,
33
+ "mocha" : " ^9.0.0 " ,
34
+ "should" : " ^13.0 .0" ,
35
35
"vinyl" : " ^2.1.0"
36
36
}
37
37
}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ describe('gulp-less', function () {
68
68
var errorCalled = false ;
69
69
var stream = less ( ) ;
70
70
var errorFile = createVinyl ( 'somefile.less' ,
71
- new Buffer ( 'html { color: @undefined-variable; }' ) ) ;
71
+ Buffer . from ( 'html { color: @undefined-variable; }' ) ) ;
72
72
stream . once ( 'error' , function ( err ) {
73
73
err . message . should . equal ( 'variable @undefined-variable is undefined in file ' + errorFile . path + ' line no. 1' ) ;
74
74
errorCalled = true ;
You can’t perform that action at this time.
0 commit comments