From 5b823b09ac1ef7452512bdb053e31a2d9915fdb8 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 17 Feb 2024 02:34:31 +0100 Subject: [PATCH] fix(core): update --- test/test.nonci.ts | 2 +- ts/00_commitinfo_data.ts | 2 +- ts/letterxpress.classes.account.ts | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/test/test.nonci.ts b/test/test.nonci.ts index 7040333..63a3de5 100644 --- a/test/test.nonci.ts +++ b/test/test.nonci.ts @@ -9,7 +9,7 @@ let testAccount: letterxpress.LetterXpressAccount; let testLetter: tsclass.business.ILetter; tap.test('should create a valid account', async () => { - testAccount = await letterxpress.LetterXpressAccount.createAndInit({ + testAccount = await letterxpress.LetterXpressAccount.createAndStart({ apiKey: await testQenv.getEnvVarOnDemand('API_TOKEN'), username: await testQenv.getEnvVarOnDemand('API_USERNAME'), }); diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index b442c31..4b0a9d9 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@apiclient.xyz/letterxpress', - version: '1.0.16', + version: '1.0.17', description: 'an unofficial API package for the letterxpress API' } diff --git a/ts/letterxpress.classes.account.ts b/ts/letterxpress.classes.account.ts index d1fd06a..5a459e0 100644 --- a/ts/letterxpress.classes.account.ts +++ b/ts/letterxpress.classes.account.ts @@ -7,9 +7,9 @@ export interface ILetterXpressConstructorOptions { export class LetterXpressAccount { // STATIC - public static async createAndInit(optionsArg: ConstructorParameters[0]) { + public static async createAndStart(optionsArg: ConstructorParameters[0]) { const letterXpressInstance = new LetterXpressAccount(optionsArg); - await letterXpressInstance.init(); + await letterXpressInstance.start(); return letterXpressInstance; } @@ -25,7 +25,7 @@ export class LetterXpressAccount { this.options = optionsArg; } - public async init() { + public async start() { this.deesDocumentInstance = await plugins.deesDocument.PdfService.createAndStart({}); }