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

sequelize-fixtures

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-fixtures - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

4

lib/loader.js

@@ -38,2 +38,6 @@ var Promise = require('bluebird');

throw new Error('Model not found: ' + fixture.model);
} else if (typeof Model === 'function') {
throw new Error('models.' + fixture.model + ' appears to be a function. Perhaps you are importing model factory function? You should then use sequelize.import to create your model, see https://github.com/sequelize/express-example/blob/master/models/index.js#L17');
} else if (!Model.findOne) {
throw new Error('models.' + fixture.model + ' is not a sequelize model.');
}

@@ -40,0 +44,0 @@

2

package.json
{
"name": "sequelize-fixtures",
"version": "0.5.1",
"version": "0.5.2",
"description": "sequelize fixture loader",

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

@@ -310,16 +310,16 @@ [![Build Status](https://travis-ci.org/domasx2/sequelize-fixtures.svg?branch=master)](https://travis-ci.org/domasx2/sequelize-fixtures)

{
model: 'Movie',
data: {
name: 'Terminator'
"model": "Movie",
"data": {
"name": "Terminator"
}
},
{
model: 'Actor',
data: {
name: 'Arnie',
movies: [
"model": "Actor",
"data": {
"name": "Arnie",
"movies": [
{
name: 'Terminator',
_through: {
character: 'T-80'
"name": "Terminator",
"_through": {
"character": "T-80"
}

@@ -326,0 +326,0 @@ }

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