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

@giftwizard/db-models

Package Overview
Dependencies
Maintainers
6
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@giftwizard/db-models - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

17

index.js
const { Sequelize, DataTypes } = require('sequelize');
const fs = require('fs');
const path = require('path');
const { logging: { logger } } = require('@giftwizard/utils');
const _ = require('lodash');

@@ -15,4 +14,3 @@ const cookie = require('cookie');

if (!(env.MYSQL_HOST && env.MYSQL_DATABASE && env.MYSQL_USER && env.MYSQL_PASSWORD)) {
logger.fatal(`${env.SERVICE_NAME}(common) - Failed connecting to DB, missing connection details`);
throw new Error('Failed');
throw new Error(`${env.SERVICE_NAME}(common) - Failed connecting to DB, missing connection details`);
}

@@ -35,3 +33,2 @@

dialect: 'mysql',
logging: env.SEQUELIZE_DEBUG === 'true' ? logger.debug : false,
retry: {

@@ -71,14 +68,2 @@ match: [/Deadlock/i],

sequelizeConnection
.authenticate()
.then(() => {
logger.info(
`${env.SERVICE_NAME}(common) is connected to MySQL - ${env.MYSQL_HOST},
replica: ${process.env.MYSQL_READ_REPLICATION_HOSTS} max retry - ${env.MYSQL_MAX_RETRY}`,
);
})
.catch((error) => {
logger.fatal(`${env.SERVICE_NAME} failed connecting to MySQL`, { error });
});
module.exports = db;

3

package.json
{
"name": "@giftwizard/db-models",
"version": "5.0.0",
"version": "5.0.1",
"description": "Rise.ai package for 'sequelize' models used by several projects.",

@@ -20,3 +20,2 @@ "main": "index.js",

"dependencies": {
"@giftwizard/utils": "^5.0.0",
"bcryptjs": "^2.4.3",

@@ -23,0 +22,0 @@ "cookie": "^0.4.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