@regulaforensics/react-native-document-reader-api 9.8.762-rc → 9.8.763-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.
@@ -10,7 +10,7 @@
10
10
  "test": "jest"
11
11
  },
12
12
  "dependencies": {
13
- "@regulaforensics/react-native-document-reader-api": "9.8.762-rc",
13
+ "@regulaforensics/react-native-document-reader-api": "9.8.763-rc",
14
14
  "@regulaforensics/react-native-document-reader-core-fullauthrfid": "9.8.3256-rc",
15
15
  "@rneui/base": "4.0.0-rc.7",
16
16
  "@rneui/themed": "4.0.0-rc.7",
@@ -20,13 +20,14 @@
20
20
  "react-native-image-picker": "7.2.3",
21
21
  "react-native-progress": "5.0.0",
22
22
  "react-native-radio-buttons-group": "3.0.5",
23
- "react-native-vector-icons": "10.2.0"
23
+ "react-native-vector-icons": "10.2.0",
24
+ "image-size": "file:vendor/image-size-metro-compat"
24
25
  },
25
26
  "overrides": {
26
27
  "fast-xml-parser": "^5.5.8",
27
28
  "js-yaml": "^4.1.1",
28
29
  "brace-expansion": "^5.0.9",
29
- "image-size": "npm:image-size-next@2.1.1",
30
+ "image-size": "$image-size",
30
31
  "glob@7.2.3": {
31
32
  "minimatch": "^10.2.6"
32
33
  }
@@ -0,0 +1,16 @@
1
+ const fs = require('node:fs')
2
+ const next = require('image-size-next')
3
+
4
+ function imageSize(input) {
5
+ const data = typeof input === 'string'
6
+ ? fs.readFileSync(input)
7
+ : input
8
+
9
+ return next.imageSize(data)
10
+ }
11
+
12
+ module.exports = imageSize
13
+ module.exports.default = imageSize
14
+ module.exports.imageSize = imageSize
15
+ module.exports.disableTypes = next.disableTypes
16
+ module.exports.types = next.types
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "image-size",
3
+ "version": "2.1.1-compat.0",
4
+ "main": "index.cjs",
5
+ "dependencies": {
6
+ "image-size-next": "2.1.1"
7
+ }
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/react-native-document-reader-api",
3
- "version": "9.8.762-rc",
3
+ "version": "9.8.763-rc",
4
4
  "description": "React Native module for reading and validation of identification documents (API framework)",
5
5
  "main": "index.js",
6
6
  "scripts": {