label-printer 0.7.2 → 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 CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  > :warning: `label-printer` is still under heavy development and is subject to frequent API changes
4
4
 
5
+
5
6
  This package provides a TypeScript/JavaScript API to:
6
7
 
7
8
  - **Build labels** in a printer-language-independent way
@@ -276,8 +277,14 @@ print/display command sequences.
276
277
  - **`Printer`**
277
278
  - `print(label, sets, gap, copiesPerSet?, direction?, mirror?, gapOffset?)`
278
279
  - `display(label, direction?, mirror?)`
280
+ - `getModelname()`
281
+ - `getStatus()`
279
282
  - `close()`
280
283
 
284
+ - **`PrinterStatus`**
285
+ - String union of possible status values returned by `printer.getStatus()`.
286
+ - Access via `printers.PrinterStatus`.
287
+
281
288
  ## Notes
282
289
 
283
290
  ### Useful units
@@ -342,6 +349,4 @@ Font notes:
342
349
  - Make changes on feature branch.
343
350
  - Run `pnpm changeset` on feature branch to create change.
344
351
  - Merge feature branch into main.
345
- - Run `pnpm changeset version` on main to create an update with all the versions.
346
- - PR is automatically created on push, merge it to trigger publish
347
- - 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 };