Socket
Socket
Sign inDemoInstall

prosemirror-commands

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-commands - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

6

CHANGELOG.md

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

## 1.3.1 (2022-09-08)
### Bug fixes
Make sure `toggleMark` doesn't add marks to top nodes with non-inline content.
## 1.3.0 (2022-05-30)

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

2

dist/index.js

@@ -544,3 +544,3 @@ import { liftTarget, replaceStep, canJoin, joinPoint, canSplit, ReplaceAroundStep, findWrapping } from 'prosemirror-transform';

let { $from, $to } = ranges[i];
let can = $from.depth == 0 ? doc.type.allowsMarkType(type) : false;
let can = $from.depth == 0 ? doc.inlineContent && doc.type.allowsMarkType(type) : false;
doc.nodesBetween($from.pos, $to.pos, node => {

@@ -547,0 +547,0 @@ if (can)

{
"name": "prosemirror-commands",
"version": "1.3.0",
"version": "1.3.1",
"description": "Editing commands for ProseMirror",

@@ -5,0 +5,0 @@ "type": "module",

@@ -488,3 +488,3 @@ import {joinPoint, canJoin, findWrapping, liftTarget, canSplit,

let {$from, $to} = ranges[i]
let can = $from.depth == 0 ? doc.type.allowsMarkType(type) : false
let can = $from.depth == 0 ? doc.inlineContent && doc.type.allowsMarkType(type) : false
doc.nodesBetween($from.pos, $to.pos, node => {

@@ -491,0 +491,0 @@ if (can) return false

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