saloe 0.0.19 → 0.0.21

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.
@@ -54,7 +54,6 @@ const listener = () => {
54
54
  };
55
55
  const addScripts = () => {
56
56
  const scriptsToLoad = [...document.querySelectorAll("script[data-script-to-load]")];
57
- console.log("--- scriptsToLoad =", scriptsToLoad);
58
57
  return Promise.all(
59
58
  scriptsToLoad == null ? void 0 : scriptsToLoad.map((scriptToLoad) => {
60
59
  var _a;
@@ -152,10 +151,7 @@ const listener = () => {
152
151
  EVENTS.forEach((event) => {
153
152
  document.body[`on${event}`] = async (e) => {
154
153
  if (EVENTS_FIRE_DOCUMENT_BODY_LISTENERS.includes(event)) {
155
- console.log("--- prev: addScripts");
156
- const x = await addScripts();
157
- console.log("--- value:", x);
158
- console.log("--- after: addScripts");
154
+ await addScripts();
159
155
  fireLoadListener();
160
156
  fireObserverListeners();
161
157
  }
@@ -52,7 +52,6 @@ const listener = () => {
52
52
  };
53
53
  const addScripts = () => {
54
54
  const scriptsToLoad = [...document.querySelectorAll("script[data-script-to-load]")];
55
- console.log("--- scriptsToLoad =", scriptsToLoad);
56
55
  return Promise.all(
57
56
  scriptsToLoad == null ? void 0 : scriptsToLoad.map((scriptToLoad) => {
58
57
  var _a;
@@ -150,10 +149,7 @@ const listener = () => {
150
149
  EVENTS.forEach((event) => {
151
150
  document.body[`on${event}`] = async (e) => {
152
151
  if (EVENTS_FIRE_DOCUMENT_BODY_LISTENERS.includes(event)) {
153
- console.log("--- prev: addScripts");
154
- const x = await addScripts();
155
- console.log("--- value:", x);
156
- console.log("--- after: addScripts");
152
+ await addScripts();
157
153
  fireLoadListener();
158
154
  fireObserverListeners();
159
155
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "saloe",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Tools for making web development easy and efficient",
5
5
  "type": "module",
6
6
  "scripts": {
package/src/listener.js CHANGED
@@ -60,7 +60,6 @@ const listener = () => {
60
60
 
61
61
  const addScripts = () => {
62
62
  const scriptsToLoad = [...document.querySelectorAll('script[data-script-to-load]')]
63
- console.log('--- scriptsToLoad =', scriptsToLoad)
64
63
  return Promise.all(
65
64
  scriptsToLoad?.map((scriptToLoad) => {
66
65
  const id = scriptToLoad?.getAttribute('data-script-to-load')
@@ -211,27 +210,10 @@ const listener = () => {
211
210
  }
212
211
 
213
212
  const fireListeners = () => {
214
- // EVENTS_FIRE_DOCUMENT_BODY_LISTENERS.forEach((event) => {
215
- // console.log('--- event:', event)
216
- // document.body[`on${event}`] = async (e) => {
217
- // console.log('--- prev: addScripts')
218
- // const x = await addScripts()
219
- // console.log('--- value:', x)
220
- // console.log('--- after: addScripts')
221
-
222
- // fireLoadListener()
223
- // fireObserverListeners()
224
- // }
225
- // })
226
-
227
213
  EVENTS.forEach((event) => {
228
214
  document.body[`on${event}`] = async (e) => {
229
215
  if (EVENTS_FIRE_DOCUMENT_BODY_LISTENERS.includes(event)){
230
- console.log('--- prev: addScripts')
231
- const x = await addScripts()
232
- console.log('--- value:', x)
233
- console.log('--- after: addScripts')
234
-
216
+ await addScripts()
235
217
  fireLoadListener()
236
218
  fireObserverListeners()
237
219
  }