Socket
Socket
Sign inDemoInstall

@foal/core

Package Overview
Dependencies
75
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.0 to 4.2.0

10

lib/common/logging/logger.utils.js

@@ -46,2 +46,8 @@ "use strict";

}
function getColoredStatus(status) {
if (status === 'error') {
return `\u001b[31m${status}\u001b[39m`;
}
return `\u001b[32m${status}\u001b[39m`;
}
function formatMessageToDevText(level, message, params, now) {

@@ -60,2 +66,6 @@ const levelColorCodes = {

}
const socketioMessagePrefix = 'Socket.io message received - ';
if (message.startsWith(socketioMessagePrefix)) {
message = `Socket.io ${message.slice(socketioMessagePrefix.length)} ${getColoredStatus(params.status)}`;
}
return `${timestamp} ${logLevel} ${message}` + formatParamsToText({ error: params.error });

@@ -62,0 +72,0 @@ }

1

lib/common/validation/get-ajv-instance.js

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

useDefaults: core_1.Config.get('settings.ajv.useDefaults', 'boolean|string', true),
strict: core_1.Config.get('settings.ajv.strict', 'boolean|string'),
});

@@ -35,0 +36,0 @@ exports._instanceWrapper.instance.addKeyword({ keyword: 'components' });

4

lib/express/create-app.js

@@ -103,3 +103,5 @@ "use strict";

// Serve static files.
app.use(core_1.Config.get('settings.staticPathPrefix', 'string', ''), express.static(core_1.Config.get('settings.staticPath', 'string', 'public')));
app.use(core_1.Config.get('settings.staticPathPrefix', 'string', ''), express.static(core_1.Config.get('settings.staticPath', 'string', 'public'), {
cacheControl: core_1.Config.get('settings.staticFiles.cacheControl', 'boolean')
}));
// Parse request body.

@@ -106,0 +108,0 @@ const limit = core_1.Config.get('settings.bodyParser.limit', 'number|string');

{
"name": "@foal/core",
"version": "4.1.0",
"version": "4.2.0",
"description": "Full-featured Node.js framework, with no complexity",

@@ -70,3 +70,3 @@ "main": "./lib/index.js",

"devDependencies": {
"@foal/internal-test": "^4.1.0",
"@foal/internal-test": "^4.2.0",
"@types/mocha": "10.0.1",

@@ -86,3 +86,3 @@ "@types/node": "18.18.6",

},
"gitHead": "b877ef3ad39de86385e412276f20d9b90f6fe854"
"gitHead": "359331eb0b82cd8aed8c4124002b7f2ba8222284"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc