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

prosemirror-transform

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-transform - npm Package Compare versions

Comparing version 0.22.0 to 0.22.1

6

dist/structure.js

@@ -173,3 +173,3 @@ var ref = require("prosemirror-model");

var $pos = doc.resolve(pos), base = $pos.depth - depth
var innerType = typesAfter ? typesAfter[typesAfter.length - 1] : $pos.parent
var innerType = (typesAfter && typesAfter[typesAfter.length - 1]) || $pos.parent
if (base < 0 ||

@@ -182,4 +182,4 @@ !$pos.parent.canReplace($pos.index(), $pos.parent.childCount) ||

var rest = node.content.cutByIndex(index$1, node.childCount)
if (typesAfter) { rest = rest.replaceChild(0, typesAfter[i + 1].type.create(typesAfter[i].attrs)) }
var after = typesAfter ? typesAfter[i] : node
var after = (typesAfter && typesAfter[i + 1]) || node
if (after != node) { rest = rest.replaceChild(0, after.type.create(after.attrs)) }
if (!node.canReplace(index$1 + 1, node.childCount) || !after.type.validContent(rest, after.attrs))

@@ -186,0 +186,0 @@ { return false }

{
"name": "prosemirror-transform",
"version": "0.22.0",
"version": "0.22.1",
"description": "ProseMirror document transformations",

@@ -31,4 +31,4 @@ "main": "dist/index.js",

"build": "rimraf dist && buble -i src -o dist",
"prepublish": "npm run build"
"prepare": "npm run build"
}
}

@@ -155,3 +155,3 @@ const {Slice, Fragment} = require("prosemirror-model")

let $pos = doc.resolve(pos), base = $pos.depth - depth
let innerType = typesAfter ? typesAfter[typesAfter.length - 1] : $pos.parent
let innerType = (typesAfter && typesAfter[typesAfter.length - 1]) || $pos.parent
if (base < 0 ||

@@ -164,4 +164,4 @@ !$pos.parent.canReplace($pos.index(), $pos.parent.childCount) ||

let rest = node.content.cutByIndex(index, node.childCount)
if (typesAfter) rest = rest.replaceChild(0, typesAfter[i + 1].type.create(typesAfter[i].attrs))
let after = typesAfter ? typesAfter[i] : node
let after = (typesAfter && typesAfter[i + 1]) || node
if (after != node) rest = rest.replaceChild(0, after.type.create(after.attrs))
if (!node.canReplace(index + 1, node.childCount) || !after.type.validContent(rest, after.attrs))

@@ -168,0 +168,0 @@ return false

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