sails-seed
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -80,3 +80,3 @@ 'use strict'; | ||
var extend = {}; | ||
if(_.some([data.overwrite, data.unique], _.isUndefined)){ | ||
if(_.some([data.overwrite, data.unique], _.isDefined)){ | ||
extend.seedData = data.data ? data.data : []; | ||
@@ -83,0 +83,0 @@ extend.overwrite = data.overwrite; |
module.exports = function(cb){ | ||
} |
@@ -0,0 +0,0 @@ module.exports = { |
@@ -0,0 +0,0 @@ module.exports = function(model){ |
@@ -0,0 +0,0 @@ var async = require('async'); |
@@ -0,0 +0,0 @@ module.exports = function(model){ |
{ | ||
"name": "sails-seed", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Simple data seeding for sails.js projects.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,3 +13,3 @@ SAILS-SEED [![Build Status](https://travis-ci.org/frostme/sails-seed.svg?branch=master)](https://travis-ci.org/frostme/sails-seed)[![Coverage Status](https://coveralls.io/repos/frostme/sails-seed/badge.svg?branch=master)](https://coveralls.io/r/frostme/sails-seed?branch=master) | ||
Depending on you version of sails, sails-seed is treated differently | ||
On install, a config/seed.js is created. Here you will put your seeding data. | ||
On install, a config/seeds.js is created. Here you will put your seeding data. | ||
@@ -24,4 +24,4 @@ ## Sails 0.11 | ||
## Usage | ||
Place your seeding data in the config/seed.js file. | ||
For exampe, for a Person model, your config/seed.js file might look like | ||
Place your seeding data in the config/seeds.js file. | ||
For exampe, for a Person model, your config/seeds.js file might look like | ||
@@ -45,3 +45,3 @@ ```js | ||
By default, sails-seed will overwrite the data which is present. If you would not like your | ||
seed to overwrite, your new config/seed.js file might look like | ||
seed to overwrite, your new config/seeds.js file might look like | ||
@@ -48,0 +48,0 @@ ```js |
@@ -0,0 +0,0 @@ var semver = require('semver'); |
@@ -0,0 +0,0 @@ /** |
module.exports = require('sails-seed'); |
@@ -0,0 +0,0 @@ require('./support'); |
@@ -0,0 +0,0 @@ sails = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
24845
0