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

@blocksuite/virgo

Package Overview
Dependencies
Maintainers
5
Versions
509
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/virgo - npm Package Compare versions

Comparing version 0.4.1-20230224181613-0101128 to 0.4.1-20230225180029-daf8dec

2

package.json
{
"name": "@blocksuite/virgo",
"version": "0.4.1-20230224181613-0101128",
"version": "0.4.1-20230225180029-daf8dec",
"description": "A micro editor.",

@@ -5,0 +5,0 @@ "main": "src/index.ts",

@@ -775,7 +775,7 @@ import { assertExists, Signal } from '@blocksuite/global/utils';

const textNode = Array.from(spanElement.childNodes).find(
node => node instanceof Text
(node): node is Text => node instanceof Text
);
if (textNode) {
return textNode as Text;
return textNode;
}

@@ -858,22 +858,19 @@ return null;

// every chunk is a line
const lines: VirgoLine[] = [];
for (const chunk of chunks) {
const lines = chunks.map(chunk => {
const virgoLine = new VirgoLine();
if (chunk.length === 0) {
const virgoLine = new VirgoLine();
virgoLine.elements.push(new BaseText());
lines.push(virgoLine);
} else {
const virgoLine = new VirgoLine();
for (const delta of chunk) {
chunk.forEach(delta => {
const element = render(delta);
virgoLine.elements.push(element);
}
lines.push(virgoLine);
});
}
}
return virgoLine;
});
rootElement.replaceChildren(...lines);
}
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