This repository has been archived by the owner on Mar 22, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: list paper sizes supported by a specific printer (#447)
* types: defined all printer properties; defined default printer properties * feat(windows-printer-valid): support for build multiple printer properties * feat(getDefaultPrinter): support for optional custom printer properties * feat(getPrinters): support for optional custom printer properties * test: added test for custom printer properties * fix: prettier spaces * feat(README.md): getPrinters with custom properties example * fix: printer type with fixed 'deviceId' and 'name' property * chore: npm install * fix(isValidPrinter): test not covering, change properties param to required * Revert "feat(README.md): getPrinters with custom properties example" because the property 'printerPaperNames' will be default This reverts commit fa91131. * fix(type Printer): only support 'printerPaperNames' for now; get rid of the rest properties * fix(defaultProperties): add 'printerPaperNames' * test(get-default-printer): removed unsupported properties * feat(windows-printer-valid): always return paperSizes option * feat(windows-printer-valid): support for custom keys mapping * fix(getPrinters, getDefaultPrinter): removed properties argument * fix(index): fixed paperSizes in printer type; export const properties * fix(tests): add key `paperSizes` to all assertions * fix(printers): removed extra spaces * test: better stdout examples * fix(properties): transform from array to object mapping * fix(properties): removed dynamic `properties` to `Get-CimInstance` command
- Loading branch information
1 parent
b5eda9b
commit 7f3d331
Showing
8 changed files
with
111 additions
and
37 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters