Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mashroom/mashroom

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mashroom/mashroom - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

dist/server/routes/mashroom/admin/escape_html.js

16

dist/server/GlobalNodeErrorHandler.js

@@ -6,4 +6,14 @@ "use strict";

});
exports.default = void 0;
exports.default = exports.hasUncaughtException = exports.hasUnhandledRejection = void 0;
let unhandledRejection = false;
let uncaughtException = false;
const hasUnhandledRejection = () => unhandledRejection;
exports.hasUnhandledRejection = hasUnhandledRejection;
const hasUncaughtException = () => uncaughtException;
exports.hasUncaughtException = hasUncaughtException;
class GlobalNodeErrorHandler {

@@ -16,5 +26,9 @@ constructor(loggerFactory) {

process.on('unhandledRejection', error => {
unhandledRejection = true;
this._log.error(`Unhandled promise rejection. This is usually a programming mistake. \nContinuing but server might not work as expected.`, error);
});
process.on('uncaughtException', error => {
uncaughtException = true;
this._log.error(`FATAL: Uncaught exception. This is usually a programming mistake. \nContinuing but server might not work as expected.`, error);

@@ -21,0 +35,0 @@ });

37

dist/server/MashroomServer.js

@@ -10,12 +10,4 @@ "use strict";

var _info_overview_route = _interopRequireDefault(require("./routes/info_overview_route"));
var _mashroom = _interopRequireDefault(require("./routes/mashroom"));
var _info_plugins_route = _interopRequireDefault(require("./routes/info_plugins_route"));
var _info_webapps_route = _interopRequireDefault(require("./routes/info_webapps_route"));
var _info_services_route = _interopRequireDefault(require("./routes/info_services_route"));
var _info_middleware_stack = _interopRequireDefault(require("./routes/info_middleware_stack"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -33,3 +25,3 @@

this._addBaseRoutes();
this._addServerRoutes();
}

@@ -40,8 +32,8 @@

Starting
__ ___ __ ____
__ ___ __ ____
/ |/ /__ ____ / / _______ ___ __ _ / __/__ _____ _____ ____
/ /|_/ / _ \`(_-</ _ \\/ __/ _ \\/ _ \\/ ' \\ _\\ \\/ -_) __/ |/ / -_) __/
/_/ /_/\\_,_/___/_//_/_/ \\___/\\___/_/_/_/ /___/\\__/_/ |___/\\__/_/
/_/ /_/\\_,_/___/_//_/_/ \\___/\\___/_/_/_/ /___/\\__/_/ |___/\\__/_/
Version ${this._serverInfo.version}
Version ${this._serverInfo.version}
`);

@@ -62,3 +54,2 @@

setInterval(() => this._showMemoryConsumption(), 60000);
resolve();

@@ -91,20 +82,6 @@ }

_showMemoryConsumption() {
const residentSetMB = Math.trunc(process.memoryUsage().rss / 1024 / 1024);
this._log.debug(`Current memory consumption: ${residentSetMB} MB`);
}
_addBaseRoutes() {
_addServerRoutes() {
this._expressApp.get('/', _index_route.default);
this._expressApp.get('/mashroom', _info_overview_route.default);
this._expressApp.get('/mashroom/plugins', _info_plugins_route.default);
this._expressApp.get('/mashroom/middleware', _info_middleware_stack.default);
this._expressApp.get('/mashroom/webapps', _info_webapps_route.default);
this._expressApp.get('/mashroom/services', _info_services_route.default);
this._expressApp.use('/mashroom', _mashroom.default);
}

@@ -111,0 +88,0 @@

@@ -12,3 +12,4 @@ "use strict";

if (!pluginContext.serverConfig.indexPage || pluginContext.serverConfig.indexPage.length < 2) {
res.redirect('/mashroom');
// Forward to Admin UI
res.redirect('/mashroom/admin');
} else {

@@ -15,0 +16,0 @@ let redirectPath = pluginContext.serverConfig.indexPage;

@@ -7,3 +7,3 @@ {

"license": "MIT",
"version": "1.2.2",
"version": "1.2.3",
"main": "dist",

@@ -21,3 +21,3 @@ "files": [

"dependencies": {
"@mashroom/mashroom-utils": "1.2.2",
"@mashroom/mashroom-utils": "1.2.3",
"chokidar": "^3.2.3",

@@ -24,0 +24,0 @@ "express": "^4.17.1",

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