@jitsu/js 1.9.18-canary.1288.20250415195029 → 1.9.18-canary.1288.20250415203911

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/jitsu.cjs.js CHANGED
@@ -1913,7 +1913,7 @@ const emptyAnalytics = {
1913
1913
  configure: () => { },
1914
1914
  };
1915
1915
  function createUnderlyingAnalyticsInstance(opts, rt, plugins = []) {
1916
- var _a, _b;
1916
+ var _a, _b, _c;
1917
1917
  const storageCache = {};
1918
1918
  // AnalyticsInstance's storage is async somewhere inside. So if we make 'page' call right after 'identify' call
1919
1919
  // 'page' call will load traits from storage before 'identify' call had a change to save them.
@@ -1955,7 +1955,7 @@ function createUnderlyingAnalyticsInstance(opts, rt, plugins = []) {
1955
1955
  persistentStorage.removeItem(key);
1956
1956
  },
1957
1957
  });
1958
- const storage = cachingStorageWrapper((rt === null || rt === void 0 ? void 0 : rt.store()) || createInMemoryStorage(opts.debug));
1958
+ const storage = cachingStorageWrapper(((_a = rt.store) === null || _a === void 0 ? void 0 : _a.call(rt)) || createInMemoryStorage(opts.debug));
1959
1959
  const analytics = analyticsLib({
1960
1960
  debug: !!opts.debug,
1961
1961
  storage,
@@ -2045,7 +2045,7 @@ function createUnderlyingAnalyticsInstance(opts, rt, plugins = []) {
2045
2045
  return results[0];
2046
2046
  });
2047
2047
  } });
2048
- if (((_a = opts.privacy) === null || _a === void 0 ? void 0 : _a.disableUserIds) || ((_b = opts.privacy) === null || _b === void 0 ? void 0 : _b.dontSend)) {
2048
+ if (((_b = opts.privacy) === null || _b === void 0 ? void 0 : _b.disableUserIds) || ((_c = opts.privacy) === null || _c === void 0 ? void 0 : _c.dontSend)) {
2049
2049
  storage.reset();
2050
2050
  }
2051
2051
  return a;
package/dist/jitsu.es.js CHANGED
@@ -1911,7 +1911,7 @@ const emptyAnalytics = {
1911
1911
  configure: () => { },
1912
1912
  };
1913
1913
  function createUnderlyingAnalyticsInstance(opts, rt, plugins = []) {
1914
- var _a, _b;
1914
+ var _a, _b, _c;
1915
1915
  const storageCache = {};
1916
1916
  // AnalyticsInstance's storage is async somewhere inside. So if we make 'page' call right after 'identify' call
1917
1917
  // 'page' call will load traits from storage before 'identify' call had a change to save them.
@@ -1953,7 +1953,7 @@ function createUnderlyingAnalyticsInstance(opts, rt, plugins = []) {
1953
1953
  persistentStorage.removeItem(key);
1954
1954
  },
1955
1955
  });
1956
- const storage = cachingStorageWrapper((rt === null || rt === void 0 ? void 0 : rt.store()) || createInMemoryStorage(opts.debug));
1956
+ const storage = cachingStorageWrapper(((_a = rt.store) === null || _a === void 0 ? void 0 : _a.call(rt)) || createInMemoryStorage(opts.debug));
1957
1957
  const analytics = analyticsLib({
1958
1958
  debug: !!opts.debug,
1959
1959
  storage,
@@ -2043,7 +2043,7 @@ function createUnderlyingAnalyticsInstance(opts, rt, plugins = []) {
2043
2043
  return results[0];
2044
2044
  });
2045
2045
  } });
2046
- if (((_a = opts.privacy) === null || _a === void 0 ? void 0 : _a.disableUserIds) || ((_b = opts.privacy) === null || _b === void 0 ? void 0 : _b.dontSend)) {
2046
+ if (((_b = opts.privacy) === null || _b === void 0 ? void 0 : _b.disableUserIds) || ((_c = opts.privacy) === null || _c === void 0 ? void 0 : _c.dontSend)) {
2047
2047
  storage.reset();
2048
2048
  }
2049
2049
  return a;
package/dist/web/p.js.txt CHANGED
@@ -1904,7 +1904,7 @@
1904
1904
  return value;
1905
1905
  }
1906
1906
  function createUnderlyingAnalyticsInstance(opts, rt, plugins = []) {
1907
- var _a, _b;
1907
+ var _a, _b, _c;
1908
1908
  const storageCache = {};
1909
1909
  // AnalyticsInstance's storage is async somewhere inside. So if we make 'page' call right after 'identify' call
1910
1910
  // 'page' call will load traits from storage before 'identify' call had a change to save them.
@@ -1946,7 +1946,7 @@
1946
1946
  persistentStorage.removeItem(key);
1947
1947
  },
1948
1948
  });
1949
- const storage = cachingStorageWrapper((rt === null || rt === void 0 ? void 0 : rt.store()) || createInMemoryStorage(opts.debug));
1949
+ const storage = cachingStorageWrapper(((_a = rt.store) === null || _a === void 0 ? void 0 : _a.call(rt)) || createInMemoryStorage(opts.debug));
1950
1950
  const analytics = analyticsLib({
1951
1951
  debug: !!opts.debug,
1952
1952
  storage,
@@ -2036,7 +2036,7 @@
2036
2036
  return results[0];
2037
2037
  });
2038
2038
  } });
2039
- if (((_a = opts.privacy) === null || _a === void 0 ? void 0 : _a.disableUserIds) || ((_b = opts.privacy) === null || _b === void 0 ? void 0 : _b.dontSend)) {
2039
+ if (((_b = opts.privacy) === null || _b === void 0 ? void 0 : _b.disableUserIds) || ((_c = opts.privacy) === null || _c === void 0 ? void 0 : _c.dontSend)) {
2040
2040
  storage.reset();
2041
2041
  }
2042
2042
  return a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jitsu/js",
3
- "version": "1.9.18-canary.1288.20250415195029",
3
+ "version": "1.9.18-canary.1288.20250415203911",
4
4
  "description": "",
5
5
  "author": "Jitsu Dev Team <dev@jitsu.com>",
6
6
  "main": "dist/jitsu.cjs.js",
@@ -38,10 +38,10 @@
38
38
  "rollup": "^3.29.5",
39
39
  "ts-jest": "29.0.5",
40
40
  "typescript": "^5.6.3",
41
- "jsondiffpatch": "1.9.18-canary.1288.20250415195029"
41
+ "jsondiffpatch": "1.9.18-canary.1288.20250415203911"
42
42
  },
43
43
  "peerDependencies": {
44
- "@jitsu/protocols": "1.9.18-canary.1288.20250415195029"
44
+ "@jitsu/protocols": "1.9.18-canary.1288.20250415203911"
45
45
  },
46
46
  "dependencies": {
47
47
  "analytics": "0.8.9"