Compare commits

..

6 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
373b02adb4 1.0.21 2018-11-05 23:41:43 +01:00
11b08cc0a3 fix(core): update 2018-11-05 23:41:43 +01:00
a586069305 1.0.20 2018-11-05 23:29:01 +01:00
8a8c4efcbb fix(core): update 2018-11-05 23:29:01 +01:00
5 changed files with 9 additions and 9 deletions

2
package-lock.json generated
View File

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

View File

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

View File

@ -1,4 +1,4 @@
# logdna
# @mojoio/logdna
anunoffical package for the logdna api
## Availabililty
@ -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
@ -62,7 +62,7 @@ logDnaAccount.sendSmartlogPackage(smartlogPackage)
For further information read the linked docs at the top of this README.
> licensed | **©** [Lossless GmbH](https://lossless.gmbh)
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://mojoio.gitlab.io/assets/repo-footer.svg)](https://mojo.io)

View File

@ -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 () => {

View File

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