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

prosemirror-model

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-model - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## 1.7.1 (2019-05-31)
### Bug fixes
Using `Fragment.from` on an invalid value, including a `Fragment` instance from a different version/instance of the library, now raises a meaningful error rather than getting confused.
Fix a bug in parsing overlapping marks of the same non-self-exclusive type.
## 1.7.0 (2019-01-29)

@@ -2,0 +10,0 @@

2

package.json
{
"name": "prosemirror-model",
"version": "1.7.0",
"version": "1.7.1",
"description": "ProseMirror's document model",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -260,3 +260,5 @@ import {findDiffStart, findDiffEnd} from "./diff"

if (Array.isArray(nodes)) return this.fromArray(nodes)
return new Fragment([nodes], nodes.nodeSize)
if (nodes.attrs) return new Fragment([nodes], nodes.nodeSize)
throw new RangeError("Can not convert " + nodes + " to a Fragment" +
(nodes.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""))
}

@@ -263,0 +265,0 @@ }

@@ -533,3 +533,3 @@ import {Fragment} from "./fragment"

let mark = this.pendingMarks[i]
if ((!top.type || top.type.allowsMarkType(mark.type)) && !mark.type.isInSet(top.activeMarks)) {
if ((!top.type || top.type.allowsMarkType(mark.type)) && !mark.isInSet(top.activeMarks)) {
top.activeMarks = mark.addToSet(top.activeMarks)

@@ -536,0 +536,0 @@ this.pendingMarks.splice(i--, 1)

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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