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

cli-router

Package Overview
Dependencies
Maintainers
1
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.0.2 to 0.0.3

2

lib/spec/cli_router_spec.js

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

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

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

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

@@ -33,2 +33,2 @@ "use strict";

exports.CliController = CliController;
//# sourceMappingURL=data:application/json;base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tcbiAgICByZXR1cm4gdGhpcy5fdmVyc2lvbjtcbiAgfVxuXG4gIHNldCB2ZXJzaW9uKHYpIHtcbiAgICB0aGlzLl92ZXJzaW9uID0gdjtcbiAgICByZXR1cm4gdHJ1ZTtcbiAgfVxuXG4gIGRvY29wdChvcHRzID0ge30pIHtcbiAgICBvcHRzLnZlcnNpb24gPSBvcHRzLnZlcnNpb24gfHwgdGhpcy52ZXJzaW9uO1xuICAgIHJldHVybiBEb2NvcHQuZG9jb3B0KHRoaXMudXNhZ2VfZG9jLCBvcHRzKTtcbiAgfVxuXG4gIHJvdXRlKC4uLmFyZ3MpIHtcbiAgICB0aGlzLnJvdXRlci5hZGQoLi4uYXJncyk7XG4gICAgcmV0dXJuIHRoaXM7XG4gIH1cblxuICBnZXQgcm91dGVzKCkge1xuICAgIHJldHVybiB0aGlzLnJvdXRlci5yb3V0ZXM7XG4gIH1cblxuICBydW4oYXJncywgb3B0cykge1xuICAgIGlmIChBcnJheS5pc0FycmF5KGFyZ3MpIHx8IHR5cGVvZiBhcmdzID09PSAnc3RyaW5nJykge1xuICAgICAgYXJncyA9IHsgYXJndjogYXJncyB9O1xuICAgIH1cbiAgICB2YXIgcmVzdWx0ID0gdGhpcy5kb2NvcHQoYXJncyk7XG5cbiAgICBpZiAodHlwZW9mIHJlc3VsdCAhPT0gJ3N0cmluZycpIHtcbiAgICAgIHJlc3VsdCA9IHRoaXMucm91dGVyLnJ1bihyZXN1bHQsIG9wdHMpO1xuICAgIH1cblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cbn1cbiJdLCJzb3VyY2VSb290IjoiL2NsaS1yb3V0ZXI6MC4wLjIvc3JjIn0=
{
"name": "cli-router",
"version": "0.0.2",
"version": "0.0.3",
"description": "cli-router",
"main": "index.js",
"main": "./lib/src/index.js",
"scripts": {
"start": "node index.js",
"start": "example/index.js",
"test": "./node_modules/.bin/gulp lint test",

@@ -9,0 +9,0 @@ "deploy": "./node_modules/.bin/npm-deploy"

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