Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongo-watch

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongo-watch - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

test/util.coffee

2

package.json
{
"name":"mongo-watch",
"description":"A mongo watcher. This ties into the MongoDB replication oplog, and exposes all data modifications via an EventEmitter.",
"version":"0.0.6",
"version":"0.0.7",
"homepage":"http://github.com/TorchlightSoftware/mongo-watcher",

@@ -6,0 +6,0 @@ "repository":"git://github.com/TorchlightSoftware/mongo-watcher.git",

@@ -8,3 +8,3 @@ # Mongo Watcher

1. Have access to the oplog. This will not be available on shared DB hosting, as it would reveal everyone else's database transactions to you.
2. Have replication enabled. This can be done by starting mongod with the option '--replSet someArbitraryName'
2. Have replication enabled. This can be done by starting mongod with the option '--replSet someArbitraryName'. You must then call `rs.initiate()` from the mongo CLI.

@@ -30,3 +30,3 @@ The watcher is fairly low latency and overhead. On my machine a test with a single insert and watcher takes 20ms. The cursor used to tail the oplog is being initialized with {awaitdata: true} so the data should be getting pushed from MongoDB's internal mechanism, instead of polling.

watcher = new MongoWatch {parser: 'pretty'}
watcher = new MongoWatch {format: 'pretty'}

@@ -33,0 +33,0 @@ # watch the collection

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc