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

@volar/snapshot-document

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@volar/snapshot-document - npm Package Compare versions

Comparing version 2.0.0-alpha.13 to 2.0.0-alpha.14

5

lib/snapshotDocument.js

@@ -68,3 +68,3 @@ "use strict";

getLength: () => text.length,
getChangeRange: (oldSnapshot) => {
getChangeRange: oldSnapshot => {
if (!changeRangeCache.has(oldSnapshot)) {

@@ -115,4 +115,5 @@ const oldIndex = this.snapshots.findIndex(change => change.ref?.deref() === oldSnapshot);

for (const contentChange of contentChanges) {
if (!('range' in contentChange))
if (!('range' in contentChange)) {
continue;
}
const start = this.offsetAt(contentChange.range.start);

@@ -119,0 +120,0 @@ const length = contentChange.rangeLength ?? this.offsetAt(contentChange.range.end) - start;

4

package.json
{
"name": "@volar/snapshot-document",
"version": "2.0.0-alpha.13",
"version": "2.0.0-alpha.14",
"license": "MIT",

@@ -18,3 +18,3 @@ "files": [

},
"gitHead": "b052e3d47235325ac614257be1cebd541d421134"
"gitHead": "83eb6a4a4475a3680f14fb3808e48ec4dbe62cc1"
}
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