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

@bluealba/microservices-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bluealba/microservices-toolkit - npm Package Compare versions

Comparing version 1.5.7 to 1.6.1

src/logger/createLogger.js

15

index.js

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

const getAuthHeaders = require("./src/middlewares/getAuthHeaders");
const logger = require("./src/middlewares/logger");
const graphqlCustomErrorFn = require("./src/error/graphqlCustomErrorFn");

@@ -14,11 +15,13 @@ const sqlUtils = require("./src/sql/sqlUtils");

const fromEnv = require("./src/utils/fromEnv");
const createLogger = require("./src/logger/createLogger");
const exportFunctions = {
run,
errorHandler,
gatewayAuth,
buildPgClient,
simpleRowBodyMapper,
getAuthHeaders,
graphqlCustomErrorFn,
errorHandler, //TODO: this should be used from the `middlewares` obj, not removing for compat
gatewayAuth, //TODO: this should be used from the `middlewares` obj, not removing for compat
getAuthHeaders, //TODO: this should be used from the `middlewares` obj, not removing for compat
createLogger,
sql: {

@@ -32,4 +35,10 @@ ...sqlUtils,

},
middlewares: {
errorHandler,
gatewayAuth,
getAuthHeaders,
logger,
},
};
module.exports = exportFunctions;

7

package.json
{
"name": "@bluealba/microservices-toolkit",
"version": "1.5.7",
"version": "1.6.1",
"description": "Library that contains common elements used in microservices",

@@ -26,6 +26,9 @@ "main": "index.js",

"moment": "^2.29.1",
"morgan": "^1.10.0",
"pg": "^8.6.0",
"pg-pool": "^3.3.0"
"pg-pool": "^3.3.0",
"winston": "^3.10.0"
},
"devDependencies": {
"@types/winston": "^2.4.4",
"eslint": "^7.26.0",

@@ -32,0 +35,0 @@ "jest": "^26.6.3",

"use strict";
module.exports = (row) => ({ ...row.body, id: row.id });
/*
Simpe Row mapper for the typical Massive.js object where most entity properties are inside a `body`,
expect for `id` which is top-level
*/
module.exports = (row) => ({ ...row.body, id: row.id });
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