@vue/shared 3.3.9 → 3.3.10

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.
@@ -16,8 +16,8 @@ const EMPTY_ARR = Object.freeze([]) ;
16
16
  const NOOP = () => {
17
17
  };
18
18
  const NO = () => false;
19
- const onRE = /^on[^a-z]/;
20
- const isOn = (key) => onRE.test(key);
19
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
20
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
21
21
  const isModelListener = (key) => key.startsWith("onUpdate:");
22
22
  const extend = Object.assign;
23
23
  const remove = (arr, el) => {
@@ -16,8 +16,8 @@ const EMPTY_ARR = [];
16
16
  const NOOP = () => {
17
17
  };
18
18
  const NO = () => false;
19
- const onRE = /^on[^a-z]/;
20
- const isOn = (key) => onRE.test(key);
19
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
20
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
21
21
  const isModelListener = (key) => key.startsWith("onUpdate:");
22
22
  const extend = Object.assign;
23
23
  const remove = (arr, el) => {
@@ -12,8 +12,8 @@ const EMPTY_ARR = !!(process.env.NODE_ENV !== "production") ? Object.freeze([])
12
12
  const NOOP = () => {
13
13
  };
14
14
  const NO = () => false;
15
- const onRE = /^on[^a-z]/;
16
- const isOn = (key) => onRE.test(key);
15
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
16
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
17
17
  const isModelListener = (key) => key.startsWith("onUpdate:");
18
18
  const extend = Object.assign;
19
19
  const remove = (arr, el) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.3.9",
3
+ "version": "3.3.10",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",