Socket
Socket
Sign inDemoInstall

prosemirror-model

Package Overview
Dependencies
Maintainers
1
Versions
84
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.4.4 to 1.5.0

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 1.5.0 (2018-05-31)
### New features
[`ParseRule.getContent`](https://prosemirror.net/docs/ref/#model.ParseRule.getContent) is now passed the parser schema as second argument.
## 1.4.4 (2018-05-03)

@@ -2,0 +8,0 @@

2

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

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

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

//
// getContent:: ?(dom.Node) → Fragment
// getContent:: ?(dom.Node, schema: Schema) → Fragment
// Can be used to override the content of a matched node. When

@@ -462,3 +462,3 @@ // present, instead of parsing the node's child nodes, the result of

this.findInside(dom)
rule.getContent(dom).forEach(node => this.insertNode(node))
rule.getContent(dom, this.parser.schema).forEach(node => this.insertNode(node))
} else {

@@ -465,0 +465,0 @@ let contentDOM = rule.contentElement

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