@adyen/adyen-web 5.31.2 → 5.32.0

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,6 +1,5 @@
1
1
  import IssuerListContainer from '../helpers/IssuerListContainer';
2
2
  declare class OnlineBankingPL extends IssuerListContainer {
3
3
  static type: string;
4
- formatProps(props: any): any;
5
4
  }
6
5
  export default OnlineBankingPL;
@@ -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;
@@ -10,6 +10,5 @@ export declare const isValidIBAN: (iban: any) => boolean;
10
10
  export declare const checkIbanStatus: (iban: any) => any;
11
11
  /**
12
12
  * Checks validity of a holder name
13
- * @param holder -
14
13
  */
15
- export declare const isValidHolder: (holder: any) => boolean;
14
+ export declare const isValidHolder: (value: any) => boolean;
@@ -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;
@@ -0,0 +1,5 @@
1
+ export interface GenericError {
2
+ isValid?: boolean;
3
+ errorMessage: string;
4
+ error: string;
5
+ }
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.32.0",
27
27
  "license": "MIT",
28
28
  "homepage": "https://docs.adyen.com/checkout",
29
29
  "repository": "github:Adyen/adyen-web",
@@ -44,8 +44,10 @@
44
44
  "type-check": "tsc --noEmit",
45
45
  "type-check-generate": "tsc --emitDeclarationOnly",
46
46
  "lint": "eslint 'src/**/*.{js,ts,tsx}' --quiet",
47
+ "lint-styles": "stylelint '**/*.scss'",
47
48
  "lint:fix": "npm run lint -- --fix",
48
- "prepublishOnly": "npm run build"
49
+ "prepublishOnly": "npm run build",
50
+ "prepare": "cd ../.. && husky install packages/lib/.husky"
49
51
  },
50
52
  "devDependencies": {
51
53
  "@babel/cli": "^7.18.10",
@@ -65,17 +67,16 @@
65
67
  "@testing-library/preact": "^3.0.0",
66
68
  "@testing-library/preact-hooks": "^1.1.0",
67
69
  "@testing-library/user-event": "^14.4.3",
68
- "@types/jest": "^27.4.1",
70
+ "@types/jest": "29.2.6",
69
71
  "@typescript-eslint/eslint-plugin": "^5.37.0",
70
72
  "@typescript-eslint/parser": "^5.39.0",
71
- "autoprefixer": "^10.4.9",
72
- "babel-jest": "^27.3.1",
73
+ "autoprefixer": "10.4.13",
74
+ "babel-jest": "29.3.1",
73
75
  "cross-env": "^7.0.3",
74
- "cssnano": "^5.0.6",
76
+ "cssnano": "5.1.14",
75
77
  "dotenv": "^16.0.3",
76
- "enzyme": "^3.11.0",
77
- "enzyme-adapter-preact-pure": "^4.0.1",
78
- "esbuild": "^0.16.0",
78
+ "enzyme": "3.11.0",
79
+ "enzyme-adapter-preact-pure": "4.1.0",
79
80
  "eslint": "8.30.0",
80
81
  "eslint-plugin-import": "^2.26.0",
81
82
  "eslint-plugin-jsx-a11y": "^6.6.1",
@@ -84,22 +85,22 @@
84
85
  "eslint-plugin-tsdoc": "^0.2.17",
85
86
  "filesize": "^10.0.0",
86
87
  "gzip-size": "^6.0.0",
87
- "jest": "^26.6.3",
88
+ "husky": "^8.0.1",
89
+ "jest": "29.3.1",
90
+ "jest-environment-jsdom": "29.3.1",
88
91
  "jest-mock-extended": "^3.0.1",
89
- "node-sass": "^6.0.1",
90
- "postcss": "^8.4.7",
91
- "postcss-reporter": "^7.0.5",
92
- "prettier": "^1.19.1",
92
+ "lint-staged": "^13.0.3",
93
+ "postcss": "8.4.21",
93
94
  "rollup": "^2.79.1",
94
- "rollup-plugin-esbuild": "^4.5.0",
95
- "rollup-plugin-postcss": "^4.0.2",
95
+ "rollup-plugin-postcss": "4.0.2",
96
+ "rollup-plugin-stylelint": "1.0.0",
96
97
  "rollup-plugin-terser": "^7.0.2",
97
98
  "rollup-plugin-visualizer": "^5.8.3",
98
- "stylelint": "^13.13.1",
99
- "stylelint-config-recommended": "^5.0.0",
100
- "ts-jest": "^26.5.6",
99
+ "sass": "1.57.1",
100
+ "stylelint": "14.16.1",
101
+ "stylelint-config-standard-scss": "6.1.0",
101
102
  "tslib": "^2.4.1",
102
- "typescript": "^4.4.4",
103
+ "typescript": "4.5.3",
103
104
  "whatwg-fetch": "^3.6.2"
104
105
  },
105
106
  "dependencies": {
@@ -115,5 +116,10 @@
115
116
  "dist",
116
117
  "LICENSE",
117
118
  "README"
118
- ]
119
+ ],
120
+ "lint-staged": {
121
+ "*.{js,jsx,ts,tsx}": "eslint",
122
+ "*.{scss,css}": "stylelint",
123
+ "*.{js,jsx,ts,tsx,html}": "prettier --write"
124
+ }
119
125
  }