@unhead/shared 1.8.3 → 1.8.5

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
@@ -231,7 +231,6 @@ const MetaPackingSchema = {
231
231
  metaKey: "http-equiv",
232
232
  unpack: {
233
233
  entrySeparator: ";",
234
- keyValueSeparator: "=",
235
234
  resolve({ key, value }) {
236
235
  if (key === "seconds")
237
236
  return `${value}`;
@@ -293,6 +292,7 @@ function resolvePackedMetaObjectValue(value, key) {
293
292
  return unpackToString(
294
293
  changeKeyCasingDeep(value),
295
294
  {
295
+ keyValueSeparator: "=",
296
296
  entrySeparator: ", ",
297
297
  resolve({ value: value2, key: key2 }) {
298
298
  if (value2 === null)
@@ -521,8 +521,6 @@ async function normaliseTag(tagName, input, e) {
521
521
  tag.innerHTML = JSON.stringify(tag.innerHTML);
522
522
  tag.props.type = tag.props.type || "application/json";
523
523
  }
524
- if (tag.innerHTML && ["application/ld+json", "application/json"].includes(tag.props.type))
525
- tag.innerHTML = tag.innerHTML.replace(/</g, "\\u003C");
526
524
  }
527
525
  return Array.isArray(tag.props.content) ? tag.props.content.map((v) => ({ ...tag, props: { ...tag.props, content: v } })) : tag;
528
526
  }
package/dist/index.mjs CHANGED
@@ -229,7 +229,6 @@ const MetaPackingSchema = {
229
229
  metaKey: "http-equiv",
230
230
  unpack: {
231
231
  entrySeparator: ";",
232
- keyValueSeparator: "=",
233
232
  resolve({ key, value }) {
234
233
  if (key === "seconds")
235
234
  return `${value}`;
@@ -291,6 +290,7 @@ function resolvePackedMetaObjectValue(value, key) {
291
290
  return unpackToString(
292
291
  changeKeyCasingDeep(value),
293
292
  {
293
+ keyValueSeparator: "=",
294
294
  entrySeparator: ", ",
295
295
  resolve({ value: value2, key: key2 }) {
296
296
  if (value2 === null)
@@ -519,8 +519,6 @@ async function normaliseTag(tagName, input, e) {
519
519
  tag.innerHTML = JSON.stringify(tag.innerHTML);
520
520
  tag.props.type = tag.props.type || "application/json";
521
521
  }
522
- if (tag.innerHTML && ["application/ld+json", "application/json"].includes(tag.props.type))
523
- tag.innerHTML = tag.innerHTML.replace(/</g, "\\u003C");
524
522
  }
525
523
  return Array.isArray(tag.props.content) ? tag.props.content.map((v) => ({ ...tag, props: { ...tag.props, content: v } })) : tag;
526
524
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unhead/shared",
3
3
  "type": "module",
4
- "version": "1.8.3",
4
+ "version": "1.8.5",
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.8.3"
37
+ "@unhead/schema": "1.8.5"
38
38
  },
39
39
  "devDependencies": {
40
40
  "packrup": "^0.1.0"