fix(structure): format
This commit is contained in:
parent
7a45f829fc
commit
a55311c0fd
@ -29,6 +29,6 @@ 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.start();
|
tap.start();
|
||||||
|
@ -60,7 +60,7 @@ export class LogdnaMessage {
|
|||||||
* create lgdna messages from smartlog package
|
* create lgdna messages from smartlog package
|
||||||
* @param smartlogPackageArg
|
* @param smartlogPackageArg
|
||||||
*/
|
*/
|
||||||
static fromSmartLogPackage (smartlogPackageArg: ILogPackage): LogdnaMessage {
|
static fromSmartLogPackage(smartlogPackageArg: ILogPackage): LogdnaMessage {
|
||||||
return new LogdnaMessage({
|
return new LogdnaMessage({
|
||||||
line: smartlogPackageArg.message,
|
line: smartlogPackageArg.message,
|
||||||
meta: smartlogPackageArg.logContext,
|
meta: smartlogPackageArg.logContext,
|
||||||
@ -77,7 +77,7 @@ export class LogdnaMessage {
|
|||||||
ip: '0.0.0.0',
|
ip: '0.0.0.0',
|
||||||
mac: 'aa:aa:aa:aa:aa:aa'
|
mac: 'aa:aa:aa:aa:aa:aa'
|
||||||
});
|
});
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* the options of this log message
|
* the options of this log message
|
||||||
@ -85,5 +85,5 @@ export class LogdnaMessage {
|
|||||||
public options: ILogdnaMessageContructorOptions;
|
public options: ILogdnaMessageContructorOptions;
|
||||||
constructor(optionsArg: ILogdnaMessageContructorOptions) {
|
constructor(optionsArg: ILogdnaMessageContructorOptions) {
|
||||||
this.options = optionsArg;
|
this.options = optionsArg;
|
||||||
};
|
}
|
||||||
}
|
}
|
@ -2,8 +2,4 @@ import * as smartrequest from '@pushrocks/smartrequest';
|
|||||||
import * as smartstring from '@pushrocks/smartstring';
|
import * as smartstring from '@pushrocks/smartstring';
|
||||||
import * as smartlogInterfaces from '@pushrocks/smartlog-interfaces';
|
import * as smartlogInterfaces from '@pushrocks/smartlog-interfaces';
|
||||||
|
|
||||||
export {
|
export { smartrequest, smartstring, smartlogInterfaces };
|
||||||
smartrequest,
|
|
||||||
smartstring,
|
|
||||||
smartlogInterfaces
|
|
||||||
};
|
|
||||||
|
Loading…
Reference in New Issue
Block a user