@basis-theory/react-elements 2.3.0 → 2.5.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.
- package/package.json +6 -3
- package/types/index.d.ts +6 -2
package/package.json
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basis-theory/react-elements",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"repository":
|
|
3
|
+
"version": "2.5.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/basis-theory/react-elements.git"
|
|
7
|
+
},
|
|
5
8
|
"license": "Apache-2.0",
|
|
6
9
|
"author": {
|
|
7
10
|
"name": "Basis Theory",
|
|
@@ -30,7 +33,7 @@
|
|
|
30
33
|
"tag": "latest"
|
|
31
34
|
},
|
|
32
35
|
"dependencies": {
|
|
33
|
-
"@basis-theory/web-elements": "2.
|
|
36
|
+
"@basis-theory/web-elements": "2.5.0"
|
|
34
37
|
},
|
|
35
38
|
"peerDependencies": {
|
|
36
39
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
package/types/index.d.ts
CHANGED
|
@@ -456,8 +456,8 @@ export type EncryptTokenModel<DataType = Primitive> = {
|
|
|
456
456
|
tokenRequests: {
|
|
457
457
|
[key: string]: Pick<CreateTokenModel<DataType>, 'data' | 'type'>;
|
|
458
458
|
} | Pick<CreateTokenModel<DataType>, 'data' | 'type'>;
|
|
459
|
-
|
|
460
|
-
|
|
459
|
+
publicKeyPem: string;
|
|
460
|
+
keyId: string;
|
|
461
461
|
};
|
|
462
462
|
type EncryptedSingleToken = {
|
|
463
463
|
encrypted: string;
|
|
@@ -706,6 +706,10 @@ export class BasisTheoryApiError extends Error {
|
|
|
706
706
|
readonly _debug?: Record<string, unknown> | undefined;
|
|
707
707
|
constructor(message: string, status: number, data?: unknown | undefined, _debug?: Record<string, unknown> | undefined);
|
|
708
708
|
}
|
|
709
|
+
export class BasisTheoryConfigurationError<Details = Record<string, unknown>> extends Error {
|
|
710
|
+
readonly details: Details;
|
|
711
|
+
constructor(message: string, details: Details);
|
|
712
|
+
}
|
|
709
713
|
export class HttpClientError extends Error {
|
|
710
714
|
readonly status: number;
|
|
711
715
|
readonly data?: unknown;
|