Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
4febec9e89 | |||
b65f3af9cf | |||
373b02adb4 | |||
11b08cc0a3 | |||
a586069305 | |||
8a8c4efcbb |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/logdna",
|
"name": "@mojoio/logdna",
|
||||||
"version": "1.0.19",
|
"version": "1.0.22",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/logdna",
|
"name": "@mojoio/logdna",
|
||||||
"version": "1.0.19",
|
"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",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# logdna
|
# @mojoio/logdna
|
||||||
anunoffical package for the logdna api
|
anunoffical package for the logdna api
|
||||||
|
|
||||||
## Availabililty
|
## Availabililty
|
||||||
@ -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
|
||||||
@ -62,7 +62,7 @@ logDnaAccount.sendSmartlogPackage(smartlogPackage)
|
|||||||
|
|
||||||
For further information read the linked docs at the top of this README.
|
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)
|
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||||
|
|
||||||
[](https://mojo.io)
|
[](https://mojo.io)
|
||||||
|
@ -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 () => {
|
||||||
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user