Socket
Socket
Sign inDemoInstall

2way-router

Package Overview
Dependencies
2
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.3.0 to 1.3.1

5

index.js

@@ -255,5 +255,6 @@ var Promise = require('promise');

* @param {object} [params]
* @param {any} [options]
* @returns {Promise<string>}
*/
Router.prototype.url = function (routeName, params) {
Router.prototype.url = function (routeName, params, options) {
var _this = this;

@@ -269,3 +270,3 @@

if (this.urlResolvers.hasOwnProperty(routeName)) {
return this.urlResolvers[routeName](params || {}, getUrl);
return this.urlResolvers[routeName](params || {}, getUrl, options);
}

@@ -272,0 +273,0 @@ return getUrl(routeName, params);

2

package.json
{
"name": "2way-router",
"version": "1.3.0",
"version": "1.3.1",
"description": "2-way router",

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

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc