@adyen/adyen-web 5.69.0 → 5.69.1

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.
@@ -1,4 +1,15 @@
1
+ interface TimeoutErrorProps {
2
+ source: string;
3
+ scheme: string;
4
+ isTimeoutTriggeredBySchemeSdk: boolean;
5
+ }
1
6
  declare class TimeoutError extends Error {
2
- constructor(message: string);
7
+ scheme: string;
8
+ source: string;
9
+ isTimeoutTriggeredBySchemeSdk: boolean;
10
+ /** Currently populated only by Visa SDK if available */
11
+ correlationId?: string;
12
+ constructor(options: TimeoutErrorProps);
13
+ setCorrelationId(correlationId: string): void;
3
14
  }
4
15
  export default TimeoutError;
@@ -36,6 +36,7 @@ declare class ClickToPayService implements IClickToPayService {
36
36
  get schemes(): string[];
37
37
  updateStoreCookiesConsent(shouldStore: boolean): void;
38
38
  initialize(): Promise<void>;
39
+ private handleTimeout;
39
40
  /**
40
41
  * Set the callback for notifying when the CtPState changes
41
42
  */
@@ -0,0 +1,3 @@
1
+ import TimeoutError from '../errors/TimeoutError';
2
+ declare function executeWithTimeout<T>(asyncFn: () => Promise<T>, timer: number, error: TimeoutError): Promise<T>;
3
+ export { executeWithTimeout };
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "./dist/es/adyen.css": "./dist/es/adyen.css",
26
26
  "./package.json": "./package.json"
27
27
  },
28
- "version": "5.69.0",
28
+ "version": "5.69.1",
29
29
  "license": "MIT",
30
30
  "homepage": "https://docs.adyen.com/checkout",
31
31
  "repository": "github:Adyen/adyen-web",