@regulaforensics/face-sdk 6.3.16-beta → 6.3.21-beta

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.
@@ -15,8 +15,8 @@
15
15
  "lint": "eslint"
16
16
  },
17
17
  "dependencies": {
18
- "@regulaforensics/face-sdk": "6.3.16-beta",
19
- "@regulaforensics/cordova-plugin-face-core-basic": "6.3.165",
18
+ "@regulaforensics/face-sdk": "6.3.21-beta",
19
+ "@regulaforensics/cordova-plugin-face-core-basic": "6.3.146",
20
20
  "@awesome-cordova-plugins/camera": "6.6.0",
21
21
  "@awesome-cordova-plugins/file": "6.6.0",
22
22
  "@awesome-cordova-plugins/dialogs": "6.6.0",
@@ -14,8 +14,8 @@
14
14
  "author": "Regula Forensics Inc.",
15
15
  "license": "commercial",
16
16
  "dependencies": {
17
- "@regulaforensics/face-sdk": "6.3.16-beta",
18
- "@regulaforensics/cordova-plugin-face-core-basic": "6.3.165",
17
+ "@regulaforensics/face-sdk": "6.3.21-beta",
18
+ "@regulaforensics/cordova-plugin-face-core-basic": "6.3.146",
19
19
  "cordova-android": "12.0.1",
20
20
  "cordova-ios": "7.0.1",
21
21
  "cordova-plugin-add-swift-support": "2.0.2",
@@ -16,8 +16,8 @@
16
16
  },
17
17
  "private": true,
18
18
  "dependencies": {
19
- "@regulaforensics/face-sdk": "6.3.16-beta",
20
- "@regulaforensics/cordova-plugin-face-core-basic": "6.3.165",
19
+ "@regulaforensics/face-sdk": "6.3.21-beta",
20
+ "@regulaforensics/cordova-plugin-face-core-basic": "6.3.146",
21
21
  "cordova-plugin-camera": "7.0.0",
22
22
  "@awesome-cordova-plugins/camera": "6.6.0",
23
23
  "@awesome-cordova-plugins/core": "6.6.0",
@@ -6,8 +6,8 @@
6
6
  2. Run `npm run setup` within this directory.
7
7
 
8
8
  3. Run the app:
9
- * Android: use command `npx react-native run-android`.
10
- * IOS: use command `npx react-native run-ios`.
9
+ * Android: use command `npm run android`.
10
+ * IOS: use command `npm run ios`.
11
11
 
12
12
  **Note**: this is just one way of running the app. You can also run it directly from Xcode and Android Studio, but in this case make sure that Metro Bundler is running(`npm start`).
13
13
 
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "face-sdk",
2
+ "name": "facesdk",
3
3
  "version": "1.0.0",
4
4
  "private": true,
5
5
  "scripts": {
@@ -12,8 +12,8 @@
12
12
  "test": "jest"
13
13
  },
14
14
  "dependencies": {
15
- "@regulaforensics/face-sdk": "6.3.16-beta",
16
- "@regulaforensics/react-native-face-core-basic": "6.3.165",
15
+ "@regulaforensics/face-sdk": "6.3.21-beta",
16
+ "@regulaforensics/react-native-face-core-basic": "6.3.146",
17
17
  "react": "18.3.1",
18
18
  "react-native": "0.75.3",
19
19
  "react-native-fs": "2.20.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/face-sdk",
3
- "version": "6.3.16-beta",
3
+ "version": "6.3.21-beta",
4
4
  "description": "This is an npm module for Regula Face SDK. It allows you to easily compaire faces using your phone's camera.",
5
5
  "main": "www/react-native/index.js",
6
6
  "module": "www/capacitor/index.js",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="face-sdk" version="6.3.16-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="face-sdk" version="6.3.21-beta" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>FaceSDK</name>
4
4
  <description>Cordova plugin for Regula Face SDK</description>
5
5
  <license>commercial</license>
@@ -143,11 +143,13 @@ export class FaceSDK {
143
143
 
144
144
  async initialize(params) {
145
145
  var response = await exec("initialize", [params?.config])
146
- await this._onInit()
147
146
 
148
147
  var jsonObject = JSON.parse(response)
149
148
  var success = jsonObject["success"]
150
149
  var error = jsonObject["error"]
150
+
151
+ if (success) await this._onInit()
152
+
151
153
  return [success, InitException.fromJson(error)]
152
154
  }
153
155
 
package/www/cordova.js CHANGED
@@ -2182,11 +2182,13 @@ class FaceSDK {
2182
2182
 
2183
2183
  async initialize(params) {
2184
2184
  var response = await (0,_internal_bridge__WEBPACK_IMPORTED_MODULE_0__.exec)("initialize", [params?.config])
2185
- await this._onInit()
2186
2185
 
2187
2186
  var jsonObject = JSON.parse(response)
2188
2187
  var success = jsonObject["success"]
2189
2188
  var error = jsonObject["error"]
2189
+
2190
+ if (success) await this._onInit()
2191
+
2190
2192
  return [success, _init_init_exception__WEBPACK_IMPORTED_MODULE_10__.InitException.fromJson(error)]
2191
2193
  }
2192
2194
 
@@ -143,11 +143,13 @@ export class FaceSDK {
143
143
 
144
144
  async initialize(params) {
145
145
  var response = await exec("initialize", [params?.config])
146
- await this._onInit()
147
146
 
148
147
  var jsonObject = JSON.parse(response)
149
148
  var success = jsonObject["success"]
150
149
  var error = jsonObject["error"]
150
+
151
+ if (success) await this._onInit()
152
+
151
153
  return [success, InitException.fromJson(error)]
152
154
  }
153
155