vue 3.3.12 → 3.3.13

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.
@@ -9194,7 +9194,7 @@ function isMemoSame(cached, memo) {
9194
9194
  return true;
9195
9195
  }
9196
9196
 
9197
- const version = "3.3.12";
9197
+ const version = "3.3.13";
9198
9198
  const ssrUtils = null;
9199
9199
  const resolveFilter = null;
9200
9200
  const compatUtils = null;
@@ -10553,7 +10553,9 @@ const modifierGuards = {
10553
10553
  exact: (e, modifiers) => systemModifiers.some((m) => e[`${m}Key`] && !modifiers.includes(m))
10554
10554
  };
10555
10555
  const withModifiers = (fn, modifiers) => {
10556
- return fn._withMods || (fn._withMods = (event, ...args) => {
10556
+ const cache = fn._withMods || (fn._withMods = {});
10557
+ const cacheKey = modifiers.join(".");
10558
+ return cache[cacheKey] || (cache[cacheKey] = (event, ...args) => {
10557
10559
  for (let i = 0; i < modifiers.length; i++) {
10558
10560
  const guard = modifierGuards[modifiers[i]];
10559
10561
  if (guard && guard(event, modifiers))
@@ -10572,7 +10574,9 @@ const keyNames = {
10572
10574
  delete: "backspace"
10573
10575
  };
10574
10576
  const withKeys = (fn, modifiers) => {
10575
- return fn._withKeys || (fn._withKeys = (event) => {
10577
+ const cache = fn._withKeys || (fn._withKeys = {});
10578
+ const cacheKey = modifiers.join(".");
10579
+ return cache[cacheKey] || (cache[cacheKey] = (event) => {
10576
10580
  if (!("key" in event)) {
10577
10581
  return;
10578
10582
  }