unhead 1.3.7 → 1.3.8

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
@@ -71,7 +71,7 @@ const DedupePlugin = shared.defineHeadPlugin({
71
71
  }
72
72
  });
73
73
 
74
- const PayloadPlugin = shared.defineHeadPlugin((head) => ({
74
+ const PayloadPlugin = shared.defineHeadPlugin({
75
75
  mode: "server",
76
76
  hooks: {
77
77
  "tags:resolve": function(ctx) {
@@ -82,11 +82,11 @@ const PayloadPlugin = shared.defineHeadPlugin((head) => ({
82
82
  Object.keys(csrPayload).length && ctx.tags.push({
83
83
  tag: "script",
84
84
  innerHTML: JSON.stringify(csrPayload),
85
- props: { id: "unhead:payload" }
85
+ props: { id: "unhead:payload", type: "application/json" }
86
86
  });
87
87
  }
88
88
  }
89
- }));
89
+ });
90
90
 
91
91
  const ValidEventTags = ["script", "link", "bodyAttrs"];
92
92
  function stripEventHandlers(tag) {
package/dist/index.mjs CHANGED
@@ -70,7 +70,7 @@ const DedupePlugin = defineHeadPlugin({
70
70
  }
71
71
  });
72
72
 
73
- const PayloadPlugin = defineHeadPlugin((head) => ({
73
+ const PayloadPlugin = defineHeadPlugin({
74
74
  mode: "server",
75
75
  hooks: {
76
76
  "tags:resolve": function(ctx) {
@@ -81,11 +81,11 @@ const PayloadPlugin = defineHeadPlugin((head) => ({
81
81
  Object.keys(csrPayload).length && ctx.tags.push({
82
82
  tag: "script",
83
83
  innerHTML: JSON.stringify(csrPayload),
84
- props: { id: "unhead:payload" }
84
+ props: { id: "unhead:payload", type: "application/json" }
85
85
  });
86
86
  }
87
87
  }
88
- }));
88
+ });
89
89
 
90
90
  const ValidEventTags = ["script", "link", "bodyAttrs"];
91
91
  function stripEventHandlers(tag) {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "unhead",
3
3
  "type": "module",
4
- "version": "1.3.7",
4
+ "version": "1.3.8",
5
5
  "author": "Harlan Wilton <harlan@harlanzw.com>",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
8
- "homepage": "https://unhead.harlanzw.com",
8
+ "homepage": "https://unhead.unjs.io",
9
9
  "repository": {
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/unjs/unhead.git",
@@ -30,9 +30,9 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "hookable": "^5.5.3",
33
- "@unhead/dom": "1.3.7",
34
- "@unhead/schema": "1.3.7",
35
- "@unhead/shared": "1.3.7"
33
+ "@unhead/dom": "1.3.8",
34
+ "@unhead/schema": "1.3.8",
35
+ "@unhead/shared": "1.3.8"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "unbuild .",