Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
fix(extract-stream): address "write after end" issue (#151)
Browse files Browse the repository at this point in the history
Fixes: #142
  • Loading branch information
stsvilik authored and zkat committed May 19, 2018
1 parent cb2a549 commit 50ed408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/extract-stream.js
Expand Up @@ -16,7 +16,7 @@ function pkgJsonTransform (spec, opts) {
if (entry.path === 'package.json') {
const transformed = new Minipass()
let str = ''
entry.on('end', () => {
entry.once('end', () => {
const replaced = str.replace(
/}\s*$/,
`\n,"_resolved": ${
Expand Down

0 comments on commit 50ed408

Please sign in to comment.