saloe 0.0.44 → 0.0.45

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/html.cjs.js CHANGED
@@ -69,7 +69,7 @@ const awaitHtml = async ({ pending, success, error }) => {
69
69
  >
70
70
  (async () => {
71
71
  const pendingEl = document?.querySelector('[data-await-pending-template="`, `"]')
72
- const response = await fetch('`, "')\n const templateString = await response.text()\n pendingEl.outerHTML = templateString\n })()\n <\/script>\n "])), await pending({ id: pendingId }), id, pendingId, pendingRoutePathname);
72
+ const response = await fetch('`, "')\n const templateString = await response.text()\n pendingEl.outerHTML = templateString\n\n if (document?.body?.saloeListen) document?.body?.saloeListen()\n })()\n <\/script>\n "])), await pending({ id: pendingId }), id, pendingId, pendingRoutePathname);
73
73
  };
74
74
  exports.awaitHtml = awaitHtml;
75
75
  exports.html = html;
package/dist/html.es.js CHANGED
@@ -67,7 +67,7 @@ const awaitHtml = async ({ pending, success, error }) => {
67
67
  >
68
68
  (async () => {
69
69
  const pendingEl = document?.querySelector('[data-await-pending-template="`, `"]')
70
- const response = await fetch('`, "')\n const templateString = await response.text()\n pendingEl.outerHTML = templateString\n })()\n <\/script>\n "])), await pending({ id: pendingId }), id, pendingId, pendingRoutePathname);
70
+ const response = await fetch('`, "')\n const templateString = await response.text()\n pendingEl.outerHTML = templateString\n\n if (document?.body?.saloeListen) document?.body?.saloeListen()\n })()\n <\/script>\n "])), await pending({ id: pendingId }), id, pendingId, pendingRoutePathname);
71
71
  };
72
72
  export {
73
73
  awaitHtml,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saloe",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "Tools for making web development easy and efficient",
5
5
  "type": "module",
6
6
  "scripts": {
package/src/html.js CHANGED
@@ -85,6 +85,8 @@ const awaitHtml = async ({ pending, success, error }) => {
85
85
  const response = await fetch('${pendingRoutePathname}')
86
86
  const templateString = await response.text()
87
87
  pendingEl.outerHTML = templateString
88
+
89
+ if (document?.body?.saloeListen) document?.body?.saloeListen()
88
90
  })()
89
91
  </script>
90
92
  `