@capturebridge/sdk 0.18.2 → 0.19.0

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/CHANGELOG.md CHANGED
@@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.19.0] - 2023-11-13
9
+
10
+ ### Added
11
+
12
+ - Added `Verifone.info()` method and device info SDK examples.
13
+
14
+ ## [0.18.3] - 2023-10-25
15
+
16
+ ### Fixed
17
+
18
+ - Fixed some bugs in error handling for the Verifone SDK examples.
19
+ - Now checking for a valid API response when invoking `Device.clear()`
20
+
8
21
  ## [0.18.2] - 2024-10-23
9
22
 
10
23
  ### Added
package/Device.js CHANGED
@@ -342,6 +342,7 @@ class Device {
342
342
  url += `?backlight=${backlight}`
343
343
  }
344
344
  const response = await fetch(url, DELETE)
345
+ await checkResponse(response)
345
346
  return await response.json()
346
347
  }
347
348
 
package/Verifone.js CHANGED
@@ -135,6 +135,22 @@ export class Verifone extends SignatureTablet {
135
135
  throw new Error('stopFeed() is not implemented for the Verifone Plugin')
136
136
  }
137
137
 
138
+ /**
139
+ * Get detailed information about a device
140
+ *
141
+ * @description Returns detailed information about a device.
142
+ *
143
+ * @async
144
+ * @method
145
+ * @returns {object} Device info
146
+ * @example
147
+ * const info = await device.info()
148
+ */
149
+ async info (deviceOpt) {
150
+ const device = await this.setupDevice(deviceOpt)
151
+ return device.info()
152
+ }
153
+
138
154
  /**
139
155
  * Cancel a pending device operation
140
156
  *
package/Version.js CHANGED
@@ -4,5 +4,5 @@
4
4
  * @constant
5
5
  * @type {string}
6
6
  */
7
- const VERSION = '0.18.2'
7
+ const VERSION = '0.19.0'
8
8
  export default VERSION
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capturebridge/sdk",
3
- "version": "0.18.2",
3
+ "version": "0.19.0",
4
4
  "description": "Capture Bridge JavaScript SDK for web applications",
5
5
  "type": "module",
6
6
  "types": "types.d.ts",