scandit-react-native-datacapture-core 7.5.0-beta.2 → 7.5.1

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.
@@ -68,7 +68,7 @@ if (file( "${rootProject.projectDir}/build-test.gradle").exists()) {
68
68
  }
69
69
 
70
70
  dependencies {
71
- def sdk_version = "7.5.0-beta.2"
71
+ def sdk_version = "7.5.1"
72
72
 
73
73
  println("Version of the native sdk used in this build: ${safeExtGet('global_sdk_version', sdk_version)}")
74
74
  if (findProject(':scandit-datacapture-frameworks-core') != null) {
package/dist/core.js CHANGED
@@ -463,6 +463,10 @@ const advancedNativeProxyHook = {
463
463
  * @param prop
464
464
  */
465
465
  get(advancedNativeProxy, prop) {
466
+ // Early return if prop is not a string
467
+ if (typeof prop !== 'string') {
468
+ return undefined;
469
+ }
466
470
  // Important: $ and on$ are required since if they are not added all
467
471
  // properties present on AdvancedNativeProxy will be redirected to the
468
472
  // advancedNativeProxy._call, which will call native even for the own
@@ -1997,7 +2001,7 @@ class DataCaptureContextSettings extends DefaultSerializeable {
1997
2001
  }
1998
2002
  }
1999
2003
  __decorate([
2000
- nameForSerialization('frameSettings')
2004
+ nameForSerialization('frameDataSettings')
2001
2005
  ], DataCaptureContextSettings.prototype, "_frameSettings", void 0);
2002
2006
 
2003
2007
  class OpenSourceSoftwareLicenseInfo {
@@ -3460,6 +3464,10 @@ const advancedInstanceAwareNativeProxyHook = {
3460
3464
  * @param prop
3461
3465
  */
3462
3466
  get(advancedNativeProxy, prop) {
3467
+ // Early return if prop is not a string
3468
+ if (typeof prop !== 'string') {
3469
+ return undefined;
3470
+ }
3463
3471
  // Important: $ and on$ are required since if they are not added all
3464
3472
  // properties present on AdvancedNativeProxy will be redirected to the
3465
3473
  // advancedNativeProxy._call, which will call native even for the own
@@ -3584,6 +3592,10 @@ const nativeProxyHook = {
3584
3592
  * @param prop
3585
3593
  */
3586
3594
  get(nativeProxy, prop) {
3595
+ // Early return if prop is not a string
3596
+ if (typeof prop !== 'string') {
3597
+ return undefined;
3598
+ }
3587
3599
  // Important: $ and on$ are required since if they are not added all
3588
3600
  // properties present on AdvancedNativeProxy will be redirected to the
3589
3601
  // advancedNativeProxy._call, which will call native even for the own