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

egg-sequelize-autotrx

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

egg-sequelize-autotrx - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

3

app/middleware/transaction.js

@@ -10,2 +10,3 @@ module.exports = (options, app) => async (ctx, next) => {

if (sequelizeConfig.datasources) { // multiple datasources
console.log('--- multipe ')
sequelizeConfig.datasources.forEach(datasource => {

@@ -15,2 +16,3 @@ inject(ctx, getDelegate(datasource), namespace)

} else { // single datasource
console.log('--- single ')
inject(ctx, getDelegate(sequelizeConfig), namespace)

@@ -26,2 +28,3 @@ }

const inject = (ctx, delegate, namespace) => {
console.log('----- inject', delegate)
const model = ctx[delegate]

@@ -28,0 +31,0 @@ const { app } = ctx

2

package.json
{
"name": "egg-sequelize-autotrx",
"version": "0.0.10",
"version": "0.0.11",
"description": "Auto transaction based on cls-hooked for egg-sequelize plugin",

@@ -5,0 +5,0 @@ "eggPlugin": {

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