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xuXG4gICAgdmFyIGRvY19vcHRzID0geyBleGl0OiBmYWxzZSB9O1xuXG4gICAgaXQoJ3Nob3VsZCByb3V0ZSAvYWdlbnQnLCBmdW5jdGlvbigpIHtcbiAgICAgIHZhciBjbGkgPSBuZXcgVGVzdENsaShjbGlfb3B0aW9ucylcbiAgICAgICAgLnJvdXRlKCcvYWdlbnQnKTtcblxuICAgICAgZG9jX29wdHMuYXJndiA9IFsnYWdlbnQnLCAnc3RhcnQnXTtcbiAgICAgIHZhciByZXN1bHQgID0gY2xpLnJ1bihkb2Nfb3B0cywgY29udHJvbGxlcl9vcHRzKTtcblxuICAgICAgaC5leHBlY3QoY2xpLnJvdXRlc1swXS5wYXJhbXMpLnRvLmVxbCh7IGNvbnRyb2xsZXI6ICdhZ2VudCcsIGFjdGlvbjogdW5kZWZpbmVkIH0pO1xuICAgICAgaC5leHBlY3QocmVzdWx0KS50by5lcWwoJ2FnZW50IHN0YXJ0IG51bGwnKTtcbiAgICB9KTtcbiAgfSk7XG59KTtcbiJdLCJzb3VyY2VSb290IjoiL2NsaS1yb3V0ZXI6MC4wLjgvc3BlYyJ9 |
@@ -29,2 +29,2 @@ 'use strict'; | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNwZWMtaGVscGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDOztBQUUzQixJQUFJLE9BQU8sR0FBRztBQUNaLFFBQU0sRUFBRyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUMsTUFBTTs7QUFFdkMsY0FBWSxFQUFBLHdCQUFhO3NDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDckIsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxNQUFNLEVBQUU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jgvc3BlYyJ9 |
@@ -43,13 +43,20 @@ 'use strict'; | ||
} | ||
this.before_action.apply(this, [action_name].concat(args)); | ||
var result = this[action_name].apply(this, args); | ||
this.after_action.apply(this, [action_name].concat(args)); | ||
return result; | ||
return this.before_action.apply(this, [action_name].concat(args)); | ||
} | ||
}, { | ||
key: 'before_action', | ||
value: function before_action() {} | ||
value: function before_action(action_name) { | ||
for (var _len2 = arguments.length, args = Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) { | ||
args[_key2 - 1] = arguments[_key2]; | ||
} | ||
var action_result = this[action_name].apply(this, args); | ||
this.after_action.apply(this, [action_name].concat(args)); | ||
return action_result; | ||
} | ||
}, { | ||
key: 'after_action', | ||
value: function after_action() {} | ||
value: function after_action(action_name, action_result) { | ||
return action_result; | ||
} | ||
}]); | ||
@@ -61,3 +68,2 @@ | ||
exports.CliController = CliController; | ||
/* action_name, ...args */ /* action_name, ...args */ | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsaV9jb250cm9sbGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFJLENBQUMsR0FBTSxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7O0lBRWYsYUFBYTtBQUNiLFdBREEsYUFBYSxHQUNEOzs7UUFBWCxJQUFJLGdDQUFHLEVBQUU7OzBCQURWLGFBQWE7O0FBRXRCLFVBQU0sQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsT0FBTyxDQUFDLFVBQUMsR0FBRyxFQUFLO0FBQ2pDLFVBQUksSUFBSSxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsRUFBRTtBQUM1QixjQUFLLEdBQUcsQ0FBQyxHQUFHLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztPQUN2QjtLQUNGLENBQUMsQ0FBQztHQUNKOztlQVBVLGF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jdGlvbl9yZXN1bHQ7XG4gIH1cblxuICBhZnRlcl9hY3Rpb24oYWN0aW9uX25hbWUsIGFjdGlvbl9yZXN1bHQpIHtcbiAgICByZXR1cm4gYWN0aW9uX3Jlc3VsdDtcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIvY2xpLXJvdXRlcjowLjAuOC9zcmMifQ== |
@@ -159,3 +159,3 @@ 'use strict'; | ||
if (key === '--') { | ||
key = '__leftover'; | ||
key = '__doubledash'; | ||
} else { | ||
@@ -200,2 +200,2 @@ key = key.replace(this.param_regex, ''); | ||
exports.CliRouter = CliRouter; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsaV9yb3V0ZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O21CQUFtQixLQUFLOzs7O0FBRXhCLElBQUksQ0FBQyxHQUFNLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQztBQUM1QixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7O0lBRWQsU0FBUztBQUNULFdBREEsU0FBUyxDQUNSLGdCQUFnQixFQUFFLFdBQVcsRUFBRTswQkFEaEMsU0FBUzs7QUFFbEIsZUFBVyxHQUFHLFdBQVcsSUFBSSx1QkFBdUIsQ0FBQztBQUNyRCxRQUFJLENBQUMsZ0JBQWdCLEdBQUcsZ0JBQWdCLElBQUksSUFBSSxDQUFDOztBQUVqRCxRQUFJLElBQUksR0FBRyxpQkFBTyxLQUFLLENBQUMsV0FBVyxFQUFFLENBQUMsQ0FBQyxDQUFDOztBQUV4QyxRQUFJLENBQUMsV0FBVyxHQUFRLENBQUUsSUFBSSxDQUFFLENBQUM7QUFDakMsUUFBSSxDQUFDLE1BQU0sR0FBYSxFQUFFLENBQUM7QUFDM0IsUUFBSSxDQUFDLGdCQUFnQixHQUFHLEVBQUUsQ0FBQzs7QUFFM0IsUUFBS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Z3MpO1xuXG4gICAgaWYgKCFSLmlzTmlsKGNtZHMpICYmICFSLmlzRW1wdHkoY21kcykpIHtcbiAgICAgIHZhciBtYXRjaCA9IHRoaXMubWF0Y2goYC8ke2NtZHMuam9pbignLycpfS9gKTtcbiAgICAgIGlmIChSLmlzKE9iamVjdCwgbWF0Y2gpKSB7XG4gICAgICAgIHJvdXRlID0gdGhpcy5maW5kUm91dGVCeVBhcmFtcyhtYXRjaC5wYXJhbXMpO1xuICAgICAgICByb3V0ZSA9IFIubWVyZ2Uocm91dGUsIG1hdGNoKTtcbiAgICAgIH1cbiAgICB9XG5cbiAgICB2YXIgYXJncyA9IHRoaXMuY2xlYW5BcmdzKGZ1bGxfYXJncyk7XG4gICAgcmV0dXJuIHsgcm91dGUsIHBhcmFtczogcm91dGUucGFyYW1zLCBhcmdzLCBmdWxsX2FyZ3MgfTtcbiAgfVxuXG4gIHJ1bihhcmdzLCBvcHRzLCBvYmopIHtcbiAgICB2YXIgY29udHJvbGxlciA9IHRoaXMuY29udHJvbGxlcihhcmdzKTtcbiAgICB2YXIgZm4gICAgICAgICA9IHRoaXMuZ2V0Rm4oY29udHJvbGxlciwgb3B0cyk7XG4gICAgaWYgKFIuaXMoRnVuY3Rpb24sIGZuKSkge1xuICAgICAgcmV0dXJuIGZuKGNvbnRyb2xsZXIuYXJncywgKG9iaiB8fCB0aGlzKSk7XG4gICAgfVxuICB9XG59XG4iXSwic291cmNlUm9vdCI6Ii9jbGktcm91dGVyOjAuMC44L3NyYyJ9 |
@@ -92,2 +92,2 @@ 'use strict'; | ||
exports.Cli = Cli; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7MEJBQTBCLGNBQWM7O0FBRXhDLElBQUksRUFBRSxHQUFLLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQzs7QUFFekIsS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ZiBhcmdzID09PSAnc3RyaW5nJykge1xuICAgICAgYXJncyA9IHsgYXJndjogYXJncyB9O1xuICAgIH1cbiAgICB2YXIgcmVzdWx0ID0gdGhpcy5kb2NvcHQoYXJncyk7XG5cbiAgICBpZiAodHlwZW9mIHJlc3VsdCAhPT0gJ3N0cmluZycpIHtcbiAgICAgIHJlc3VsdCA9IHRoaXMucm91dGVyLnJ1bihyZXN1bHQsIG9wdHMsIChvYmogfHwgdGhpcykpO1xuICAgIH1cblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiL2NsaS1yb3V0ZXI6MC4wLjgvc3JjIn0= |
{ | ||
"name": "cli-router", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "cli-router", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90902
692