New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pino-mongodb

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-mongodb - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

lib/log.js

3

HELP.md

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

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