Skip to content

Commit

Permalink
Upgrade pirates to version 2.0.0!
Browse files Browse the repository at this point in the history
  • Loading branch information
Ari Porad committed Dec 8, 2015
1 parent 1ef0207 commit 76e4826
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/hook.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ function hookRequire(matcher, transformer, options) {

extensions = options.extensions || ['.js'];

var revert = pirates.addHook(extensions, matcher, function(code, filename) {
var revert = pirates.addHook(function(code, filename) {
var ret = fn(code, filename);
if (postLoadHook) {
postLoadHook(filename);
}
return ret.code;
});
}, { exts: extensions, matcher: matcher });

reverts.push(revert);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
},
"homepage": "https://github.com/istanbuljs/istanbul-lib-hook#readme",
"dependencies": {
"pirates": "^1.1.0"
"pirates": "^2.0.0"
}
}

0 comments on commit 76e4826

Please sign in to comment.