natively 2.15.14 → 2.15.15

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.
@@ -72,7 +72,7 @@ export declare class NativelyBluetoothPrinter {
72
72
  * @callback {Array<{service_id: string, characteristics: string[]}>} [response.services] - List of services and characteristics
73
73
  * @callback {string} [response.message] - Additional information or error message
74
74
  */
75
- discoverService(callback: Function): void;
75
+ discoverService(callback: Function, deviceId: string): void;
76
76
  /**
77
77
  * Sends data to the connected printer.
78
78
  * @param payload Comma-separated byte values to print
@@ -93,8 +93,10 @@ export class NativelyBluetoothPrinter {
93
93
  * @callback {Array<{service_id: string, characteristics: string[]}>} [response.services] - List of services and characteristics
94
94
  * @callback {string} [response.message] - Additional information or error message
95
95
  */
96
- discoverService(callback) {
97
- globalContext === null || globalContext === void 0 || globalContext.natively.trigger(this.id, 0, callback, "discover_service");
96
+ discoverService(callback, deviceId) {
97
+ globalContext === null || globalContext === void 0 || globalContext.natively.trigger(this.id, 0, callback, "discover_service", {
98
+ device_id: deviceId
99
+ });
98
100
  }
99
101
 
100
102
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "natively",
3
- "version": "2.15.14",
3
+ "version": "2.15.15",
4
4
  "description": "Natively SDK for building native-like web applications",
5
5
  "type": "module",
6
6
  "exports": {