@adyen/adyen-web 5.31.2 → 5.31.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.
@@ -1,4 +1,4 @@
1
- export declare const countdownTime = 15;
1
+ export declare const countdownTime = 3;
2
2
  export declare const delay = 2000;
3
3
  declare const _default: {
4
4
  delay: number;
@@ -1,3 +1,6 @@
1
+ interface CheckoutErrorOptions {
2
+ cause: any;
3
+ }
1
4
  declare class AdyenCheckoutError extends Error {
2
5
  protected static errorTypes: {
3
6
  /** Network error. */
@@ -9,6 +12,7 @@ declare class AdyenCheckoutError extends Error {
9
12
  /** Generic error. */
10
13
  ERROR: string;
11
14
  };
12
- constructor(type: keyof typeof AdyenCheckoutError.errorTypes, message?: string);
15
+ cause: unknown;
16
+ constructor(type: keyof typeof AdyenCheckoutError.errorTypes, message?: string, options?: CheckoutErrorOptions);
13
17
  }
14
18
  export default AdyenCheckoutError;
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "./dist/adyen.css": "./dist/adyen.css",
24
24
  "./package.json": "./package.json"
25
25
  },
26
- "version": "5.31.2",
26
+ "version": "5.31.3",
27
27
  "license": "MIT",
28
28
  "homepage": "https://docs.adyen.com/checkout",
29
29
  "repository": "github:Adyen/adyen-web",
@@ -45,7 +45,8 @@
45
45
  "type-check-generate": "tsc --emitDeclarationOnly",
46
46
  "lint": "eslint 'src/**/*.{js,ts,tsx}' --quiet",
47
47
  "lint:fix": "npm run lint -- --fix",
48
- "prepublishOnly": "npm run build"
48
+ "prepublishOnly": "npm run build",
49
+ "prepare": "cd ../.. && husky install packages/lib/.husky"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@babel/cli": "^7.18.10",
@@ -75,7 +76,6 @@
75
76
  "dotenv": "^16.0.3",
76
77
  "enzyme": "^3.11.0",
77
78
  "enzyme-adapter-preact-pure": "^4.0.1",
78
- "esbuild": "^0.16.0",
79
79
  "eslint": "8.30.0",
80
80
  "eslint-plugin-import": "^2.26.0",
81
81
  "eslint-plugin-jsx-a11y": "^6.6.1",
@@ -84,14 +84,14 @@
84
84
  "eslint-plugin-tsdoc": "^0.2.17",
85
85
  "filesize": "^10.0.0",
86
86
  "gzip-size": "^6.0.0",
87
+ "husky": "^8.0.1",
87
88
  "jest": "^26.6.3",
88
89
  "jest-mock-extended": "^3.0.1",
90
+ "lint-staged": "^13.0.3",
89
91
  "node-sass": "^6.0.1",
90
92
  "postcss": "^8.4.7",
91
93
  "postcss-reporter": "^7.0.5",
92
- "prettier": "^1.19.1",
93
94
  "rollup": "^2.79.1",
94
- "rollup-plugin-esbuild": "^4.5.0",
95
95
  "rollup-plugin-postcss": "^4.0.2",
96
96
  "rollup-plugin-terser": "^7.0.2",
97
97
  "rollup-plugin-visualizer": "^5.8.3",
@@ -115,5 +115,10 @@
115
115
  "dist",
116
116
  "LICENSE",
117
117
  "README"
118
- ]
118
+ ],
119
+ "lint-staged": {
120
+ "*.{js,jsx,ts,tsx}": "eslint",
121
+ "*.{scss,css}": "stylelint",
122
+ "*.{js,jsx,ts,tsx,scss,css,html}": "prettier --write"
123
+ }
119
124
  }