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

@prosekit/core

Package Overview
Dependencies
Maintainers
1
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prosekit/core - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

10

dist/prosekit-core.js

@@ -40,2 +40,3 @@ // src/commands/add-mark.ts

// src/commands/insert-node.ts
import { TextSelection } from "@prosekit/pm/state";
import { insertPoint } from "@prosekit/pm/transform";

@@ -73,2 +74,3 @@

const tr = state.tr.insert(insertPos, node);
tr.setSelection(TextSelection.near(tr.doc.resolve(insertPos)));
dispatch(tr);

@@ -102,3 +104,3 @@ }

// src/utils/get-custom-selection.ts
import { TextSelection } from "@prosekit/pm/state";
import { TextSelection as TextSelection2 } from "@prosekit/pm/state";
function getCustomSelection(state, from, to) {

@@ -109,3 +111,3 @@ const pos = from != null ? from : to;

const $to = state.doc.resolve(to != null ? to : pos);
return TextSelection.between($from, $to);
return TextSelection2.between($from, $to);
}

@@ -664,3 +666,3 @@ return state.selection;

NodeSelection,
TextSelection as TextSelection2
TextSelection as TextSelection3
} from "@prosekit/pm/state";

@@ -674,3 +676,3 @@ function isProseMirrorNode(node) {

function isTextSelection(sel) {
return sel instanceof TextSelection2;
return sel instanceof TextSelection3;
}

@@ -677,0 +679,0 @@ function isNodeSelection(sel) {

2

package.json
{
"name": "@prosekit/core",
"type": "module",
"version": "0.1.3",
"version": "0.1.4",
"private": false,

@@ -6,0 +6,0 @@ "author": {

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