@volar/source-map 2.4.23 → 2.4.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/sourceMap.js +3 -4
  2. package/package.json +2 -2
package/lib/sourceMap.js CHANGED
@@ -26,7 +26,7 @@ class SourceMap {
26
26
  }
27
27
  const { low: start, high: end } = (0, binarySearch_1.binarySearch)(memo.offsets, offset);
28
28
  const skip = new Set();
29
- const toRange = fromRange == 'sourceOffsets' ? 'generatedOffsets' : 'sourceOffsets';
29
+ const toRange = fromRange === 'sourceOffsets' ? 'generatedOffsets' : 'sourceOffsets';
30
30
  for (let i = start; i <= end; i++) {
31
31
  for (const mapping of memo.mappings[i]) {
32
32
  if (skip.has(mapping)) {
@@ -44,7 +44,7 @@ class SourceMap {
44
44
  }
45
45
  }
46
46
  *findMatchingStartEnd(start, end, fallbackToAnyMatch, fromRange, filter) {
47
- const toRange = fromRange == 'sourceOffsets' ? 'generatedOffsets' : 'sourceOffsets';
47
+ const toRange = fromRange === 'sourceOffsets' ? 'generatedOffsets' : 'sourceOffsets';
48
48
  const mappedStarts = [];
49
49
  let hadMatch = false;
50
50
  for (const [mappedStart, mapping] of this.findMatchingOffsets(start, fromRange)) {
@@ -67,7 +67,6 @@ class SourceMap {
67
67
  yield [mappedStart, mappedEnd, mappingStart, mappingEnd];
68
68
  break;
69
69
  }
70
- ;
71
70
  }
72
71
  }
73
72
  }
@@ -100,6 +99,6 @@ class SourceMap {
100
99
  }
101
100
  exports.SourceMap = SourceMap;
102
101
  function getLengths(mapping, key) {
103
- return key == 'sourceOffsets' ? mapping.lengths : mapping.generatedLengths ?? mapping.lengths;
102
+ return key === 'sourceOffsets' ? mapping.lengths : mapping.generatedLengths ?? mapping.lengths;
104
103
  }
105
104
  //# sourceMappingURL=sourceMap.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/source-map",
3
- "version": "2.4.23",
3
+ "version": "2.4.24",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "**/*.js",
@@ -11,5 +11,5 @@
11
11
  "url": "https://github.com/volarjs/volar.js.git",
12
12
  "directory": "packages/source-map"
13
13
  },
14
- "gitHead": "9b06fb744475622284870f6cc4e638dc7747daef"
14
+ "gitHead": "a5c7cf5d1afa5c3780a48866d17680c223891e42"
15
15
  }