@volar/source-map 1.0.0-alpha.5 → 1.0.0-beta.1

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.
package/out/index.d.ts CHANGED
@@ -40,12 +40,12 @@ export declare enum Mode {
40
40
  */
41
41
  Expand = 3
42
42
  }
43
- export declare type MappingBase = {
43
+ export type MappingBase = {
44
44
  mode: Mode;
45
45
  sourceRange: Range;
46
46
  mappedRange: Range;
47
47
  };
48
- export declare type Mapping<T> = MappingBase & {
48
+ export type Mapping<T> = MappingBase & {
49
49
  data: T;
50
50
  additional?: MappingBase[];
51
51
  };
package/out/index.js CHANGED
@@ -41,6 +41,12 @@ var Mode;
41
41
  Mode[Mode["Expand"] = 3] = "Expand";
42
42
  })(Mode = exports.Mode || (exports.Mode = {}));
43
43
  class SourceMapBase {
44
+ get mappings() {
45
+ return this.__mappings.value;
46
+ }
47
+ set mappings(value) {
48
+ this.__mappings.value = value;
49
+ }
44
50
  constructor(_mappings) {
45
51
  this.__mappings = (0, reactivity_1.shallowRef)([]);
46
52
  this.__memo = (0, reactivity_1.computed)(() => {
@@ -102,12 +108,6 @@ class SourceMapBase {
102
108
  });
103
109
  this.mappings = _mappings !== null && _mappings !== void 0 ? _mappings : [];
104
110
  }
105
- get mappings() {
106
- return this.__mappings.value;
107
- }
108
- set mappings(value) {
109
- this.__mappings.value = value;
110
- }
111
111
  getSourceRange(start, end, filter) {
112
112
  for (const mapped of this.getRanges(start, end !== null && end !== void 0 ? end : start, false, filter)) {
113
113
  return mapped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/source-map",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-beta.1",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -15,5 +15,5 @@
15
15
  "dependencies": {
16
16
  "@vue/reactivity": "^3.2.38"
17
17
  },
18
- "gitHead": "dd3efd3f7458aca9ba5dcdf549ce80999cb7affd"
18
+ "gitHead": "3421929c584e8fafd772b2386c12ffe9b48355f2"
19
19
  }