@total_onion/onion-library 2.0.181 → 2.0.182

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.
@@ -0,0 +1,2 @@
1
+ //This Module is WIP
2
+ export function exampleFunction() {}
package/onion-utils.mjs CHANGED
@@ -13,14 +13,13 @@ export function ttfb() {
13
13
  const [pageNav] = entryList.getEntriesByType("navigation");
14
14
  const time = pageNav.responseStart;
15
15
  console.log(`TTFB: ${time} new`);
16
- pushData(time);
16
+ pushTTFBData(time);
17
17
  }).observe({ type: "navigation", buffered: true });
18
18
  }
19
19
 
20
- function pushData(time) {
20
+ function pushTTFBData(time) {
21
21
  window.dataLayer = window.dataLayer || [];
22
22
  window.dataLayer.push({ ttfb: time });
23
- console.log("ttfb sent");
24
23
  }
25
24
 
26
25
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "2.0.181",
3
+ "version": "2.0.182",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {