@vue/shared 3.4.21 → 3.4.22

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/shared v3.4.21
2
+ * @vue/shared v3.4.22
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -7,6 +7,8 @@
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
+ /*! #__NO_SIDE_EFFECTS__ */
11
+ // @__NO_SIDE_EFFECTS__
10
12
  function makeMap(str, expectsLowerCase) {
11
13
  const set = new Set(str.split(","));
12
14
  return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
@@ -488,7 +490,11 @@ const replacer = (_key, val) => {
488
490
  };
489
491
  const stringifySymbol = (v, i = "") => {
490
492
  var _a;
491
- return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
493
+ return (
494
+ // Symbol.description in es2019+ so we need to cast here to pass
495
+ // the lib: es2016 check
496
+ isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v
497
+ );
492
498
  };
493
499
 
494
500
  exports.EMPTY_ARR = EMPTY_ARR;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.4.21
2
+ * @vue/shared v3.4.22
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -7,6 +7,8 @@
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
+ /*! #__NO_SIDE_EFFECTS__ */
11
+ // @__NO_SIDE_EFFECTS__
10
12
  function makeMap(str, expectsLowerCase) {
11
13
  const set = new Set(str.split(","));
12
14
  return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
@@ -488,7 +490,11 @@ const replacer = (_key, val) => {
488
490
  };
489
491
  const stringifySymbol = (v, i = "") => {
490
492
  var _a;
491
- return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
493
+ return (
494
+ // Symbol.description in es2019+ so we need to cast here to pass
495
+ // the lib: es2016 check
496
+ isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v
497
+ );
492
498
  };
493
499
 
494
500
  exports.EMPTY_ARR = EMPTY_ARR;
package/dist/shared.d.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  * \/\*#\_\_PURE\_\_\*\/
6
6
  * So that rollup can tree-shake them if necessary.
7
7
  */
8
+ /*! #__NO_SIDE_EFFECTS__ */
8
9
  export declare function makeMap(str: string, expectsLowerCase?: boolean): (key: string) => boolean;
9
10
 
10
11
  export declare const EMPTY_OBJ: {
@@ -1,8 +1,10 @@
1
1
  /**
2
- * @vue/shared v3.4.21
2
+ * @vue/shared v3.4.22
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
+ /*! #__NO_SIDE_EFFECTS__ */
7
+ // @__NO_SIDE_EFFECTS__
6
8
  function makeMap(str, expectsLowerCase) {
7
9
  const set = new Set(str.split(","));
8
10
  return expectsLowerCase ? (val) => set.has(val.toLowerCase()) : (val) => set.has(val);
@@ -484,7 +486,11 @@ const replacer = (_key, val) => {
484
486
  };
485
487
  const stringifySymbol = (v, i = "") => {
486
488
  var _a;
487
- return isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v;
489
+ return (
490
+ // Symbol.description in es2019+ so we need to cast here to pass
491
+ // the lib: es2016 check
492
+ isSymbol(v) ? `Symbol(${(_a = v.description) != null ? _a : i})` : v
493
+ );
488
494
  };
489
495
 
490
496
  export { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, PatchFlagNames, PatchFlags, ShapeFlags, SlotFlags, camelize, capitalize, def, escapeHtml, escapeHtmlComment, extend, genPropsAccessExp, generateCodeFrame, getGlobalThis, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isDate, isFunction, isGloballyAllowed, isGloballyWhitelisted, isHTMLTag, isIntegerKey, isKnownHtmlAttr, isKnownSvgAttr, isMap, isMathMLTag, isModelListener, isObject, isOn, isPlainObject, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isSSRSafeAttrName, isSVGTag, isSet, isSpecialBooleanAttr, isString, isSymbol, isVoidTag, looseEqual, looseIndexOf, looseToNumber, makeMap, normalizeClass, normalizeProps, normalizeStyle, objectToString, parseStringStyle, propsToAttrMap, remove, slotFlagsText, stringifyStyle, toDisplayString, toHandlerKey, toNumber, toRawType, toTypeString };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.4.21",
3
+ "version": "3.4.22",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",