+64
-15
@@ -57,3 +57,3 @@ "use strict"; | ||
| { | ||
| this.json_limit = {limit:jsonlimt_mb+'mb'}; | ||
| this.json_limit = {limit:jsonlimt_mb+'mb',type: ['json', 'application/csp-report']}; | ||
| this.json_urlencoded = {limit:jsonlimt_mb+'mb', extended: false, parameterLimit:(jsonlimt_mb*1000)}; | ||
@@ -63,3 +63,3 @@ } | ||
| { | ||
| this.json_limit = {limit:'90mb'}; | ||
| this.json_limit = {limit:'90mb',type: ['json', 'application/csp-report']}; | ||
| this.json_urlencoded = {limit:'90mb', extended: false, parameterLimit:(90000)}; | ||
@@ -250,9 +250,2 @@ }; | ||
| app.use(session({ | ||
| name:_this.session_name, | ||
| secret:_this.session_secret, | ||
| resave: false, | ||
| saveUninitialized: true | ||
| })); | ||
| if(let_otherorigins !== undefined) | ||
@@ -271,14 +264,71 @@ { | ||
| }; | ||
| }; | ||
| return this; | ||
| }; | ||
| Use(mod) | ||
| { | ||
| if(mod !== undefined) | ||
| { | ||
| app.use(mod); | ||
| }; | ||
| return this; | ||
| }; | ||
| app.get('/', function (req,res,next) | ||
| Set(mod) | ||
| { | ||
| if(mod !== undefined) | ||
| { | ||
| res.redirect("/index.html"); | ||
| }); | ||
| app.set(mod); | ||
| }; | ||
| return this; | ||
| }; | ||
| Apply(command,mod) | ||
| { | ||
| if(command !== undefined) | ||
| { | ||
| if(mod !== undefined) | ||
| { | ||
| app[command](mod); | ||
| }; | ||
| }; | ||
| return this; | ||
| }; | ||
| Sesion(features) | ||
| { | ||
| var _this = this; | ||
| var sessionSettings = {name:_this.session_name, secret:_this.session_secret, resave: false, saveUninitialized: true }; | ||
| if(features !== undefined) | ||
| { | ||
| if(typeof(features) == 'object') | ||
| { | ||
| for(var prop in features) | ||
| { | ||
| sessionSettings[prop] = features[prop]; | ||
| }; | ||
| }; | ||
| }; | ||
| app.use(session(sessionSettings)); | ||
| return this; | ||
| }; | ||
| DefaultURLRedirect(defaultUrl) | ||
| { | ||
| app.get('/', function (req,res,next) | ||
| { | ||
| if(defaultUrl !== undefined) | ||
| { | ||
| res.redirect(defaultUrl); | ||
| } | ||
| else | ||
| { | ||
| res.redirect("/index.html"); | ||
| }; | ||
| }); | ||
| return this; | ||
| }; | ||
| EnableCLI() | ||
@@ -412,3 +462,2 @@ { | ||
| module.exports = Ernest; | ||
| module.exports = Ernest; |
+1
-1
@@ -71,3 +71,3 @@ { | ||
| }, | ||
| "version": "2.3.0" | ||
| "version": "2.3.1" | ||
| } |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
78527
1.01%2885
1.69%