react-native-rdservice-fingerprintscanner 1.1.2 → 1.1.3

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.
package/README.md CHANGED
@@ -69,6 +69,7 @@ isWhitelisted | true or false | iT is about the Device is Approved or not. ```tr
69
69
  rdServiceInfoJson |JSON DATA | The device returns XML DATA of Device Information. this parameter contains converted JSON DATA of XML DATA
70
70
  rdServiceInfoXML | XML DATA | Device Information
71
71
  rdServicePackage | Device Package
72
+ message | Message about Success or Failure
72
73
 
73
74
 
74
75
 
@@ -82,6 +83,8 @@ errInfo | Error Message according to the ERROR CODE | Refer [UIDAI Document](htt
82
83
  pidDataJson |JSON DATA | The device returns PID DATA of Captured Fingerprint. this parameter contains converted JSON pidData of XML pidData
83
84
  pidDataXML | XML DATA | pidData Captured Fingerprint
84
85
  rdServicePackage | Device Package
86
+ message | Message about Success or Failure
87
+
85
88
 
86
89
 
87
90
  ## Contributing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-rdservice-fingerprintscanner",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "FingerPrint Scanner RD Service",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
package/src/index.js CHANGED
@@ -17,7 +17,7 @@ const RdserviceFingerprintscanner = NativeModules.RdserviceFingerprintscanner
17
17
  }
18
18
  );
19
19
 
20
- export function getDeviceInfo() {
20
+ function getDeviceInfo() {
21
21
  return new Promise((resolve, reject) => {
22
22
  RdserviceFingerprintscanner.getDeviceInfo()
23
23
  .then((res) => {
@@ -45,7 +45,7 @@ export function getDeviceInfo() {
45
45
  });
46
46
  }
47
47
 
48
- export function captureFinger(pidOptions) {
48
+ function captureFinger(pidOptions) {
49
49
  return new Promise((resolve, reject) => {
50
50
  RdserviceFingerprintscanner.captureFinger(pidOptions)
51
51
  .then((res) => {
@@ -65,3 +65,8 @@ export function captureFinger(pidOptions) {
65
65
  });
66
66
  });
67
67
  }
68
+
69
+ module.exports = {
70
+ getDeviceInfo,
71
+ captureFinger
72
+ }