unhead 1.6.0 → 1.6.1
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 +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -267,10 +267,14 @@ function createHeadCore(options = {}) {
|
|
|
267
267
|
TitleTemplatePlugin,
|
|
268
268
|
...options?.plugins || []
|
|
269
269
|
];
|
|
270
|
-
const updated = () =>
|
|
270
|
+
const updated = () => {
|
|
271
|
+
head.dirty = true;
|
|
272
|
+
hooks.callHook("entries:updated", head);
|
|
273
|
+
};
|
|
271
274
|
let entryCount = 0;
|
|
272
275
|
let entries = [];
|
|
273
276
|
const head = {
|
|
277
|
+
dirty: false,
|
|
274
278
|
resolvedOptions: options,
|
|
275
279
|
hooks,
|
|
276
280
|
headEntries() {
|
package/dist/index.mjs
CHANGED
|
@@ -266,10 +266,14 @@ function createHeadCore(options = {}) {
|
|
|
266
266
|
TitleTemplatePlugin,
|
|
267
267
|
...options?.plugins || []
|
|
268
268
|
];
|
|
269
|
-
const updated = () =>
|
|
269
|
+
const updated = () => {
|
|
270
|
+
head.dirty = true;
|
|
271
|
+
hooks.callHook("entries:updated", head);
|
|
272
|
+
};
|
|
270
273
|
let entryCount = 0;
|
|
271
274
|
let entries = [];
|
|
272
275
|
const head = {
|
|
276
|
+
dirty: false,
|
|
273
277
|
resolvedOptions: options,
|
|
274
278
|
hooks,
|
|
275
279
|
headEntries() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "unhead",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.1",
|
|
5
5
|
"author": "Harlan Wilton <harlan@harlanzw.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"hookable": "^5.5.3",
|
|
33
|
-
"@unhead/
|
|
34
|
-
"@unhead/
|
|
35
|
-
"@unhead/shared": "1.6.
|
|
33
|
+
"@unhead/schema": "1.6.1",
|
|
34
|
+
"@unhead/dom": "1.6.1",
|
|
35
|
+
"@unhead/shared": "1.6.1"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "unbuild .",
|