label-printer 0.7.3 → 0.7.4
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 +7 -3
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -277,8 +277,14 @@ print/display command sequences.
|
|
|
277
277
|
- **`Printer`**
|
|
278
278
|
- `print(label, sets, gap, copiesPerSet?, direction?, mirror?, gapOffset?)`
|
|
279
279
|
- `display(label, direction?, mirror?)`
|
|
280
|
+
- `getModelname()`
|
|
281
|
+
- `getStatus()`
|
|
280
282
|
- `close()`
|
|
281
283
|
|
|
284
|
+
- **`PrinterStatus`**
|
|
285
|
+
- String union of possible status values returned by `printer.getStatus()`.
|
|
286
|
+
- Access via `printers.PrinterStatus`.
|
|
287
|
+
|
|
282
288
|
## Notes
|
|
283
289
|
|
|
284
290
|
### Useful units
|
|
@@ -343,6 +349,4 @@ Font notes:
|
|
|
343
349
|
- Make changes on feature branch.
|
|
344
350
|
- Run `pnpm changeset` on feature branch to create change.
|
|
345
351
|
- Merge feature branch into main.
|
|
346
|
-
-
|
|
347
|
-
- PR is automatically created on push, merge it to trigger publish
|
|
348
|
-
- Note: If there are unpublished changes on main and the release fails, it will be run again on the next push to main, no need to start again from the first step
|
|
352
|
+
- Changeset will create a PR, merge it to trigger publish
|
package/dist/index.d.mts
CHANGED
|
@@ -991,8 +991,9 @@ type index_Printer = Printer;
|
|
|
991
991
|
declare const index_Printer: typeof Printer;
|
|
992
992
|
type index_PrinterService = PrinterService;
|
|
993
993
|
declare const index_PrinterService: typeof PrinterService;
|
|
994
|
+
type index_PrinterStatus = PrinterStatus;
|
|
994
995
|
declare namespace index {
|
|
995
|
-
export { index_Printer as Printer, index_PrinterService as PrinterService };
|
|
996
|
+
export { index_Printer as Printer, index_PrinterService as PrinterService, type index_PrinterStatus as PrinterStatus };
|
|
996
997
|
}
|
|
997
998
|
|
|
998
999
|
export { index$2 as commands, index$1 as labels, index as printers };
|
package/dist/index.d.ts
CHANGED
|
@@ -991,8 +991,9 @@ type index_Printer = Printer;
|
|
|
991
991
|
declare const index_Printer: typeof Printer;
|
|
992
992
|
type index_PrinterService = PrinterService;
|
|
993
993
|
declare const index_PrinterService: typeof PrinterService;
|
|
994
|
+
type index_PrinterStatus = PrinterStatus;
|
|
994
995
|
declare namespace index {
|
|
995
|
-
export { index_Printer as Printer, index_PrinterService as PrinterService };
|
|
996
|
+
export { index_Printer as Printer, index_PrinterService as PrinterService, type index_PrinterStatus as PrinterStatus };
|
|
996
997
|
}
|
|
997
998
|
|
|
998
999
|
export { index$2 as commands, index$1 as labels, index as printers };
|