@vue/compiler-core 3.5.10 → 3.5.12
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.
|
|
2
|
+
* @vue/compiler-core v3.5.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2883,6 +2883,9 @@ function getLoc(start, end) {
|
|
|
2883
2883
|
source: end == null ? end : getSlice(start, end)
|
|
2884
2884
|
};
|
|
2885
2885
|
}
|
|
2886
|
+
function cloneLoc(loc) {
|
|
2887
|
+
return getLoc(loc.start.offset, loc.end.offset);
|
|
2888
|
+
}
|
|
2886
2889
|
function setLocEnd(loc, end) {
|
|
2887
2890
|
loc.end = tokenizer.getPos(end);
|
|
2888
2891
|
loc.source = getSlice(loc.start.offset, end);
|
|
@@ -4645,7 +4648,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
4645
4648
|
const branch = createIfBranch(node, dir);
|
|
4646
4649
|
const ifNode = {
|
|
4647
4650
|
type: 9,
|
|
4648
|
-
loc: node.loc,
|
|
4651
|
+
loc: cloneLoc(node.loc),
|
|
4649
4652
|
branches: [branch]
|
|
4650
4653
|
};
|
|
4651
4654
|
context.replaceNode(ifNode);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.
|
|
2
|
+
* @vue/compiler-core v3.5.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2849,6 +2849,9 @@ function getLoc(start, end) {
|
|
|
2849
2849
|
source: end == null ? end : getSlice(start, end)
|
|
2850
2850
|
};
|
|
2851
2851
|
}
|
|
2852
|
+
function cloneLoc(loc) {
|
|
2853
|
+
return getLoc(loc.start.offset, loc.end.offset);
|
|
2854
|
+
}
|
|
2852
2855
|
function setLocEnd(loc, end) {
|
|
2853
2856
|
loc.end = tokenizer.getPos(end);
|
|
2854
2857
|
loc.source = getSlice(loc.start.offset, end);
|
|
@@ -4569,7 +4572,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
4569
4572
|
const branch = createIfBranch(node, dir);
|
|
4570
4573
|
const ifNode = {
|
|
4571
4574
|
type: 9,
|
|
4572
|
-
loc: node.loc,
|
|
4575
|
+
loc: cloneLoc(node.loc),
|
|
4573
4576
|
branches: [branch]
|
|
4574
4577
|
};
|
|
4575
4578
|
context.replaceNode(ifNode);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/compiler-core v3.5.
|
|
2
|
+
* @vue/compiler-core v3.5.12
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -2569,6 +2569,9 @@ function getLoc(start, end) {
|
|
|
2569
2569
|
source: end == null ? end : getSlice(start, end)
|
|
2570
2570
|
};
|
|
2571
2571
|
}
|
|
2572
|
+
function cloneLoc(loc) {
|
|
2573
|
+
return getLoc(loc.start.offset, loc.end.offset);
|
|
2574
|
+
}
|
|
2572
2575
|
function setLocEnd(loc, end) {
|
|
2573
2576
|
loc.end = tokenizer.getPos(end);
|
|
2574
2577
|
loc.source = getSlice(loc.start.offset, end);
|
|
@@ -3939,7 +3942,7 @@ function processIf(node, dir, context, processCodegen) {
|
|
|
3939
3942
|
const branch = createIfBranch(node, dir);
|
|
3940
3943
|
const ifNode = {
|
|
3941
3944
|
type: 9,
|
|
3942
|
-
loc: node.loc,
|
|
3945
|
+
loc: cloneLoc(node.loc),
|
|
3943
3946
|
branches: [branch]
|
|
3944
3947
|
};
|
|
3945
3948
|
context.replaceNode(ifNode);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.12",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"entities": "^4.5.0",
|
|
51
51
|
"estree-walker": "^2.0.2",
|
|
52
52
|
"source-map-js": "^1.2.0",
|
|
53
|
-
"@vue/shared": "3.5.
|
|
53
|
+
"@vue/shared": "3.5.12"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@babel/types": "^7.25.2"
|