diff --git a/CHANGELOG.md b/CHANGELOG.md index 137ce31..bfe59af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 21/02/2025 0.9.24 + +- Added support for epson printers communicating over SSL + ## 31/03/2023 0.9.11 - Bugfix for Symbols diff --git a/package.json b/package.json index 509f3c4..2bd8b4a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@baemingo/epson-printer-sdk", - "version": "0.9.23", + "version": "0.9.24", "description": "A modern and simple \"connect-less\" integration against EPSON printers", "license": "MIT", "publishConfig": { diff --git a/src/printer.ts b/src/printer.ts index 8e5499e..a14720f 100644 --- a/src/printer.ts +++ b/src/printer.ts @@ -10,8 +10,8 @@ const EPSON_XML_HEADER = class EpsonPrinter { private url; - constructor(ip: string) { - this.url = `http://${ip}/cgi-bin/epos/service.cgi?devid=local_printer&timeout=10000`; + constructor(ip: string, useSsl = false) { + this.url = `${useSsl ? 'https' : 'http'}://${ip}/cgi-bin/epos/service.cgi?devid=local_printer&timeout=10000` } public async send(print: EpsonPrint) {