@unhead/shared 1.3.0-beta.1 → 1.3.0-beta.2

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/index.cjs CHANGED
@@ -481,10 +481,14 @@ async function normaliseTag(tagName, input, e) {
481
481
  return tag;
482
482
  }
483
483
  tag.props = await normaliseProps(tagName, { ...input });
484
+ if (tag.props.body) {
485
+ tag.tagPosition = "bodyClose";
486
+ delete tag.props.body;
487
+ }
484
488
  if (tag.props.children) {
485
489
  tag.props.innerHTML = tag.props.children;
490
+ delete tag.props.children;
486
491
  }
487
- delete tag.props.children;
488
492
  Object.keys(tag.props).filter((k) => TagConfigKeys.includes(k)).forEach((k) => {
489
493
  if (!["innerHTML", "textContent"].includes(k) || TagsWithInnerContent.includes(tag.tag)) {
490
494
  tag[k] = tag.props[k];
package/dist/index.mjs CHANGED
@@ -479,10 +479,14 @@ async function normaliseTag(tagName, input, e) {
479
479
  return tag;
480
480
  }
481
481
  tag.props = await normaliseProps(tagName, { ...input });
482
+ if (tag.props.body) {
483
+ tag.tagPosition = "bodyClose";
484
+ delete tag.props.body;
485
+ }
482
486
  if (tag.props.children) {
483
487
  tag.props.innerHTML = tag.props.children;
488
+ delete tag.props.children;
484
489
  }
485
- delete tag.props.children;
486
490
  Object.keys(tag.props).filter((k) => TagConfigKeys.includes(k)).forEach((k) => {
487
491
  if (!["innerHTML", "textContent"].includes(k) || TagsWithInnerContent.includes(tag.tag)) {
488
492
  tag[k] = tag.props[k];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/shared",
3
3
  "type": "module",
4
- "version": "1.3.0-beta.1",
4
+ "version": "1.3.0-beta.2",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -34,7 +34,7 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@unhead/schema": "1.3.0-beta.1"
37
+ "@unhead/schema": "1.3.0-beta.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "packrup": "^0.1.0"