Compare commits
4 Commits
v1.0.17
...
679d1cf9c4
Author | SHA1 | Date | |
---|---|---|---|
679d1cf9c4 | |||
ce060f0cf9 | |||
4d4d46ef7c | |||
696d56067c |
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/letterxpress",
|
"name": "@mojoio/letterxpress",
|
||||||
"version": "1.0.17",
|
"version": "1.0.19",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@mojoio/letterxpress",
|
"name": "@mojoio/letterxpress",
|
||||||
"version": "1.0.17",
|
"version": "1.0.19",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@push.rocks/smartbuffer": "^1.0.3",
|
"@push.rocks/smartbuffer": "^1.0.3",
|
||||||
|
14
package.json
14
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@apiclient.xyz/letterxpress",
|
"name": "@apiclient.xyz/letterxpress",
|
||||||
"version": "1.0.17",
|
"version": "1.0.19",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "an unofficial API package for the letterxpress API",
|
"description": "an unofficial API package for the letterxpress API",
|
||||||
"main": "dist_ts/index.js",
|
"main": "dist_ts/index.js",
|
||||||
@@ -16,19 +16,19 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@git.zone/tsbuild": "^2.1.63",
|
"@git.zone/tsbuild": "^2.1.63",
|
||||||
"@git.zone/tsrun": "^1.2.46",
|
"@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/qenv": "^6.0.5",
|
||||||
"@push.rocks/tapbundle": "^5.0.3",
|
"@push.rocks/tapbundle": "^5.0.23",
|
||||||
"@types/node": "^20.11.19"
|
"@types/node": "^20.12.7"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@design.estate/dees-document": "^1.0.99",
|
"@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/smarthash": "^3.0.1",
|
||||||
"@push.rocks/smartpromise": "^4.0.3",
|
"@push.rocks/smartpromise": "^4.0.3",
|
||||||
"@push.rocks/smartrequest": "^2.0.21",
|
"@push.rocks/smartrequest": "^2.0.22",
|
||||||
"@push.rocks/smartrx": "^3.0.7",
|
"@push.rocks/smartrx": "^3.0.7",
|
||||||
"@tsclass/tsclass": "^4.0.17"
|
"@tsclass/tsclass": "^4.0.54"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"ts/**/*",
|
"ts/**/*",
|
||||||
|
1567
pnpm-lock.yaml
generated
1567
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -104,7 +104,7 @@ tap.test('should send an actual letter', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
tap.test('should be able to delete the sending job', async (toolsArg) => {
|
tap.test('should be able to delete the sending job', async (toolsArg) => {
|
||||||
await toolsArg.delayFor(30000);
|
await toolsArg.delayFor(5000);
|
||||||
await testAccount.cancelLetter(testLetter);
|
await testAccount.cancelLetter(testLetter);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@apiclient.xyz/letterxpress',
|
name: '@apiclient.xyz/letterxpress',
|
||||||
version: '1.0.17',
|
version: '1.0.19',
|
||||||
description: 'an unofficial API package for the letterxpress API'
|
description: 'an unofficial API package for the letterxpress API'
|
||||||
}
|
}
|
||||||
|
@@ -37,9 +37,9 @@ export class LetterXpressAccount {
|
|||||||
const pdfToSend = await this.deesDocumentInstance.createPdfFromLetterObject(letterArg);
|
const pdfToSend = await this.deesDocumentInstance.createPdfFromLetterObject(letterArg);
|
||||||
const response = await this.request('/printjobs', 'POST', {
|
const response = await this.request('/printjobs', 'POST', {
|
||||||
letter: {
|
letter: {
|
||||||
base64_file: plugins.smartbuffer.arrayBufferToBase64(pdfToSend.buffer),
|
base64_file: plugins.smartbuffer.uInt8ArrayToBase64(pdfToSend.buffer),
|
||||||
base64_file_checksum: await plugins.smarthash.md5FromString(
|
base64_file_checksum: await plugins.smarthash.md5FromString(
|
||||||
plugins.smartbuffer.arrayBufferToBase64(pdfToSend.buffer)
|
plugins.smartbuffer.uInt8ArrayToBase64(pdfToSend.buffer)
|
||||||
),
|
),
|
||||||
specification: {
|
specification: {
|
||||||
color: '4',
|
color: '4',
|
||||||
@@ -97,6 +97,7 @@ export class LetterXpressAccount {
|
|||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
requestBody: JSON.stringify(requestData),
|
requestBody: JSON.stringify(requestData),
|
||||||
|
keepAlive: false,
|
||||||
});
|
});
|
||||||
console.log(response.body);
|
console.log(response.body);
|
||||||
return response;
|
return response;
|
||||||
|
Reference in New Issue
Block a user