@vue/compiler-core 3.3.0-beta.1 → 3.3.0-beta.3
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.
|
@@ -1203,6 +1203,7 @@ function parseAttributes(context, type) {
|
|
|
1203
1203
|
return props;
|
|
1204
1204
|
}
|
|
1205
1205
|
function parseAttribute(context, nameSet) {
|
|
1206
|
+
var _a;
|
|
1206
1207
|
const start = getCursor(context);
|
|
1207
1208
|
const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
|
|
1208
1209
|
const name = match[0];
|
|
@@ -1245,7 +1246,10 @@ function parseAttribute(context, nameSet) {
|
|
|
1245
1246
|
let arg;
|
|
1246
1247
|
if (match2[2]) {
|
|
1247
1248
|
const isSlot = dirName === "slot";
|
|
1248
|
-
const startOffset = name.lastIndexOf(
|
|
1249
|
+
const startOffset = name.lastIndexOf(
|
|
1250
|
+
match2[2],
|
|
1251
|
+
name.length - (((_a = match2[3]) == null ? void 0 : _a.length) || 0)
|
|
1252
|
+
);
|
|
1249
1253
|
const loc2 = getSelection(
|
|
1250
1254
|
context,
|
|
1251
1255
|
getNewPosition(context, start, startOffset),
|
|
@@ -1169,6 +1169,7 @@ function parseAttributes(context, type) {
|
|
|
1169
1169
|
return props;
|
|
1170
1170
|
}
|
|
1171
1171
|
function parseAttribute(context, nameSet) {
|
|
1172
|
+
var _a;
|
|
1172
1173
|
const start = getCursor(context);
|
|
1173
1174
|
const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
|
|
1174
1175
|
const name = match[0];
|
|
@@ -1211,7 +1212,10 @@ function parseAttribute(context, nameSet) {
|
|
|
1211
1212
|
let arg;
|
|
1212
1213
|
if (match2[2]) {
|
|
1213
1214
|
const isSlot = dirName === "slot";
|
|
1214
|
-
const startOffset = name.lastIndexOf(
|
|
1215
|
+
const startOffset = name.lastIndexOf(
|
|
1216
|
+
match2[2],
|
|
1217
|
+
name.length - (((_a = match2[3]) == null ? void 0 : _a.length) || 0)
|
|
1218
|
+
);
|
|
1215
1219
|
const loc2 = getSelection(
|
|
1216
1220
|
context,
|
|
1217
1221
|
getNewPosition(context, start, startOffset),
|
|
@@ -1186,6 +1186,7 @@ function parseAttributes(context, type) {
|
|
|
1186
1186
|
return props;
|
|
1187
1187
|
}
|
|
1188
1188
|
function parseAttribute(context, nameSet) {
|
|
1189
|
+
var _a;
|
|
1189
1190
|
const start = getCursor(context);
|
|
1190
1191
|
const match = /^[^\t\r\n\f />][^\t\r\n\f />=]*/.exec(context.source);
|
|
1191
1192
|
const name = match[0];
|
|
@@ -1228,7 +1229,10 @@ function parseAttribute(context, nameSet) {
|
|
|
1228
1229
|
let arg;
|
|
1229
1230
|
if (match2[2]) {
|
|
1230
1231
|
const isSlot = dirName === "slot";
|
|
1231
|
-
const startOffset = name.lastIndexOf(
|
|
1232
|
+
const startOffset = name.lastIndexOf(
|
|
1233
|
+
match2[2],
|
|
1234
|
+
name.length - (((_a = match2[3]) == null ? void 0 : _a.length) || 0)
|
|
1235
|
+
);
|
|
1232
1236
|
const loc2 = getSelection(
|
|
1233
1237
|
context,
|
|
1234
1238
|
getNewPosition(context, start, startOffset),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue/compiler-core",
|
|
3
|
-
"version": "3.3.0-beta.
|
|
3
|
+
"version": "3.3.0-beta.3",
|
|
4
4
|
"description": "@vue/compiler-core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/compiler-core.esm-bundler.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/parser": "^7.21.3",
|
|
36
|
-
"@vue/shared": "3.3.0-beta.
|
|
36
|
+
"@vue/shared": "3.3.0-beta.3",
|
|
37
37
|
"estree-walker": "^2.0.2",
|
|
38
38
|
"source-map-js": "^1.0.2"
|
|
39
39
|
},
|