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

@milkdown/prose

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@milkdown/prose - npm Package Compare versions

Comparing version 5.4.1 to 5.5.0

4

lib/index.es.js

@@ -49,3 +49,3 @@ export * from "prosemirror-commands";

const match = rules[i].match.exec(textBefore);
const tr = match && rules[i].handler(state, match, from - (match[0].length - text.length), to);
const tr = match && match[0] && rules[i].handler(state, match, from - (match[0].length - text.length), to);
if (!tr)

@@ -58,3 +58,3 @@ continue;

}
const customInputRulesKey = new PluginKey("customInputRules");
const customInputRulesKey = new PluginKey("MILKDOWN_PLUGIN_CUSTOM_INPUTRULES");
const customInputRules = ({ rules }) => {

@@ -61,0 +61,0 @@ const plugin = new Plugin({

{
"name": "@milkdown/prose",
"version": "5.4.1",
"version": "5.5.0",
"type": "module",

@@ -14,3 +14,3 @@ "main": "./lib/index.es.js",

"dependencies": {
"@milkdown/exception": "5.4.1",
"@milkdown/exception": "5.5.0",
"@types/prosemirror-commands": "^1.0.4",

@@ -17,0 +17,0 @@ "@types/prosemirror-dropcursor": "^1.0.2",

@@ -18,2 +18,3 @@ /* Copyright 2021, Milkdown by Mirone. */

match &&
match[0] &&
(

@@ -29,3 +30,3 @@ rules[i] as { handler: (state: EditorState, match: string[], from: number, to: number) => Transaction }

export const customInputRulesKey = new PluginKey('customInputRules');
export const customInputRulesKey = new PluginKey('MILKDOWN_PLUGIN_CUSTOM_INPUTRULES');
export const customInputRules = ({ rules }: { rules: InputRule[] }): Plugin => {

@@ -32,0 +33,0 @@ const plugin: Plugin = new Plugin({

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