@constructor-io/constructorio-client-javascript 2.26.2 → 2.26.3

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.
@@ -103,10 +103,10 @@ var RequestQueue = /*#__PURE__*/function () {
103
103
  if (nextInQueue.url) {
104
104
  // Pull `dt` parameter from URL, indicating origin time of request
105
105
  var dtMatch = nextInQueue.url.match(/\?.*_dt=([^&]+)/);
106
- var requestOriginTime = dtMatch && dtMatch[1];
106
+ var requestOriginTime = parseInt(dtMatch && dtMatch[1], 10);
107
107
  var now = +new Date();
108
108
 
109
- if (requestOriginTime && now - requestOriginTime > requestTTL) {
109
+ if (requestOriginTime && Number.isInteger(requestOriginTime) && now - requestOriginTime > requestTTL) {
110
110
  this.sendTrackingEvents = false;
111
111
  RequestQueue.remove();
112
112
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-client-javascript",
3
- "version": "2.26.2",
3
+ "version": "2.26.3",
4
4
  "description": "Constructor.io JavaScript client",
5
5
  "main": "lib/constructorio.js",
6
6
  "scripts": {