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

prosemirror-utils

Package Overview
Dependencies
Maintainers
5
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-utils - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

1

dist/index.d.ts

@@ -5,1 +5,2 @@ export { findParentNode, findParentNodeClosestToPos, findParentDomRef, hasParentNode, findParentNodeOfType, findParentNodeOfTypeClosestToPos, hasParentNodeOfType, findParentDomRefOfType, findSelectedNodeOfType, findPositionOfNodeBefore, findDomRefAtPos, } from './selection';

export { isNodeSelection, canInsert } from './helpers';
export type { DomAtPos, NodeTypeParam, Predicate, NodeWithPos, ContentNodeWithPos, } from './types';

15

dist/types.d.ts
import type { Node as PMNode, NodeType, Fragment } from 'prosemirror-model';
export type ContentNodeWithPos = {
pos: number;
start: number;
depth: number;
node: PMNode;
};
export type NodeWithPos = ContentNodeWithPos;
export type DomAtPos = (pos: number) => {

@@ -7,8 +14,4 @@ node: Node;

export type FindPredicate = (node: PMNode) => boolean;
export type FindResult = {
pos: number;
start: number;
depth: number;
node: PMNode;
} | undefined;
export type Predicate = FindPredicate;
export type FindResult = ContentNodeWithPos | undefined;
export type Attrs = {

@@ -15,0 +18,0 @@ [key: string]: unknown;

{
"name": "prosemirror-utils",
"version": "1.1.6",
"version": "1.1.7",
"description": "Utils library for ProseMirror",

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

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