@regulaforensics/document-reader 9.7.935-nightly → 9.7.937-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.
@@ -3,41 +3,43 @@
3
3
  "scripts": {
4
4
  "setup": "scripts/setup.sh",
5
5
  "ios": "scripts/ios.sh",
6
- "android": "scripts/android.sh",
7
- "postinstall": "patch-package"
6
+ "android": "scripts/android.sh"
8
7
  },
9
8
  "dependencies": {
10
- "@angular-devkit/build-angular": "^22.0.5",
11
- "@angular/cli": "^22.0.5",
12
- "@angular/common": "^22.0.5",
13
- "@angular/compiler-cli": "^22.0.5",
14
- "@angular/core": "^22.0.5",
15
- "@angular/forms": "^22.0.5",
16
- "@angular/platform-browser-dynamic": "^22.0.5",
17
- "@angular/router": "^22.0.5",
18
- "@ionic/angular": "^8.8.13",
9
+ "@angular-devkit/build-angular": "^21.2.16",
10
+ "@angular/cli": "^21.2.16",
11
+ "@angular/common": "^21.2.17",
12
+ "@angular/compiler-cli": "^21.2.17",
13
+ "@angular/core": "^21.2.17",
14
+ "@angular/forms": "^21.2.17",
15
+ "@angular/platform-browser-dynamic": "^21.2.17",
16
+ "@angular/router": "^21.2.17",
17
+ "@ionic/angular": "^8.8.11",
19
18
  "@ionic/cordova-builders": "^12.3.0",
20
- "@awesome-cordova-plugins/camera": "^9.2.0",
21
- "@awesome-cordova-plugins/file": "^9.2.0",
22
- "@regulaforensics/document-reader": "9.7.935-nightly",
19
+ "@awesome-cordova-plugins/camera": "^8.1.0",
20
+ "@awesome-cordova-plugins/file": "^8.1.0",
21
+ "@regulaforensics/document-reader": "9.7.937-rc",
23
22
  "@regulaforensics/document-reader-core-fullauthrfid": "9.6.2444",
24
23
  "@regulaforensics/document-reader-btdevice": "9.6.55",
25
- "cordova-android": "^15.0.0",
26
- "cordova-ios": "^8.1.1",
24
+ "cordova-android": "^14.0.1",
25
+ "cordova-ios": "^7.1.1",
27
26
  "cordova-plugin-camera": "^8.0.0",
28
27
  "cordova-plugin-file": "^8.1.3",
29
- "cordova-plugin-ionic-webview": "^5.0.1",
30
- "patch-package": "^8.0.1"
28
+ "cordova-plugin-ionic-webview": "^5.0.1"
31
29
  },
32
30
  "overrides": {
33
- "@babel/core": "^7.29.0",
34
31
  "ajv": "^8.18.0",
35
- "esbuild": "^0.28.1",
36
- "http-proxy-middleware": "^3.0.7",
37
- "picomatch": "^4.0.4",
38
32
  "serialize-javascript": "^7.0.4",
33
+ "undici": "^7.24.0",
34
+ "picomatch": "^4.0.4",
35
+ "postcss": "^8.5.10",
39
36
  "uuid": "^14.0.0",
40
- "webpack-dev-server": "^5.2.4"
37
+ "vite": "^7.3.2",
38
+ "webpack-dev-server": "^5.2.4",
39
+ "@babel/core": "^7.29.0",
40
+ "esbuild": "^0.28.1",
41
+ "http-proxy-middleware": "^3.0.7",
42
+ "piscina": "^5.2.0"
41
43
  },
42
44
  "cordova": {
43
45
  "plugins": {
@@ -1,11 +1,8 @@
1
1
  #!/usr/bin/env bash
2
- set -e
3
2
 
4
- if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
3
+ if [[ $npm_config_o || $npm_config_open ]]; then
5
4
  ionic cordova build android
6
5
  open -a 'Android Studio' platforms/android
7
6
  else
8
7
  ionic cordova run android
9
8
  fi
10
-
11
- exit 0
@@ -1,11 +1,8 @@
1
1
  #!/usr/bin/env bash
2
- set -e
3
2
 
4
- if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
3
+ if [[ $npm_config_o || $npm_config_open ]]; then
5
4
  ionic cordova prepare ios
6
- open platforms/ios/App.xcworkspace
5
+ open platforms/ios/Document.xcworkspace
7
6
  else
8
7
  ionic cordova run ios
9
8
  fi
10
-
11
- exit 0
@@ -6,5 +6,3 @@ ionic cordova prepare || {
6
6
  pod repo update
7
7
  ionic cordova prepare
8
8
  }
9
-
10
- exit 0
@@ -5,7 +5,7 @@
5
5
  "compilerOptions": {
6
6
  "types": [],
7
7
  "module": "esnext",
8
- "moduleResolution": "bundler",
8
+ "moduleResolution": "node",
9
9
  "experimentalDecorators": true,
10
10
  "target": "es2022",
11
11
  "jsx": "react-jsx",
@@ -9,7 +9,7 @@
9
9
  * IOS: `npm run ios`.
10
10
  * Android: `npm run android`.
11
11
 
12
- **Note**: this is just one way of running the app. You can also pass `-- -o` or `-- --open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE. Just don't forget to make sure that Metro Bundler is running(`npm start`).
12
+ **Note**: this is just one way of running the app. You can also pass `-o` or `--open` argument to the command, and this will open Xcode/Android Studio, then run the app directly from the IDE. Overall, this is a more consistent way, so if you're having troubles running the app from terminal, try running it from the IDE. Just don't forget to make sure that Metro Bundler is running(`npm start`).
13
13
 
14
14
  ## Additional examples
15
15
 
@@ -8,7 +8,7 @@
8
8
  "start": "expo start"
9
9
  },
10
10
  "dependencies": {
11
- "@regulaforensics/document-reader": "9.7.935-nightly",
11
+ "@regulaforensics/document-reader": "9.7.937-rc",
12
12
  "@regulaforensics/document-reader-core-fullauthrfid": "9.6.2444",
13
13
  "@regulaforensics/document-reader-btdevice": "9.6.55",
14
14
  "react-native": "^0.81.4",
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env bash
2
- set -e
3
2
 
4
3
  adb reverse tcp:8081 tcp:8081 >/dev/null || :
5
- if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
4
+ if [[ $npm_config_o || $npm_config_open ]]; then
6
5
  open -a 'Android Studio' android
7
6
  # check if metro is already running
8
- [[ -z $(pgrep -f 'expo start') ]] && npm start
7
+ if ! pgrep -f "expo start" >/dev/null; then
8
+ watchman shutdown-server # fix potential errors
9
+ npm start
10
+ fi
9
11
  else
10
12
  expo run:android --device
11
13
  fi
12
-
13
- exit 0
@@ -1,12 +1,12 @@
1
1
  #!/usr/bin/env bash
2
- set -e
3
2
 
4
- if [[ " $* " == *" --open "* ]] || [[ " $* " == *" -o "* ]]; then
3
+ if [[ $npm_config_o || $npm_config_open ]]; then
5
4
  open ios/Document.xcworkspace
6
5
  # check if metro is already running
7
- [[ -z $(pgrep -f 'expo start') ]] && npm start
6
+ if ! pgrep -f "expo start" > /dev/null; then
7
+ watchman shutdown-server # fix potential errors
8
+ npm start
9
+ fi
8
10
  else
9
11
  npx expo run:ios --device
10
12
  fi
11
-
12
- exit 0
@@ -6,5 +6,3 @@ expo prebuild
6
6
 
7
7
  mkdir -p android/app/src/main/assets/Regula
8
8
  mv android/app/src/main/res/raw/db.dat android/app/src/main/assets/Regula/
9
-
10
- exit 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/document-reader",
3
- "version": "9.7.935-nightly",
3
+ "version": "9.7.937-rc",
4
4
  "description": "This is an npm module for Regula Document Reader SDK. It allows you to read various kinds of identification documents 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="@regulaforensics/document-reader" version="9.7.935-nightly" xmlns="http://apache.org/cordova/ns/plugins/1.0">
2
+ <plugin id="@regulaforensics/document-reader" version="9.7.937-rc" xmlns="http://apache.org/cordova/ns/plugins/1.0">
3
3
  <name>DocumentReader</name>
4
4
  <description>Cordova plugin for Regula Document Reader SDK</description>
5
5
  <license>commercial</license>
@@ -29,7 +29,7 @@
29
29
  <source url="https://github.com/regulaforensics/podspecs.git" />
30
30
  </config>
31
31
  <pods>
32
- <pod name="DocumentReaderNightly" spec="9.7.6707" />
32
+ <pod name="DocumentReaderStage" spec="9.7.6711" />
33
33
  </pods>
34
34
  </podspec>
35
35
  </platform>
@@ -13,9 +13,12 @@
13
13
  },
14
14
  "..": {
15
15
  "name": "@regulaforensics/document-reader",
16
- "version": "1.0.0",
16
+ "version": "9.7.937-rc",
17
17
  "dev": true,
18
- "license": "commercial"
18
+ "license": "commercial",
19
+ "dependencies": {
20
+ "@expo/config-plugins": "^10.0.0"
21
+ }
19
22
  },
20
23
  "node_modules/@esbuild/aix-ppc64": {
21
24
  "version": "0.25.9",
@@ -1,23 +0,0 @@
1
- diff --git a/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m b/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
2
- index 2acb99b..900a04c 100644
3
- --- a/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
4
- +++ b/node_modules/cordova-plugin-ionic-webview/src/ios/CDVWKWebViewEngine.m
5
- @@ -731,6 +731,18 @@ - (BOOL)defaultResourcePolicyForURL:(NSURL*)url
6
- return YES;
7
- }
8
-
9
- + // Allow internal local-server navigation even when no plugin overrides the request.
10
- + NSURL *localServerUrl = [NSURL URLWithString:self.CDV_LOCAL_SERVER];
11
- + if (localServerUrl != nil && url != nil) {
12
- + NSString *localScheme = localServerUrl.scheme.lowercaseString;
13
- + NSString *localHost = localServerUrl.host.lowercaseString;
14
- + NSString *urlScheme = url.scheme.lowercaseString;
15
- + NSString *urlHost = url.host.lowercaseString;
16
- + if ([localScheme isEqualToString:urlScheme] && [localHost isEqualToString:urlHost]) {
17
- + return YES;
18
- + }
19
- + }
20
- +
21
- return NO;
22
- }
23
-