aba-pos-sdk-node 1.0.0 → 1.0.2

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
@@ -1,6 +1,6 @@
1
1
  # ABA POS SDK for Node.js
2
2
 
3
- An official Node.js Addons for ABA POS SDK developed by ABA Bank (Advanced Bank of Asia Ltd.). This package allows you to connect with the ABA POS terminal from these supported platforms: Windows (x64), macOS (x64), and Linux (x64).
3
+ An official Node.js Addons for ABA POS SDK developed by ABA Bank (Advanced Bank of Asia Ltd.). This package allows you to connect with the ABA POS terminal from these supported platforms: Windows (x64), macOS (x64, arm64), and Linux (x64).
4
4
 
5
5
  ## Driver Installation
6
6
  The driver might already come with Windows Update if you use Windows 10 or 11. To verify if you have
@@ -153,6 +153,16 @@ new Promise(async () => {
153
153
  });
154
154
  ```
155
155
 
156
+ ## Getting the Logs From the SDK:
157
+
158
+ You can also get the log from the SDK by following the sample code below:
159
+
160
+ ```agsl
161
+ // Set the directory where you want the SDK to keep all the log files.
162
+ // Here, it'll generate a directory 'ABA_Logs' inside the current directory.
163
+ await AbaPosSdk.setLogDirectoryPath('ABA_Logs');
164
+ ```
165
+
156
166
  ## Releasing resources used by the SDK:
157
167
 
158
168
  It's recommended to release the resources used by the SDK after you stop using it.
@@ -177,16 +187,6 @@ app.on('window-all-closed', async () => {
177
187
  });
178
188
  ```
179
189
 
180
- ## Getting the Logs From the SDK:
181
-
182
- You can also get the log from the SDK by following the sample code below:
183
-
184
- ```agsl
185
- // Set the directory where you want the SDK to keep all the log files.
186
- // Here, it'll generate a directory 'ABA_Logs' inside the current directory.
187
- await AbaPosSdk.setLogDirectoryPath('ABA_Logs');
188
- ```
189
-
190
190
  ## Exception Handling:
191
191
  If you want to handle the error in specific cases, you can also check these error codes from this class ```AbaQrSdkError``` below:
192
192
 
@@ -227,5 +227,6 @@ try {
227
227
  | -10003 | Memory error |
228
228
  | -10004 | Illegal state error |
229
229
 
230
+
230
231
  ## Other Available Functionalities
231
- To know more about other functionalities offered by ABA POS and more details about the request and response, please see the document ```ABA POS Integration Specification.pdf``` provided by the ABA Team. Please do not hesitate if you have any questions.
232
+ To know more about other functionalities offered by ABA POS and more details about the request and response, please see the document ```ABA POS Integration Specification.pdf``` provided by the ABA Team. Please do not hesitate to contact us if you have any questions.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aba-pos-sdk-node",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Node.js Addons for ABA POS SDK developed by ABA Bank. This package allows you to connect with the ABA POS terminal.",
5
5
  "main": "aba_pos_sdk.min.js",
6
6
  "type": "commonjs",
@@ -13,32 +13,25 @@
13
13
  "darwin"
14
14
  ],
15
15
  "cpu": [
16
- "x64"
16
+ "x64",
17
+ "arm64"
17
18
  ],
18
- "scripts": {
19
- "obfuscate": "terser aba_pos_sdk.js -o aba_pos_sdk.min.js --compress --mangle --mangle-props regex=/^_/ --keep-fnames --keep-classnames --toplevel --comments some",
20
- "test": "echo \"Error: no test specified\" && exit 1"
21
- },
22
19
  "author": "ABA Bank (Advanced Bank of Asia Ltd)",
23
20
  "license": "Commercial",
24
21
  "keywords": [
25
22
  "aba",
26
23
  "abapos",
27
24
  "abapossdk",
28
- "aba_pos",
29
- "aba_pos_sdk",
30
- "sdk",
25
+ "aba-pos",
26
+ "aba-pos-sdk",
31
27
  "ababank",
32
28
  "bank",
33
- "electron",
34
- "cambodia"
29
+ "cambodia",
30
+ "electron"
35
31
  ],
36
32
  "files": [
37
33
  "aba_pos_sdk.min.js",
38
34
  "addons/",
39
35
  "README.md"
40
- ],
41
- "devDependencies": {
42
- "terser": "^5.39.0"
43
- }
44
- }
36
+ ]
37
+ }