@hellotext/hellotext 2.5.5 → 2.5.6

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.
@@ -28,6 +28,7 @@ let UTM = /*#__PURE__*/function () {
28
28
  value: function save(utmParams) {
29
29
  if (!utmParams.source || !utmParams.medium) return;
30
30
  const cleanUtms = Object.fromEntries(Object.entries(utmParams).filter(([_, value]) => value));
31
+ cleanUtms.observed_at = new Date().toISOString();
31
32
  _cookies.Cookies.set('hello_utm', JSON.stringify(cleanUtms));
32
33
  }
33
34
  }, {
package/lib/models/utm.js CHANGED
@@ -25,6 +25,7 @@ var UTM = /*#__PURE__*/function () {
25
25
  var [_, value] = _ref;
26
26
  return value;
27
27
  }));
28
+ cleanUtms.observed_at = new Date().toISOString();
28
29
  Cookies.set('hello_utm', JSON.stringify(cleanUtms));
29
30
  }
30
31
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellotext/hellotext",
3
- "version": "2.5.5",
3
+ "version": "2.5.6",
4
4
  "description": "Hellotext JavaScript Client",
5
5
  "source": "src/index.js",
6
6
  "main": "lib/index.cjs",
package/src/models/utm.js CHANGED
@@ -21,6 +21,7 @@ class UTM {
21
21
  const cleanUtms = Object.fromEntries(
22
22
  Object.entries(utmParams).filter(([_, value]) => value),
23
23
  )
24
+ cleanUtms.observed_at = new Date().toISOString()
24
25
 
25
26
  Cookies.set('hello_utm', JSON.stringify(cleanUtms))
26
27
  }