Socket
Socket
Sign inDemoInstall

prosemirror-transform

Package Overview
Dependencies
Maintainers
1
Versions
71
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.23.0 to 0.24.0

6

package.json
{
"name": "prosemirror-transform",
"version": "0.23.0",
"version": "0.24.0",
"description": "ProseMirror document transformations",

@@ -19,3 +19,3 @@ "main": "dist/index.js",

"dependencies": {
"prosemirror-model": "^0.23.0"
"prosemirror-model": "^0.24.0"
},

@@ -25,3 +25,3 @@ "devDependencies": {

"ist": "^1.0.0",
"prosemirror-test-builder": "^0.23.0",
"prosemirror-test-builder": "^0.24.0",
"rollup": "^0.49.0",

@@ -28,0 +28,0 @@ "rollup-plugin-buble": "^0.15.0"

@@ -131,6 +131,15 @@ import {Slice, Fragment} from "prosemirror-model"

let warnedAboutSetNodeType = false
Transform.prototype.setNodeType = function(pos, type, attrs, marks) {
if (!warnedAboutSetNodeType && typeof console == "object" && console.warn) {
warnedAboutSetNodeType = true
console.warn("setNodeType has been renamed to setNodeMarkup")
}
return this.setNodeMarkup(pos, type, attrs, marks)
}
// :: (number, ?NodeType, ?Object, ?[Mark]) → this
// Change the type, attributes, and/or marks of the node at `pos`.
// When `nodeType` is null, the existing node type is preserved,
Transform.prototype.setNodeType = function(pos, type, attrs, marks) {
Transform.prototype.setNodeMarkup = function(pos, type, attrs, marks) {
let node = this.doc.nodeAt(pos)

@@ -137,0 +146,0 @@ if (!node) throw new RangeError("No node at given position")

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