Skip to content

Commit

Permalink
fix(transform): use new syntax of [email protected]
Browse files Browse the repository at this point in the history
  • Loading branch information
stevemao committed Aug 9, 2015
1 parent d707ef6 commit a14397d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function conventionalGithubReleaser(auth, changelogOpts, context, gitRawCommitsO
writerOpts = changelogArgs[4];

changelogOpts = merge({
transform: through.obj(function(chunk, enc, cb) {
transform: function(chunk, cb) {
if (typeof chunk.gitTags === 'string') {
var match = /tag:\s*(.+?)[,\)]/gi.exec(chunk.gitTags);
if (match) {
Expand All @@ -53,7 +53,7 @@ function conventionalGithubReleaser(auth, changelogOpts, context, gitRawCommitsO
}

cb(null, chunk);
}),
},
releaseCount: 1
}, changelogOpts);

Expand Down

0 comments on commit a14397d

Please sign in to comment.