@hexar/biometric-identity-sdk-react-native 1.1.3 → 1.1.4

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 +1 @@
1
- {"version":3,"file":"ProfilePictureCapture.d.ts","sourceRoot":"","sources":["../../src/components/ProfilePictureCapture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AASxE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAmC,cAAc,EAAsB,MAAM,oCAAoC,CAAC;AAGzJ,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,CAAC,MAAM,EAAE,8BAA8B,KAAK,IAAI,CAAC;IAC7D,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAsLtE,CAAC;AAuCF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"ProfilePictureCapture.d.ts","sourceRoot":"","sources":["../../src/components/ProfilePictureCapture.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AASxE,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAmC,cAAc,EAAsB,MAAM,oCAAoC,CAAC;AAGzJ,MAAM,WAAW,8BAA8B;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,CAAC,MAAM,EAAE,8BAA8B,KAAK,IAAI,CAAC;IAC7D,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CAoMtE,CAAC;AAuCF,eAAe,qBAAqB,CAAC"}
@@ -80,7 +80,13 @@ const ProfilePictureCapture = ({ onComplete, onError, onCancel, theme, language,
80
80
  framesCount: videoResult.frames.length,
81
81
  duration: videoResult.duration,
82
82
  isUsingBackend,
83
+ hasVideoFrames: !!videoResult.frames,
84
+ videoFramesType: typeof videoResult.frames,
85
+ firstFrameLength: videoResult.frames?.[0]?.length || 0,
83
86
  });
87
+ if (!videoResult.frames || videoResult.frames.length === 0) {
88
+ throw new Error('No video frames available for validation');
89
+ }
84
90
  const result = await sdk.validateProfilePicture({
85
91
  sessionId: sessionId,
86
92
  videoFrames: videoResult.frames,
@@ -101,7 +107,14 @@ const ProfilePictureCapture = ({ onComplete, onError, onCancel, theme, language,
101
107
  };
102
108
  }
103
109
  catch (error) {
104
- biometric_identity_sdk_core_1.logger.error('Profile picture validation error', error);
110
+ biometric_identity_sdk_core_1.logger.error('Profile picture validation error', {
111
+ error,
112
+ errorMessage: error?.message,
113
+ errorName: error?.name,
114
+ errorCode: error?.code,
115
+ errorStack: error?.stack,
116
+ errorString: String(error),
117
+ });
105
118
  throw error;
106
119
  }
107
120
  }, [isInitialized, isUsingBackend, sdk]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexar/biometric-identity-sdk-react-native",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "React Native wrapper for Biometric Identity SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -86,8 +86,15 @@ export const ProfilePictureCapture: React.FC<ProfilePictureCaptureProps> = ({
86
86
  framesCount: videoResult.frames.length,
87
87
  duration: videoResult.duration,
88
88
  isUsingBackend,
89
+ hasVideoFrames: !!videoResult.frames,
90
+ videoFramesType: typeof videoResult.frames,
91
+ firstFrameLength: videoResult.frames?.[0]?.length || 0,
89
92
  });
90
93
 
94
+ if (!videoResult.frames || videoResult.frames.length === 0) {
95
+ throw new Error('No video frames available for validation');
96
+ }
97
+
91
98
  const result = await (sdk as any).validateProfilePicture({
92
99
  sessionId: sessionId!,
93
100
  videoFrames: videoResult.frames,
@@ -109,7 +116,14 @@ export const ProfilePictureCapture: React.FC<ProfilePictureCaptureProps> = ({
109
116
  warnings: result.warnings || [],
110
117
  };
111
118
  } catch (error: any) {
112
- logger.error('Profile picture validation error', error);
119
+ logger.error('Profile picture validation error', {
120
+ error,
121
+ errorMessage: error?.message,
122
+ errorName: error?.name,
123
+ errorCode: error?.code,
124
+ errorStack: error?.stack,
125
+ errorString: String(error),
126
+ });
113
127
  throw error;
114
128
  }
115
129
  }, [isInitialized, isUsingBackend, sdk]);