@vueuse/head
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -14,2 +14,3 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/index.ts | ||
var HEAD_ATTRS_KEY = `data-head-attrs`; | ||
var SELF_CLOSING_TAGS = ["meta", "link", "base"]; | ||
@@ -247,6 +248,6 @@ // src/create-element.ts | ||
let attrs = stringifyAttrs(tag.props); | ||
if (tag.props.children != null) { | ||
return `<${tag.tag}${attrs}>${tag.props.children}</${tag.tag}>`; | ||
if (SELF_CLOSING_TAGS.includes(tag.tag)) { | ||
return `<${tag.tag}${attrs}>`; | ||
} | ||
return `<${tag.tag}${attrs}>`; | ||
return `<${tag.tag}${attrs}>${tag.props.children || ""}</${tag.tag}>`; | ||
}; | ||
@@ -253,0 +254,0 @@ var renderHeadToString = (head) => { |
{ | ||
"name": "@vueuse/head", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Document head manager for Vue 3. SSR ready.", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22852
608