apacuana-sdk-core 1.13.0 → 1.16.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apacuana-sdk-core",
3
- "version": "1.13.0",
3
+ "version": "1.16.0",
4
4
  "description": "Core SDK para interacciones con las APIs de Apacuana.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -141,13 +141,22 @@ const validateOnBoardingSignerData = (signerData) => {
141
141
  ) {
142
142
  delete validatedSignerData.reference;
143
143
  }
144
-
145
144
  if (
146
145
  typeof File === "undefined" ||
147
146
  !validatedSignerData.file ||
148
147
  !(validatedSignerData.file instanceof File)
149
148
  ) {
150
- delete validatedSignerData.file;
149
+ const value = validatedSignerData.file;
150
+ const isRNFile =
151
+ value &&
152
+ typeof value === "object" &&
153
+ value.uri &&
154
+ value.name &&
155
+ value.type;
156
+
157
+ if (!isRNFile) {
158
+ delete validatedSignerData.file;
159
+ }
151
160
  }
152
161
 
153
162
  // Valida que solo uno de los dos campos exista después de la limpieza.