@lookiero/checkout 8.8.0-beta.2 → 8.8.0-beta.4

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.
@@ -36,9 +36,16 @@ const CheckoutMiddleware = ({ customerId, onNotAccessible, loader = React.create
36
36
  const checkoutPaymentRouteMatch = useMatch(`${basePath}/${Routes.CHECKOUT}/${Routes.CHECKOUT_PAYMENT}`);
37
37
  const checkoutPaymentRouteMatchRef = useRef(checkoutPaymentRouteMatch);
38
38
  checkoutPaymentRouteMatchRef.current = checkoutPaymentRouteMatch;
39
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
40
- // @ts-ignore
41
- thisIsAnErrorTest();
39
+ useEffect(() => {
40
+ const errorTimeout = setTimeout(() => {
41
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
42
+ // @ts-ignore
43
+ thisIsAnErrorTest();
44
+ }, 3000);
45
+ return () => {
46
+ clearTimeout(errorTimeout);
47
+ };
48
+ }, []);
42
49
  const checkoutShown = useRef(false);
43
50
  checkoutShown.current = checkoutShown.current || (Boolean(checkoutRouteMatch) && !Boolean(checkoutPaymentRouteMatch));
44
51
  const [checkout] = useViewFirstAvailableCheckoutByCustomerId({ customerId });
@@ -1 +1 @@
1
- export declare const VERSION = "8.8.0-beta.2";
1
+ export declare const VERSION = "8.8.0-beta.4";
@@ -1 +1 @@
1
- export const VERSION = "8.8.0-beta.2";
1
+ export const VERSION = "8.8.0-beta.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "8.8.0-beta.2",
3
+ "version": "8.8.0-beta.4",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": "false",
@@ -15,19 +15,19 @@
15
15
  "dependencies": {
16
16
  "@lookiero/messaging": "^8.1.1",
17
17
  "@lookiero/messaging-react": "^8.1.1",
18
- "@lookiero/sty-psp-ab-testing": "^0.2.4-beta.2",
18
+ "@lookiero/sty-psp-ab-testing": "^0.2.4-beta.4",
19
19
  "@lookiero/sty-psp-expo-config": "^0.1.0",
20
20
  "@lookiero/sty-psp-http": "^2.0.0",
21
21
  "@lookiero/sty-psp-i18n": "^0.2.1",
22
22
  "@lookiero/sty-psp-locale": "^0.4.0",
23
- "@lookiero/sty-psp-logging": "^0.3.0-beta.2",
24
- "@lookiero/sty-psp-notifications": "^0.5.13-beta.2",
23
+ "@lookiero/sty-psp-logging": "^0.3.0-beta.4",
24
+ "@lookiero/sty-psp-notifications": "^0.5.13-beta.4",
25
25
  "@lookiero/sty-psp-react-native": "^0.2.0",
26
26
  "@lookiero/sty-psp-segment": "^0.1.1",
27
27
  "@lookiero/sty-psp-storage": "^0.1.3",
28
28
  "@lookiero/sty-psp-tracking": "^0.1.9",
29
29
  "@lookiero/sty-psp-ui": "^0.5.8",
30
- "@lookiero/sty-psp-ui-settings": "^0.1.3-beta.2",
30
+ "@lookiero/sty-psp-ui-settings": "^0.1.3-beta.4",
31
31
  "@lookiero/sty-psp-units": "^0.1.1",
32
32
  "@lookiero/sty-psp-uuid": "^0.1.0",
33
33
  "@react-native-async-storage/async-storage": "^1.22.3",
@@ -52,9 +52,17 @@ const CheckoutMiddleware: FC<CheckoutMiddlewareProps> = ({
52
52
  const checkoutPaymentRouteMatchRef = useRef(checkoutPaymentRouteMatch);
53
53
  checkoutPaymentRouteMatchRef.current = checkoutPaymentRouteMatch;
54
54
 
55
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
56
- // @ts-ignore
57
- thisIsAnErrorTest();
55
+ useEffect(() => {
56
+ const errorTimeout = setTimeout(() => {
57
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
58
+ // @ts-ignore
59
+ thisIsAnErrorTest();
60
+ }, 3000);
61
+
62
+ return () => {
63
+ clearTimeout(errorTimeout);
64
+ };
65
+ }, []);
58
66
 
59
67
  const checkoutShown = useRef(false);
60
68
  checkoutShown.current = checkoutShown.current || (Boolean(checkoutRouteMatch) && !Boolean(checkoutPaymentRouteMatch));