@hyperspan/framework 0.5.1 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperspan/framework",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Hyperspan Web Framework",
5
5
  "main": "dist/server.ts",
6
6
  "types": "src/server.ts",
@@ -12,7 +12,7 @@ function htmlAsyncContentObserver() {
12
12
  const asyncContent = list
13
13
  .map((mutation) =>
14
14
  Array.from(mutation.addedNodes).find((node: any) => {
15
- if (!node || !node?.id) {
15
+ if (!node || !node?.id || typeof node.id !== 'string') {
16
16
  return false;
17
17
  }
18
18
  return node.id?.startsWith('async_loading_') && node.id?.endsWith('_content');