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

sharedb

Package Overview
Dependencies
Maintainers
1
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sharedb - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

11

lib/submit-request.js

@@ -49,13 +49,2 @@ var ot = require('./ot');

if (request.snapshot && snapshot.v === request.snapshot.v) {
// If we keep fetching and getting the same snapshot, we could get stuck
// in an infinite loop. Commit failures should only happen as a result
// of a race condition with the snapshot version changing, so fail if
// this ever happens
var err = {
code: 5000,
message: 'Op submit failed. Retry returned same snapshot version twice'
};
return callback(err);
}
request.snapshot = snapshot;

@@ -62,0 +51,0 @@ request._addSnapshotMeta();

2

package.json
{
"name": "sharedb",
"version": "0.8.3",
"version": "0.8.4",
"description": "JSON OT database backend",

@@ -5,0 +5,0 @@ "main": "lib/index.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