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

@bangle.dev/pm-utils

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bangle.dev/pm-utils - npm Package Compare versions

Comparing version 0.21.0 to 0.21.1

dist/index.d.ts

12

package.json
{
"name": "@bangle.dev/pm-utils",
"version": "0.21.0",
"version": "0.21.1",
"homepage": "https://bangle.dev",

@@ -23,3 +23,7 @@ "authors": [

"types": "dist/index.d.ts",
"scripts": {},
"scripts": {
"compile-ts": "yarn g:tsc --build $INIT_CWD",
"watch-ts": "yarn g:tsc -p $INIT_CWD -w",
"prepack": "yarn compile-ts"
},
"peerDependencies": {

@@ -32,4 +36,4 @@ "prosemirror-commands": "*",

"dependencies": {
"prosemirror-commands": "^1.1.9",
"prosemirror-model": "^1.14.1",
"prosemirror-commands": "^1.1.10",
"prosemirror-model": "^1.14.2",
"prosemirror-state": "^1.3.4",

@@ -36,0 +40,0 @@ "prosemirror-utils": "1.0.0-0",

@@ -21,6 +21,4 @@ import type { Command } from 'prosemirror-commands';

findParentNode,
findParentNodeOfType as _findParentNodeOfType,
findSelectedNodeOfType,
removeSelectedNode as _removeSelectedNode,
safeInsert as _safeInsert,
safeInsert,
} from 'prosemirror-utils';

@@ -33,2 +31,36 @@ import type { EditorView } from 'prosemirror-view';

export {
findParentNode,
findParentNodeClosestToPos,
findParentDomRef,
hasParentNode,
findParentNodeOfType,
findParentNodeOfTypeClosestToPos,
hasParentNodeOfType,
findParentDomRefOfType,
findSelectedNodeOfType,
isNodeSelection,
findPositionOfNodeBefore,
findDomRefAtPos,
flatten,
findChildren,
findTextNodes,
findInlineNodes,
findBlockNodes,
findChildrenByAttr,
findChildrenByType,
findChildrenByMark,
contains,
removeParentNodeOfType,
replaceParentNodeOfType,
removeSelectedNode,
replaceSelectedNode,
canInsert,
safeInsert,
setParentNodeMarkup,
selectParentNodeOfType,
removeNodeBefore,
setTextSelection,
} from 'prosemirror-utils';
export function rafCommandExec(view: EditorView, command: Command) {

@@ -58,16 +90,2 @@ requestAnimationFrame(() => {

export function safeInsert(
content: Node | Fragment,
position?: number,
tryToReplace?: boolean,
): (tr: Transaction) => Transaction {
return _safeInsert(content, position, tryToReplace);
}
export function removeSelectedNode(tr: Transaction): Transaction {
return _removeSelectedNode(tr);
}
export const findParentNodeOfType = _findParentNodeOfType;
export function isMarkActiveInSelection(

@@ -74,0 +92,0 @@ type: MarkType,

@@ -7,5 +7,3 @@ {

},
"include": [
"./**/__tests__/*"
],
"include": ["./**/__tests__/*"],
"references": [

@@ -16,2 +14,2 @@ {

]
}
}
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