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)); } /**