@diffci.com/diffci 0.3.65 → 0.3.66
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/dist-client/src/client/isolated-worktree.d.ts +16 -0
- package/dist-client/src/client/isolated-worktree.js +67 -1
- package/node_modules/@babel/helper-string-parser/lib/index.js +15 -6
- package/node_modules/@babel/helper-string-parser/lib/index.js.map +1 -1
- package/node_modules/@babel/helper-string-parser/package.json +1 -1
- package/node_modules/@babel/parser/lib/index.js +326 -93
- package/node_modules/@babel/parser/lib/index.js.map +1 -1
- package/node_modules/@babel/parser/package.json +3 -3
- package/node_modules/@babel/parser/typings/babel-parser.d.ts +23 -25
- package/node_modules/@babel/types/lib/ast-types/generated/index.js.map +1 -1
- package/node_modules/@babel/types/lib/clone/cloneNode.js.map +1 -1
- package/node_modules/@babel/types/lib/definitions/core.js +4 -0
- package/node_modules/@babel/types/lib/definitions/core.js.map +1 -1
- package/node_modules/@babel/types/lib/index-legacy.d.ts +1 -0
- package/node_modules/@babel/types/lib/index.d.ts +5 -5
- package/node_modules/@babel/types/lib/index.js.flow +1 -0
- package/node_modules/@babel/types/lib/validators/is.js.map +1 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js +5 -1
- package/node_modules/@babel/types/lib/validators/isSpecifierDefault.js.map +1 -1
- package/node_modules/@babel/types/package.json +4 -4
- package/node_modules/@diffci.com/core/README.md +1 -1
- package/node_modules/@diffci.com/core/dist/git/git-diff.js +7 -4
- package/node_modules/@diffci.com/core/dist/git/git-diff.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/git/types.d.ts +4 -0
- package/node_modules/@diffci.com/core/dist/repo/adapters/maven.js +16 -10
- package/node_modules/@diffci.com/core/dist/repo/adapters/maven.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/graph.js +8 -3
- package/node_modules/@diffci.com/core/dist/repo/graph.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/impact.js +4 -1
- package/node_modules/@diffci.com/core/dist/repo/impact.js.map +1 -1
- package/node_modules/@diffci.com/core/dist/repo/npm-lockfile.d.ts +11 -0
- package/node_modules/@diffci.com/core/dist/repo/npm-lockfile.js +45 -0
- package/node_modules/@diffci.com/core/dist/repo/npm-lockfile.js.map +1 -1
- package/node_modules/@diffci.com/core/package.json +1 -1
- package/node_modules/@diffci.com/core/src/git/git-diff.ts +6 -4
- package/node_modules/@diffci.com/core/src/git/types.ts +4 -0
- package/node_modules/@diffci.com/core/src/repo/adapters/maven.ts +16 -9
- package/node_modules/@diffci.com/core/src/repo/graph.ts +8 -3
- package/node_modules/@diffci.com/core/src/repo/impact.ts +4 -1
- package/node_modules/@diffci.com/core/src/repo/npm-lockfile.ts +39 -0
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +115 -71
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +2 -2
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +115 -71
- package/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +2 -2
- package/node_modules/@jridgewell/sourcemap-codec/package.json +2 -1
- package/node_modules/@jridgewell/sourcemap-codec/src/range-mappings.ts +47 -0
- package/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +66 -46
- package/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +27 -11
- package/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +13 -17
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.cts +5 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.cts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts +5 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/range-mappings.d.mts.map +1 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +2 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +2 -0
- package/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +4 -2
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -1
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +4 -2
- package/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -1
- package/node_modules/@vue/compiler-core/dist/compiler-core.cjs.js +6 -2
- package/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6 -2
- package/node_modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +6 -2
- package/node_modules/@vue/compiler-core/package.json +4 -4
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.js +8 -8
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +8 -8
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.js +14 -14
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-browser.prod.js +2 -2
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.esm-bundler.js +1 -1
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.global.js +14 -14
- package/node_modules/@vue/compiler-dom/dist/compiler-dom.global.prod.js +2 -2
- package/node_modules/@vue/compiler-dom/package.json +3 -3
- package/node_modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +1847 -1370
- package/node_modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +6462 -6187
- package/node_modules/@vue/compiler-sfc/package.json +11 -11
- package/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +32 -9
- package/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/node_modules/@vue/shared/dist/shared.cjs.js +11 -15
- package/node_modules/@vue/shared/dist/shared.cjs.prod.js +11 -15
- package/node_modules/@vue/shared/dist/shared.esm-bundler.js +11 -15
- package/node_modules/@vue/shared/package.json +1 -1
- package/node_modules/postcss/lib/css-syntax-error.js +6 -4
- package/node_modules/postcss/lib/declaration.d.ts +2 -2
- package/node_modules/postcss/lib/map-generator.js +12 -2
- package/node_modules/postcss/lib/processor.js +1 -1
- package/node_modules/postcss/lib/tokenize.js +6 -13
- package/node_modules/postcss/package.json +1 -1
- package/node_modules/source-map-js/README.md +192 -176
- package/node_modules/source-map-js/lib/array-set.js +5 -3
- package/node_modules/source-map-js/lib/base64-vlq.js +5 -9
- package/node_modules/source-map-js/lib/base64.js +13 -12
- package/node_modules/source-map-js/lib/binary-search.js +10 -6
- package/node_modules/source-map-js/lib/mapping-list.js +12 -7
- package/node_modules/source-map-js/lib/quick-sort.js +93 -23
- package/node_modules/source-map-js/lib/source-map-consumer.js +272 -194
- package/node_modules/source-map-js/lib/source-map-generator.js +146 -106
- package/node_modules/source-map-js/lib/source-node.js +144 -118
- package/node_modules/source-map-js/lib/util.js +56 -37
- package/node_modules/source-map-js/package.json +14 -7
- package/node_modules/source-map-js/source-map.d.ts +177 -63
- package/node_modules/source-map-js/source-map.js +4 -2
- package/package.json +3 -3
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { StringReader, StringWriter } from './strings';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
comma,
|
|
4
|
+
decodeInteger,
|
|
5
|
+
decodeSign,
|
|
6
|
+
encodeInteger,
|
|
7
|
+
encodeSign,
|
|
8
|
+
hasMoreVlq,
|
|
9
|
+
semicolon,
|
|
10
|
+
} from './vlq';
|
|
3
11
|
|
|
4
12
|
const EMPTY: any[] = [];
|
|
5
13
|
|
|
@@ -40,8 +48,8 @@ export function decodeOriginalScopes(input: string): OriginalScope[] {
|
|
|
40
48
|
let line = 0;
|
|
41
49
|
|
|
42
50
|
for (; reader.pos < length; reader.pos++) {
|
|
43
|
-
line
|
|
44
|
-
const column = decodeInteger(reader
|
|
51
|
+
line += decodeSign(decodeInteger(reader));
|
|
52
|
+
const column = decodeSign(decodeInteger(reader));
|
|
45
53
|
|
|
46
54
|
if (!hasMoreVlq(reader, length)) {
|
|
47
55
|
const last = stack.pop()!;
|
|
@@ -50,19 +58,21 @@ export function decodeOriginalScopes(input: string): OriginalScope[] {
|
|
|
50
58
|
continue;
|
|
51
59
|
}
|
|
52
60
|
|
|
53
|
-
const kind = decodeInteger(reader
|
|
54
|
-
const fields = decodeInteger(reader
|
|
61
|
+
const kind = decodeSign(decodeInteger(reader));
|
|
62
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
55
63
|
const hasName = fields & 0b0001;
|
|
56
64
|
|
|
57
65
|
const scope: OriginalScope = (
|
|
58
|
-
hasName
|
|
66
|
+
hasName
|
|
67
|
+
? [line, column, 0, 0, kind, decodeSign(decodeInteger(reader))]
|
|
68
|
+
: [line, column, 0, 0, kind]
|
|
59
69
|
) as OriginalScope;
|
|
60
70
|
|
|
61
71
|
let vars: Var[] = EMPTY;
|
|
62
72
|
if (hasMoreVlq(reader, length)) {
|
|
63
73
|
vars = [];
|
|
64
74
|
do {
|
|
65
|
-
const varsIndex = decodeInteger(reader
|
|
75
|
+
const varsIndex = decodeSign(decodeInteger(reader));
|
|
66
76
|
vars.push(varsIndex);
|
|
67
77
|
} while (hasMoreVlq(reader, length));
|
|
68
78
|
}
|
|
@@ -98,16 +108,17 @@ function _encodeOriginalScopes(
|
|
|
98
108
|
|
|
99
109
|
if (index > 0) writer.write(comma);
|
|
100
110
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
encodeInteger(writer,
|
|
111
|
+
encodeInteger(writer, encodeSign(startLine - state[0]));
|
|
112
|
+
state[0] = startLine;
|
|
113
|
+
encodeInteger(writer, encodeSign(startColumn));
|
|
114
|
+
encodeInteger(writer, encodeSign(kind));
|
|
104
115
|
|
|
105
116
|
const fields = scope.length === 6 ? 0b0001 : 0;
|
|
106
|
-
encodeInteger(writer, fields
|
|
107
|
-
if (scope.length === 6) encodeInteger(writer, scope[5]
|
|
117
|
+
encodeInteger(writer, encodeSign(fields));
|
|
118
|
+
if (scope.length === 6) encodeInteger(writer, encodeSign(scope[5]));
|
|
108
119
|
|
|
109
120
|
for (const v of vars) {
|
|
110
|
-
encodeInteger(writer, v
|
|
121
|
+
encodeInteger(writer, encodeSign(v));
|
|
111
122
|
}
|
|
112
123
|
|
|
113
124
|
for (index++; index < scopes.length; ) {
|
|
@@ -120,8 +131,9 @@ function _encodeOriginalScopes(
|
|
|
120
131
|
}
|
|
121
132
|
|
|
122
133
|
writer.write(comma);
|
|
123
|
-
|
|
124
|
-
|
|
134
|
+
encodeInteger(writer, encodeSign(endLine - state[0]));
|
|
135
|
+
state[0] = endLine;
|
|
136
|
+
encodeInteger(writer, encodeSign(endColumn));
|
|
125
137
|
|
|
126
138
|
return index;
|
|
127
139
|
}
|
|
@@ -146,7 +158,7 @@ export function decodeGeneratedRanges(input: string): GeneratedRange[] {
|
|
|
146
158
|
let genColumn = 0;
|
|
147
159
|
|
|
148
160
|
for (; reader.pos < semi; reader.pos++) {
|
|
149
|
-
genColumn
|
|
161
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
150
162
|
|
|
151
163
|
if (!hasMoreVlq(reader, semi)) {
|
|
152
164
|
const last = stack.pop()!;
|
|
@@ -155,7 +167,7 @@ export function decodeGeneratedRanges(input: string): GeneratedRange[] {
|
|
|
155
167
|
continue;
|
|
156
168
|
}
|
|
157
169
|
|
|
158
|
-
const fields = decodeInteger(reader
|
|
170
|
+
const fields = decodeSign(decodeInteger(reader));
|
|
159
171
|
const hasDefinition = fields & 0b0001;
|
|
160
172
|
const hasCallsite = fields & 0b0010;
|
|
161
173
|
const hasScope = fields & 0b0100;
|
|
@@ -164,11 +176,10 @@ export function decodeGeneratedRanges(input: string): GeneratedRange[] {
|
|
|
164
176
|
let bindings: Binding[] = EMPTY;
|
|
165
177
|
let range: GeneratedRange;
|
|
166
178
|
if (hasDefinition) {
|
|
167
|
-
const defSourcesIndex = decodeInteger(reader
|
|
168
|
-
definitionScopeIndex =
|
|
169
|
-
reader
|
|
170
|
-
definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0
|
|
171
|
-
);
|
|
179
|
+
const defSourcesIndex = definitionSourcesIndex + decodeSign(decodeInteger(reader));
|
|
180
|
+
definitionScopeIndex =
|
|
181
|
+
decodeSign(decodeInteger(reader)) +
|
|
182
|
+
(definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0);
|
|
172
183
|
|
|
173
184
|
definitionSourcesIndex = defSourcesIndex;
|
|
174
185
|
range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex] as GeneratedRange;
|
|
@@ -181,13 +192,12 @@ export function decodeGeneratedRanges(input: string): GeneratedRange[] {
|
|
|
181
192
|
if (hasCallsite) {
|
|
182
193
|
const prevCsi = callsiteSourcesIndex;
|
|
183
194
|
const prevLine = callsiteLine;
|
|
184
|
-
callsiteSourcesIndex
|
|
195
|
+
callsiteSourcesIndex += decodeSign(decodeInteger(reader));
|
|
185
196
|
const sameSource = prevCsi === callsiteSourcesIndex;
|
|
186
|
-
callsiteLine =
|
|
187
|
-
callsiteColumn =
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
);
|
|
197
|
+
callsiteLine = (sameSource ? callsiteLine : 0) + decodeSign(decodeInteger(reader));
|
|
198
|
+
callsiteColumn =
|
|
199
|
+
(sameSource && prevLine === callsiteLine ? callsiteColumn : 0) +
|
|
200
|
+
decodeSign(decodeInteger(reader));
|
|
191
201
|
|
|
192
202
|
callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
|
|
193
203
|
}
|
|
@@ -198,15 +208,16 @@ export function decodeGeneratedRanges(input: string): GeneratedRange[] {
|
|
|
198
208
|
do {
|
|
199
209
|
bindingLine = genLine;
|
|
200
210
|
bindingColumn = genColumn;
|
|
201
|
-
const expressionsCount = decodeInteger(reader
|
|
211
|
+
const expressionsCount = decodeSign(decodeInteger(reader));
|
|
202
212
|
let expressionRanges: BindingExpressionRange[];
|
|
203
213
|
if (expressionsCount < -1) {
|
|
204
|
-
expressionRanges = [[decodeInteger(reader
|
|
214
|
+
expressionRanges = [[decodeSign(decodeInteger(reader))]];
|
|
205
215
|
for (let i = -1; i > expressionsCount; i--) {
|
|
206
216
|
const prevBl = bindingLine;
|
|
207
|
-
bindingLine
|
|
208
|
-
bindingColumn =
|
|
209
|
-
|
|
217
|
+
bindingLine += decodeSign(decodeInteger(reader));
|
|
218
|
+
bindingColumn =
|
|
219
|
+
(bindingLine === prevBl ? bindingColumn : 0) + decodeSign(decodeInteger(reader));
|
|
220
|
+
const expression = decodeSign(decodeInteger(reader));
|
|
210
221
|
expressionRanges.push([expression, bindingLine, bindingColumn]);
|
|
211
222
|
}
|
|
212
223
|
} else {
|
|
@@ -273,19 +284,22 @@ function _encodeGeneratedRanges(
|
|
|
273
284
|
writer.write(comma);
|
|
274
285
|
}
|
|
275
286
|
|
|
276
|
-
|
|
287
|
+
encodeInteger(writer, encodeSign(range[1] - state[1]));
|
|
288
|
+
state[1] = range[1];
|
|
277
289
|
|
|
278
290
|
const fields =
|
|
279
291
|
(range.length === 6 ? 0b0001 : 0) | (callsite ? 0b0010 : 0) | (isScope ? 0b0100 : 0);
|
|
280
|
-
encodeInteger(writer, fields
|
|
292
|
+
encodeInteger(writer, encodeSign(fields));
|
|
281
293
|
|
|
282
294
|
if (range.length === 6) {
|
|
283
295
|
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
|
284
296
|
if (sourcesIndex !== state[2]) {
|
|
285
297
|
state[3] = 0;
|
|
286
298
|
}
|
|
287
|
-
|
|
288
|
-
state[
|
|
299
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[2]));
|
|
300
|
+
state[2] = sourcesIndex;
|
|
301
|
+
encodeInteger(writer, encodeSign(scopesIndex - state[3]));
|
|
302
|
+
state[3] = scopesIndex;
|
|
289
303
|
}
|
|
290
304
|
|
|
291
305
|
if (callsite) {
|
|
@@ -296,23 +310,28 @@ function _encodeGeneratedRanges(
|
|
|
296
310
|
} else if (callLine !== state[5]) {
|
|
297
311
|
state[6] = 0;
|
|
298
312
|
}
|
|
299
|
-
|
|
300
|
-
state[
|
|
301
|
-
|
|
313
|
+
encodeInteger(writer, encodeSign(sourcesIndex - state[4]));
|
|
314
|
+
state[4] = sourcesIndex;
|
|
315
|
+
encodeInteger(writer, encodeSign(callLine - state[5]));
|
|
316
|
+
state[5] = callLine;
|
|
317
|
+
encodeInteger(writer, encodeSign(callColumn - state[6]));
|
|
318
|
+
state[6] = callColumn;
|
|
302
319
|
}
|
|
303
320
|
|
|
304
321
|
if (bindings) {
|
|
305
322
|
for (const binding of bindings) {
|
|
306
|
-
if (binding.length > 1) encodeInteger(writer, -binding.length
|
|
323
|
+
if (binding.length > 1) encodeInteger(writer, encodeSign(-binding.length));
|
|
307
324
|
const expression = binding[0][0];
|
|
308
|
-
encodeInteger(writer, expression
|
|
325
|
+
encodeInteger(writer, encodeSign(expression));
|
|
309
326
|
let bindingStartLine = startLine;
|
|
310
327
|
let bindingStartColumn = startColumn;
|
|
311
328
|
for (let i = 1; i < binding.length; i++) {
|
|
312
329
|
const expRange = binding[i];
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
encodeInteger(writer, expRange[
|
|
330
|
+
encodeInteger(writer, encodeSign(expRange[1]! - bindingStartLine));
|
|
331
|
+
bindingStartLine = expRange[1]!;
|
|
332
|
+
encodeInteger(writer, encodeSign(expRange[2]! - bindingStartColumn));
|
|
333
|
+
bindingStartColumn = expRange[2]!;
|
|
334
|
+
encodeInteger(writer, encodeSign(expRange[0]!));
|
|
316
335
|
}
|
|
317
336
|
}
|
|
318
337
|
}
|
|
@@ -333,7 +352,8 @@ function _encodeGeneratedRanges(
|
|
|
333
352
|
} else {
|
|
334
353
|
writer.write(comma);
|
|
335
354
|
}
|
|
336
|
-
|
|
355
|
+
encodeInteger(writer, encodeSign(endColumn - state[1]));
|
|
356
|
+
state[1] = endColumn;
|
|
337
357
|
|
|
338
358
|
return index;
|
|
339
359
|
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
comma,
|
|
3
|
+
decodeInteger,
|
|
4
|
+
decodeSign,
|
|
5
|
+
encodeInteger,
|
|
6
|
+
encodeSign,
|
|
7
|
+
hasMoreVlq,
|
|
8
|
+
semicolon,
|
|
9
|
+
} from './vlq';
|
|
2
10
|
import { StringWriter, StringReader } from './strings';
|
|
3
11
|
|
|
4
12
|
export {
|
|
@@ -9,6 +17,9 @@ export {
|
|
|
9
17
|
} from './scopes';
|
|
10
18
|
export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes';
|
|
11
19
|
|
|
20
|
+
export { decodeRangeMappings, encodeRangeMappings } from './range-mappings';
|
|
21
|
+
export type { MappingIndex, RangeMappings } from './range-mappings';
|
|
22
|
+
|
|
12
23
|
export type SourceMapSegment =
|
|
13
24
|
| [number]
|
|
14
25
|
| [number, number, number, number]
|
|
@@ -36,17 +47,17 @@ export function decode(mappings: string): SourceMapMappings {
|
|
|
36
47
|
while (reader.pos < semi) {
|
|
37
48
|
let seg: SourceMapSegment;
|
|
38
49
|
|
|
39
|
-
genColumn
|
|
50
|
+
genColumn += decodeSign(decodeInteger(reader));
|
|
40
51
|
if (genColumn < lastCol) sorted = false;
|
|
41
52
|
lastCol = genColumn;
|
|
42
53
|
|
|
43
54
|
if (hasMoreVlq(reader, semi)) {
|
|
44
|
-
sourcesIndex
|
|
45
|
-
sourceLine
|
|
46
|
-
sourceColumn
|
|
55
|
+
sourcesIndex += decodeSign(decodeInteger(reader));
|
|
56
|
+
sourceLine += decodeSign(decodeInteger(reader));
|
|
57
|
+
sourceColumn += decodeSign(decodeInteger(reader));
|
|
47
58
|
|
|
48
59
|
if (hasMoreVlq(reader, semi)) {
|
|
49
|
-
namesIndex
|
|
60
|
+
namesIndex += decodeSign(decodeInteger(reader));
|
|
50
61
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
|
51
62
|
} else {
|
|
52
63
|
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
|
@@ -95,15 +106,20 @@ export function encode(decoded: Readonly<SourceMapMappings>): string {
|
|
|
95
106
|
const segment = line[j];
|
|
96
107
|
if (j > 0) writer.write(comma);
|
|
97
108
|
|
|
98
|
-
|
|
109
|
+
encodeInteger(writer, encodeSign(segment[0] - genColumn));
|
|
110
|
+
genColumn = segment[0];
|
|
99
111
|
|
|
100
112
|
if (segment.length === 1) continue;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
113
|
+
encodeInteger(writer, encodeSign(segment[1] - sourcesIndex));
|
|
114
|
+
encodeInteger(writer, encodeSign(segment[2] - sourceLine));
|
|
115
|
+
encodeInteger(writer, encodeSign(segment[3] - sourceColumn));
|
|
116
|
+
sourcesIndex = segment[1];
|
|
117
|
+
sourceLine = segment[2];
|
|
118
|
+
sourceColumn = segment[3];
|
|
104
119
|
|
|
105
120
|
if (segment.length === 4) continue;
|
|
106
|
-
|
|
121
|
+
encodeInteger(writer, encodeSign(segment[4] - namesIndex));
|
|
122
|
+
namesIndex = segment[4];
|
|
107
123
|
}
|
|
108
124
|
}
|
|
109
125
|
|
|
@@ -13,7 +13,7 @@ for (let i = 0; i < chars.length; i++) {
|
|
|
13
13
|
charToInt[c] = i;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export function decodeInteger(reader: StringReader
|
|
16
|
+
export function decodeInteger(reader: StringReader): number {
|
|
17
17
|
let value = 0;
|
|
18
18
|
let shift = 0;
|
|
19
19
|
let integer = 0;
|
|
@@ -25,28 +25,24 @@ export function decodeInteger(reader: StringReader, relative: number): number {
|
|
|
25
25
|
shift += 5;
|
|
26
26
|
} while (integer & 32);
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
value >>>= 1;
|
|
30
|
-
|
|
31
|
-
if (shouldNegate) {
|
|
32
|
-
value = -0x80000000 | -value;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
return relative + value;
|
|
28
|
+
return value;
|
|
36
29
|
}
|
|
37
30
|
|
|
38
|
-
export function
|
|
39
|
-
|
|
31
|
+
export function decodeSign(num: number): number {
|
|
32
|
+
return num & 1 ? -0x80000000 | -(num >>> 1) : num >>> 1;
|
|
33
|
+
}
|
|
40
34
|
|
|
41
|
-
|
|
35
|
+
export function encodeInteger(builder: StringWriter, num: number) {
|
|
42
36
|
do {
|
|
43
|
-
let clamped =
|
|
44
|
-
|
|
45
|
-
if (
|
|
37
|
+
let clamped = num & 0b011111;
|
|
38
|
+
num >>>= 5;
|
|
39
|
+
if (num > 0) clamped |= 0b100000;
|
|
46
40
|
builder.write(intToChar[clamped]);
|
|
47
|
-
} while (
|
|
41
|
+
} while (num > 0);
|
|
42
|
+
}
|
|
48
43
|
|
|
49
|
-
|
|
44
|
+
export function encodeSign(num: number): number {
|
|
45
|
+
return num < 0 ? (-num << 1) | 1 : num << 1;
|
|
50
46
|
}
|
|
51
47
|
|
|
52
48
|
export function hasMoreVlq(reader: StringReader, max: number) {
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MappingIndex = number;
|
|
2
|
+
export type RangeMappings = MappingIndex[][];
|
|
3
|
+
export declare function decodeRangeMappings(input: string): RangeMappings;
|
|
4
|
+
export declare function encodeRangeMappings(decoded: RangeMappings): string;
|
|
5
|
+
//# sourceMappingURL=range-mappings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-mappings.d.ts","sourceRoot":"","sources":["../src/range-mappings.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,MAAM,MAAM,aAAa,GAAG,YAAY,EAAE,EAAE,CAAC;AAE7C,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAoBhE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAkBlE"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MappingIndex = number;
|
|
2
|
+
export type RangeMappings = MappingIndex[][];
|
|
3
|
+
export declare function decodeRangeMappings(input: string): RangeMappings;
|
|
4
|
+
export declare function encodeRangeMappings(decoded: RangeMappings): string;
|
|
5
|
+
//# sourceMappingURL=range-mappings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range-mappings.d.ts","sourceRoot":"","sources":["../src/range-mappings.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,MAAM,MAAM,aAAa,GAAG,YAAY,EAAE,EAAE,CAAC;AAE7C,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,CAoBhE;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAkBlE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAaA,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,MAAM,GAAG,MAAM,CAAC;AACrB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,GAAG,GAAG,MAAM,CAAC;AAClB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,WAAW,GAAG,MAAM,CAAC;AAE1B,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,GAAG,CAC7B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;CAAC,EAClC;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,IAAI;CAAC,EACxC;IAAE,IAAI,EAAE,GAAG,EAAE,CAAA;CAAE,CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,GAAG,CAC9B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;CAAC,EAC5B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,YAAY;IAAE,WAAW;CAAC,EACvD;IACE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CACF,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AACpD,KAAK,OAAO,GAAG,sBAAsB,EAAE,CAAC;AACxC,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEnE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CA2CnE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAQpE;AA6CD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE,CAmGrE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAUtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../src/scopes.ts"],"names":[],"mappings":"AAaA,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,MAAM,GAAG,MAAM,CAAC;AACrB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,IAAI,GAAG,MAAM,CAAC;AACnB,KAAK,GAAG,GAAG,MAAM,CAAC;AAClB,KAAK,YAAY,GAAG,MAAM,CAAC;AAC3B,KAAK,WAAW,GAAG,MAAM,CAAC;AAE1B,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAEtC,MAAM,MAAM,aAAa,GAAG,GAAG,CAC7B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;CAAC,EAClC;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,IAAI;CAAC,EACxC;IAAE,IAAI,EAAE,GAAG,EAAE,CAAA;CAAE,CAChB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,GAAG,CAC9B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;CAAC,EAC5B;IAAC,IAAI;IAAE,MAAM;IAAE,IAAI;IAAE,MAAM;IAAE,YAAY;IAAE,WAAW;CAAC,EACvD;IACE,QAAQ,EAAE,QAAQ,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;CAClB,CACF,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG,CAAC,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AACpD,KAAK,OAAO,GAAG,sBAAsB,EAAE,CAAC;AACxC,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAEnE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,EAAE,CA2CnE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAQpE;AA6CD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,cAAc,EAAE,CAmGrE;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,CAUtE"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { decodeOriginalScopes, encodeOriginalScopes, decodeGeneratedRanges, encodeGeneratedRanges, } from './scopes.cts';
|
|
2
2
|
export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes.cts';
|
|
3
|
+
export { decodeRangeMappings, encodeRangeMappings } from './range-mappings.cts';
|
|
4
|
+
export type { MappingIndex, RangeMappings } from './range-mappings.cts';
|
|
3
5
|
export type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number];
|
|
4
6
|
export type SourceMapLine = SourceMapSegment[];
|
|
5
7
|
export type SourceMapMappings = SourceMapLine[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourcemap-codec.d.ts","sourceRoot":"","sources":["../src/sourcemap-codec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sourcemap-codec.d.ts","sourceRoot":"","sources":["../src/sourcemap-codec.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEhG,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GACxB,CAAC,MAAM,CAAC,GACR,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAChC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC7C,MAAM,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;AAC/C,MAAM,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AAEhD,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAiD1D;AAUD,wBAAgB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAC;AAC3D,wBAAgB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { decodeOriginalScopes, encodeOriginalScopes, decodeGeneratedRanges, encodeGeneratedRanges, } from './scopes.mts';
|
|
2
2
|
export type { OriginalScope, GeneratedRange, CallSite, BindingExpressionRange } from './scopes.mts';
|
|
3
|
+
export { decodeRangeMappings, encodeRangeMappings } from './range-mappings.mts';
|
|
4
|
+
export type { MappingIndex, RangeMappings } from './range-mappings.mts';
|
|
3
5
|
export type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number];
|
|
4
6
|
export type SourceMapLine = SourceMapSegment[];
|
|
5
7
|
export type SourceMapMappings = SourceMapLine[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sourcemap-codec.d.ts","sourceRoot":"","sources":["../src/sourcemap-codec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sourcemap-codec.d.ts","sourceRoot":"","sources":["../src/sourcemap-codec.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEhG,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5E,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,MAAM,gBAAgB,GACxB,CAAC,MAAM,CAAC,GACR,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,GAChC,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAC7C,MAAM,MAAM,aAAa,GAAG,gBAAgB,EAAE,CAAC;AAC/C,MAAM,MAAM,iBAAiB,GAAG,aAAa,EAAE,CAAC;AAEhD,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB,CAiD1D;AAUD,wBAAgB,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,MAAM,CAAC;AAC3D,wBAAgB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,iBAAiB,CAAC,GAAG,MAAM,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { StringReader, StringWriter } from './strings.cts';
|
|
2
2
|
export declare const comma: number;
|
|
3
3
|
export declare const semicolon: number;
|
|
4
|
-
export declare function decodeInteger(reader: StringReader
|
|
5
|
-
export declare function
|
|
4
|
+
export declare function decodeInteger(reader: StringReader): number;
|
|
5
|
+
export declare function decodeSign(num: number): number;
|
|
6
|
+
export declare function encodeInteger(builder: StringWriter, num: number): void;
|
|
7
|
+
export declare function encodeSign(num: number): number;
|
|
6
8
|
export declare function hasMoreVlq(reader: StringReader, max: number): boolean;
|
|
7
9
|
//# sourceMappingURL=vlq.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vlq.d.ts","sourceRoot":"","sources":["../src/vlq.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAoB,CAAC;AACvC,eAAO,MAAM,SAAS,QAAoB,CAAC;AAY3C,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"vlq.d.ts","sourceRoot":"","sources":["../src/vlq.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAoB,CAAC;AACvC,eAAO,MAAM,SAAS,QAAoB,CAAC;AAY3C,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAa1D;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,QAO/D;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,WAG3D"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { StringReader, StringWriter } from './strings.mts';
|
|
2
2
|
export declare const comma: number;
|
|
3
3
|
export declare const semicolon: number;
|
|
4
|
-
export declare function decodeInteger(reader: StringReader
|
|
5
|
-
export declare function
|
|
4
|
+
export declare function decodeInteger(reader: StringReader): number;
|
|
5
|
+
export declare function decodeSign(num: number): number;
|
|
6
|
+
export declare function encodeInteger(builder: StringWriter, num: number): void;
|
|
7
|
+
export declare function encodeSign(num: number): number;
|
|
6
8
|
export declare function hasMoreVlq(reader: StringReader, max: number): boolean;
|
|
7
9
|
//# sourceMappingURL=vlq.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vlq.d.ts","sourceRoot":"","sources":["../src/vlq.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAoB,CAAC;AACvC,eAAO,MAAM,SAAS,QAAoB,CAAC;AAY3C,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"vlq.d.ts","sourceRoot":"","sources":["../src/vlq.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,eAAO,MAAM,KAAK,QAAoB,CAAC;AACvC,eAAO,MAAM,SAAS,QAAoB,CAAC;AAY3C,wBAAgB,aAAa,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAa1D;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,QAO/D;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,WAG3D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.
|
|
2
|
+
* @vue/compiler-core v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2972,7 +2972,11 @@ function getLoc(start, end) {
|
|
|
2972
2972
|
};
|
|
2973
2973
|
}
|
|
2974
2974
|
function cloneLoc(loc) {
|
|
2975
|
-
return
|
|
2975
|
+
return {
|
|
2976
|
+
start: shared.extend({}, loc.start),
|
|
2977
|
+
end: shared.extend({}, loc.end),
|
|
2978
|
+
source: loc.source
|
|
2979
|
+
};
|
|
2976
2980
|
}
|
|
2977
2981
|
function setLocEnd(loc, end) {
|
|
2978
2982
|
loc.end = tokenizer.getPos(end);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.
|
|
2
|
+
* @vue/compiler-core v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2938,7 +2938,11 @@ function getLoc(start, end) {
|
|
|
2938
2938
|
};
|
|
2939
2939
|
}
|
|
2940
2940
|
function cloneLoc(loc) {
|
|
2941
|
-
return
|
|
2941
|
+
return {
|
|
2942
|
+
start: shared.extend({}, loc.start),
|
|
2943
|
+
end: shared.extend({}, loc.end),
|
|
2944
|
+
source: loc.source
|
|
2945
|
+
};
|
|
2942
2946
|
}
|
|
2943
2947
|
function setLocEnd(loc, end) {
|
|
2944
2948
|
loc.end = tokenizer.getPos(end);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.
|
|
2
|
+
* @vue/compiler-core v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2636,7 +2636,11 @@ function getLoc(start, end) {
|
|
|
2636
2636
|
};
|
|
2637
2637
|
}
|
|
2638
2638
|
function cloneLoc(loc) {
|
|
2639
|
-
return
|
|
2639
|
+
return {
|
|
2640
|
+
start: extend({}, loc.start),
|
|
2641
|
+
end: extend({}, loc.end),
|
|
2642
|
+
source: loc.source
|
|
2643
|
+
};
|
|
2640
2644
|
}
|
|
2641
2645
|
function setLocEnd(loc, end) {
|
|
2642
2646
|
loc.end = tokenizer.getPos(end);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.45",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
},
|
|
47
47
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@babel/parser": "^7.29.
|
|
50
|
-
"@vue/shared": "3.5.
|
|
49
|
+
"@babel/parser": "^7.29.12",
|
|
50
|
+
"@vue/shared": "3.5.45",
|
|
51
51
|
"entities": "^7.0.1",
|
|
52
52
|
"estree-walker": "^2.0.2",
|
|
53
53
|
"source-map-js": "^1.2.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/types": "^7.29.
|
|
56
|
+
"@babel/types": "^7.29.11"
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-dom v3.5.
|
|
2
|
+
* @vue/compiler-dom v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -503,7 +503,7 @@ const stringifyStatic = (children, context, parent) => {
|
|
|
503
503
|
const child = children[i];
|
|
504
504
|
const isCached = isParentCached || getCachedNode(child);
|
|
505
505
|
if (isCached) {
|
|
506
|
-
const result = analyzeNode(child);
|
|
506
|
+
const result = analyzeNode(child, context);
|
|
507
507
|
if (result) {
|
|
508
508
|
nc += result[0];
|
|
509
509
|
ec += result[1];
|
|
@@ -530,7 +530,7 @@ const isStringifiableAttr = (name, ns) => {
|
|
|
530
530
|
const isNonStringifiable = /* @__PURE__ */ shared.makeMap(
|
|
531
531
|
`caption,thead,tr,th,tbody,td,tfoot,colgroup,col`
|
|
532
532
|
);
|
|
533
|
-
function analyzeNode(node) {
|
|
533
|
+
function analyzeNode(node, context) {
|
|
534
534
|
if (node.type === 1 && isNonStringifiable(node.tag)) {
|
|
535
535
|
return false;
|
|
536
536
|
}
|
|
@@ -561,6 +561,9 @@ function analyzeNode(node) {
|
|
|
561
561
|
if (p.exp && (p.exp.type === 8 || p.exp.constType < 3)) {
|
|
562
562
|
return bail();
|
|
563
563
|
}
|
|
564
|
+
if (p.arg && p.arg.isStatic && (shared.isBooleanAttr(p.arg.content) || p.arg.content === "hidden") && context.isCustomElement(node2.tag)) {
|
|
565
|
+
return bail();
|
|
566
|
+
}
|
|
564
567
|
if (isOptionTag && compilerCore.isStaticArgOf(p.arg, "value") && p.exp && !p.exp.isStatic) {
|
|
565
568
|
return bail();
|
|
566
569
|
}
|
|
@@ -625,13 +628,10 @@ function stringifyElement(node, context) {
|
|
|
625
628
|
res += ` ${p.arg.content}="__VUE_EXP_START__${exp.content}__VUE_EXP_END__"`;
|
|
626
629
|
continue;
|
|
627
630
|
}
|
|
628
|
-
if ((shared.isBooleanAttr(p.arg.content) || p.arg.content === "hidden") && exp.content === "false") {
|
|
629
|
-
continue;
|
|
630
|
-
}
|
|
631
631
|
let evaluated = evaluateConstant(exp);
|
|
632
632
|
if (evaluated != null) {
|
|
633
|
-
const arg = p.arg
|
|
634
|
-
if (arg
|
|
633
|
+
const arg = p.arg.content;
|
|
634
|
+
if ((shared.isBooleanAttr(arg) || arg === "hidden") && !shared.includeBooleanAttr(evaluated)) {
|
|
635
635
|
continue;
|
|
636
636
|
}
|
|
637
637
|
if (arg === "class") {
|