@pushwoosh/kit-helpers 4.12.0 → 4.12.2

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.
@@ -8,11 +8,9 @@ export const identifyOpenReplaySession = properties => {
8
8
  store.push(properties);
9
9
  window.pwOpenReplayIdentifyStore = store;
10
10
  } else {
11
- var _window$OpenReplay;
12
- (_window$OpenReplay = window.OpenReplay) === null || _window$OpenReplay === void 0 || _window$OpenReplay.setUserID(properties.email);
11
+ window.OpenReplay?.setUserID(properties.email);
13
12
  if (properties.accountID) {
14
- var _window$OpenReplay2;
15
- (_window$OpenReplay2 = window.OpenReplay) === null || _window$OpenReplay2 === void 0 || _window$OpenReplay2.setMetadata('AccountID', `${properties.accountID}`);
13
+ window.OpenReplay?.setMetadata('AccountID', `${properties.accountID}`);
16
14
  }
17
15
  }
18
16
  };
package/callWithRetry.js CHANGED
@@ -36,8 +36,7 @@ export const callWithRetry = async (operation, policy) => {
36
36
  kind: 'unmet'
37
37
  };
38
38
  } catch (error) {
39
- var _policy$retryOnError;
40
- if (((_policy$retryOnError = policy.retryOnError) === null || _policy$retryOnError === void 0 ? void 0 : _policy$retryOnError.call(policy, error, attempt)) !== true) {
39
+ if (policy.retryOnError?.(error, attempt) !== true) {
41
40
  throw error;
42
41
  }
43
42
  lastAttempt = {
package/package.json CHANGED
@@ -1,11 +1,14 @@
1
1
  {
2
2
  "name": "@pushwoosh/kit-helpers",
3
- "version": "4.12.0",
3
+ "version": "4.12.2",
4
4
  "description": "React component for build Pushwoosh products",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "types": "index.d.ts",
8
8
  "sideEffects": false,
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
9
12
  "scripts": {
10
13
  "start": "npm run playground",
11
14
  "build": "pushwoosh-engine lib:build && cp ai-documentation.md dist/ai-documentation.md",
@@ -20,7 +23,7 @@
20
23
  "react-transition-group": "^4.4.5"
21
24
  },
22
25
  "devDependencies": {
23
- "@pushwoosh/frontend-builder-engine": "^3.0.0",
26
+ "@pushwoosh/frontend-builder-engine": "^3.1.0",
24
27
  "@pushwoosh/kit-constants": "^1.6.0",
25
28
  "@types/react": "^18.3.2",
26
29
  "@types/react-dom": "^18.3.0",