Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cli-router

Package Overview
Dependencies
Maintainers
5
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cli-router - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

lib/spec/cli_controller_spec.js

@@ -58,2 +58,2 @@ 'use strict';

});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsaV9jb250cm9sbGVyX3NwZWMuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7OzBCQUFjLGVBQWU7Ozs7aUNBRUMsdUJBQXVCOztBQUVyRCxRQUFRLENBQUMsc0JBQXNCLEVBQUUsWUFBVztBQUMxQyxJQUFFLENBQUMsK0NBQStDLEVBQUUsWUFBVztRQUN2RCx3QkFBd0I7ZUFBeEIsd0JBQXdCOzhCQUF4Qix3QkFBd0I7Ozs7Ozs7Z0JBQXhCLHdCQUF3Qjs7bUJBQXhCLHdCQUF3Qjs7ZUFDdkIsZUFBQyxJQUFJLEVBQUU7QUFDVixpQkFBTyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUM7U0FDaEI7OztlQUVZLHVCQUFDLE1BQU0sRUFBRSxJQUFJLEVBQUU7QUFDMUIsY0FBSSxDQUFDLE9BQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQztBQUN2Qiw0Q0FQRSx3QkFBd0IsK0NBT0MsTUFBTSxFQUFFLElBQUksRUFBRTtTQUMxQzs7O2VBRVcsc0JBQUMsTUFBTSxFQUFFLE1BQU0sRUFBRTtBQUMzQiw0Q0FYRSx3QkFBd0IsOENBV0EsTUFBTSxPQUFLLE1BQU0saUJBQWM7U0FDMUQ7OzthQVpHLHdCQUF3QjswQkFKekIsYUFBYTs7QUFtQmxCLFFBQUksVUFBVSxHQUFHLElBQUksd0JBQXdCLEVBQUUsQ0FBQztB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0aW9uKCkge1xuICAgIGRvY19vcHRzLmFyZ3YgPSBbJ3ZtJywgJy0taGVscCddO1xuICAgIHZhciByZXN1bHQgID0gY2xpLnJ1bihkb2Nfb3B0cywgY29udHJvbGxlcl9vcHRzKTtcblxuICAgIGguZXhwZWN0KHJlc3VsdCkudG8ubWF0Y2goUmVnRXhwKCdVc2FnZTonICAgICwgJ2dpJykpO1xuICAgIGguZXhwZWN0KHJlc3VsdCkudG8ubWF0Y2goUmVnRXhwKCdBY3Rpb25zOicgICwgJ2dpJykpO1xuICAgIGguZXhwZWN0KHJlc3VsdCkudG8ubWF0Y2goUmVnRXhwKCdBcmd1bWVudHM6JywgJ2dpJykpO1xuICAgIGguZXhwZWN0KHJlc3VsdCkudG8ubWF0Y2goUmVnRXhwKCdPcHRpb25zOicgICwgJ2dpJykpO1xuICB9KTtcblxuICBpdChcInNob3VsZCBydW4gYHRtcCAtLWhlbHBgIGNvbW1hbmRcIiwgZnVuY3Rpb24oKSB7XG4gICAgZG9jX29wdHMuYXJndiA9IFsndG1wJywgJy0taGVscCddO1xuICAgIHZhciByZXN1bHQgID0gY2xpLnJ1bihkb2Nfb3B0cywgY29udHJvbGxlcl9vcHRzKTtcblxuICAgIGguZXhwZWN0KHJlc3VsdCkudG8ubWF0Y2goUmVnRXhwKCdVc2FnZTonICAgICwgJ2dpJykpO1xuICAgIGguZXhwZWN0KHJlc3VsdCkudG8ubWF0Y2goUmVnRXhwKCdBY3Rpb25zOicgICwgJ2dpJykpO1xuICAgIGguZXhwZWN0KHJlc3VsdCkudG8ubWF0Y2goUmVnRXhwKCdBcmd1bWVudHM6JywgJ2dpJykpO1xuICAgIGguZXhwZWN0KHJlc3VsdCkudG8ubWF0Y2goUmVnRXhwKCdPcHRpb25zOicgICwgJ2dpJykpO1xuICB9KTtcbn0pO1xuIl0sInNvdXJjZVJvb3QiOiIvY2xpLXJvdXRlcjowLjMuMC9zcGVjIn0=

@@ -73,2 +73,2 @@ 'use strict';

module.exports = Agent;
//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Y3QoY2xpLnJvdXRlc1swXS5hY3Rpb25zKS50by5kZWVwLmVxbChbXSk7XG4gICAgICBoLmV4cGVjdChjbGkucm91dGVzWzBdLmZuKS50by5kZWVwLmVxbCh1bmRlZmluZWQpO1xuICAgICAgaC5leHBlY3QocmVzdWx0KS50by5lcWwoJ2FnZW50IHN0YXJ0IG51bGwnKTtcbiAgICB9KTtcbiAgfSk7XG59KTtcbiJdLCJzb3VyY2VSb290IjoiL2NsaS1yb3V0ZXI6MC4zLjAvc3BlYyJ9

@@ -29,2 +29,2 @@ 'use strict';

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNwZWMtaGVscGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDOztBQUUzQixJQUFJLE9BQU8sR0FBRztBQUNaLFFBQU0sRUFBRyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUMsTUFBTTs7QUFFdkMsY0FBWSxFQUFBLHdCQUFhO3NDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDckIsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxNQUFNLEVBQUUsVUFBVSxTQUFLLE9BQU8sRUFDcEMsQ0FBQztHQUNIOztBQUVELHNCQUFvQixFQUFBLGdDQUFhO3VDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDN0IsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFVBQVUsU0FBSyxPQUFPLEVBQzNDLENBQUM7R0FDSCxFQUNGLENBQUM7O3FCQUVhLE9BQU8iLCJmaWxlIjoic3BlYy1oZWxwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ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UFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFVBQVUsU0FBSyxPQUFPLEVBQzNDLENBQUM7R0FDSCxFQUNGLENBQUM7O3FCQUVhLE9BQU8iLCJmaWxlIjoic3BlYy1oZWxwZXIuanMiLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgcGF0aCA9IHJlcXVpcmUoJ3BhdGgnKTtcblxudmFyIEhlbHBlcnMgPSB7XG4gIGV4cGVjdCA6IHJlcXVpcmUoJ2F6ay1kZXYvY2hhaScpLmV4cGVjdCxcblxuICBmaXh0dXJlX3BhdGgoLi4uZml4dHVyZSkge1xuICAgIHJldHVybiBwYXRoLnJlc29sdmUoXG4gICAgICAnLicsICdzcGVjJywgJ2ZpeHR1cmVzJywgLi4uZml4dHVyZVxuICAgICk7XG4gIH0sXG5cbiAgZml4dHVyZV9yZXF1aXJlX3BhdGgoLi4uZml4dHVyZSkge1xuICAgIHJldHVybiBwYXRoLnJlc29sdmUoXG4gICAgICAnLicsICdsaWInLCAnc3BlYycsICdmaXh0dXJlcycsIC4uLmZpeHR1cmVcbiAgICApO1xuICB9LFxufTtcblxuZXhwb3J0IGRlZmF1bHQgSGVscGVycztcbiJdLCJzb3VyY2VSb290IjoiL2NsaS1yb3V0ZXI6MC4zLjAvc3BlYyJ9

@@ -69,2 +69,2 @@ 'use strict';

exports.CliController = CliController;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsaV9jb250cm9sbGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxJQUFJLENBQUMsR0FBTSxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7O0lBRWYsYUFBYTtBQUNiLFdBREEsYUFBYSxHQUNEOzs7UUFBWCxJQUFJLGdDQUFHLEVBQUU7OzBCQURWLGFBQWE7O0FBRXRCLF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xuICB9XG59XG4iXSwic291cmNlUm9vdCI6Ii9jbGktcm91dGVyOjAuMy4wL3NyYyJ9

@@ -83,4 +83,2 @@ 'use strict';

value: function getFn(route, args) {
var _this = this;
var params = arguments[2] === undefined ? {} : arguments[2];

@@ -95,12 +93,3 @@

if (!R.isNil(route.controller)) {
// Force camelcase actions
var camelCases = function camelCases(arr) {
return R.map(function (action) {
return _this._camelCase(action);
}, arr || []);
};
var actions = R.unionWith(function (a, b) {
return a === b;
}, camelCases(route.actions), camelCases(args.slice(1)));
actions = !R.isEmpty(actions) ? actions : ['index'];
var actions = this.parseActions(route.actions, args, params.default_params);
route.actions = R.clone(actions);

@@ -135,5 +124,24 @@

}, {
key: 'parseActions',
value: function parseActions(actions, args, params) {
var filter = function filter(value) {
return R.is(String, value) || R.is(Array, value) && !R.isEmpty(value);
};
var values = R.filter(filter, R.uniq(R.flatten(R.values(params))));
args = R.filter(function (arg) {
return !R.contains(arg)(values);
}, args);
args = this._camelCase(args.slice(1));
actions = this._camelCase(actions);
actions = R.unionWith(function (a, b) {
return a === b;
}, actions, args);
actions = !R.isEmpty(actions) ? actions : ['index'];
return actions;
}
}, {
key: 'cleanArgs',
value: function cleanArgs(args, default_params) {
var _this2 = this;
var _this = this;

@@ -143,3 +151,3 @@ var inverted = R.invert(default_params);

var value = R.head(inverted[arg] || []) || '';
if (!(arg.match(_this2.param_regex) || value.match(_this2.param_regex))) {
if (!(arg.match(_this.param_regex) || value.match(_this.param_regex))) {
return arg;

@@ -209,2 +217,9 @@ }

value: function _camelCase(str) {
var _this2 = this;
if (R.is(Array, str)) {
return R.map(function (action) {
return _this2._camelCase(action);
}, str);
}
if (!R.isNil(str)) {

@@ -247,2 +262,2 @@ str = str.replace(/[_.-](\w|$)/g, function (_, x) {

exports.CliRouter = CliRouter;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNsaV9yb3V0ZXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5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iAgICBpZiAoIVIuaXNOaWwocm91dGUuY29udHJvbGxlcikpIHtcbiAgICAgIHZhciBhY3Rpb25zID0gdGhpcy5wYXJzZUFjdGlvbnMocm91dGUuYWN0aW9ucywgYXJncywgcGFyYW1zLmRlZmF1bHRfcGFyYW1zKTtcbiAgICAgIHJvdXRlLmFjdGlvbnMgPSBSLmNsb25lKGFjdGlvbnMpO1xuXG4gICAgICBpZiAoIXJvdXRlLmhhc093blByb3BlcnR5KCdDb250cm9sbGVyJykpIHtcbiAgICAgICAgcm91dGUuQ29udHJvbGxlciA9IHRoaXMubG9hZENvbnRyb2xsZXIocm91dGUuY29udHJvbGxlcik7XG4gICAgICB9XG4gICAgICBwYXJhbXMgPSBSLm1lcmdlKHBhcmFtcywge1xuICAgICAgICBuYW1lOiByb3V0ZS5uYW1lLFxuICAgICAgICByb3V0ZSxcbiAgICAgIH0pO1xuICAgICAgdmFyIG9ial90b19jYWxsID0gbmV3IChyb3V0ZS5Db250cm9sbGVyKShwYXJhbXMpO1xuICAgICAgdmFyIGFjdGlvbiAgICAgID0gYWN0aW9ucy5wb3AoKTtcbiAgICAgIHZhciBtZXRob2RzICAgICA9IGFjdGlvbnMuc2xpY2UoMCk7XG4gICAgICB2YXIgbWV0aG9kO1xuICAgICAgd2hpbGUgKCFSLmlzRW1wdHkobWV0aG9kcykpIHtcbiAgICAgICAgbWV0aG9kICAgICAgPSBtZXRob2RzLnNoaWZ0KCk7XG4gICAgICAgIG9ial90b19jYWxsID0gb2JqX3RvX2NhbGxbbWV0aG9kXTtcbiAgICAgIH1cbiAgICAgIGZuID0gKC4uLmFyZ3MpID0+IHtcbiAgICAgICAgcmV0dXJuIG9ial90b19jYWxsLnJ1bl9hY3Rpb24uYXBwbHkob2JqX3RvX2NhbGwsIFthY3Rpb24sIC4uLmFyZ3NdKTtcbiAgICAgIH07XG4gICAgfSBlbHNlIGlmICghUi5pc05pbChyb3V0ZS5mbikpIHtcbiAgICAgIGZuID0gcm91dGUuZm47XG4g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O1xuICAgIGlmIChtYXRjaGVzLmxlbmd0aCA+IDApIHtcbiAgICAgIHZhciByZWdleCA9IG5ldyBSZWdFeHAoYF4ke3NlY3Rpb25fbmFtZX06YCwgJ2dtaScpO1xuICAgICAgdmFyIHRpdGxlID0gc2VjdGlvbi5tYXRjaChyZWdleCkgfHwgW107XG4gICAgICBtYXRjaGVzID0gdGl0bGUuY29uY2F0KFIuZmxhdHRlbihtYXRjaGVzKSk7XG4gICAgfVxuXG4gICAgcmV0dXJuIG1hdGNoZXMuam9pbignXFxuJyk7XG4gIH1cblxuICBwYXJzZUNvbW1hbmRVc2FnZShzZWN0aW9uX25hbWUsIGNvbnRyb2xsZXIsIHVzYWdlKSB7XG4gICAgdmFyIHNlY3Rpb24gPSBEb2NvcHQucGFyc2Vfc2VjdGlvbihzZWN0aW9uX25hbWUsIHVzYWdlKTtcbiAgICBzZWN0aW9uID0gUi5oZWFkKHNlY3Rpb24pIHx8ICcnO1xuICAgIC8vIGh0dHBzOi8vcmVnZXgxMDEuY29tL3IvdFU5a0s5LzNcbiAgICB2YXIgcmVnZXggPSBuZXcgUmVnRXhwKGBeKFteIF0uKnwgIGF6ayBbXFw8XFwoXT8ke2NvbnRyb2xsZXJ9LiopYCwgJ2dtaScpO1xuICAgIHZhciBtYXRjaCA9IHNlY3Rpb24ubWF0Y2gocmVnZXgpO1xuICAgIHJldHVybiBSLmlzKEFycmF5LCBtYXRjaCkgJiYgbWF0Y2gubGVuZ3RoID4gMSA/IChtYXRjaCkuam9pbignXFxyXFxuJykgOiBudWxsO1xuICB9XG59XG5cbm1vZHVsZS5leHBvcnRzID0gSGVscDtcbiJdLCJzb3VyY2VSb290IjoiL2NsaS1yb3V0ZXI6MC4zLjAvc3JjIn0=
'use strict';
exports.Help = require('./help');
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbnRyb2xsZXJzL2luZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxDQUFDLElBQUksR0FBRyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUMiLCJmaWxlIjoiY29udHJvbGxlcnMvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnRzLkhlbHAgPSByZXF1aXJlKCcuL2hlbHAnKTtcbiJdLCJzb3VyY2VSb290IjoiL2NsaS1yb3V0ZXI6MC4yLjYvc3JjIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbnRyb2xsZXJzL2luZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxDQUFDLElBQUksR0FBRyxPQUFPLENBQUMsUUFBUSxDQUFDLENBQUMiLCJmaWxlIjoiY29udHJvbGxlcnMvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnRzLkhlbHAgPSByZXF1aXJlKCcuL2hlbHAnKTtcbiJdLCJzb3VyY2VSb290IjoiL2NsaS1yb3V0ZXI6MC4zLjAvc3JjIn0=

@@ -93,2 +93,2 @@ 'use strict';

exports.Cli = Cli;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7MEJBQTBCLGNBQWM7O0FBRXhDLElBQUksRUFBRSxHQUFPLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUMzQixJQUFJLENBQUMsR0FBUSxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDOUIsSUFBSSxNQUFNLEdBQUcsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDOztJQUVsQixHQUFHO0FBQ0gsV0FEQSxHQUFHLENBQ0YsT0FBTyxFQUFFOzBCQURWLEdBQUc7O0FBRVosUUFBSSxPQUFPLE9BQU8sS0FBSyxRQUFRLEVBQU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dDtcbiAgfVxufVxuIl0sInNvdXJjZVJvb3QiOiIvY2xpLXJvdXRlcjowLjMuMC9zcmMifQ==
{
"name": "cli-router",
"version": "0.3.0",
"version": "0.3.1",
"description": "cli-router",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc