pino-mongodb
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -6,5 +6,5 @@ | ||
Options: | ||
-h, --help output usage information | ||
-V, --version output the version number | ||
@@ -20,1 +20,2 @@ -U, --url <url> complete database url | ||
-e, --errors output insertion errors into stderr (false) | ||
-h, --help output usage information |
{ | ||
"name": "pino-mongodb", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Insert JSON from stdin into MongoDB", | ||
"scripts": { | ||
"test": "clear && tap test/*", | ||
"tt": "clear && tap", | ||
"preversion": "npm test && npm run lint", | ||
"postversion": "git push & git push --tags & npm publish", | ||
"tap": "clear && tap -R dot", | ||
"test": "npm run tap test/*.js", | ||
"lint": "eslint .", | ||
"make-help": "./pino-mongodb.js --help > HELP.md" | ||
"prepack": "npm shrinkwrap", | ||
"postpack": "mv npm-shrinkwrap.json package-lock.json", | ||
"help": "./pino-mongodb.js --help > HELP.md" | ||
}, | ||
@@ -34,15 +34,14 @@ "bin": "pino-mongodb.js", | ||
"carrier": "^0.3.0", | ||
"commander": "^2.9.0", | ||
"mongodb": "^2.2.11" | ||
"commander": "^2.11.0", | ||
"mongodb": "^2.2.29" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^3.11.0", | ||
"eslint": "^4.1.1", | ||
"eslint-config-standard": "^10.2.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-node": "^4.2.2", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-node": "^5.1.0", | ||
"eslint-plugin-promise": "^3.4.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"sinon": "^2.1.0", | ||
"tap": "^10.3.2" | ||
"tap": "^10.7.0" | ||
} | ||
} |
@@ -7,7 +7,12 @@ #!/usr/bin/env node | ||
const MongoClient = require('mongodb').MongoClient | ||
const log = require('./lib/log') | ||
const pkg = require('./package.json') | ||
const makeUrl = require('./lib/makeUrl') | ||
const makeLog = require('./lib/makeLog') | ||
const makeInsert = require('./lib/insert') | ||
const makeInsert = require('./lib/makeInsert') | ||
const argv = process.argv | ||
if (argv.length <= 2) { | ||
argv.push('--help') | ||
} | ||
program | ||
@@ -25,3 +30,3 @@ .version(pkg.version) | ||
.option('-e, --errors', 'output insertion errors into stderr (false)', false) | ||
.parse(process.argv) | ||
.parse(argv) | ||
@@ -38,3 +43,3 @@ MongoClient.connect(makeUrl(program), function onConnection (e, db) { | ||
emitter.on('line', function (data) { | ||
insert(collection, makeLog(data)) | ||
insert(collection, log(data)) | ||
}) | ||
@@ -41,0 +46,0 @@ |
@@ -37,5 +37,5 @@ # pino-mongodb | ||
Options: | ||
-h, --help output usage information | ||
-V, --version output the version number | ||
@@ -51,2 +51,3 @@ -U, --url <url> complete database url | ||
-e, --errors output insertion errors into stderr (false) | ||
-h, --help output usage information | ||
``` | ||
@@ -53,0 +54,0 @@ |
NPM Shrinkwrap
Supply chain riskPackage contains a shrinkwrap file. This may allow the package to bypass normal install procedures.
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
125864
7
3881
62
9
1
1
Updatedcommander@^2.11.0
Updatedmongodb@^2.2.29