Socket
Socket
Sign inDemoInstall

mongo-seeding-cli

Package Overview
Dependencies
69
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.7.0 to 3.7.1-alpha.0

12

dist/index.js

@@ -29,8 +29,8 @@ "use strict";

}
if (help_1.shouldShowHelp(options)) {
help_1.showHelp();
if ((0, help_1.shouldShowHelp)(options)) {
(0, help_1.showHelp)();
return;
}
try {
options_1.validateOptions(options);
(0, options_1.validateOptions)(options);
}

@@ -40,7 +40,7 @@ catch (err) {

}
const config = options_1.createConfigFromOptions(options);
const config = (0, options_1.createConfigFromOptions)(options);
this.useCliSpecificOptions(config.cli);
const seeder = new mongo_seeding_1.Seeder(config.seeder);
try {
const collections = seeder.readCollectionsFromPath(path_1.resolve(config.cli.dataPath), config.collectionReading);
const collections = seeder.readCollectionsFromPath((0, path_1.resolve)(config.cli.dataPath), config.collectionReading);
yield seeder.import(collections);

@@ -63,3 +63,3 @@ }

}
ts_node_1.register({
(0, ts_node_1.register)({
transpileOnly: options.transpileOnly,

@@ -66,0 +66,0 @@ compiler: require.resolve('typescript', { paths: [__dirname] }),

@@ -108,4 +108,4 @@ "use strict";

const validateOptions = (options) => {
validators_1.throwOnNegativeNumber(options['db-port'], 'db-port');
validators_1.throwOnNegativeNumber(options['reconnect-timeout'], 'reconnect-timeout');
(0, validators_1.throwOnNegativeNumber)(options['db-port'], 'db-port');
(0, validators_1.throwOnNegativeNumber)(options['reconnect-timeout'], 'reconnect-timeout');
};

@@ -112,0 +112,0 @@ exports.validateOptions = validateOptions;

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

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

"extend": "^3.0.2",
"mongo-seeding": "^3.7.0",
"ts-node": "^10.0.0",
"typescript": "^4.1.3"
"mongo-seeding": "^3.7.1-alpha.0",
"ts-node": "^10.3.0",
"typescript": "^4.4.4"
},

@@ -78,8 +78,8 @@ "devDependencies": {

"@types/extend": "^3.0.1",
"@types/jest": "^26.0.19",
"@types/mongodb": "^3.6.9",
"@types/node": "^15.12.2",
"jest": "^27.0.4",
"mongodb": "3.6.9",
"ts-jest": "^27.0.3"
"@types/jest": "^27.0.2",
"@types/mongodb": "^3.6.20",
"@types/node": "^16.11.0",
"jest": "^27.2.5",
"mongodb": "3.6.11",
"ts-jest": "^27.0.6"
},

@@ -110,3 +110,3 @@ "jest": {

},
"gitHead": "ae4f19b721c3307c1d66ef43f50cc7ff0e9371e1"
"gitHead": "a74e8402e0300e20e133205d5bbf74cd3d8bed86"
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc