fix(core): update

This commit is contained in:
Philipp Kunz 2024-04-17 19:47:23 +02:00
parent 4d4d46ef7c
commit ce060f0cf9
4 changed files with 537 additions and 1048 deletions

View File

@ -16,19 +16,19 @@
"devDependencies": {
"@git.zone/tsbuild": "^2.1.63",
"@git.zone/tsrun": "^1.2.46",
"@git.zone/tstest": "^1.0.71",
"@git.zone/tstest": "^1.0.88",
"@push.rocks/qenv": "^6.0.5",
"@push.rocks/tapbundle": "^5.0.3",
"@types/node": "^20.11.19"
"@push.rocks/tapbundle": "^5.0.23",
"@types/node": "^20.12.7"
},
"dependencies": {
"@design.estate/dees-document": "^1.0.99",
"@push.rocks/smartbuffer": "^1.0.3",
"@push.rocks/smartbuffer": "^2.0.1",
"@push.rocks/smarthash": "^3.0.1",
"@push.rocks/smartpromise": "^4.0.3",
"@push.rocks/smartrequest": "^2.0.21",
"@push.rocks/smartrequest": "^2.0.22",
"@push.rocks/smartrx": "^3.0.7",
"@tsclass/tsclass": "^4.0.17"
"@tsclass/tsclass": "^4.0.54"
},
"files": [
"ts/**/*",

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@apiclient.xyz/letterxpress',
version: '1.0.18',
version: '1.0.19',
description: 'an unofficial API package for the letterxpress API'
}

View File

@ -37,9 +37,9 @@ export class LetterXpressAccount {
const pdfToSend = await this.deesDocumentInstance.createPdfFromLetterObject(letterArg);
const response = await this.request('/printjobs', 'POST', {
letter: {
base64_file: plugins.smartbuffer.arrayBufferToBase64(pdfToSend.buffer),
base64_file: plugins.smartbuffer.uInt8ArrayToBase64(pdfToSend.buffer),
base64_file_checksum: await plugins.smarthash.md5FromString(
plugins.smartbuffer.arrayBufferToBase64(pdfToSend.buffer)
plugins.smartbuffer.uInt8ArrayToBase64(pdfToSend.buffer)
),
specification: {
color: '4',