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

ghost-sequelize

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghost-sequelize - npm Package Compare versions

Comparing version 1.0.3 to 1.1.0

8

lib/GhostSequelize.js

@@ -73,6 +73,12 @@ const Fs = require('fs');

// associate all models first
Object.keys(db).forEach(modelName => {
if ("associate" in db[modelName]) db[modelName].associate(db)
if ("associate" in db[modelName]) db[modelName].associate(db);
});
// now that all associations are made, load scopes
Object.keys(db).forEach(modelName => {
if ("loadScopes" in db[modelName]) db[modelName].loadScopes(db);
});
db.sequelize = this._sequelize;

@@ -79,0 +85,0 @@ return db;

2

package.json
{
"name": "ghost-sequelize",
"version": "1.0.3",
"version": "1.1.0",
"description": "Ghost Creative sequelize model db service wrapper",

@@ -5,0 +5,0 @@ "main": "index.js",

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