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

grandjs

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grandjs - npm Package Compare versions

Comparing version 1.2.25 to 1.2.26

15

lib/Grand.js

@@ -48,2 +48,8 @@ /*

constructor(options) {
this._pushGlobalMiddleWares = function(routers, globalMiddleWares) {
routers.forEach(obj => {
obj.middleWares = obj.middleWares || [];
obj.middleWares.unshift(...globalMiddleWares);
})
}
this.options = options;

@@ -95,3 +101,10 @@ this.base =

let newClass = new RouterClass({ base: this.base });
self.classesRoutes[this.base] = this;;
self.classesRoutes[this.base] = this;
if(Array.isArray(newClass.globalMiddleWares) && newClass.globalMiddleWares.length > 0) {
this._pushGlobalMiddleWares(newClass.getRouters, newClass.globalMiddleWares);
this._pushGlobalMiddleWares(newClass.postRouters, newClass.globalMiddleWares);
this._pushGlobalMiddleWares(newClass.putRouters, newClass.globalMiddleWares);
this._pushGlobalMiddleWares(newClass.patchRouters, newClass.globalMiddleWares);
this._pushGlobalMiddleWares(newClass.deleteRouters, newClass.globalMiddleWares);
}
this.getRouters.push(...newClass.getRouters)

@@ -98,0 +111,0 @@ this.postRouters.push(...newClass.postRouters)

2

package.json
{
"name": "grandjs",
"version": "1.2.25",
"version": "1.2.26",
"description": "A backend framework for solid web apps based on node.js",

@@ -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