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

dom-ot

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-ot - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

9

lib/ops/move.js

@@ -121,11 +121,9 @@ var isYoungerSiblingOf = require('./is-youngerSibling')

, node = nodeAt(this.to, rootNode)
var parentPathString = parentPath.join('')
// set new location + set new location for child nodes
setIndex(node, this.to.join(''))
setIndex(node, this.to)
// shift all after this.to
for(var i=0; i<parent.childNodes.length; i++) {
setIndex(parent.childNodes[i], parentPathString+i)
setIndex(parent.childNodes[i], parentPath.concat([i]))
}

@@ -140,6 +138,5 @@ }

for(var i=0; i<node.childNodes.length; i++) {
node.childNodes[i].domOT_path = path+i
setIndex(node.childNodes[i], path+i)
setIndex(node.childNodes[i], path.concat([i]))
}
}
}
{
"name": "dom-ot",
"version": "1.2.1",
"version": "1.2.2",
"description": "Operational transform library for DOM operations (conforms to shareJS' spec)",

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