@unhead/dom 1.0.16 → 1.0.18

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
@@ -157,7 +157,7 @@ async function renderDOMHead(head, options = {}) {
157
157
  // convert attributes to object
158
158
  props: $el.getAttributeNames().reduce((props, name) => ({ ...props, [name]: $el.getAttribute(name) }), {})
159
159
  });
160
- const matchIdx = queue.findIndex((ctx2) => ctx2 && (ctx2.tag._d === dedupeKey || $el.isEqualNode(ctx2.$el)));
160
+ const matchIdx = queue.findIndex((ctx2) => ctx2 && (ctx2.tag._d === dedupeKey || $el.isEqualNode?.(ctx2.$el)));
161
161
  if (matchIdx !== -1) {
162
162
  const ctx2 = queue[matchIdx];
163
163
  ctx2.$el = $el;
package/dist/index.mjs CHANGED
@@ -155,7 +155,7 @@ async function renderDOMHead(head, options = {}) {
155
155
  // convert attributes to object
156
156
  props: $el.getAttributeNames().reduce((props, name) => ({ ...props, [name]: $el.getAttribute(name) }), {})
157
157
  });
158
- const matchIdx = queue.findIndex((ctx2) => ctx2 && (ctx2.tag._d === dedupeKey || $el.isEqualNode(ctx2.$el)));
158
+ const matchIdx = queue.findIndex((ctx2) => ctx2 && (ctx2.tag._d === dedupeKey || $el.isEqualNode?.(ctx2.$el)));
159
159
  if (matchIdx !== -1) {
160
160
  const ctx2 = queue[matchIdx];
161
161
  ctx2.$el = $el;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@unhead/dom",
3
3
  "type": "module",
4
- "version": "1.0.16",
5
- "packageManager": "pnpm@7.25.0",
4
+ "version": "1.0.18",
5
+ "packageManager": "pnpm@7.25.1",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "dependencies": {
33
- "@unhead/schema": "1.0.16"
33
+ "@unhead/schema": "1.0.18"
34
34
  },
35
35
  "devDependencies": {
36
36
  "zhead": "^1.0.9"