From b65f3af9cfbc9ce8fbb015e99cc7dd5e5e2e4957 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 5 Nov 2018 23:52:39 +0100 Subject: [PATCH] fix(core): update --- readme.md | 4 ++-- test/test.ts | 2 +- ts/logdna.logdnaaccount.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 349851b..f39e36a 100644 --- a/readme.md +++ b/readme.md @@ -49,9 +49,9 @@ const smartlogPackage: ILogPackage = { message: 'this is an awesome log message sent by the tapbundle test' }; -const logDnaMessage = LogdnaMessage.fromSmartLogPackage(smartlogPackage); +const logdnaMessage = LogdnaMessage.fromSmartLogPackage(smartlogPackage); -logDnaAccount.sendLogDnaMessage(logDnaMessage); +logDnaAccount.sendLogdnaMessage(logdnaMessage); // alternatively simply send the smartlogPackage // creation of the LogdnaMessage is done for you diff --git a/test/test.ts b/test/test.ts index 33fc9eb..c28e46b 100644 --- a/test/test.ts +++ b/test/test.ts @@ -31,7 +31,7 @@ tap.test('should create a standard log message', async () => { }); tap.test('should send the message', async () => { - await testLogDnaAccount.sendLogDnaMessage(testLogMessage); + await testLogDnaAccount.sendLogdnaMessage(testLogMessage); }); tap.test('should send in order', async () => { diff --git a/ts/logdna.logdnaaccount.ts b/ts/logdna.logdnaaccount.ts index 86b601a..9e17894 100644 --- a/ts/logdna.logdnaaccount.ts +++ b/ts/logdna.logdnaaccount.ts @@ -22,7 +22,7 @@ export class LogdnaAccount { * sends a logmessage * async, so it returns a Promise. In most cases it does not make sense to wait for it though. */ - public async sendLogDnaMessage(logdnaMessageArg: LogdnaMessage) { + public async sendLogdnaMessage(logdnaMessageArg: LogdnaMessage) { const lm = logdnaMessageArg; const euc = encodeURIComponent; @@ -56,7 +56,7 @@ export class LogdnaAccount { * convenience function for smartlog */ public async sendSmartlogPackage(smartlogPackageArg: ILogPackage) { - this.sendLogDnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg)); + this.sendLogdnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg)); } /**