@vue/shared 3.6.0-alpha.2 → 3.6.0-alpha.3
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 +6 -4
- package/dist/shared.cjs.prod.js +6 -4
- package/dist/shared.d.ts +0 -1
- package/dist/shared.esm-bundler.js +6 -4
- package/package.json +1 -1
package/dist/shared.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-alpha.
|
|
2
|
+
* @vue/shared v3.6.0-alpha.3
|
|
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);
|
|
@@ -64,10 +63,10 @@ const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
|
64
63
|
);
|
|
65
64
|
const cacheStringFunction = (fn) => {
|
|
66
65
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
67
|
-
return (str) => {
|
|
66
|
+
return ((str) => {
|
|
68
67
|
const hit = cache[str];
|
|
69
68
|
return hit || (cache[str] = fn(str));
|
|
70
|
-
};
|
|
69
|
+
});
|
|
71
70
|
};
|
|
72
71
|
const camelizeRE = /-(\w)/g;
|
|
73
72
|
const camelizeReplacer = (_, c) => c ? c.toUpperCase() : "";
|
|
@@ -402,6 +401,9 @@ function shouldSetAsAttr(tagName, key) {
|
|
|
402
401
|
if ((key === "width" || key === "height") && (tagName === "IMG" || tagName === "VIDEO" || tagName === "CANVAS" || tagName === "SOURCE")) {
|
|
403
402
|
return true;
|
|
404
403
|
}
|
|
404
|
+
if (key === "sandbox" && tagName === "IFRAME") {
|
|
405
|
+
return true;
|
|
406
|
+
}
|
|
405
407
|
return false;
|
|
406
408
|
}
|
|
407
409
|
|
package/dist/shared.cjs.prod.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-alpha.
|
|
2
|
+
* @vue/shared v3.6.0-alpha.3
|
|
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);
|
|
@@ -64,10 +63,10 @@ const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
|
64
63
|
);
|
|
65
64
|
const cacheStringFunction = (fn) => {
|
|
66
65
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
67
|
-
return (str) => {
|
|
66
|
+
return ((str) => {
|
|
68
67
|
const hit = cache[str];
|
|
69
68
|
return hit || (cache[str] = fn(str));
|
|
70
|
-
};
|
|
69
|
+
});
|
|
71
70
|
};
|
|
72
71
|
const camelizeRE = /-(\w)/g;
|
|
73
72
|
const camelizeReplacer = (_, c) => c ? c.toUpperCase() : "";
|
|
@@ -402,6 +401,9 @@ function shouldSetAsAttr(tagName, key) {
|
|
|
402
401
|
if ((key === "width" || key === "height") && (tagName === "IMG" || tagName === "VIDEO" || tagName === "CANVAS" || tagName === "SOURCE")) {
|
|
403
402
|
return true;
|
|
404
403
|
}
|
|
404
|
+
if (key === "sandbox" && tagName === "IFRAME") {
|
|
405
|
+
return true;
|
|
406
|
+
}
|
|
405
407
|
return false;
|
|
406
408
|
}
|
|
407
409
|
|
package/dist/shared.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/shared v3.6.0-alpha.
|
|
2
|
+
* @vue/shared v3.6.0-alpha.3
|
|
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);
|
|
@@ -60,10 +59,10 @@ const isBuiltInDirective = /* @__PURE__ */ makeMap(
|
|
|
60
59
|
);
|
|
61
60
|
const cacheStringFunction = (fn) => {
|
|
62
61
|
const cache = /* @__PURE__ */ Object.create(null);
|
|
63
|
-
return (str) => {
|
|
62
|
+
return ((str) => {
|
|
64
63
|
const hit = cache[str];
|
|
65
64
|
return hit || (cache[str] = fn(str));
|
|
66
|
-
};
|
|
65
|
+
});
|
|
67
66
|
};
|
|
68
67
|
const camelizeRE = /-(\w)/g;
|
|
69
68
|
const camelizeReplacer = (_, c) => c ? c.toUpperCase() : "";
|
|
@@ -398,6 +397,9 @@ function shouldSetAsAttr(tagName, key) {
|
|
|
398
397
|
if ((key === "width" || key === "height") && (tagName === "IMG" || tagName === "VIDEO" || tagName === "CANVAS" || tagName === "SOURCE")) {
|
|
399
398
|
return true;
|
|
400
399
|
}
|
|
400
|
+
if (key === "sandbox" && tagName === "IFRAME") {
|
|
401
|
+
return true;
|
|
402
|
+
}
|
|
401
403
|
return false;
|
|
402
404
|
}
|
|
403
405
|
|