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.1.2 to 0.1.3

2

lib/spec/cli_controller_spec.js

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

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

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

module.exports = exports['default'];
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNwZWMtaGVscGVyLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsSUFBSSxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFDOztBQUUzQixJQUFJLE9BQU8sR0FBRztBQUNaLFFBQU0sRUFBRyxPQUFPLENBQUMsY0FBYyxDQUFDLENBQUMsTUFBTTs7QUFFdkMsY0FBWSxFQUFBLHdCQUFhO3NDQUFULE9BQU87QUFBUCxhQUFPOzs7QUFDckIsV0FBTyxJQUFJLENBQUMsT0FBTyxNQUFBLENBQVosSUFBSSxHQUNULEdBQUcsRUFBRSxNQUFNLEVBQUUsVUFBVSxTQUFLLE9BQU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zZXQgdmVyc2lvbih2KSB7XG4gICAgdGhpcy5fdmVyc2lvbiA9IHY7XG4gICAgcmV0dXJuIHRydWU7XG4gIH1cblxuICBkb2NvcHQob3B0cyA9IHt9KSB7XG4gICAgb3B0cy52ZXJzaW9uID0gb3B0cy52ZXJzaW9uIHx8IHRoaXMudmVyc2lvbjtcbiAgICByZXR1cm4gRG9jb3B0LmRvY29wdCh0aGlzLnVzYWdlX2RvYywgb3B0cyk7XG4gIH1cblxuICByb3V0ZSguLi5hcmdzKSB7XG4gICAgdGhpcy5yb3V0ZXIuYWRkKC4uLmFyZ3MpO1xuICAgIHJldHVybiB0aGlzO1xuICB9XG5cbiAgZ2V0IHJvdXRlcygpIHtcbiAgICByZXR1cm4gdGhpcy5yb3V0ZXIucm91dGVzO1xuICB9XG5cbiAgcnVuKGFyZ3MsIG9wdHMsIG9iaikge1xuICAgIGlmIChBcnJheS5pc0FycmF5KGFyZ3MpIHx8IHR5cGVvZiBhcmdzID09PSAnc3RyaW5nJykge1xuICAgICAgYXJncyA9IHsgYXJndjogYXJncyB9O1xuICAgIH1cbiAgICB2YXIgcmVzdWx0ID0gdGhpcy5kb2NvcHQoYXJncyk7XG4gICAgaWYgKHR5cGVvZiByZXN1bHQgIT09ICdzdHJpbmcnKSB7XG4gICAgICByZXN1bHQgPSB0aGlzLnJvdXRlci5ydW4oYXJncy5hcmd2LCByZXN1bHQsIChvYmogfHwgdGhpcykpO1xuICAgIH1cblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiL2NsaS1yb3V0ZXI6MC4xLjIvc3JjIn0=
{
"name": "cli-router",
"version": "0.1.2",
"version": "0.1.3",
"description": "cli-router",

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

Sorry, the diff of this file is too big to display

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