escpos-buffer
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,2 +0,2 @@ | ||
import WebUSB from '../../src/connection/WebUSB'; | ||
import { WebUSB } from '../../src/connection'; | ||
@@ -3,0 +3,0 @@ const OUT_ENDPOINT_NUMBER = 2; |
@@ -1,2 +0,2 @@ | ||
import InMemory from '../../src/connection/InMemory'; | ||
import { InMemory } from '../../src/connection'; | ||
import Printer from '../../src/Printer'; | ||
@@ -3,0 +3,0 @@ import { Align, Style } from '../../src/actions'; |
@@ -337,14 +337,14 @@ declare const capabilities: { | ||
}; | ||
export declare type Font = { | ||
export type Font = { | ||
name: string; | ||
columns: number; | ||
}; | ||
export declare type CodePage = { | ||
export type CodePage = { | ||
code: string; | ||
command: string; | ||
}; | ||
declare type Models = (typeof capabilities)['models']; | ||
export declare type Profile = Models[number]['profile']; | ||
export declare type SupportedModel = Models[number]['model']; | ||
export declare type Capability = { | ||
type Models = (typeof capabilities)['models']; | ||
export type Profile = Models[number]['profile']; | ||
export type SupportedModel = Models[number]['model']; | ||
export type Capability = { | ||
profile: string; | ||
@@ -351,0 +351,0 @@ brand: string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.WebUSB = exports.InMemory = void 0; | ||
var InMemory_1 = require("./InMemory"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "InMemory", { enumerable: true, get: function () { return InMemory_1.default; } }); |
@@ -13,3 +13,3 @@ /// <reference types="w3c-web-usb" /> | ||
close(): Promise<void>; | ||
delect(): void; | ||
autoSelect(): void; | ||
} |
@@ -15,3 +15,3 @@ "use strict"; | ||
if (this.configurationValue === -1 || this.interfaceNumber === -1) { | ||
this.delect(); | ||
this.autoSelect(); | ||
} | ||
@@ -33,3 +33,3 @@ yield this.device.selectConfiguration(this.configurationValue); | ||
} | ||
delect() { | ||
autoSelect() { | ||
this.device.configurations.find((config) => { | ||
@@ -36,0 +36,0 @@ if (this.configurationValue !== -1 && |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.FloydSteinberg = exports.BayerOrdered = exports.Threshold = void 0; | ||
var Threshold_1 = require("./Threshold"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "Threshold", { enumerable: true, get: function () { return Threshold_1.default; } }); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PNG = exports.Printer = exports.Image = exports.Model = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -4,0 +5,0 @@ tslib_1.__exportStar(require("./actions"), exports); |
@@ -9,3 +9,3 @@ import { Profile } from './profile'; | ||
static FIND(model: string): object; | ||
static EXPAND(profile: object): Capability; | ||
static EXPAND(profile: any): Capability; | ||
static ALL(): Capability[]; | ||
@@ -12,0 +12,0 @@ get name(): string; |
@@ -5,3 +5,3 @@ import { Connection } from '../connection'; | ||
import Image from '../graphics/Image'; | ||
export declare type StyleConf = { | ||
export type StyleConf = { | ||
width?: number; | ||
@@ -8,0 +8,0 @@ height?: number; |
@@ -19,8 +19,3 @@ module.exports = { | ||
'!src/**/*.d.ts', | ||
], | ||
globals: { | ||
'ts-jest': { | ||
diagnostics: false | ||
} | ||
} | ||
] | ||
}; |
{ | ||
"name": "escpos-buffer", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Library to generate buffer for thermal printers.", | ||
@@ -8,3 +8,3 @@ "author": "GrandChef Team <desenvolvimento@grandchef.com.br>", | ||
"engines": { | ||
"node": ">= 10" | ||
"node": ">= 14" | ||
}, | ||
@@ -32,21 +32,21 @@ "repository": { | ||
"dependencies": { | ||
"iconv-lite": "^0.5.0", | ||
"iconv-lite": "^0.6.3", | ||
"pngjs": "^5.0.0", | ||
"qrcode": "^1.4.4", | ||
"tslib": "~1.10.0" | ||
"qrcode": "^1.5.1", | ||
"tslib": "^2.5.0" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "^24.0.21", | ||
"@types/jest": "^29.4.0", | ||
"@types/node": "^12.12.5", | ||
"@types/pngjs": "^6.0.1", | ||
"@types/w3c-web-usb": "1.0.4", | ||
"jest": "^24.9.0", | ||
"@types/w3c-web-usb": "1.0.6", | ||
"jest": "^29.4.1", | ||
"prettier": "^2.8.3", | ||
"rimraf": "^3.0.0", | ||
"ts-jest": "^24.1.0", | ||
"tslint": "^5.20.1", | ||
"rimraf": "^4.1.2", | ||
"ts-jest": "^29.0.5", | ||
"tslint": "^6.1.3", | ||
"tslint-config-prettier": "1.18.0", | ||
"tslint-microsoft-contrib": "^6.2.0", | ||
"tsutils": "^3.17.0", | ||
"typescript": "^3.7.2" | ||
"tsutils": "^3.21.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -53,0 +53,0 @@ "publishConfig": { |
@@ -15,3 +15,3 @@ import { Connection } from '.'; | ||
if (this.configurationValue === -1 || this.interfaceNumber === -1) { | ||
this.delect(); | ||
this.autoSelect(); | ||
} | ||
@@ -35,3 +35,3 @@ await this.device.selectConfiguration(this.configurationValue); | ||
delect() { | ||
autoSelect() { | ||
// select first configuration with interface having out direction | ||
@@ -38,0 +38,0 @@ this.device.configurations.find((config: USBConfiguration) => { |
@@ -73,3 +73,3 @@ import { Profile } from './profile'; | ||
static EXPAND(profile: object): Capability { | ||
static EXPAND(profile: any): Capability { | ||
const capability = { | ||
@@ -76,0 +76,0 @@ model: undefined, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
384455
1522
5285
+ Addediconv-lite@0.6.3(transitive)
+ Addedtslib@2.6.2(transitive)
- Removediconv-lite@0.5.2(transitive)
- Removedtslib@1.10.0(transitive)
Updatediconv-lite@^0.6.3
Updatedqrcode@^1.5.1
Updatedtslib@^2.5.0