@rdlabo/capacitor-brotherprint 2.0.0-1 → 2.0.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/dist/docs.json CHANGED
@@ -114,12 +114,12 @@
114
114
  },
115
115
  {
116
116
  "name": "addListener",
117
- "signature": "(eventName: 'onPrintFailedCommunication', listenerFunc: () => void) => PluginListenerHandle",
117
+ "signature": "(eventName: 'onIpAddressAvailable', listenerFunc: () => void) => PluginListenerHandle",
118
118
  "parameters": [
119
119
  {
120
120
  "name": "eventName",
121
121
  "docs": "",
122
- "type": "'onPrintFailedCommunication'"
122
+ "type": "'onIpAddressAvailable'"
123
123
  },
124
124
  {
125
125
  "name": "listenerFunc",
@@ -133,21 +133,21 @@
133
133
  "complexTypes": [
134
134
  "PluginListenerHandle"
135
135
  ],
136
- "slug": "addlisteneronprintfailedcommunication"
136
+ "slug": "addlisteneronipaddressavailable"
137
137
  },
138
138
  {
139
139
  "name": "addListener",
140
- "signature": "(eventName: 'onPrintError', listenerFunc: () => void) => PluginListenerHandle",
140
+ "signature": "(eventName: 'onPrintFailedCommunication', listenerFunc: (info: { value: string; }) => void) => PluginListenerHandle",
141
141
  "parameters": [
142
142
  {
143
143
  "name": "eventName",
144
144
  "docs": "",
145
- "type": "'onPrintError'"
145
+ "type": "'onPrintFailedCommunication'"
146
146
  },
147
147
  {
148
148
  "name": "listenerFunc",
149
149
  "docs": "",
150
- "type": "() => void"
150
+ "type": "(info: { value: string; }) => void"
151
151
  }
152
152
  ],
153
153
  "returns": "PluginListenerHandle",
@@ -156,21 +156,21 @@
156
156
  "complexTypes": [
157
157
  "PluginListenerHandle"
158
158
  ],
159
- "slug": "addlisteneronprinterror"
159
+ "slug": "addlisteneronprintfailedcommunication"
160
160
  },
161
161
  {
162
162
  "name": "addListener",
163
- "signature": "(eventName: 'onIpAddressAvailable', listenerFunc: () => void) => PluginListenerHandle",
163
+ "signature": "(eventName: 'onPrintError', listenerFunc: (info: { value: string; }) => void) => PluginListenerHandle",
164
164
  "parameters": [
165
165
  {
166
166
  "name": "eventName",
167
167
  "docs": "",
168
- "type": "'onIpAddressAvailable'"
168
+ "type": "'onPrintError'"
169
169
  },
170
170
  {
171
171
  "name": "listenerFunc",
172
172
  "docs": "",
173
- "type": "() => void"
173
+ "type": "(info: { value: string; }) => void"
174
174
  }
175
175
  ],
176
176
  "returns": "PluginListenerHandle",
@@ -179,7 +179,7 @@
179
179
  "complexTypes": [
180
180
  "PluginListenerHandle"
181
181
  ],
182
- "slug": "addlisteneronipaddressavailable"
182
+ "slug": "addlisteneronprinterror"
183
183
  }
184
184
  ],
185
185
  "properties": []
@@ -8,9 +8,13 @@ export interface BrotherPrintPlugin {
8
8
  addListener(eventName: 'onPrint', listenerFunc: () => void): PluginListenerHandle;
9
9
  addListener(eventName: 'onBLEAvailable', listenerFunc: () => void): PluginListenerHandle;
10
10
  addListener(eventName: 'onBLEAvailable', listenerFunc: () => void): PluginListenerHandle;
11
- addListener(eventName: 'onPrintFailedCommunication', listenerFunc: () => void): PluginListenerHandle;
12
- addListener(eventName: 'onPrintError', listenerFunc: () => void): PluginListenerHandle;
13
11
  addListener(eventName: 'onIpAddressAvailable', listenerFunc: () => void): PluginListenerHandle;
12
+ addListener(eventName: 'onPrintFailedCommunication', listenerFunc: (info: {
13
+ value: string;
14
+ }) => void): PluginListenerHandle;
15
+ addListener(eventName: 'onPrintError', listenerFunc: (info: {
16
+ value: string;
17
+ }) => void): PluginListenerHandle;
14
18
  }
15
19
  export interface BrotherPrintOptions {
16
20
  encodedImage: string;
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import { PluginListenerHandle } from '@capacitor/core';\n\nexport interface BrotherPrintPlugin {\n printImage(options: BrotherPrintOptions): Promise<{ value: boolean }>;\n searchWiFiPrinter(): Promise<void>;\n searchBLEPrinter(): Promise<void>;\n\n addListener(\n eventName: 'onPrint',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onBLEAvailable',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onBLEAvailable',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onPrintFailedCommunication',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onPrintError',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onIpAddressAvailable',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n}\n\nexport interface BrotherPrintOptions {\n encodedImage: string;\n printerType: 'QL-820NWB' | 'QL-800';\n numberOfCopies: number;\n labelNameIndex: 16 | 38;\n ipAddress?: string;\n localName?: string;\n}\n"]}
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import { PluginListenerHandle } from '@capacitor/core';\n\nexport interface BrotherPrintPlugin {\n printImage(options: BrotherPrintOptions): Promise<{ value: boolean }>;\n searchWiFiPrinter(): Promise<void>;\n searchBLEPrinter(): Promise<void>;\n\n addListener(\n eventName: 'onPrint',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onBLEAvailable',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onBLEAvailable',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onIpAddressAvailable',\n listenerFunc: () => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onPrintFailedCommunication',\n listenerFunc: (info: { value: string }) => void,\n ): PluginListenerHandle;\n\n addListener(\n eventName: 'onPrintError',\n listenerFunc: (info: { value: string }) => void,\n ): PluginListenerHandle;\n}\n\nexport interface BrotherPrintOptions {\n encodedImage: string;\n printerType: 'QL-820NWB' | 'QL-800';\n numberOfCopies: number;\n labelNameIndex: 16 | 38;\n ipAddress?: string;\n localName?: string;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdlabo/capacitor-brotherprint",
3
- "version": "2.0.0-1",
3
+ "version": "2.0.0-2",
4
4
  "description": "Capacitor plugin for Brother Print SDK",
5
5
  "main": "dist/plugin.js",
6
6
  "module": "dist/esm/index.js",