From 47b558032e7322465f7a720445426a56d4ac3c0e Mon Sep 17 00:00:00 2001 From: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com> Date: Mon, 23 Oct 2023 17:36:28 +0530 Subject: [PATCH] Inji - 368 integrate iris scan android ios (#936) * feat(INJI-368): Integrate irisScan for android and ios Signed-off-by: adityankannan-tw * feat(INJI-368): Add path to the model file Signed-off-by: adityankannan-tw * feat(INJI-368): Integrate irisScan for android and ios Signed-off-by: adityankannan-tw * feat(INJI-368): Update package lock json Signed-off-by: adityankannan-tw --------- Signed-off-by: adityankannan-tw Signed-off-by: adityankannan-tw <109274996+adityankannan-tw@users.noreply.github.com> Signed-off-by: Swati Goel Co-authored-by: Swati Goel --- .talismanrc | 17 +-- android/app/build.gradle | 1 + components/FaceScanner.tsx | 6 - ios/Podfile.lock | 26 +++- lib/mosip-inji-face-sdk/faceAuth.ios.ts | 4 - lib/mosip-inji-face-sdk/faceAuth.ts | 3 - machines/auth.ts | 1 - machines/faceScanner.ts | 32 ++-- package-lock.json | 192 ++++++++++++------------ package.json | 2 +- shared/commonprops/commonProps.ts | 4 +- 11 files changed, 145 insertions(+), 143 deletions(-) delete mode 100644 lib/mosip-inji-face-sdk/faceAuth.ios.ts delete mode 100644 lib/mosip-inji-face-sdk/faceAuth.ts diff --git a/.talismanrc b/.talismanrc index 2be7c3924..90e535a19 100644 --- a/.talismanrc +++ b/.talismanrc @@ -1,6 +1,8 @@ fileignoreconfig: +- filename: package.json + checksum: e0b34f1a1efbdf07b40a3e9e9ecd8884dd7d6835f45c57850e30988d2c6371a2 - filename: package-lock.json - checksum: a4c1fe2521067e1a279610f079446c600e8b7d5cf1553934dc419c3c476b4844 + checksum: fc26d97edecbacd0b7507032c6fc1acfcea9f01f5dbe66a2a0341506e2f0daca - filename: components/PasscodeVerify.tsx checksum: 14654c0f038979fcd0d260170a45894a072f81e0767ca9a0e66935d33b5cc703 - filename: i18n.ts @@ -24,11 +26,11 @@ fileignoreconfig: - filename: screens/WelcomeScreenController.ts checksum: 71917c8c543a4a5b7ab61df259b785d233a80718123b0c8edf6ec81e1b3a81e0 - filename: shared/telemetry/TelemetryUtils.js - checksum: ffe9aac2dcc590b98b0d588885c088eff189504ade653a77f74b67312bfd27ad -- filename: shared/fileStorage.ts - checksum: 07cb337dc1d5b0f0eef56270ac4f4f589260ee5e490183c024cf98a2aeafb139 -- filename: shared/storage.ts - checksum: c8d874aa373bdf526bf59192139822f56915e702ef673bac4e0d7549b0fea3d0 + checksum: 9a61cd59a3718adf1f14faf3024fec66a3295ef373878a878a28e5cb1287afaa +- filename: ios/Podfile.lock + checksum: cc123c3e1f04d41b394ceb16843b15c08bac3ba619ae853ff322717739761a85 +- filename: ios/Podfile.lock + checksum: cc123c3e1f04d41b394ceb16843b15c08bac3ba619ae853ff322717739761a85 - filename: screens/Home/IntroSlidersScreen.tsx checksum: 72ef913857448ef05763e52e32356faa2d1f3de8130a1c638d1897f44823031f - filename: shared/commonUtil.ts @@ -47,8 +49,6 @@ fileignoreconfig: checksum: f1f504bd8c14496ee71f8eb7f40d54411cc05be03347d644dcc2cca187a20678 - filename: machines/VCItemMachine/ExistingMosipVCItem/ExistingMosipVCItemMachine.ts checksum: 237a2640b7db70770d65da67c79f2929581e32f1162517e50b8d37e409f3387d -- filename: machines/store.ts - checksum: 0695d833df9ec1e1f6ae2bd81631630bb1039dec387718acb153bcb843c952cd - filename: shared/cryptoutil/cryptoUtil.ts checksum: b785ff3f01ab9530119072c4d38195048bfeee6155c54ea7dd031559acb722f3 - filename: package.json @@ -57,4 +57,3 @@ fileignoreconfig: checksum: 6d22bc5c77398316b943c512c208ce0846a9fff674c1ccac79e07f21962acd5f - filename: machines/VCItemMachine/ExistingMosipVCItem/ExistingMosipVCItemMachine.typegen.ts checksum: 10889302ca05646a283386be1bbe7a5fb510c02bb62a308ee45f3c2a872ae64e - version: "" diff --git a/android/app/build.gradle b/android/app/build.gradle index 19adf8c68..2b2d0d8a0 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -216,6 +216,7 @@ dependencies { if (isGifEnabled || isWebpEnabled) { implementation 'com.facebook.fresco:fresco:2.0.0' implementation 'com.facebook.fresco:imagepipeline-okhttp3:2.0.0' + implementation 'com.squareup.okhttp3:okhttp-urlconnection:4.4.1' } if (isGifEnabled) { diff --git a/components/FaceScanner.tsx b/components/FaceScanner.tsx index 077b1b8d0..6f200e0eb 100644 --- a/components/FaceScanner.tsx +++ b/components/FaceScanner.tsx @@ -130,12 +130,6 @@ export const FaceScanner: React.FC = props => { )} - {/* TODO: remove warning when iOS SDK is ready */} - {isIOS() && ( - - (face-matching in iOS is mocked) - - )} ); diff --git a/ios/Podfile.lock b/ios/Podfile.lock index ef341cf69..cefb35a58 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -6,6 +6,8 @@ PODS: - AppAuth/ExternalUserAgent (1.6.2): - AppAuth/Core - ASN1Decoder (1.8.0) + - BiometricSdk (0.5.4): + - TensorFlowLiteObjC (= 2.12.0) - boost (1.76.0) - BVLinearGradient (2.8.2): - React-Core @@ -78,7 +80,8 @@ PODS: - MMKV (1.2.13): - MMKVCore (~> 1.2.13) - MMKVCore (1.2.16) - - mosip-inji-face-sdk (0.1.12): + - mosip-mobileid-sdk (0.1.0): + - BiometricSdk (= 0.5.4) - React-Core - Permission-BluetoothPeripheral (3.8.4): - RNPermissions @@ -481,6 +484,13 @@ PODS: - React - RNSVG (13.4.0): - React-Core + - TensorFlowLiteC (2.12.0): + - TensorFlowLiteC/Core (= 2.12.0) + - TensorFlowLiteC/Core (2.12.0) + - TensorFlowLiteObjC (2.12.0): + - TensorFlowLiteObjC/Core (= 2.12.0) + - TensorFlowLiteObjC/Core (2.12.0): + - TensorFlowLiteC (= 2.12.0) - Yoga (1.14.0) - ZXingObjC/Core (3.6.5) - ZXingObjC/OneD (3.6.5): @@ -516,7 +526,7 @@ DEPENDENCIES: - glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`) - hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`) - libevent (~> 2.1.12) - - mosip-inji-face-sdk (from `../node_modules/mosip-inji-face-sdk`) + - mosip-mobileid-sdk (from `../node_modules/mosip-mobileid-sdk`) - Permission-BluetoothPeripheral (from `../node_modules/react-native-permissions/ios/BluetoothPeripheral`) - Permission-Camera (from `../node_modules/react-native-permissions/ios/Camera`) - Permission-LocationAccuracy (from `../node_modules/react-native-permissions/ios/LocationAccuracy`) @@ -579,6 +589,7 @@ SPEC REPOS: trunk: - AppAuth - ASN1Decoder + - BiometricSdk - CatCrypto - CrcSwift - fmt @@ -586,6 +597,8 @@ SPEC REPOS: - libevent - MMKV - MMKVCore + - TensorFlowLiteC + - TensorFlowLiteObjC - ZXingObjC EXTERNAL SOURCES: @@ -641,8 +654,8 @@ EXTERNAL SOURCES: :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" hermes-engine: :podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec" - mosip-inji-face-sdk: - :path: "../node_modules/mosip-inji-face-sdk" + mosip-mobileid-sdk: + :path: "../node_modules/mosip-mobileid-sdk" Permission-BluetoothPeripheral: :path: "../node_modules/react-native-permissions/ios/BluetoothPeripheral" Permission-Camera: @@ -759,6 +772,7 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: AppAuth: 3bb1d1cd9340bd09f5ed189fb00b1cc28e1e8570 ASN1Decoder: 6110fdeacfdb41559b1481457a1645be716610aa + BiometricSdk: 1d16c395413164d92a280b78006abba4307063e6 boost: 57d2868c099736d80fcd648bf211b4431e51a558 BVLinearGradient: 916632041121a658c704df89d99f04acb038de0f CatCrypto: a477899b6be4954e75be4897e732da098cc0a5a8 @@ -792,7 +806,7 @@ SPEC CHECKSUMS: libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913 MMKV: aac95d817a100479445633f2b3ed8961b4ac5043 MMKVCore: 9cfef4c48c6c46f66226fc2e4634d78490206a48 - mosip-inji-face-sdk: d5bc0fb66721c25450f92d3297efcb2cf0117271 + mosip-mobileid-sdk: 6b8182276896194fdcacdde148b02d5d2d16b02a Permission-BluetoothPeripheral: 2b88a131074edafd8a46a5cda4ba610ec986d2fb Permission-Camera: 7ec9ee99704766ff9b90198183387a7f5d82b0c1 Permission-LocationAccuracy: a38ddb5c5d0b8e656f3c86e4a500f9bb88bc099d @@ -848,6 +862,8 @@ SPEC CHECKSUMS: RNScreens: 218801c16a2782546d30bd2026bb625c0302d70f RNSecureRandom: 07efbdf2cd99efe13497433668e54acd7df49fef RNSVG: 07dbd870b0dcdecc99b3a202fa37c8ca163caec2 + TensorFlowLiteC: 20785a69299185a379ba9852b6625f00afd7984a + TensorFlowLiteObjC: 9a46a29a76661c513172cfffd3bf712b11ef25c3 Yoga: 065f0b74dba4832d6e328238de46eb72c5de9556 ZXingObjC: fdbb269f25dd2032da343e06f10224d62f537bdb diff --git a/lib/mosip-inji-face-sdk/faceAuth.ios.ts b/lib/mosip-inji-face-sdk/faceAuth.ios.ts deleted file mode 100644 index f15162e25..000000000 --- a/lib/mosip-inji-face-sdk/faceAuth.ios.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default async function faceAuth(capturedImage: string, vcImage: string) { - // TODO: iOS implementation - return Promise.resolve(true); -} diff --git a/lib/mosip-inji-face-sdk/faceAuth.ts b/lib/mosip-inji-face-sdk/faceAuth.ts deleted file mode 100644 index 9d621c03e..000000000 --- a/lib/mosip-inji-face-sdk/faceAuth.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { faceAuth } from 'mosip-inji-face-sdk'; - -export default faceAuth; diff --git a/machines/auth.ts b/machines/auth.ts index 89d39aa92..3cee14ff2 100644 --- a/machines/auth.ts +++ b/machines/auth.ts @@ -1,4 +1,3 @@ -import {init} from 'mosip-inji-face-sdk'; import {assign, ContextFrom, EventFrom, send, StateFrom} from 'xstate'; import {createModel} from 'xstate/lib/model'; import getAllConfigurations, { diff --git a/machines/faceScanner.ts b/machines/faceScanner.ts index f22480c96..7d18996b5 100644 --- a/machines/faceScanner.ts +++ b/machines/faceScanner.ts @@ -1,10 +1,10 @@ -import { Camera, CameraCapturedPicture, PermissionResponse } from 'expo-camera'; -import { CameraType, Face, ImageType } from 'expo-camera/build/Camera.types'; -import { Linking } from 'react-native'; -import { assign, EventFrom, StateFrom } from 'xstate'; -import { createModel } from 'xstate/lib/model'; +import {Camera, CameraCapturedPicture, PermissionResponse} from 'expo-camera'; +import {CameraType, Face, ImageType} from 'expo-camera/build/Camera.types'; +import {Linking} from 'react-native'; +import {assign, EventFrom, StateFrom} from 'xstate'; +import {createModel} from 'xstate/lib/model'; -import mosipFaceAuth from '../lib/mosip-inji-face-sdk/faceAuth'; +import {faceAuth} from 'mosip-mobileid-sdk'; const model = createModel( { @@ -19,15 +19,15 @@ const model = createModel( }, { events: { - READY: (cameraRef: Camera) => ({ cameraRef }), + READY: (cameraRef: Camera) => ({cameraRef}), FLIP_CAMERA: () => ({}), CAPTURE: () => ({}), - DENIED: (response: PermissionResponse) => ({ response }), + DENIED: (response: PermissionResponse) => ({response}), GRANTED: () => ({}), OPEN_SETTINGS: () => ({}), APP_FOCUSED: () => ({}), }, - } + }, ); export const FaceScannerEvents = model.events; @@ -176,7 +176,7 @@ export const createFaceScannerMachine = (vcImage: string) => }), flipWhichCamera: model.assign({ - whichCamera: (context) => + whichCamera: context => context.whichCamera === Camera.Constants.Type.front ? Camera.Constants.Type.back : Camera.Constants.Type.front, @@ -190,7 +190,7 @@ export const createFaceScannerMachine = (vcImage: string) => }, services: { - checkPermission: () => async (callback) => { + checkPermission: () => async callback => { const result = await Camera.getCameraPermissionsAsync(); if (result.granted) { callback(FaceScannerEvents.GRANTED()); @@ -199,7 +199,7 @@ export const createFaceScannerMachine = (vcImage: string) => } }, - requestPermission: () => async (callback) => { + requestPermission: () => async callback => { const result = await Camera.requestCameraPermissionsAsync(); if (result.granted) { callback(FaceScannerEvents.GRANTED()); @@ -208,19 +208,19 @@ export const createFaceScannerMachine = (vcImage: string) => } }, - captureImage: (context) => { + captureImage: context => { return context.cameraRef.takePictureAsync({ base64: true, imageType: ImageType.jpg, }); }, - verifyImage: (context) => { + verifyImage: context => { context.cameraRef.pausePreview(); const rxDataURI = /data:(?[\w/\-.]+);(?\w+),(?.*)/; const matches = rxDataURI.exec(vcImage).groups; - return mosipFaceAuth(context.capturedImage.base64, matches.data); + return faceAuth(context.capturedImage.base64, matches.data); }, }, @@ -231,7 +231,7 @@ export const createFaceScannerMachine = (vcImage: string) => doesFaceMatch: (_context, event) => event.data, }, - } + }, ); type State = StateFrom>; diff --git a/package-lock.json b/package-lock.json index 1ca6f9ca4..8319240f0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,7 +42,7 @@ "i18next": "^21.6.16", "iso-639-3": "^3.0.1", "jwt-decode": "^3.1.2", - "mosip-inji-face-sdk": "^0.1.12", + "mosip-mobileid-sdk": "git://github.com/mosip/mosip-mobileid-sdk.git#IrisScan", "node-forge": "^1.3.1", "node-jose": "^2.2.0", "patch-package": "^6.5.1", @@ -9623,7 +9623,7 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@svgr/core/node_modules/typescript": { +"node_modules/@svgr/core/node_modules/typescript": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", @@ -9742,7 +9742,7 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@svgr/plugin-svgo/node_modules/typescript": { +"node_modules/@svgr/plugin-svgo/node_modules/typescript": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", @@ -10269,7 +10269,7 @@ "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" }, - "node_modules/abbrev": { +"node_modules/abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", @@ -10552,7 +10552,7 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array-each": { +"node_modules/array-each": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==", @@ -12872,7 +12872,7 @@ "node": ">=4.0" } }, - "node_modules/dateformat": { +"node_modules/dateformat": { "version": "4.6.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", @@ -13223,7 +13223,7 @@ "npm": "1.2.8000 || >= 1.4.16" } }, - "node_modules/detect-file": { +"node_modules/detect-file": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==", @@ -13460,7 +13460,7 @@ "node": ">= 0.8" } }, - "node_modules/encoding": { +"node_modules/encoding": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", @@ -14347,7 +14347,7 @@ "node": ">=6" } }, - "node_modules/eventemitter2": { +"node_modules/eventemitter2": { "version": "0.4.14", "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", "integrity": "sha512-K7J4xq5xAD5jHsGM5ReWXRTFa3JRGofHiMcVgQ8PRwgWxzjHpMWCIzsmyf60+mh8KLsqYPcjUMa0AC4hd6lPyQ==", @@ -14402,7 +14402,7 @@ "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "engines": { + "engines": { "node": ">= 0.8.0" } }, @@ -14591,7 +14591,7 @@ "node": ">=0.10" } }, - "node_modules/expand-tilde": { +"node_modules/expand-tilde": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==", @@ -15670,7 +15670,7 @@ "version": "1.5.1", "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-1.5.1.tgz", "integrity": "sha512-yt5a1VCp2BF9CrsO689PCD5oXKP14MMhnOanQMvDn4BDpURYfzAlDVGC5fZrNQKtwn/eq3bcrxIwZ7D9QjVVRg==", - "peer": true, +"peer": true, "dependencies": { "@expo/config": "~8.1.0", "chalk": "^4.1.0", @@ -15687,7 +15687,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "peer": true, +"peer": true, "dependencies": { "color-convert": "^2.0.1" }, @@ -15702,7 +15702,7 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "peer": true, +"peer": true, "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -15718,7 +15718,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "peer": true, +"peer": true, "dependencies": { "color-name": "~1.1.4" }, @@ -15736,7 +15736,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/commander/-/commander-7.2.0.tgz", "integrity": "sha512-QrWXB+ZQSVPmIWIhtEO9H+gwHaMGYiF5ChvoJ+K9ZGHG/sVsa6yiesAD1GC/x46sET00Xlwo1u49RVVVzvcSkw==", - "peer": true, +"peer": true, "engines": { "node": ">= 10" } @@ -15745,7 +15745,7 @@ "version": "9.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "peer": true, +"peer": true, "dependencies": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", @@ -15760,7 +15760,7 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "peer": true, +"peer": true, "engines": { "node": ">=8" } @@ -15769,7 +15769,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "peer": true, +"peer": true, "dependencies": { "has-flag": "^4.0.0" }, @@ -15781,7 +15781,7 @@ "version": "2.0.0", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "peer": true, +"peer": true, "engines": { "node": ">= 10.0.0" } @@ -16771,7 +16771,7 @@ "node": ">=8" } }, - "node_modules/findup-sync": { +"node_modules/findup-sync": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-5.0.0.tgz", "integrity": "sha512-MzwXju70AuyflbgeOhzvQWAvvQdo1XL0A9bVvlXsYcFEBM87WR4OakL4OfZq+QRmr+duJubio+UtNQCPsVESzQ==", @@ -16878,7 +16878,7 @@ "node": ">=0.10.0" } }, - "node_modules/for-own": { +"node_modules/for-own": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==", @@ -17092,7 +17092,7 @@ "node": ">=6" } }, - "node_modules/getobject": { +"node_modules/getobject": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/getobject/-/getobject-1.0.2.tgz", "integrity": "sha512-2zblDBaFcb3rB4rF77XVnuINOE2h2k/OnqXAiy0IrTxUfV1iFp3la33oAQVY9pCpWU268WFYVt2t71hlMuLsOg==", @@ -17154,7 +17154,7 @@ "node": ">=10" } }, - "node_modules/global-modules": { +"node_modules/global-modules": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", @@ -17291,7 +17291,7 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, - "node_modules/grunt": { +"node_modules/grunt": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.6.1.tgz", "integrity": "sha512-/ABUy3gYWu5iBmrUSRBP97JLpQUm0GgVveDCp6t3yRNIoltIYw7rEj3g5y1o2PGPR2vfTRGa7WC/LZHLTXnEzA==", @@ -17367,7 +17367,7 @@ "resolved": "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz", "integrity": "sha512-9mDDwqVIma6OZX79ZlDACZl8sBm0TEnkf99zV3iMA4GzkIT/9hiqP5mY0HoT1iNLCrKc/R1HByV+yJfRWVJryQ==" }, - "node_modules/grunt-known-options": { +"node_modules/grunt-known-options": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/grunt-known-options/-/grunt-known-options-2.0.0.tgz", "integrity": "sha512-GD7cTz0I4SAede1/+pAbmJRG44zFLPipVtdL9o3vqx9IEyb7b4/Y3s7r6ofI3CchR5GvYJ+8buCSioDv5dQLiA==", @@ -17777,7 +17777,7 @@ "react-is": "^16.7.0" } }, - "node_modules/homedir-polyfill": { +"node_modules/homedir-polyfill": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", @@ -18161,7 +18161,7 @@ "node": ">= 0.4" } }, - "node_modules/interpret": { +"node_modules/interpret": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", "integrity": "sha512-CLM8SNMDu7C5psFCn6Wg/tgpj/bKAg7hc2gWqcuR9OD5Ft9PhBpIu8PLicPeis+xDd6YX2ncI8MCA64I9tftIA==", @@ -18196,7 +18196,7 @@ "node": ">= 0.10" } }, - "node_modules/is-absolute": { +"node_modules/is-absolute": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", @@ -18610,7 +18610,7 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-relative": { +"node_modules/is-relative": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", @@ -18713,7 +18713,7 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-unc-path": { +"node_modules/is-unc-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", @@ -22324,7 +22324,7 @@ "node": ">= 0.8.0" } }, - "node_modules/liftup": { +"node_modules/liftup": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/liftup/-/liftup-3.0.1.tgz", "integrity": "sha512-yRHaiQDizWSzoXk3APcA71eOI/UuhEkNN9DiW2Tt44mhYzX4joFoCZlxsSOF7RyeLlfqzFLQI1ngFq3ggMPhOw==", @@ -22402,7 +22402,7 @@ "url": "https://opencollective.com/parcel" } }, - "node_modules/lightningcss-darwin-x64": { +"node_modules/lightningcss-darwin-x64": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.19.0.tgz", "integrity": "sha512-Lif1wD6P4poaw9c/4Uh2z+gmrWhw/HtXFoeZ3bEsv6Ia4tt8rOJBdkfVaUJ6VXmpKHALve+iTyP2+50xY1wKPw==", @@ -23006,7 +23006,7 @@ "semver": "bin/semver" } }, - "node_modules/make-iterator": { +"node_modules/make-iterator": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", @@ -24420,14 +24420,16 @@ "mkdirp": "bin/cmd.js" } }, - "node_modules/mosip-inji-face-sdk": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/mosip-inji-face-sdk/-/mosip-inji-face-sdk-0.1.12.tgz", - "integrity": "sha512-lnoaa2lL0pS9u/9fwH4Q9OU2U56oqjXf2z4JjGxX80DQOqJGWvj49PfvPMYGFEfVucqIJyQBZUfvfpqfYO0+vw==", + "node_modules/mosip-mobileid-sdk": { + "version": "0.1.0", + "resolved": "git+ssh://git@github.com/mosip/mosip-mobileid-sdk.git#ff4647a6c949b0acf8f36ae968dcbd407df7fb83", + "license": "MIT", + "engines": { + "node": ">= 16.0.0" + }, "peerDependencies": { "react": "*", - "react-native": "*", - "react-native-fs": "*" + "react-native": "*" } }, "node_modules/ms": { @@ -24709,7 +24711,7 @@ "url": "https://github.com/sponsors/antelle" } }, - "node_modules/nopt": { +"node_modules/nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", "integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==", @@ -24959,7 +24961,7 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.defaults": { +"node_modules/object.defaults": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", "integrity": "sha512-c/K0mw/F11k4dEUBMW8naXUuBuhxRCfG7W+yFy8EcijU/rSmazOUd1XAEEe6bC0OuXY4HUKjTJv7xbxIMqdxrA==", @@ -25027,7 +25029,7 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.map": { +"node_modules/object.map": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", "integrity": "sha512-3+mAJu2PLfnSVGHwIWubpOFLscJANBKuB/6A4CxBstc4aqwQY0FWcsppuy4jU5GSB95yES5JHSI+33AWuS4k6w==", @@ -25365,7 +25367,7 @@ "node": ">=6" } }, - "node_modules/parse-filepath": { +"node_modules/parse-filepath": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", @@ -25391,7 +25393,7 @@ "node": ">=4" } }, - "node_modules/parse-passwd": { +"node_modules/parse-passwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", @@ -25703,7 +25705,7 @@ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, - "node_modules/path-root": { +"node_modules/path-root": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", @@ -26413,7 +26415,7 @@ } } }, - "node_modules/react-dom": { +"node_modules/react-dom": { "version": "16.13.1", "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.13.1.tgz", "integrity": "sha512-81PIMmVLnCNLO/fFOQxdQkvEq/+Hfpv24XNJfpyZhTRfO0QcmQIF/PgCa1zCOj2w1hrn12MFLyaJ/G0+Mxtfag==", @@ -26750,7 +26752,7 @@ "react-native": ">0.62.0" } }, - "node_modules/react-native-flipper-xstate/node_modules/ws": { +"node_modules/react-native-flipper-xstate/node_modules/ws": { "version": "7.5.9", "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", @@ -27613,7 +27615,7 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" }, - "node_modules/rechoir": { +"node_modules/rechoir": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", @@ -27864,7 +27866,7 @@ "node": ">=8" } }, - "node_modules/resolve-dir": { +"node_modules/resolve-dir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==", @@ -30201,7 +30203,7 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/unc-path-regex": { +"node_modules/unc-path-regex": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", @@ -30598,7 +30600,7 @@ "node": ">=10.12.0" } }, - "node_modules/v8flags": { +"node_modules/v8flags": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.2.0.tgz", "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==", @@ -38294,7 +38296,7 @@ "json-parse-even-better-errors": "^2.3.0", "lines-and-columns": "^1.1.6" } - }, +}, "typescript": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", @@ -38361,7 +38363,7 @@ "json-parse-even-better-errors": "^2.3.0", "lines-and-columns": "^1.1.6" } - }, +}, "typescript": { "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", @@ -38747,7 +38749,7 @@ "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz", "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ==" }, - "abbrev": { +"abbrev": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", @@ -38962,7 +38964,7 @@ "is-array-buffer": "^3.0.1" } }, - "array-each": { +"array-each": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/array-each/-/array-each-1.0.1.tgz", "integrity": "sha512-zHjL5SZa68hkKHBFBK6DJCTtr9sfTCPCaph/L7tMSLcTFgy+zX7E+6q5UArbtOtMBCtxdICpfTCspRse+ywyXA==", @@ -40771,7 +40773,7 @@ "resolved": "https://registry.npmjs.org/date-format/-/date-format-1.2.0.tgz", "integrity": "sha512-lAJqBmFzCLcDJdI9cEnJ7loSkLTh1PbIgZUndlzvYbf6NyFEr5n9rQhOwr6CIGwZqyQ3sYeQQiP9NOVQmgmRMA==" }, - "dateformat": { +"dateformat": { "version": "4.6.3", "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-4.6.3.tgz", "integrity": "sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==", @@ -41028,7 +41030,7 @@ "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==" }, - "detect-file": { +"detect-file": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/detect-file/-/detect-file-1.0.0.tgz", "integrity": "sha512-DtCOLG98P007x7wiiOmfI0fi3eIKyWiLTGJ2MDnVi/E04lWGbf+JzrRHMm0rgIIZJGtHpKpbVgLWHrv8xXpc3Q==", @@ -41209,7 +41211,7 @@ "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=" }, - "encoding": { +"encoding": { "version": "0.1.13", "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", @@ -41887,7 +41889,7 @@ "resolved": "https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz", "integrity": "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==" }, - "eventemitter2": { +"eventemitter2": { "version": "0.4.14", "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", "integrity": "sha512-K7J4xq5xAD5jHsGM5ReWXRTFa3JRGofHiMcVgQ8PRwgWxzjHpMWCIzsmyf60+mh8KLsqYPcjUMa0AC4hd6lPyQ==", @@ -42080,7 +42082,7 @@ } } }, - "expand-tilde": { +"expand-tilde": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/expand-tilde/-/expand-tilde-2.0.2.tgz", "integrity": "sha512-A5EmesHW6rfnZ9ysHQjPdJRni0SRar0tjtG5MNtm9n5TUvsYU8oozprtRD4AqHxcZWWlVuAmQo2nWKfN9oyjTw==", @@ -43163,7 +43165,7 @@ "version": "1.5.1", "resolved": "https://registry.npmjs.org/expo-modules-autolinking/-/expo-modules-autolinking-1.5.1.tgz", "integrity": "sha512-yt5a1VCp2BF9CrsO689PCD5oXKP14MMhnOanQMvDn4BDpURYfzAlDVGC5fZrNQKtwn/eq3bcrxIwZ7D9QjVVRg==", - "peer": true, +"peer": true, "requires": { "@expo/config": "~8.1.0", "chalk": "^4.1.0", @@ -43177,7 +43179,7 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "peer": true, +"peer": true, "requires": { "color-convert": "^2.0.1" } @@ -43186,7 +43188,7 @@ "version": "4.1.2", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "peer": true, +"peer": true, "requires": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -43196,7 +43198,7 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "peer": true, +"peer": true, "requires": { "color-name": "~1.1.4" } @@ -43217,7 +43219,7 @@ "version": "9.1.0", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz", "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==", - "peer": true, +"peer": true, "requires": { "at-least-node": "^1.0.0", "graceful-fs": "^4.2.0", @@ -43235,7 +43237,7 @@ "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "peer": true, +"peer": true, "requires": { "has-flag": "^4.0.0" } @@ -43817,7 +43819,7 @@ } } }, - "findup-sync": { +"findup-sync": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-5.0.0.tgz", "integrity": "sha512-MzwXju70AuyflbgeOhzvQWAvvQdo1XL0A9bVvlXsYcFEBM87WR4OakL4OfZq+QRmr+duJubio+UtNQCPsVESzQ==", @@ -43892,7 +43894,7 @@ "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", "integrity": "sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ==" }, - "for-own": { +"for-own": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/for-own/-/for-own-1.0.0.tgz", "integrity": "sha512-0OABksIGrxKK8K4kynWkQ7y1zounQxP+CWnyclVwj81KW3vlLlGUx57DKGcP/LH216GzqnstnPocF16Nxs0Ycg==", @@ -44039,7 +44041,7 @@ "resolved": "https://registry.npmjs.org/getenv/-/getenv-1.0.0.tgz", "integrity": "sha512-7yetJWqbS9sbn0vIfliPsFgoXMKn/YMF+Wuiog97x+urnSRRRZ7xB+uVkwGKzRgq9CDFfMQnE9ruL5DHv9c6Xg==" }, - "getobject": { +"getobject": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/getobject/-/getobject-1.0.2.tgz", "integrity": "sha512-2zblDBaFcb3rB4rF77XVnuINOE2h2k/OnqXAiy0IrTxUfV1iFp3la33oAQVY9pCpWU268WFYVt2t71hlMuLsOg==", @@ -44088,7 +44090,7 @@ "is-glob": "^4.0.3" } }, - "global-modules": { +"global-modules": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", @@ -44193,7 +44195,7 @@ } } }, - "grunt": { +"grunt": { "version": "1.6.1", "resolved": "https://registry.npmjs.org/grunt/-/grunt-1.6.1.tgz", "integrity": "sha512-/ABUy3gYWu5iBmrUSRBP97JLpQUm0GgVveDCp6t3yRNIoltIYw7rEj3g5y1o2PGPR2vfTRGa7WC/LZHLTXnEzA==", @@ -44307,7 +44309,7 @@ } } }, - "grunt-known-options": { +"grunt-known-options": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/grunt-known-options/-/grunt-known-options-2.0.0.tgz", "integrity": "sha512-GD7cTz0I4SAede1/+pAbmJRG44zFLPipVtdL9o3vqx9IEyb7b4/Y3s7r6ofI3CchR5GvYJ+8buCSioDv5dQLiA==", @@ -44570,7 +44572,7 @@ "react-is": "^16.7.0" } }, - "homedir-polyfill": { +"homedir-polyfill": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", @@ -44834,7 +44836,7 @@ "side-channel": "^1.0.4" } }, - "interpret": { +"interpret": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.1.0.tgz", "integrity": "sha512-CLM8SNMDu7C5psFCn6Wg/tgpj/bKAg7hc2gWqcuR9OD5Ft9PhBpIu8PLicPeis+xDd6YX2ncI8MCA64I9tftIA==", @@ -44863,7 +44865,7 @@ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==" }, - "is-absolute": { +"is-absolute": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", @@ -45135,7 +45137,7 @@ "has-tostringtag": "^1.0.0" } }, - "is-relative": { +"is-relative": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", @@ -45199,7 +45201,7 @@ "which-typed-array": "^1.1.11" } }, - "is-unc-path": { +"is-unc-path": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", @@ -47942,7 +47944,7 @@ "type-check": "~0.4.0" } }, - "liftup": { +"liftup": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/liftup/-/liftup-3.0.1.tgz", "integrity": "sha512-yRHaiQDizWSzoXk3APcA71eOI/UuhEkNN9DiW2Tt44mhYzX4joFoCZlxsSOF7RyeLlfqzFLQI1ngFq3ggMPhOw==", @@ -47994,7 +47996,7 @@ "integrity": "sha512-wIJmFtYX0rXHsXHSr4+sC5clwblEMji7HHQ4Ub1/CznVRxtCFha6JIt5JZaNf8vQrfdZnBxLLC6R8pC818jXqg==", "optional": true }, - "lightningcss-darwin-x64": { +"lightningcss-darwin-x64": { "version": "1.19.0", "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.19.0.tgz", "integrity": "sha512-Lif1wD6P4poaw9c/4Uh2z+gmrWhw/HtXFoeZ3bEsv6Ia4tt8rOJBdkfVaUJ6VXmpKHALve+iTyP2+50xY1wKPw==", @@ -48398,7 +48400,7 @@ } } }, - "make-iterator": { +"make-iterator": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", @@ -49542,11 +49544,9 @@ "minimist": "^1.2.6" } }, - "mosip-inji-face-sdk": { - "version": "0.1.12", - "resolved": "https://registry.npmjs.org/mosip-inji-face-sdk/-/mosip-inji-face-sdk-0.1.12.tgz", - "integrity": "sha512-lnoaa2lL0pS9u/9fwH4Q9OU2U56oqjXf2z4JjGxX80DQOqJGWvj49PfvPMYGFEfVucqIJyQBZUfvfpqfYO0+vw==", - "requires": {} + "mosip-mobileid-sdk": { + "version": "git+ssh://git@github.com/mosip/mosip-mobileid-sdk.git#ff4647a6c949b0acf8f36ae968dcbd407df7fb83", + "from": "mosip-mobileid-sdk@git://github.com/mosip/mosip-mobileid-sdk.git#IrisScan" }, "ms": { "version": "2.1.2", @@ -49764,7 +49764,7 @@ "resolved": "https://registry.npmjs.org/node-stream-zip/-/node-stream-zip-1.15.0.tgz", "integrity": "sha512-LN4fydt9TqhZhThkZIVQnF9cwjU3qmUH9h78Mx/K7d3VvfRqqwthLwJEUOEL0QPZ0XQmNN7be5Ggit5+4dq3Bw==" }, - "nopt": { +"nopt": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/nopt/-/nopt-3.0.6.tgz", "integrity": "sha512-4GUt3kSEYmk4ITxzB/b9vaIDfUVWN/Ml1Fwl11IlnIG2iaJ9O6WXZ9SrYM9NLI8OCBieN2Y8SWC2oJV0RQ7qYg==", @@ -49956,7 +49956,7 @@ "object-keys": "^1.1.1" } }, - "object.defaults": { +"object.defaults": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", "integrity": "sha512-c/K0mw/F11k4dEUBMW8naXUuBuhxRCfG7W+yFy8EcijU/rSmazOUd1XAEEe6bC0OuXY4HUKjTJv7xbxIMqdxrA==", @@ -50008,7 +50008,7 @@ "es-abstract": "^1.22.1" } }, - "object.map": { +"object.map": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", "integrity": "sha512-3+mAJu2PLfnSVGHwIWubpOFLscJANBKuB/6A4CxBstc4aqwQY0FWcsppuy4jU5GSB95yES5JHSI+33AWuS4k6w==", @@ -50256,7 +50256,7 @@ "callsites": "^3.0.0" } }, - "parse-filepath": { +"parse-filepath": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", "integrity": "sha512-FwdRXKCohSVeXqwtYonZTXtbGJKrn+HNyWDYVcp5yuJlesTwNH4rsmRZ+GrKAPJ5bLpRxESMeS+Rl0VCHRvB2Q==", @@ -50276,7 +50276,7 @@ "json-parse-better-errors": "^1.0.1" } }, - "parse-passwd": { +"parse-passwd": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", "integrity": "sha512-1Y1A//QUXEZK7YKz+rD9WydcE1+EuPr6ZBgKecAB8tmoW6UFv0NREVJe1p+jRxtThkcbbKkfwIbWJe/IeE6m2Q==", @@ -50505,7 +50505,7 @@ "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==" }, - "path-root": { +"path-root": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", "integrity": "sha512-QLcPegTHF11axjfojBIoDygmS2E3Lf+8+jI6wOVmNVenrKSo3mFdSGiIgdSHenczw3wPtlVMQaFVwGmM7BJdtg==", @@ -51920,7 +51920,7 @@ } } }, - "rechoir": { +"rechoir": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz", "integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==", @@ -52118,7 +52118,7 @@ "resolve-from": "^5.0.0" } }, - "resolve-dir": { +"resolve-dir": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", "integrity": "sha512-R7uiTjECzvOsWSfdM0QKFNBVFcK27aHOUwdvK53BcW8zqnGdYp0Fbj82cy54+2A4P2tFM22J5kRfe1R+lM/1yg==", @@ -53931,7 +53931,7 @@ "which-boxed-primitive": "^1.0.2" } }, - "unc-path-regex": { +"unc-path-regex": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", "integrity": "sha512-eXL4nmJT7oCpkZsHZUOJo8hcX3GbsiDOa0Qu9F646fi8dT3XuSVopVqAcEiVzSKKH7UoDti23wNX3qGFxcW5Qg==", @@ -54233,7 +54233,7 @@ "convert-source-map": "^1.6.0" } }, - "v8flags": { +"v8flags": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.2.0.tgz", "integrity": "sha512-mH8etigqMfiGWdeXpaaqGfs6BndypxusHHcv2qSHyZkGEznCd/qAXCWWRzeowtL54147cktFOC4P5y+kl8d8Jg==", diff --git a/package.json b/package.json index d09fef0eb..0074902a3 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "i18next": "^21.6.16", "iso-639-3": "^3.0.1", "jwt-decode": "^3.1.2", - "mosip-inji-face-sdk": "^0.1.12", + "mosip-mobileid-sdk": "git://github.com/mosip/mosip-mobileid-sdk.git#IrisScan", "node-forge": "^1.3.1", "node-jose": "^2.2.0", "patch-package": "^6.5.1", diff --git a/shared/commonprops/commonProps.ts b/shared/commonprops/commonProps.ts index 1a48ae07e..9764e0a34 100644 --- a/shared/commonprops/commonProps.ts +++ b/shared/commonprops/commonProps.ts @@ -1,4 +1,4 @@ -import {init} from 'mosip-inji-face-sdk'; +import {init} from 'mosip-mobileid-sdk'; import {changeCrendetialRegistry} from '../constants'; import {CACHED_API} from '../api'; @@ -18,7 +18,7 @@ export async function downloadModel() { const resp: string = injiProp != null ? injiProp.faceSdkModelUrl : null; if (resp != null) { for (let counter = 0; counter < maxRetry; counter++) { - var result = await init(resp, false); + var result = await init(resp + '/model.tflite', false); console.log('model download result is = ' + result); if (result) { break;