Compare commits

...

2 Commits

Author SHA1 Message Date
c8d3225f47 1.0.6 2021-08-25 18:30:02 +02:00
329aeb2bdc fix(core): update 2021-08-25 18:30:02 +02:00
3 changed files with 5 additions and 5 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@mojoio/logtail", "name": "@mojoio/logtail",
"version": "1.0.5", "version": "1.0.6",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@mojoio/logtail", "name": "@mojoio/logtail",
"version": "1.0.5", "version": "1.0.6",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/lik": "^4.0.20", "@pushrocks/lik": "^4.0.20",

View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/logtail", "name": "@mojoio/logtail",
"version": "1.0.5", "version": "1.0.6",
"private": false, "private": false,
"description": "an unofficial api abstraction package for logtail.com taolored to the smartlog ecosystem", "description": "an unofficial api abstraction package for logtail.com taolored to the smartlog ecosystem",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -4,7 +4,7 @@ export class LogTailAccount {
private token: string; private token: string;
private timedAggregator = new plugins.lik.TimedAggregtor<plugins.smartlogInterfaces.ILogPackage<{[key: string]: any}>>({ private timedAggregator = new plugins.lik.TimedAggregtor<plugins.smartlogInterfaces.ILogPackage<{[key: string]: any}>>({
aggregationIntervalInMillis: 2000, aggregationIntervalInMillis: 200,
functionForAggregation: async (logPackagesArg) => { functionForAggregation: async (logPackagesArg) => {
const requestBody = []; const requestBody = [];
let lastTimestamp: number = 0; let lastTimestamp: number = 0;
@ -31,7 +31,7 @@ export class LogTailAccount {
'Authorization': `Bearer ${this.token}` 'Authorization': `Bearer ${this.token}`
}, },
requestBody, requestBody,
keepAlive: true, keepAlive: false,
}); });
} }
}); });