File tree Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Expand file tree Collapse file tree 5 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ results
1515
1616npm-debug.log
1717node_modules
18+ package-lock.json
1819* .sublime *
1920.travis.yml
2021test
Original file line number Diff line number Diff line change 1818</tr >
1919<tr >
2020<td >Node Version</td >
21- <td >>= 0.10 </td >
21+ <td >>= 6 </td >
2222</tr >
2323<tr >
2424<td >Less Version</td >
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ module.exports = function (options) {
8686 }
8787
8888 renderLess ( str , opts ) . then ( function ( res ) {
89- file . contents = new Buffer ( res . result ) ;
89+ file . contents = Buffer . from ( res . result ) ;
9090 file . path = replaceExt ( file . path , '.css' ) ;
9191 if ( res . sourcemap ) {
9292 res . sourcemap . file = file . relative ;
Original file line number Diff line number Diff line change 11{
22 "name" : " gulp-less" ,
3- "version" : " 4 .0.1 " ,
3+ "version" : " 5 .0.0 " ,
44 "description" : " Less for Gulp" ,
55 "main" : " index.js" ,
66 "scripts" : {
1111 "url" : " git://github.com/gulp-community/gulp-less.git"
1212 },
1313 "engines" : {
14- "node" : " >=0.10.0 "
14+ "node" : " >=6 "
1515 },
1616 "keywords" : [
1717 " gulpplugin" ,
2323 "dependencies" : {
2424 "less" : " ^3.7.1 || ^4.0.0" ,
2525 "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" ,
2929 "vinyl-sourcemaps-apply" : " ^0.2.0"
3030 },
3131 "devDependencies" : {
3232 "jshint" : " ^2.9.4" ,
33- "mocha" : " ^3.4.2 " ,
34- "should" : " ^11.2 .0" ,
33+ "mocha" : " ^9.0.0 " ,
34+ "should" : " ^13.0 .0" ,
3535 "vinyl" : " ^2.1.0"
3636 }
3737}
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ describe('gulp-less', function () {
6868 var errorCalled = false ;
6969 var stream = less ( ) ;
7070 var errorFile = createVinyl ( 'somefile.less' ,
71- new Buffer ( 'html { color: @undefined-variable; }' ) ) ;
71+ Buffer . from ( 'html { color: @undefined-variable; }' ) ) ;
7272 stream . once ( 'error' , function ( err ) {
7373 err . message . should . equal ( 'variable @undefined-variable is undefined in file ' + errorFile . path + ' line no. 1' ) ;
7474 errorCalled = true ;
You can’t perform that action at this time.
0 commit comments