Skip to content

Commit

Permalink
Make autoflush defaults depend on star-prnt or star-line language set…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
NielsLeenheer committed Jul 8, 2024
1 parent 4d6725d commit 2bf2b7e
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions dist/thermal-printer-encoder.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ThermalPrinterEncoder {
const languages = {
'esc-pos': EscPosEncoder,
'star-prnt': StarPrntEncoder,
'star-line': StarPrntEncoder,
};

if (typeof options === 'undefined' || typeof options.language === 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion dist/thermal-printer-encoder.esm.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/thermal-printer-encoder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ThermalPrinterEncoder {
const languages = {
'esc-pos': EscPosEncoder,
'star-prnt': StarPrntEncoder,
'star-line': StarPrntEncoder,
};

if (typeof options === 'undefined' || typeof options.language === 'undefined') {
Expand Down
2 changes: 1 addition & 1 deletion dist/thermal-printer-encoder.umd.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "thermal-printer-encoder",
"version": "2.0.2",
"version": "2.0.3",
"description": "Create a set of commands that can be send to any receipt printer that supports ESC/POS or StarPRNT",
"type": "module",
"exports": {
Expand Down
1 change: 1 addition & 0 deletions src/thermal-printer-encoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ class ThermalPrinterEncoder {
const languages = {
'esc-pos': EscPosEncoder,
'star-prnt': StarPrntEncoder,
'star-line': StarPrntEncoder,
};

if (typeof options === 'undefined' || typeof options.language === 'undefined') {
Expand Down

0 comments on commit 2bf2b7e

Please sign in to comment.