Compare commits

...

2 Commits

Author SHA1 Message Date
4febec9e89 1.0.22 2018-11-05 23:52:40 +01:00
b65f3af9cf fix(core): update 2018-11-05 23:52:39 +01:00
5 changed files with 7 additions and 7 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/logdna", "name": "@mojoio/logdna",
"version": "1.0.21", "version": "1.0.22",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/logdna", "name": "@mojoio/logdna",
"version": "1.0.21", "version": "1.0.22",
"private": false, "private": false,
"description": "anunoffical package for the logdna api", "description": "anunoffical package for the logdna api",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -49,9 +49,9 @@ const smartlogPackage: ILogPackage = {
message: 'this is an awesome log message sent by the tapbundle test' 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 // alternatively simply send the smartlogPackage
// creation of the LogdnaMessage is done for you // creation of the LogdnaMessage is done for you

View File

@ -31,7 +31,7 @@ tap.test('should create a standard log message', async () => {
}); });
tap.test('should send the message', async () => { tap.test('should send the message', async () => {
await testLogDnaAccount.sendLogDnaMessage(testLogMessage); await testLogDnaAccount.sendLogdnaMessage(testLogMessage);
}); });
tap.test('should send in order', async () => { tap.test('should send in order', async () => {

View File

@ -22,7 +22,7 @@ export class LogdnaAccount {
* sends a logmessage * sends a logmessage
* async, so it returns a Promise. In most cases it does not make sense to wait for it though. * 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 lm = logdnaMessageArg;
const euc = encodeURIComponent; const euc = encodeURIComponent;
@ -56,7 +56,7 @@ export class LogdnaAccount {
* convenience function for smartlog * convenience function for smartlog
*/ */
public async sendSmartlogPackage(smartlogPackageArg: ILogPackage) { public async sendSmartlogPackage(smartlogPackageArg: ILogPackage) {
this.sendLogDnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg)); this.sendLogdnaMessage(LogdnaMessage.fromSmartLogPackage(smartlogPackageArg));
} }
/** /**