Skip to content

Commit 201bca6

Browse files
committedMay 28, 2019
Bump dependencies
1 parent c35e6a2 commit 201bca6

File tree

3 files changed

+38
-47
lines changed

3 files changed

+38
-47
lines changed
 

‎lib/actions/copy-tpl.js

+13-8
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
var extend = require('deep-extend');
44
var ejs = require('ejs');
5-
var isBinaryFile = require('isbinaryfile');
5+
var isBinaryFileSync = require('isbinaryfile').isBinaryFileSync;
66

77
function render(contents, filename, context, tplSettings) {
88
let result;
99

1010
const contentsBuffer = Buffer.from(contents, 'binary');
11-
if (isBinaryFile.sync(contentsBuffer, contentsBuffer.length)) {
11+
if (isBinaryFileSync(contentsBuffer, contentsBuffer.length)) {
1212
result = contentsBuffer;
1313
} else {
1414
result = ejs.render(
@@ -26,10 +26,15 @@ module.exports = function (from, to, context, tplSettings, options) {
2626
context = context || {};
2727
tplSettings = tplSettings || {};
2828

29-
this.copy(from, to, extend(options || {}, {
30-
process: function (contents, filename) {
31-
return render(contents, filename, context, tplSettings);
32-
}
33-
}),
34-
context, tplSettings);
29+
this.copy(
30+
from,
31+
to,
32+
extend(options || {}, {
33+
process: function (contents, filename) {
34+
return render(contents, filename, context, tplSettings);
35+
}
36+
}),
37+
context,
38+
tplSettings
39+
);
3540
};

‎package-lock.json

+23-37
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"ejs": "^2.6.1",
2020
"glob": "^7.1.4",
2121
"globby": "^9.2.0",
22-
"isbinaryfile": "^3.0.3",
22+
"isbinaryfile": "^4.0.0",
2323
"mkdirp": "^0.5.0",
24-
"multimatch": "^3.0.0",
24+
"multimatch": "^4.0.0",
2525
"rimraf": "^2.6.3",
2626
"through2": "^3.0.1",
2727
"vinyl": "^2.2.0"

0 commit comments

Comments
 (0)
Please sign in to comment.