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.9.0 to 0.9.1

0

Gruntfile.js
module.exports = function(grunt){
grunt.loadTasks('tasks');
};

@@ -0,0 +0,0 @@ var Loader = require('./lib/loader'),

6

lib/loader.js

@@ -104,3 +104,3 @@ var Promise = require('./Promise');

return Model.find(findOptions).then(function(instance) {
return Model.findOne(findOptions).then(function(instance) {
if (instance) {

@@ -169,3 +169,3 @@ self.skipped++;

promises.push(
(typeof val === 'object' ? assoc.target.find(options) : assoc.target.findOne(options))
assoc.target.findOne(options)
.then(function(obj) {

@@ -207,3 +207,3 @@ result[assoc.identifier] = obj[assoc.target.primaryKeyField || 'id'];

promises.push(
(typeof v === 'object' ? assoc.target.find(options) : assoc.target.findOne(options))
assoc.target.findOne(options)
.then(function(obj) {

@@ -210,0 +210,0 @@ many2many[assoc.associationAccessor].push({

{
"name": "sequelize-fixtures",
"version": "0.9.0",
"version": "0.9.1",
"description": "sequelize fixture loader",

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

[![Build Status](https://travis-ci.org/domasx2/sequelize-fixtures.svg?branch=master)](https://travis-ci.org/domasx2/sequelize-fixtures)
**I'm no longer using Sequelize or this lib, and have very little motivation to maintain it. If someone wants to take over, let me know!**
Sequelize fixtures

@@ -4,0 +6,0 @@ ==========================================

@@ -0,0 +0,0 @@ var sf = require('../index');

@@ -0,0 +0,0 @@ module.exports = [

@@ -0,0 +0,0 @@ [

@@ -0,0 +0,0 @@ module.exports = [

@@ -0,0 +0,0 @@ module.exports = [

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -0,0 +0,0 @@ module.exports = function (sequelize, DataTypes) {

@@ -24,3 +24,3 @@ var sf = require('../index'),

.then(function() {
return models.Foo.find({
return models.Foo.findOne({
where: {

@@ -47,3 +47,3 @@ propA: 'bar',

}, models).then(function() {
return models.Foo.find({where: {id: 3}});
return models.Foo.findOne({where: {id: 3}});
}).then(function(foo){

@@ -65,3 +65,3 @@ should.exist(foo);

}, models).then(function() {
return models.Article.find({
return models.Article.findOne({
where: {

@@ -86,3 +86,3 @@ title: 'Any title'

}, models).then(function() {
return models.Article.find({
return models.Article.findOne({
where: {

@@ -266,3 +266,3 @@ title: 'Any title'

.then(function() {
return models.Project.find({
return models.Project.findOne({
where: {

@@ -294,3 +294,3 @@ name: 'Great Project'

sf.loadFile('tests/fixtures/many2manynatural.yaml', models).then(function() {
models.Movie.find({
models.Movie.findOne({
where: {

@@ -322,3 +322,3 @@ name: 'Matrix 4'

sf.loadFile('tests/fixtures/many2manyid.yaml', models).then(function() {
models.Movie.find({
models.Movie.findOne({
where: {

@@ -351,3 +351,3 @@ name: 'Matrix 4'

.then(function() {
return models.Project.find({
return models.Project.findOne({
where: {

@@ -367,3 +367,3 @@ name: 'Bad Project'

.then(function() {
return models.Project.find({
return models.Project.findOne({
where: {

@@ -395,3 +395,3 @@ name: 'Stoopid Project'

.then(function() {
return models.Project.find({
return models.Project.findOne({
where: {

@@ -436,3 +436,3 @@ name: 'Bad Project'

.then(function() {
return models.Movie.find({
return models.Movie.findOne({
where: {

@@ -453,3 +453,3 @@ name: 'Pirates of the Baltic Sea'

.then(function() {
return models.Play.find({
return models.Play.findOne({
where: {

@@ -477,3 +477,3 @@ name: 'Book of Jesus'

models.sequelize.transaction(function(t) {
FooMock.expects('find').once().returns(findDeferred.promise).withExactArgs({
FooMock.expects('findOne').once().returns(findDeferred.promise).withExactArgs({
where : data,

@@ -507,3 +507,3 @@ transaction : t

}).then(function() {
return models.Project.find({
return models.Project.findOne({
where: {

@@ -510,0 +510,0 @@ name: 'Great Project'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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