New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mvcjs

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvcjs - npm Package Compare versions

Comparing version 0.1.0-beta-34 to 0.1.0-beta-35

20

framework/core/router.js

@@ -25,2 +25,3 @@ "use strict";

routes: Type.ARRAY,
createUrlRgx: Type.REGEX,
config: Type.OBJECT

@@ -30,2 +31,3 @@ }, {

this.routes = [];
this.createUrlRgx = /\/\//g;
this.config = core.extend({

@@ -84,6 +86,17 @@ errorRoute: false,

},
/**
* @since 0.0.1
* @author Igor Ivanovic
* @method Router#normalizeUrl
*
* @description
* Create url
* @return {string}
*/
normalizeUrl: function Router_normalizeUrl(url) {
return url.replace(this.createUrlRgx, '/').replace(this.createUrlRgx, '/');
},
/**
* @since 0.0.1
* @author Igor Ivanovic
* @method Router#createUrl

@@ -121,3 +134,3 @@ *

if (url) {
return '/' + url + anchor;
return this.normalizeUrl('/' + url + anchor);
}

@@ -131,3 +144,4 @@ }

}
return url + anchor;
return this.normalizeUrl(url + anchor);
},

@@ -134,0 +148,0 @@ /**

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Powerful lightweight mvc framework for nodejs",
"version": "0.1.0-beta-34",
"version": "0.1.0-beta-35",
"dependencies" : {

@@ -8,0 +8,0 @@ "mongoose": "3.8.x",

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