Compare commits

...

8 Commits

Author SHA1 Message Date
540e5be2fa 1.0.34 2020-06-10 08:46:45 +00:00
7d29f88356 fix(core): update 2020-06-10 08:46:44 +00:00
9d81f059fe 1.0.33 2020-06-05 16:06:54 +00:00
52cdf6f9fe fix(core): update 2020-06-05 16:06:52 +00:00
1339db1adf 1.0.32 2020-06-03 09:22:44 +00:00
2b42bd59c5 fix(core): update 2020-06-03 09:22:43 +00:00
4cd9ce8510 1.0.31 2020-06-03 09:18:07 +00:00
cf2620bd41 fix(core): update 2020-06-03 09:18:06 +00:00
5 changed files with 31 additions and 24 deletions

View File

@ -54,17 +54,6 @@ testStable:
- docker
- priv
testStable:
stage: test
script:
- npmci npm prepare
- npmci node install stable
- npmci npm install
- npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/
tags:
- windows
testBuild:
stage: test
script:

16
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "@mojoio/logdna",
"version": "1.0.30",
"version": "1.0.34",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -1280,11 +1280,11 @@
}
},
"@pushrocks/smartlog-interfaces": {
"version": "2.0.9",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog-interfaces/-/smartlog-interfaces-2.0.9.tgz",
"integrity": "sha512-JlVBHNjac0+VbTyigBqVXLsOWggmg9vONk8cofvfUmYq8QZ3XmEQlkljotjgn01ZA6aEQ4NmskRy0XSNcJl/Fw==",
"version": "2.0.15",
"resolved": "https://verdaccio.lossless.one/@pushrocks%2fsmartlog-interfaces/-/smartlog-interfaces-2.0.15.tgz",
"integrity": "sha512-C9AQGs0QI2xmcIbb2A32rg1rebHavpXGJ1LXBSLpSvctyrBppxWjut7kihgU5nqxYYw+Cr+wl5DA1pSIPQ1R0w==",
"requires": {
"@apiglobal/typedrequest-interfaces": "^1.0.7"
"@apiglobal/typedrequest-interfaces": "^1.0.13"
}
},
"@pushrocks/smartlog-source-ora": {
@ -1744,9 +1744,9 @@
"integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA=="
},
"@types/node": {
"version": "14.0.9",
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.0.9.tgz",
"integrity": "sha512-0sCTiXKXELOBxvZLN4krQ0FPOAA7ij+6WwvD0k/PHd9/KAkr4dXel5J9fh6F4x1FwAQILqAWkmpeuS6mjf1iKA=="
"version": "14.0.11",
"resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.0.11.tgz",
"integrity": "sha512-lCvvI24L21ZVeIiyIUHZ5Oflv1hhHQ5E1S25IRlKIXaRkVgmXpJMI3wUJkmym2bTbCe+WoIibQnMVAU3FguaOg=="
},
"@types/portscanner": {
"version": "2.1.0",

View File

@ -1,6 +1,6 @@
{
"name": "@mojoio/logdna",
"version": "1.0.30",
"version": "1.0.34",
"private": false,
"description": "an unoffical package for the logdna api",
"main": "dist_ts/index.js",
@ -17,13 +17,13 @@
"@gitzone/tstest": "^1.0.33",
"@pushrocks/qenv": "^4.0.6",
"@pushrocks/tapbundle": "^3.2.1",
"@types/node": "^14.0.9",
"@types/node": "^14.0.11",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0"
},
"dependencies": {
"@pushrocks/lik": "^4.0.13",
"@pushrocks/smartlog-interfaces": "^2.0.9",
"@pushrocks/smartlog-interfaces": "^2.0.15",
"@pushrocks/smartrequest": "^1.1.47",
"@pushrocks/smartstring": "^3.0.18",
"@pushrocks/taskbuffer": "^2.1.1"

View File

@ -26,6 +26,10 @@ tap.test('should create a standard log message', async () => {
runtime: 'node',
zone: 'shipzone'
},
correlation: {
id: '123',
type: 'none'
},
message: 'this is an awesome log message sent by the tapbundle test'
});
});
@ -49,7 +53,11 @@ tap.test('should send in order', async () => {
runtime: 'node',
zone: 'shipzone'
},
message: `this is an awesome log message sent by the tapbundle test #${i}`
message: `this is an awesome log message sent by the tapbundle test #${i}`,
correlation: {
id: '123',
type: 'none'
}
};
testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage);
i++;
@ -67,6 +75,10 @@ tap.test('should send in order', async () => {
runtime: 'node',
zone: 'shipzone'
},
correlation: {
id: '123',
type: 'none'
},
message: `this is an awesome log message sent by the tapbundle test #${i}`
};
testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage2);
@ -83,6 +95,10 @@ tap.test('should send in order', async () => {
runtime: 'node',
zone: 'shipzone'
},
correlation: {
id: '123',
type: 'none'
},
message: `this is an awesome log message sent by the tapbundle test #${i}`
};
testLogDnaAccount.sendSmartlogPackage(testSmartlogMessage3);

View File

@ -71,7 +71,9 @@ export class LogdnaMessage {
line: smartlogPackageArg.message,
meta: {
...smartlogPackageArg.context,
logType: smartlogPackageArg.type
logType: smartlogPackageArg.type,
correlation: smartlogPackageArg.correlation,
data: smartlogPackageArg.data || {}
},
env: smartlogPackageArg.context.environment,
hostname: smartlogPackageArg.context.zone,