Skip to content

Commit 9d9e96f

Browse files
committedJun 16, 2021
chore: update deps, publish v5
1 parent ea13d8a commit 9d9e96f

File tree

5 files changed

+11
-10
lines changed

5 files changed

+11
-10
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ results
1515

1616
npm-debug.log
1717
node_modules
18+
package-lock.json
1819
*.sublime*
1920
.travis.yml
2021
test

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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>

‎index.js

+1-1
Original file line numberDiff line numberDiff 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;

‎package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {
@@ -11,7 +11,7 @@
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",
@@ -23,15 +23,15 @@
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
}

‎test/main.js

+1-1
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)
Please sign in to comment.