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

@soinlabs/db

Package Overview
Dependencies
Maintainers
3
Versions
140
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@soinlabs/db - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

31

index.js

@@ -1,3 +0,30 @@

const sequelize = require('@soinlabs/sequelize')
const Sequelize = require('@soinlabs/sequelize')
module.exports = { ...sequelize }
function init(config) {
switch(config.orm) {
case 'sequelize':
this.sequelize = new Sequelize(
config.database,
config.username,
config.password,
config.options
)
this.Sequelize = Sequelize
this.orm = 'sequelize'
break
default: break
}
}
function model(path) {
let model = null
switch(this.orm) {
case 'sequelize':
model = require(path)(this.sequelize, this.Sequelize)
break
default: break
}
return model
}
module.exports = { ...Sequelize, init, model }

2

package.json
{
"name": "@soinlabs/db",
"version": "0.0.3",
"version": "0.0.4",
"main": "index.js",

@@ -5,0 +5,0 @@ "repository": "",

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