unhead 2.1.0 → 2.1.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/server.mjs +1 -3
- package/package.json +2 -2
package/dist/server.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as createUnhead } from './shared/unhead.CGCfDSEL.mjs';
|
|
2
2
|
import { T as TagsWithInnerContent, S as SelfClosingTags } from './shared/unhead.yem5I2v_.mjs';
|
|
3
|
-
import { parseHtmlForUnheadExtraction } from './parser.mjs';
|
|
3
|
+
import { parseHtmlForUnheadExtraction, applyHeadToHtml, parseHtmlForIndexes } from './parser.mjs';
|
|
4
4
|
import 'hookable';
|
|
5
5
|
import './shared/unhead.CYpwL2hc.mjs';
|
|
6
6
|
import './shared/unhead.CbpEuj3y.mjs';
|
|
@@ -165,7 +165,6 @@ async function renderSSRHead(head, options) {
|
|
|
165
165
|
|
|
166
166
|
// @__NO_SIDE_EFFECTS__
|
|
167
167
|
async function transformHtmlTemplate(head, html, options) {
|
|
168
|
-
const { parseHtmlForUnheadExtraction, applyHeadToHtml } = await import('./parser.mjs');
|
|
169
168
|
const template = parseHtmlForUnheadExtraction(html);
|
|
170
169
|
head.push(template.input, { _index: 0 });
|
|
171
170
|
const headHtml = await renderSSRHead(head, options);
|
|
@@ -173,7 +172,6 @@ async function transformHtmlTemplate(head, html, options) {
|
|
|
173
172
|
}
|
|
174
173
|
// @__NO_SIDE_EFFECTS__
|
|
175
174
|
async function transformHtmlTemplateRaw(head, html, options) {
|
|
176
|
-
const { parseHtmlForIndexes, applyHeadToHtml } = await import('./parser.mjs');
|
|
177
175
|
const headHtml = await renderSSRHead(head, options);
|
|
178
176
|
const template = parseHtmlForIndexes(html);
|
|
179
177
|
return applyHeadToHtml(template, headHtml);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unhead",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.1.
|
|
4
|
+
"version": "2.1.2",
|
|
5
5
|
"description": "Full-stack <head> manager built for any framework.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"dist"
|
|
96
96
|
],
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"hookable": "^
|
|
98
|
+
"hookable": "^6.0.1"
|
|
99
99
|
},
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build": "unbuild",
|