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

gulf

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulf - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

lib/Edit.js

@@ -45,2 +45,3 @@ /**

var edit = new Edit(ottype)
edit.id = randString()
return edit

@@ -54,2 +55,3 @@ }

var edit = new Edit(ottype)
edit.id = randString()
edit.changeset = cs

@@ -121,3 +123,3 @@ return edit

var str = ''
while (str.length < 10) {
while (str.length < 20) {
str += (Math.random()*1E7<<0x5).toString(36)

@@ -124,0 +126,0 @@ }

@@ -31,4 +31,3 @@ /**

History.prototype.createDocument = function(snapshot, cb) {
snapshot.id = ++this.idCounter
snapshot.edit.id = snapshot.id
snapshot.id = snapshot.edit.id
snapshot.edit = snapshot.edit.pack()

@@ -63,8 +62,2 @@ this.document.adapter.createDocument(snapshot, function(er) {

History.prototype.storeSnapshot = function(snapshot, cb) {
// Only Master Document may set ids
if(!snapshot.edit.id) {
snapshot.id = ++this.idCounter
snapshot.edit.id = snapshot.id
}
this.latest(function(er, latest) {

@@ -71,0 +64,0 @@ if(er) cb && cb(er)

{
"name": "gulf",
"version": "1.0.0",
"version": "1.0.1",
"description": "transport-agnostic operational transformation control layer",

@@ -5,0 +5,0 @@ "repository": {

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