Skip to content

Commit

Permalink
Updated packages with vulnerabilities (#2)
Browse files Browse the repository at this point in the history
* Add node version to develop this project

* Update packages

* Ignore .nvmrc file on npm package
  • Loading branch information
gersanco authored Apr 19, 2020
1 parent 043b48c commit 02f4208
Show file tree
Hide file tree
Showing 5 changed files with 2,215 additions and 1,053 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.nvmrc
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.5.0
9 changes: 4 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
const through = require('through');
const path = require('path');
const gutil = require('gulp-util');
const PluginError = gutil.PluginError;
const File = gutil.File;
const PluginError = require('plugin-error');
const Vinyl = require('vinyl');

const {
parseJsonLanguage,
Expand Down Expand Up @@ -49,7 +48,7 @@ module.exports = function (fileName) {

function endStream() {
const joinedPath = path.join(firstFile.base, fileName);
const joinedFile = new File({
const joinedFile = new Vinyl({
cwd: firstFile.cwd,
base: firstFile.base,
path: joinedPath,
Expand All @@ -59,4 +58,4 @@ module.exports = function (fileName) {
this.emit('end');
}
return through(bufferContents, endStream);
};
};
Loading

0 comments on commit 02f4208

Please sign in to comment.