vue 3.4.37 → 3.4.38

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 v3.4.37
2
+ * vue v3.4.38
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -1,5 +1,5 @@
1
1
  /**
2
- * vue v3.4.37
2
+ * vue v3.4.38
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -9680,7 +9680,7 @@ Component that was made reactive: `,
9680
9680
  return true;
9681
9681
  }
9682
9682
 
9683
- const version = "3.4.37";
9683
+ const version = "3.4.38";
9684
9684
  const warn = warn$1 ;
9685
9685
  const ErrorTypeStrings = ErrorTypeStrings$1 ;
9686
9686
  const devtools = devtools$1 ;
@@ -12381,8 +12381,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
12381
12381
  const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
12382
12382
  const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
12383
12383
  const whitespaceRE = /\s+[.[]\s*|\s*[.[]\s+/g;
12384
- const isMemberExpressionBrowser = (path) => {
12385
- path = path.trim().replace(whitespaceRE, (s) => s.trim());
12384
+ const getExpSource = (exp) => exp.type === 4 ? exp.content : exp.loc.source;
12385
+ const isMemberExpressionBrowser = (exp) => {
12386
+ const path = getExpSource(exp).trim().replace(whitespaceRE, (s) => s.trim());
12386
12387
  let state = 0 /* inMemberExp */;
12387
12388
  let stateStack = [];
12388
12389
  let currentOpenBracketCount = 0;
@@ -12444,6 +12445,9 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
12444
12445
  return !currentOpenBracketCount && !currentOpenParensCount;
12445
12446
  };
12446
12447
  const isMemberExpression = isMemberExpressionBrowser ;
12448
+ const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
12449
+ const isFnExpressionBrowser = (exp) => fnExpRE.test(getExpSource(exp));
12450
+ const isFnExpression = isFnExpressionBrowser ;
12447
12451
  function assert(condition, msg) {
12448
12452
  if (!condition) {
12449
12453
  throw new Error(msg || `unexpected compiler condition`);
@@ -15743,7 +15747,6 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15743
15747
  };
15744
15748
  }
15745
15749
 
15746
- const fnExpRE = /^\s*(async\s*)?(\([^)]*?\)|[\w$_]+)\s*(:[^=]+)?=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/;
15747
15750
  const transformOn$1 = (dir, node, context, augmentor) => {
15748
15751
  const { loc, modifiers, arg } = dir;
15749
15752
  if (!dir.exp && !modifiers.length) {
@@ -15787,8 +15790,8 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15787
15790
  }
15788
15791
  let shouldCache = context.cacheHandlers && !exp && !context.inVOnce;
15789
15792
  if (exp) {
15790
- const isMemberExp = isMemberExpression(exp.content);
15791
- const isInlineStatement = !(isMemberExp || fnExpRE.test(exp.content));
15793
+ const isMemberExp = isMemberExpression(exp);
15794
+ const isInlineStatement = !(isMemberExp || isFnExpression(exp));
15792
15795
  const hasMultipleStatements = exp.content.includes(`;`);
15793
15796
  {
15794
15797
  validateBrowserExpression(
@@ -15936,7 +15939,7 @@ Use a v-bind binding combined with a v-on listener that emits update:x event ins
15936
15939
  return createTransformProps();
15937
15940
  }
15938
15941
  const maybeRef = false;
15939
- if (!expString.trim() || !isMemberExpression(expString) && !maybeRef) {
15942
+ if (!expString.trim() || !isMemberExpression(exp) && !maybeRef) {
15940
15943
  context.onError(
15941
15944
  createCompilerError(42, exp.loc)
15942
15945
  );