mongoose-repl
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -31,22 +31,18 @@ // Generated by CoffeeScript 1.6.3 | ||
var argv, _ref; | ||
argv = optimist.usage('mongoose [options] <mongo url>').options({ | ||
schemas: { | ||
alias: '-s', | ||
describe: 'Path to a module that exports schema definitions' | ||
}, | ||
host: { | ||
alias: '-h', | ||
describe: 'Host to connect to' | ||
}, | ||
version: { | ||
alias: '-v', | ||
describe: 'List version' | ||
} | ||
argv = optimist.usage('mongoose [options] <mongo url>').options('schemas', { | ||
alias: 's', | ||
describe: 'Path to a module that exports schema definitions' | ||
}).options('host', { | ||
alias: 'h', | ||
describe: 'Host to connect to' | ||
}).options('version', { | ||
alias: 'v', | ||
describe: 'List version' | ||
}).argv; | ||
if (argv.v) { | ||
if (argv.version) { | ||
return console.log(require("" + __dirname + "/../package.json").version); | ||
} else { | ||
return repl.run(schemas(argv.s), mongo_uri(argv.h, (_ref = argv._) != null ? _ref[0] : void 0)); | ||
return repl.run(schemas(argv.schemas), mongo_uri(argv.host, (_ref = argv._) != null ? _ref[0] : void 0)); | ||
} | ||
} | ||
}; |
{ | ||
"name": "mongoose-repl", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "A Mongo REPL with the full power of Mongoose", | ||
@@ -5,0 +5,0 @@ "engines": { |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
134