Skip to content

Commit

Permalink
Merge pull request #12 from haensl/11
Browse files Browse the repository at this point in the history
Update dependencies. Replace gulp-util with plugin-error. Remove depr…
  • Loading branch information
haensl authored Jul 14, 2019
2 parents 50cb861 + d3fd80d commit ce106f8
Show file tree
Hide file tree
Showing 4 changed files with 805 additions and 1,073 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.3.3
* [#11: Update dependencies.](https://github.com/haensl/gulp-minify-inline-json/issues/11)
* Replace `gulp-util` with `plugin-error`.
* Remove deprecated instantiation of Buffers via `new`.

## 1.3.2
* [#8: Integrate CI deployment.](https://github.com/haensl/gulp-minify-inline-json/issues/8)

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = (opts = {}) =>
return callback(new PluginError(PLUGIN_NAME, 'Invalid option: mimeTypes must be string or Array of strings'));
}

file.contents = new Buffer(minifyInlineJson(file.contents.toString(), options));
file.contents = Buffer.from(minifyInlineJson(file.contents.toString(), options));

callback(null, file);
});
Loading

0 comments on commit ce106f8

Please sign in to comment.