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

grandjs

Package Overview
Dependencies
Maintainers
2
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 2.2.31 to 2.2.32

0

lib/common.d.ts

@@ -0,0 +0,0 @@ export declare enum HttpStatusCode {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ declare class FileUploadClass {

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import Request from "./Request";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ /**

5

lib/Router.js

@@ -87,6 +87,3 @@ "use strict";

const middleWare = (req, res, next) => {
// console.log('yes checking middleWare');
// console.log(pattern, req.pathname);
if (pattern.match(req.pathname)) {
// console.log('matched');
func(req, res, next);

@@ -215,3 +212,2 @@ }

let regexResult = route.routePattern.match(pathToSkip);
console.log(route, regexResult);
if (regexResult) {

@@ -470,3 +466,2 @@ return route;

};
console.log(route, this.base);
this.statics.push(new Route_1.default(route, this.base));

@@ -473,0 +468,0 @@ }

@@ -0,0 +0,0 @@ /// <reference types="node" />

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { OptionalObject, NodeInterface } from "./interfaces";

6

lib/View.js

@@ -192,6 +192,10 @@ "use strict";

let views = this.settings.get("views") || "";
let processCwd = process.cwd();
if (path.includes(views)) {
path = path.split(views)[1];
}
let filePath = `${path_1.default.join(process.cwd(), parentPath, views, path)}`;
if (processCwd.includes(parentPath)) {
processCwd = processCwd.split(parentPath)[0];
}
let filePath = `${path_1.default.join(processCwd, parentPath, views, path)}`;
const filename = path_1.default.basename(filePath);

@@ -198,0 +202,0 @@ if (!fileExtName) {

{
"name": "grandjs",
"version": "2.2.31",
"version": "2.2.32",
"description": "A backend framework for solid web apps based on node.js",

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

@@ -88,6 +88,3 @@ /**

const middleWare = (req: Request, res: Response, next: Function) => {
// console.log('yes checking middleWare');
// console.log(pattern, req.pathname);
if (pattern.match(req.pathname)) {
// console.log('matched');
func(req, res, next);

@@ -203,3 +200,2 @@ } else {

let regexResult = route.routePattern.match(pathToSkip)
console.log(route, regexResult)
if(regexResult) {

@@ -471,3 +467,2 @@ return route;

}
console.log(route, this.base);
this.statics.push(new Route(route, this.base));

@@ -474,0 +469,0 @@ } else {

@@ -195,6 +195,10 @@ /**

let views = this.settings.get("views") || "";
let processCwd = process.cwd();
if (path.includes(views)) {
path = path.split(views)[1];
}
let filePath = `${Path.join(process.cwd(), parentPath, views, path)}`;
if(processCwd.includes(parentPath)) {
processCwd = processCwd.split(parentPath)[0];
}
let filePath = `${Path.join(processCwd, parentPath, views, path)}`;
const filename = Path.basename(filePath);

@@ -201,0 +205,0 @@ if (!fileExtName) {

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