Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sails-seed

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-seed - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

index.js

@@ -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

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