@vue/shared 3.5.19 → 3.5.21

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.5.19
2
+ * @vue/shared v3.5.21
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -7,7 +7,6 @@
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- /*! #__NO_SIDE_EFFECTS__ */
11
10
  // @__NO_SIDE_EFFECTS__
12
11
  function makeMap(str) {
13
12
  const map = /* @__PURE__ */ Object.create(null);
@@ -65,10 +64,10 @@ const cacheStringFunction = (fn) => {
65
64
  return hit || (cache[str] = fn(str));
66
65
  });
67
66
  };
68
- const camelizeRE = /-(\w)/g;
67
+ const camelizeRE = /-\w/g;
69
68
  const camelize = cacheStringFunction(
70
69
  (str) => {
71
- return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
70
+ return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
72
71
  }
73
72
  );
74
73
  const hyphenateRE = /\B([A-Z])/g;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.5.19
2
+ * @vue/shared v3.5.21
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
@@ -7,7 +7,6 @@
7
7
 
8
8
  Object.defineProperty(exports, '__esModule', { value: true });
9
9
 
10
- /*! #__NO_SIDE_EFFECTS__ */
11
10
  // @__NO_SIDE_EFFECTS__
12
11
  function makeMap(str) {
13
12
  const map = /* @__PURE__ */ Object.create(null);
@@ -65,10 +64,10 @@ const cacheStringFunction = (fn) => {
65
64
  return hit || (cache[str] = fn(str));
66
65
  });
67
66
  };
68
- const camelizeRE = /-(\w)/g;
67
+ const camelizeRE = /-\w/g;
69
68
  const camelize = cacheStringFunction(
70
69
  (str) => {
71
- return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
70
+ return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
72
71
  }
73
72
  );
74
73
  const hyphenateRE = /\B([A-Z])/g;
package/dist/shared.d.ts CHANGED
@@ -5,7 +5,6 @@
5
5
  * \/\*#\_\_PURE\_\_\*\/
6
6
  * So that rollup can tree-shake them if necessary.
7
7
  */
8
- /*! #__NO_SIDE_EFFECTS__ */
9
8
  export declare function makeMap(str: string): (key: string) => boolean;
10
9
 
11
10
  export declare const EMPTY_OBJ: {
@@ -1,9 +1,8 @@
1
1
  /**
2
- * @vue/shared v3.5.19
2
+ * @vue/shared v3.5.21
3
3
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
4
  * @license MIT
5
5
  **/
6
- /*! #__NO_SIDE_EFFECTS__ */
7
6
  // @__NO_SIDE_EFFECTS__
8
7
  function makeMap(str) {
9
8
  const map = /* @__PURE__ */ Object.create(null);
@@ -61,10 +60,10 @@ const cacheStringFunction = (fn) => {
61
60
  return hit || (cache[str] = fn(str));
62
61
  });
63
62
  };
64
- const camelizeRE = /-(\w)/g;
63
+ const camelizeRE = /-\w/g;
65
64
  const camelize = cacheStringFunction(
66
65
  (str) => {
67
- return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
66
+ return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
68
67
  }
69
68
  );
70
69
  const hyphenateRE = /\B([A-Z])/g;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.5.19",
3
+ "version": "3.5.21",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",