@vue/compiler-sfc 3.4.30 → 3.4.31

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-sfc v3.4.30
2
+ * @vue/compiler-sfc v3.4.31
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -20849,7 +20849,7 @@ function isStaticNode(node) {
20849
20849
  return false;
20850
20850
  }
20851
20851
 
20852
- const version = "3.4.30";
20852
+ const version = "3.4.31";
20853
20853
  const parseCache = parseCache$1;
20854
20854
  const errorMessages = {
20855
20855
  ...CompilerDOM.errorMessages,
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/compiler-sfc v3.4.30
2
+ * @vue/compiler-sfc v3.4.31
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -274,11 +274,14 @@ function escapeHtml(string) {
274
274
  return lastIndex !== index ? html + str.slice(lastIndex, index) : html;
275
275
  }
276
276
 
277
+ const isRef = (val) => {
278
+ return !!(val && val.__v_isRef === true);
279
+ };
277
280
  const toDisplayString = (val) => {
278
- return isString$2(val) ? val : val == null ? "" : isArray$3(val) || isObject$2(val) && (val.toString === objectToString$1 || !isFunction$1(val.toString)) ? JSON.stringify(val, replacer, 2) : String(val);
281
+ return isString$2(val) ? val : val == null ? "" : isArray$3(val) || isObject$2(val) && (val.toString === objectToString$1 || !isFunction$1(val.toString)) ? isRef(val) ? toDisplayString(val.value) : JSON.stringify(val, replacer, 2) : String(val);
279
282
  };
280
283
  const replacer = (_key, val) => {
281
- if (val && val.__v_isRef) {
284
+ if (isRef(val)) {
282
285
  return replacer(_key, val.value);
283
286
  } else if (isMap(val)) {
284
287
  return {
@@ -22642,7 +22645,7 @@ function processExpression(node, context, asParams = false, asRawStatements = fa
22642
22645
  node2.name = rewriteIdentifier(node2.name, parent, node2);
22643
22646
  ids.push(node2);
22644
22647
  } else {
22645
- if (!(needPrefix && isLocal) && parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression") {
22648
+ if (!(needPrefix && isLocal) && (!parent || parent.type !== "CallExpression" && parent.type !== "NewExpression" && parent.type !== "MemberExpression")) {
22646
22649
  node2.isConstant = true;
22647
22650
  }
22648
22651
  ids.push(node2);
@@ -48435,7 +48438,7 @@ var __spreadValues = (a, b) => {
48435
48438
  }
48436
48439
  return a;
48437
48440
  };
48438
- const version = "3.4.30";
48441
+ const version = "3.4.31";
48439
48442
  const parseCache = parseCache$1;
48440
48443
  const errorMessages = __spreadValues(__spreadValues({}, errorMessages$1), DOMErrorMessages);
48441
48444
  const walk = walk$2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/compiler-sfc",
3
- "version": "3.4.30",
3
+ "version": "3.4.31",
4
4
  "description": "@vue/compiler-sfc",
5
5
  "main": "dist/compiler-sfc.cjs.js",
6
6
  "module": "dist/compiler-sfc.esm-browser.js",
@@ -47,10 +47,10 @@
47
47
  "magic-string": "^0.30.10",
48
48
  "postcss": "^8.4.38",
49
49
  "source-map-js": "^1.2.0",
50
- "@vue/compiler-core": "3.4.30",
51
- "@vue/compiler-dom": "3.4.30",
52
- "@vue/compiler-ssr": "3.4.30",
53
- "@vue/shared": "3.4.30"
50
+ "@vue/compiler-core": "3.4.31",
51
+ "@vue/compiler-ssr": "3.4.31",
52
+ "@vue/compiler-dom": "3.4.31",
53
+ "@vue/shared": "3.4.31"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@babel/types": "^7.24.7",
@@ -62,6 +62,6 @@
62
62
  "postcss-modules": "^6.0.0",
63
63
  "postcss-selector-parser": "^6.1.0",
64
64
  "pug": "^3.0.3",
65
- "sass": "^1.77.5"
65
+ "sass": "^1.77.6"
66
66
  }
67
67
  }