Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
4febec9e89 | |||
b65f3af9cf | |||
373b02adb4 | |||
11b08cc0a3 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mojoio/logdna",
|
||||
"version": "1.0.20",
|
||||
"version": "1.0.22",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mojoio/logdna",
|
||||
"version": "1.0.20",
|
||||
"version": "1.0.22",
|
||||
"private": false,
|
||||
"description": "anunoffical package for the logdna api",
|
||||
"main": "dist/index.js",
|
||||
|
@ -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
|
||||
|
@ -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 () => {
|
||||
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user