Socket
Socket
Sign inDemoInstall

y-prosemirror

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

y-prosemirror - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

6

package.json
{
"name": "y-prosemirror",
"version": "1.2.0",
"version": "1.2.1",
"description": "Prosemirror bindings for Yjs",

@@ -55,4 +55,3 @@ "main": "./dist/y-prosemirror.cjs",

"dependencies": {
"lib0": "^0.2.42",
"typescript": "^4.8.4"
"lib0": "^0.2.42"
},

@@ -80,2 +79,3 @@ "peerDependencies": {

"standard": "^17.0.0",
"typescript": "^4.8.4",
"y-protocols": "^1.0.5",

@@ -82,0 +82,0 @@ "y-webrtc": "^10.2.0",

@@ -518,8 +518,8 @@ /**

transaction.deleteSet,
(struct) =>
struct.constructor === Y.Item &&
this.mapping.delete(
/** @type {Y.ContentType} */ (/** @type {Y.Item} */ (struct)
.content).type
)
(struct) => {
if (struct.constructor === Y.Item) {
const type = /** @type {Y.ContentType} */ (/** @type {Y.Item} */ (struct).content).type
type && this.mapping.delete(type)
}
}
)

@@ -1100,2 +1100,3 @@ transaction.changed.forEach(delType)

} else {
mapping.delete(yDomFragment.get(left))
yDomFragment.delete(left, 1)

@@ -1113,2 +1114,3 @@ yDomFragment.insert(left, [

) {
mapping.delete(yChildren[0])
// Edge case handling https://github.com/yjs/y-prosemirror/issues/108

@@ -1118,2 +1120,3 @@ // Only delete the content of the Y.Text to retain remote changes on the same Y.Text object

} else if (yDelLen > 0) {
yDomFragment.slice(left, left + yDelLen).forEach(type => mapping.delete(type))
yDomFragment.delete(left, yDelLen)

@@ -1120,0 +1123,0 @@ }

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