@vue/shared 3.5.43 → 3.5.45
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.
- package/dist/shared.cjs.js +11 -15
- package/dist/shared.cjs.prod.js +11 -15
- package/dist/shared.esm-bundler.js +11 -15
- package/package.json +1 -1
package/dist/shared.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -65,24 +65,20 @@ const cacheStringFunction = (fn) => {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
const camelizeRE = /-\w/g;
|
|
68
|
-
const camelize = cacheStringFunction(
|
|
69
|
-
(
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
);
|
|
68
|
+
const camelize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
69
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
70
|
+
});
|
|
73
71
|
const hyphenateRE = /\B([A-Z])/g;
|
|
74
|
-
const hyphenate = cacheStringFunction(
|
|
72
|
+
const hyphenate = /* @__PURE__ */ cacheStringFunction(
|
|
75
73
|
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
76
74
|
);
|
|
77
|
-
const capitalize = cacheStringFunction((str) => {
|
|
75
|
+
const capitalize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
78
76
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
79
77
|
});
|
|
80
|
-
const toHandlerKey = cacheStringFunction(
|
|
81
|
-
(str)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
);
|
|
78
|
+
const toHandlerKey = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
79
|
+
const s = str ? `on${capitalize(str)}` : ``;
|
|
80
|
+
return s;
|
|
81
|
+
});
|
|
86
82
|
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
87
83
|
const invokeArrayFns = (fns, ...arg) => {
|
|
88
84
|
for (let i = 0; i < fns.length; i++) {
|
|
@@ -336,7 +332,7 @@ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
|
336
332
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
337
333
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
338
334
|
|
|
339
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
335
|
+
const specialBooleanAttrs = `itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
340
336
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
341
337
|
const isBooleanAttr = /* @__PURE__ */ makeMap(
|
|
342
338
|
specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
|
package/dist/shared.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -65,24 +65,20 @@ const cacheStringFunction = (fn) => {
|
|
|
65
65
|
});
|
|
66
66
|
};
|
|
67
67
|
const camelizeRE = /-\w/g;
|
|
68
|
-
const camelize = cacheStringFunction(
|
|
69
|
-
(
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
);
|
|
68
|
+
const camelize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
69
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
70
|
+
});
|
|
73
71
|
const hyphenateRE = /\B([A-Z])/g;
|
|
74
|
-
const hyphenate = cacheStringFunction(
|
|
72
|
+
const hyphenate = /* @__PURE__ */ cacheStringFunction(
|
|
75
73
|
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
76
74
|
);
|
|
77
|
-
const capitalize = cacheStringFunction((str) => {
|
|
75
|
+
const capitalize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
78
76
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
79
77
|
});
|
|
80
|
-
const toHandlerKey = cacheStringFunction(
|
|
81
|
-
(str)
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
);
|
|
78
|
+
const toHandlerKey = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
79
|
+
const s = str ? `on${capitalize(str)}` : ``;
|
|
80
|
+
return s;
|
|
81
|
+
});
|
|
86
82
|
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
87
83
|
const invokeArrayFns = (fns, ...arg) => {
|
|
88
84
|
for (let i = 0; i < fns.length; i++) {
|
|
@@ -336,7 +332,7 @@ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
|
336
332
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
337
333
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
338
334
|
|
|
339
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
335
|
+
const specialBooleanAttrs = `itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
340
336
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
341
337
|
const isBooleanAttr = /* @__PURE__ */ makeMap(
|
|
342
338
|
specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.5.
|
|
2
|
+
* @vue/shared v3.5.45
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
@@ -61,24 +61,20 @@ const cacheStringFunction = (fn) => {
|
|
|
61
61
|
});
|
|
62
62
|
};
|
|
63
63
|
const camelizeRE = /-\w/g;
|
|
64
|
-
const camelize = cacheStringFunction(
|
|
65
|
-
(
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
);
|
|
64
|
+
const camelize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
65
|
+
return str.replace(camelizeRE, (c) => c.slice(1).toUpperCase());
|
|
66
|
+
});
|
|
69
67
|
const hyphenateRE = /\B([A-Z])/g;
|
|
70
|
-
const hyphenate = cacheStringFunction(
|
|
68
|
+
const hyphenate = /* @__PURE__ */ cacheStringFunction(
|
|
71
69
|
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
72
70
|
);
|
|
73
|
-
const capitalize = cacheStringFunction((str) => {
|
|
71
|
+
const capitalize = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
74
72
|
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
75
73
|
});
|
|
76
|
-
const toHandlerKey = cacheStringFunction(
|
|
77
|
-
(str)
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
);
|
|
74
|
+
const toHandlerKey = /* @__PURE__ */ cacheStringFunction((str) => {
|
|
75
|
+
const s = str ? `on${capitalize(str)}` : ``;
|
|
76
|
+
return s;
|
|
77
|
+
});
|
|
82
78
|
const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
|
|
83
79
|
const invokeArrayFns = (fns, ...arg) => {
|
|
84
80
|
for (let i = 0; i < fns.length; i++) {
|
|
@@ -332,7 +328,7 @@ const isSVGTag = /* @__PURE__ */ makeMap(SVG_TAGS);
|
|
|
332
328
|
const isMathMLTag = /* @__PURE__ */ makeMap(MATH_TAGS);
|
|
333
329
|
const isVoidTag = /* @__PURE__ */ makeMap(VOID_TAGS);
|
|
334
330
|
|
|
335
|
-
const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
|
|
331
|
+
const specialBooleanAttrs = `itemscope,allowfullscreen,disablepictureinpicture,disableremoteplayback,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly`;
|
|
336
332
|
const isSpecialBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs);
|
|
337
333
|
const isBooleanAttr = /* @__PURE__ */ makeMap(
|
|
338
334
|
specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`
|