@volar/source-map 1.4.0-alpha.1 → 1.4.0-alpha.2

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/out/index.js +3 -1
  2. package/package.json +2 -2
package/out/index.js CHANGED
@@ -104,7 +104,9 @@ class SourceMap {
104
104
  if (baseOnRight) {
105
105
  offset += (mappedToRange[1] - mappedToRange[0]) - (mappedFromRange[1] - mappedFromRange[0]);
106
106
  }
107
- return offset;
107
+ if (offset >= mappedToRange[0] && offset <= mappedToRange[1]) {
108
+ return offset;
109
+ }
108
110
  }
109
111
  }
110
112
  binarySearchMemo(array, start) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/source-map",
3
- "version": "1.4.0-alpha.1",
3
+ "version": "1.4.0-alpha.2",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -15,5 +15,5 @@
15
15
  "dependencies": {
16
16
  "muggle-string": "^0.2.2"
17
17
  },
18
- "gitHead": "41ea915b137aea284e2bf5edd98a788ce21b779c"
18
+ "gitHead": "034b230da17794a6fcf5a0b07668710f98ff84e3"
19
19
  }