New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

esoftplay-android-print

Package Overview
Dependencies
Maintainers
1
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esoftplay-android-print - npm Package Compare versions

Comparing version 0.0.186 to 0.0.187

android/.gradle/7.4.2/checksums/checksums.lock

20

index.ts

@@ -27,3 +27,3 @@ //@ts-check

let listener: any
let dataPrint: any[] = []
let isStarPrinter = false

@@ -131,5 +131,7 @@

printImage(base64: string, width: number, align: Justification) {
dataPrint.push(`[IMAGE]:${base64}`)
PRINTER.printImage(base64, width, align);
},
printBarcode(barcodeType: BarcodeType, data: string, height: number, barSize: number, align: string) {
dataPrint.push(`[BARCODE]:${data}`)
PRINTER.printBarcode(barcodeType, data, height, barSize, align)

@@ -141,2 +143,3 @@ },

printQRCode(data: string, level: level, size: qrsize, align: string) {
dataPrint.push(`[QR]:${data}`)
PRINTER.printQRCode(data, level, size, align)

@@ -146,2 +149,3 @@ },

let enters = new Array(count).fill('\n').join('')
dataPrint.push(enters)
PRINTER.printTextBase(enters, "LEFT", "DEFAULT", 0)

@@ -154,2 +158,3 @@ },

PRINTER.pageStart()
dataPrint = []
},

@@ -163,2 +168,3 @@ pageEnd(cb: () => void) {

printTextln(text: string, align: Justification) {
dataPrint.push(text)
PRINTER.printTextBase(appendEnter(text), align, "DEFAULT", 0)

@@ -169,2 +175,3 @@ },

let newText = text1 + new Array(adder).fill(" ").join("") + text2
dataPrint.push(newText)
PRINTER.printTextBase(appendEnter(newText), "LEFT", "DEFAULT", 0)

@@ -175,14 +182,19 @@ },

let newText = text1 + new Array(adder).fill(" ").join("") + text2
dataPrint.push(newText)
PRINTER.printTextBase(appendEnter(newText), "LEFT", "BOLD", 0)
},
printTextlnNormal(text: string, align: Justification) {
dataPrint.push(text)
PRINTER.printTextBase(appendEnter(text), align, "DEFAULT", 0)
},
printTextlnBold(text: string, align: Justification) {
dataPrint.push(text)
PRINTER.printTextBase(appendEnter(text), align, "BOLD", 0)
},
cutPaper() {
dataPrint.push("[CUT]")
PRINTER.cutPaper()
},
feed() {
dataPrint.push("\n\n\n")
PRINTER.printTextBase("\n\n\n", "CENTER", "DEFAULT", 0)

@@ -192,2 +204,3 @@ },

let chars = new Array(CHARSIZE).fill('-').join("")
dataPrint.push(chars)
PRINTER.printTextBase(appendEnter(chars), "CENTER", "DEFAULT", 0)

@@ -197,2 +210,3 @@ },

let chars = new Array(CHARSIZE).fill('_').join("")
dataPrint.push(chars)
PRINTER.printTextBase(appendEnter(chars), "CENTER", "DEFAULT", 0)

@@ -202,4 +216,8 @@ },

let chars = new Array(CHARSIZE).fill('=').join("")
dataPrint.push(chars)
PRINTER.printTextBase(appendEnter(chars), "CENTER", "DEFAULT", 0)
},
getDataPrint: () => {
return dataPrint.join("\n")
}
}

2

package.json
{
"name": "esoftplay-android-print",
"version": "0.0.186",
"version": "0.0.187",
"description": "Printing ",

@@ -5,0 +5,0 @@ "main": "./index.ts",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc