Compare commits

..

6 Commits

Author SHA1 Message Date
e7f2ecc8d6 1.0.26 2020-06-03 03:45:10 +00:00
3950af87bd fix(core): update 2020-06-03 03:45:10 +00:00
9d2b689d01 1.0.25 2020-06-03 03:42:15 +00:00
9384dcc60e fix(core): update 2020-06-03 03:42:15 +00:00
a03395d5b2 1.0.24 2020-06-03 03:21:52 +00:00
a26080a50a fix(core): update 2020-06-03 03:21:51 +00:00
3 changed files with 35 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/logdna", "name": "@mojoio/logdna",
"version": "1.0.23", "version": "1.0.26",
"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.23", "version": "1.0.26",
"private": false, "private": false,
"description": "an unoffical package for the logdna api", "description": "an unoffical package for the logdna api",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
@ -9,7 +9,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/)",
"build": "(tsbuild)", "build": "(tsbuild --web)",
"format": "(gitzone format)" "format": "(gitzone format)"
}, },
"devDependencies": { "devDependencies": {

View File

@ -54,6 +54,38 @@ tap.test('should send in order', async () => {
testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage); testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage);
i++; i++;
} }
const testSmartlogMessage2: ILogPackage = {
timestamp: Date.now(),
type: 'log',
level: 'warn',
context: {
company: 'Lossless GmbH',
companyunit: 'lossless.cloud',
containerName: 'ci-mojoio-logdna',
environment: 'test',
runtime: 'node',
zone: 'shipzone'
},
message: `this is an awesome log message sent by the tapbundle test #${i}`
};
testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage2);
const testSmartlogMessage3: ILogPackage = {
timestamp: Date.now(),
type: 'log',
level: 'error',
context: {
company: 'Lossless GmbH',
companyunit: 'lossless.cloud',
containerName: 'ci-mojoio-logdna',
environment: 'test',
runtime: 'node',
zone: 'shipzone'
},
message: `this is an awesome log message sent by the tapbundle test #${i}`
};
testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage3);
}); });
tap.start(); tap.start();