@velocitycareerlabs/vcl-react-native 2.9.0 → 2.10.0-rc
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/README.md +12 -1
- package/VclReactNative.podspec +1 -1
- package/android/build.gradle +1 -1
- package/android/src/main/java/io/velocitycareerlabs/reactnative/VclReactNativeModule.kt +58 -74
- package/android/src/main/java/io/velocitycareerlabs/reactnative/extensions/VCLErrorExtensions.kt +62 -2
- package/android/src/main/java/io/velocitycareerlabs/reactnative/utlis/Converter.kt +10 -2
- package/ios/Utils/Converter.swift +12 -1
- package/ios/VCLErrorBridge.swift +89 -0
- package/ios/VclReactNativeImpl.swift +29 -23
- package/lib/module/api/VCLApi.js +44 -18
- package/lib/module/api/VCLApi.js.map +1 -1
- package/lib/module/api/entities/error/VCLError.js +9 -13
- package/lib/module/api/entities/error/VCLError.js.map +1 -1
- package/lib/module/api/entities/error/VCLErrorCode.js +17 -0
- package/lib/module/api/entities/error/VCLErrorCode.js.map +1 -1
- package/lib/module/api/entities/error/VCLErrorDeserializer.js +98 -0
- package/lib/module/api/entities/error/VCLErrorDeserializer.js.map +1 -0
- package/lib/module/api/entities/initialization/VCLErrorCodeCompatibilityMode.js +15 -0
- package/lib/module/api/entities/initialization/VCLErrorCodeCompatibilityMode.js.map +1 -0
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/api/VCLApi.d.ts.map +1 -1
- package/lib/typescript/src/api/entities/error/VCLError.d.ts +22 -1
- package/lib/typescript/src/api/entities/error/VCLError.d.ts.map +1 -1
- package/lib/typescript/src/api/entities/error/VCLErrorCode.d.ts +15 -0
- package/lib/typescript/src/api/entities/error/VCLErrorCode.d.ts.map +1 -1
- package/lib/typescript/src/api/entities/error/VCLErrorDeserializer.d.ts +19 -0
- package/lib/typescript/src/api/entities/error/VCLErrorDeserializer.d.ts.map +1 -0
- package/lib/typescript/src/api/entities/initialization/VCLErrorCodeCompatibilityMode.d.ts +11 -0
- package/lib/typescript/src/api/entities/initialization/VCLErrorCodeCompatibilityMode.d.ts.map +1 -0
- package/lib/typescript/src/api/entities/initialization/VCLInitializationDescriptor.d.ts +12 -0
- package/lib/typescript/src/api/entities/initialization/VCLInitializationDescriptor.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +4 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/api/VCLApi.ts +58 -18
- package/src/api/entities/error/VCLError.ts +33 -13
- package/src/api/entities/error/VCLErrorCode.ts +18 -0
- package/src/api/entities/error/VCLErrorDeserializer.ts +151 -0
- package/src/api/entities/initialization/VCLErrorCodeCompatibilityMode.ts +11 -0
- package/src/api/entities/initialization/VCLInitializationDescriptor.ts +12 -0
- package/src/index.tsx +10 -0
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import type { VCLEnvironment } from '../../VCLEnvironment';
|
|
9
9
|
import type { VCLCryptoServicesDescriptor } from './VCLCryptoServicesDescriptor';
|
|
10
|
+
import type { VCLErrorCodeCompatibilityMode } from './VCLErrorCodeCompatibilityMode';
|
|
10
11
|
import type { VCLXVnfProtocolVersion } from '../../VCLXVnfProtocolVersion';
|
|
11
12
|
|
|
12
13
|
export interface VCLInitializationDescriptor {
|
|
@@ -16,4 +17,15 @@ export interface VCLInitializationDescriptor {
|
|
|
16
17
|
isDebugOn?: boolean;
|
|
17
18
|
cryptoServicesDescriptor?: VCLCryptoServicesDescriptor;
|
|
18
19
|
isDirectIssuerCheckOn?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Controls whether native SDK errors use the new taxonomy codes or legacy
|
|
22
|
+
* backward-compatible mappings. Native SDKs default to taxonomy mode.
|
|
23
|
+
*/
|
|
24
|
+
errorCodeCompatibilityMode?: VCLErrorCodeCompatibilityMode;
|
|
25
|
+
/**
|
|
26
|
+
* Maximum number of native stack frames to include in bridged error diagnostics.
|
|
27
|
+
* Native implementations clamp values to the range `0..20`.
|
|
28
|
+
* Use `0` to disable native stack frames.
|
|
29
|
+
*/
|
|
30
|
+
nativeErrorStackFrameLimit?: number;
|
|
19
31
|
}
|
package/src/index.tsx
CHANGED
|
@@ -10,6 +10,7 @@ import { VCLEnvironment } from './api/VCLEnvironment';
|
|
|
10
10
|
import { VCLXVnfProtocolVersion } from './api/VCLXVnfProtocolVersion';
|
|
11
11
|
import { VCLCryptoServiceType } from './api/VCLCryptoServiceType';
|
|
12
12
|
import { VCLSignatureAlgorithm } from './api/VCLSignatureAlgorithm';
|
|
13
|
+
import { VCLErrorCodeCompatibilityMode } from './api/entities/initialization/VCLErrorCodeCompatibilityMode';
|
|
13
14
|
import type { VCLCryptoServicesDescriptor } from './api/entities/initialization/VCLCryptoServicesDescriptor';
|
|
14
15
|
import type { VCLJwtServiceUrls } from './api/entities/initialization/VCLJwtServiceUrls';
|
|
15
16
|
import type { VCLKeyServiceUrls } from './api/entities/initialization/VCLKeyServiceUrls';
|
|
@@ -68,6 +69,11 @@ import { VCLStatusCode } from './api/entities/error/VCLStatusCode';
|
|
|
68
69
|
import { VCLErrorCode } from './api/entities/error/VCLErrorCode';
|
|
69
70
|
import type { VCLAuthToken } from './api/entities/VCLAuthToken';
|
|
70
71
|
import type { VCLAuthTokenDescriptor } from './api/entities/VCLAuthTokenDescriptor';
|
|
72
|
+
import type {
|
|
73
|
+
VCLDiagnostics,
|
|
74
|
+
VCLNativeCauseDiagnostics,
|
|
75
|
+
VCLErrorInit,
|
|
76
|
+
} from './api/entities/error/VCLError';
|
|
71
77
|
|
|
72
78
|
export default VclApi;
|
|
73
79
|
export {
|
|
@@ -81,6 +87,7 @@ export {
|
|
|
81
87
|
VCLError,
|
|
82
88
|
VCLStatusCode,
|
|
83
89
|
VCLErrorCode,
|
|
90
|
+
VCLErrorCodeCompatibilityMode,
|
|
84
91
|
};
|
|
85
92
|
export type {
|
|
86
93
|
Dictionary,
|
|
@@ -135,4 +142,7 @@ export type {
|
|
|
135
142
|
VCLRemoteCryptoServicesUrlsDescriptor,
|
|
136
143
|
VCLAuthToken,
|
|
137
144
|
VCLAuthTokenDescriptor,
|
|
145
|
+
VCLDiagnostics,
|
|
146
|
+
VCLNativeCauseDiagnostics,
|
|
147
|
+
VCLErrorInit,
|
|
138
148
|
};
|