diff --git a/dist/index.js b/dist/index.js index 241e732..099d6e4 100644 --- a/dist/index.js +++ b/dist/index.js @@ -100,7 +100,7 @@ function processFilePath(context, file, cb) { context.onBoundary(file.type, feat, done); })).once('error', function (err) { return cb(err); - }).once('end', function () { + }).once('finish', function () { debug(' -- ' + _chalk2.default.cyan('Parsed ' + file.path + ' and inserted ' + count + ' boundaries')); cb(); }); diff --git a/src/index.js b/src/index.js index 92bebbe..b8cc8cc 100644 --- a/src/index.js +++ b/src/index.js @@ -56,7 +56,7 @@ function processFilePath(context, file, cb) { context.onBoundary(file.type, feat, done) })) .once('error', (err) => cb(err)) - .once('end', () => { + .once('finish', () => { debug(` -- ${chalk.cyan(`Parsed ${file.path} and inserted ${count} boundaries`)}`) cb() })