Socket
Socket
Sign inDemoInstall

escpos-buffer

Package Overview
Dependencies
3
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.3 to 4.0.4

2

dist/graphics/Image.d.ts

@@ -13,5 +13,5 @@ /// <reference types="node" />

bytesPerRow: number;
constructor(imageData: ImageData, filter?: Filter);
constructor(imageData?: ImageData, filter?: Filter);
private readImage;
lineData(index: number): Buffer;
}

@@ -6,3 +6,5 @@ "use strict";

constructor(imageData, filter = new filter_1.FloydSteinberg()) {
this.readImage(filter.process(imageData));
if (imageData) {
this.readImage(filter.process(imageData));
}
}

@@ -9,0 +11,0 @@ readImage(image) {

{
"name": "escpos-buffer",
"version": "4.0.3",
"version": "4.0.4",
"description": "Library to generate buffer for thermal printers.",

@@ -5,0 +5,0 @@ "author": "GrandChef Team <desenvolvimento@grandchef.com.br>",

@@ -15,4 +15,6 @@ import { Filter, FloydSteinberg } from './filter';

constructor(imageData: ImageData, filter: Filter = new FloydSteinberg()) {
this.readImage(filter.process(imageData));
constructor(imageData?: ImageData, filter: Filter = new FloydSteinberg()) {
if (imageData) {
this.readImage(filter.process(imageData));
}
}

@@ -19,0 +21,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc