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

prosemirror-schema-list

Package Overview
Dependencies
Maintainers
1
Versions
34
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.4.0 to 1.4.1

6

CHANGELOG.md

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

## 1.4.1 (2024-07-14)
### Bug fixes
Add attribute type validation for ordered list nodes.
## 1.4.0 (2024-06-10)

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

2

dist/index.js

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

const orderedList = {
attrs: { order: { default: 1 } },
attrs: { order: { default: 1, validate: "number" } },
parseDOM: [{ tag: "ol", getAttrs(dom) {

@@ -16,0 +16,0 @@ return { order: dom.hasAttribute("start") ? +dom.getAttribute("start") : 1 };

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

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

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

export const orderedList = {
attrs: {order: {default: 1}},
attrs: {order: {default: 1, validate: "number"}},
parseDOM: [{tag: "ol", getAttrs(dom: HTMLElement) {

@@ -16,0 +16,0 @@ return {order: dom.hasAttribute("start") ? +dom.getAttribute("start")! : 1}

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