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

@gesdisc/mongo-stream

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gesdisc/mongo-stream - npm Package Compare versions

Comparing version 0.1.6 to 0.1.7

config/generate_mongo_stream_config.py

2

config/default.json

@@ -36,3 +36,3 @@ {

},
"logLevel": "debug"
"logLevel": "info"
}

@@ -145,13 +145,4 @@ const logger = new (require('service-logger'))(__filename);

this.changeStream.on('error', (error) => {
logger.error(`${this.collectionName} changeStream error:`, error);
// 40585: resume of change stream was not possible, as the resume token was not found
// 40615: The resume token UUID does not exist. Has the collection been dropped?
// 260: InvalidResumeToken. Attempted to resume a stream on a collection which has been dropped.
// https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err
if (error.code === 40585 || error.code === 40615 || error.code === 260) {
this.resetChangeStream({ignoreResumeToken: true});
}
else {
this.resetChangeStream({ignoreResumeToken: false});
}
logger.debug(`${this.collectionName} changeStream error:`, error);
this.resetChangeStream({ ignoreResumeToken: true });
});

@@ -158,0 +149,0 @@ }

{
"name": "@gesdisc/mongo-stream",
"version": "0.1.6",
"version": "0.1.7",
"description": "Sync data from Mongodb to Elasticsearch",

@@ -5,0 +5,0 @@ "main": "server.js",

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