sequelize-fixtures
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "sequelize-fixtures", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "sequelize fixture loader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -366,3 +366,3 @@ [![Build Status](https://travis-ci.org/domasx2/sequelize-fixtures.svg?branch=master)](https://travis-ci.org/domasx2/sequelize-fixtures) | ||
In case you want to detect duplicates based on specific field or fields rather than all fields (for example, don't include entities with the same id, even if other fields don't match), you can speficy these fields with a 'keys' property. | ||
In case you want to detect duplicates based on specific field or fields rather than all fields (for example, don't include entities with the same id, even if other fields don't match), you can specify these fields with a 'keys' property. | ||
@@ -446,6 +446,8 @@ ```json | ||
src: ['fixtures/data1.json', 'fixtures/models*.json'], | ||
models: function () { //returns mapping model name: model | ||
return require('../models') | ||
// supports async loading models | ||
models: async function () { | ||
return await loadModels(); | ||
}, | ||
options: { //specify encoding, optiona. default utf-8 | ||
options: { | ||
//specify encoding, optional default utf-8 | ||
encoding: 'windows-1257' | ||
@@ -452,0 +454,0 @@ } |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
59097
460
0