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 1.0.0 to 1.0.1

2

package.json
{
"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 @@ }

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