Skip to content

Commit

Permalink
chore: update deps, publish v5
Browse files Browse the repository at this point in the history
  • Loading branch information
yocontra committed Jun 16, 2021
1 parent ea13d8a commit 9d9e96f
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ results

npm-debug.log
node_modules
package-lock.json
*.sublime*
.travis.yml
test
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</tr>
<tr>
<td>Node Version</td>
<td>>= 0.10</td>
<td>>= 6</td>
</tr>
<tr>
<td>Less Version</td>
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module.exports = function (options) {
}

renderLess(str, opts).then(function(res) {
file.contents = new Buffer(res.result);
file.contents = Buffer.from(res.result);
file.path = replaceExt(file.path, '.css');
if (res.sourcemap) {
res.sourcemap.file = file.relative;
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-less",
"version": "4.0.1",
"version": "5.0.0",
"description": "Less for Gulp",
"main": "index.js",
"scripts": {
Expand All @@ -11,7 +11,7 @@
"url": "git://github.com/gulp-community/gulp-less.git"
},
"engines": {
"node": ">=0.10.0"
"node": ">=6"
},
"keywords": [
"gulpplugin",
Expand All @@ -23,15 +23,15 @@
"dependencies": {
"less": "^3.7.1 || ^4.0.0",
"object-assign": "^4.0.1",
"plugin-error": "^0.1.2",
"replace-ext": "^1.0.0",
"through2": "^2.0.0",
"plugin-error": "^1.0.0",
"replace-ext": "^2.0.0",
"through2": "^4.0.0",
"vinyl-sourcemaps-apply": "^0.2.0"
},
"devDependencies": {
"jshint": "^2.9.4",
"mocha": "^3.4.2",
"should": "^11.2.0",
"mocha": "^9.0.0",
"should": "^13.0.0",
"vinyl": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ describe('gulp-less', function () {
var errorCalled = false;
var stream = less();
var errorFile = createVinyl('somefile.less',
new Buffer('html { color: @undefined-variable; }'));
Buffer.from('html { color: @undefined-variable; }'));
stream.once('error', function (err) {
err.message.should.equal('variable @undefined-variable is undefined in file '+errorFile.path+' line no. 1');
errorCalled = true;
Expand Down

0 comments on commit 9d9e96f

Please sign in to comment.