@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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.6.0-alpha.2
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
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @vue/shared v3.6.0-alpha.2
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
@@ -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.6.0-alpha.2
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/shared",
3
- "version": "3.6.0-alpha.2",
3
+ "version": "3.6.0-alpha.3",
4
4
  "description": "internal utils shared across @vue packages",
5
5
  "main": "index.js",
6
6
  "module": "dist/shared.esm-bundler.js",