Socket
Socket
Sign inDemoInstall

sequelize-fixtures

Package Overview
Dependencies
17
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.0 to 0.9.0

lib/Promise.js

4

lib/loader.js

@@ -1,2 +0,2 @@

var Promise = require('bluebird');
var Promise = require('./Promise');
var objectAssign = require('object-assign');

@@ -80,2 +80,4 @@ var Op = require('sequelize').Op;

where[k][Op.contains] = data[k];
} else if (fieldType === 'JSON') {
where[k] = JSON.stringify(data[k]);
} else if (Model.rawAttributes[k].hasOwnProperty('set')) {

@@ -82,0 +84,0 @@ var val = null;

@@ -1,2 +0,2 @@

var Promise = require('bluebird'),
var Promise = require('./Promise'),
path = require('path'),

@@ -3,0 +3,0 @@ yaml = require('js-yaml'),

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

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

@@ -25,3 +25,4 @@ var Sequelize = require('sequelize'),

'ActorsMovies',
'Account'
'Account',
'SimpleJson'
].forEach( function (model) {

@@ -28,0 +29,0 @@ var mod = sequelize.import(__dirname + '/' + model);

@@ -667,2 +667,12 @@ var sf = require('../index'),

});
it('should handle json including arrays', function() {
return sf.loadFile('tests/fixtures/jsonContainingArray.js', models)
.then(function() {
return models.SimpleJson.findAll();
}).then(function(models) {
models.length.should.equal(1);
models[0].props.should.match({"home": ["latest", "get"]});
});
});
/* postgres only

@@ -669,0 +679,0 @@ it('should handle jsonb fields', function() {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc