New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prosemirror-schema-list

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-schema-list - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

6

CHANGELOG.md

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

## 1.1.4 (2020-08-11)
### Bug fixes
Fix a regression where `liftListItem` couldn't lift a paragraph from the end of a composite list item.
## 1.1.3 (2020-08-04)

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

2

dist/index.es.js

@@ -128,3 +128,3 @@ import { findWrapping, ReplaceAroundStep, canSplit, liftTarget } from 'prosemirror-transform';

if (grandParent.type != itemType) { return false }
if ($from.parent.content.size == 0 && $from.node(-1).childCount == 1) {
if ($from.parent.content.size == 0 && $from.node(-1).childCount == $from.indexAfter(-1)) {
// In an empty block. If this is a nested list, the wrapping

@@ -131,0 +131,0 @@ // list item should be split. Otherwise, bail out and let next

@@ -132,3 +132,3 @@ 'use strict';

if (grandParent.type != itemType) { return false }
if ($from.parent.content.size == 0 && $from.node(-1).childCount == 1) {
if ($from.parent.content.size == 0 && $from.node(-1).childCount == $from.indexAfter(-1)) {
// In an empty block. If this is a nested list, the wrapping

@@ -135,0 +135,0 @@ // list item should be split. Otherwise, bail out and let next

{
"name": "prosemirror-schema-list",
"version": "1.1.3",
"version": "1.1.4",
"description": "List-related schema elements and commands for ProseMirror",

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

@@ -123,3 +123,3 @@ import {findWrapping, liftTarget, canSplit, ReplaceAroundStep} from "prosemirror-transform"

if (grandParent.type != itemType) return false
if ($from.parent.content.size == 0 && $from.node(-1).childCount == 1) {
if ($from.parent.content.size == 0 && $from.node(-1).childCount == $from.indexAfter(-1)) {
// In an empty block. If this is a nested list, the wrapping

@@ -126,0 +126,0 @@ // list item should be split. Otherwise, bail out and let next

Sorry, the diff of this file is not supported yet

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