Socket
Socket
Sign inDemoInstall

mongo-seeding-cli

Package Overview
Dependencies
59
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.6.0 to 3.7.0-alpha.0

7

dist/options.js

@@ -74,2 +74,7 @@ "use strict";

{
name: 'remove-all-documents',
description: 'Delete all documents from every collection that is being imported',
type: Boolean,
},
{
name: 'replace-id',

@@ -157,2 +162,3 @@ description: 'Replaces `id` property with `_id` for every document before import',

dropCollections: options['drop-collections'],
removeAllDocuments: options['remove-all-documents'],
},

@@ -205,2 +211,3 @@ cli: {

dropCollections: env.DROP_COLLECTIONS === 'true',
removeAllDocuments: env.REMOVE_ALL_DOCUMENTS === 'true',
},

@@ -207,0 +214,0 @@ cli: {

1

dist/types.d.ts

@@ -16,2 +16,3 @@ import { SeederConfig, SeederCollectionReadingOptions } from 'mongo-seeding';

'drop-collections'?: boolean;
'remove-all-documents'?: boolean;
'replace-id'?: boolean;

@@ -18,0 +19,0 @@ 'set-timestamps'?: boolean;

6

package.json
{
"name": "mongo-seeding-cli",
"description": "The ultimate command line tool for populating your MongoDB database.",
"version": "3.6.0",
"version": "3.7.0-alpha.0",
"license": "MIT",

@@ -70,3 +70,3 @@ "keywords": [

"extend": "^3.0.2",
"mongo-seeding": "^3.6.0",
"mongo-seeding": "^3.7.0-alpha.0",
"ts-node": "^9.1.1",

@@ -109,3 +109,3 @@ "typescript": "^4.1.3"

},
"gitHead": "27ae1a874ddee37c7f205cf74d7ed8045c40926e"
"gitHead": "6d58a36b176d8cc3eff3ecaf69abf41406f875e5"
}

@@ -65,2 +65,3 @@ ![Mongo Seeding](https://raw.githubusercontent.com/pkosiec/mongo-seeding/master/docs/assets/logo.png)

| `--drop-collections` | `false` | Drops every collection which is being imported |
| `--remove-all-documents` | `false` | Delete all documents from every collection that is being imported |
| `--replace-id` | `false` | Replaces `id` property with `_id` for every document during data import |

@@ -89,2 +90,3 @@ | `--set-timestamps` | `false` | Sets `createdAt` and `updatedAt` timestamps for every document during data import |

| `DROP_COLLECTIONS` | `false` | Drops every collection which is being imported |
| `REMOVE_ALL_DOCUMENTS` | `false` | Delete all documents from every collection that is being imported |
| `REPLACE_ID` | `false` | Replaces `id` property with `_id` for every document during import; useful for ORMs |

@@ -91,0 +93,0 @@ | `SET_TIMESTAMPS` | `false` | Sets `createdAt` and `updatedAt` timestamps for every document during data import |

Sorry, the diff of this file is not supported yet

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