Changed Buffer in json task
Because of DeprecationWarning. Buffer() to Buffer.from()
This commit is contained in:
parent
ae780c4993
commit
0fa1b3c4b4
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ function json() {
|
||||||
return src(input.data)
|
return src(input.data)
|
||||||
.pipe(plumber())
|
.pipe(plumber())
|
||||||
.pipe(jsonConcat(hippie.jsonFile +'.json', function(data) {
|
.pipe(jsonConcat(hippie.jsonFile +'.json', function(data) {
|
||||||
return new Buffer(JSON.stringify(data));
|
return new Buffer.from(JSON.stringify(data));
|
||||||
}))
|
}))
|
||||||
.pipe(dest(output.data));
|
.pipe(dest(output.data));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue