You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
491 B
19 lines
491 B
/*
|
|
MIT License http://www.opensource.org/licenses/mit-license.php
|
|
Author Tobias Koppers @sokra
|
|
*/
|
|
function TryNextPlugin(source, message, target) {
|
|
this.source = source;
|
|
this.message = message;
|
|
this.target = target;
|
|
}
|
|
module.exports = TryNextPlugin;
|
|
|
|
TryNextPlugin.prototype.apply = function(resolver) {
|
|
var target = this.target;
|
|
var message = this.message;
|
|
resolver.plugin(this.source, function(request, callback) {
|
|
resolver.doResolve(target, request, message, callback);
|
|
});
|
|
};
|