@mimik/sumologic-winston-logger 2.0.4 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,6 +20,7 @@ import {
20
20
  setInterval,
21
21
  } from 'timers';
22
22
  import { Buffer } from 'buffer';
23
+ import { NodeHttpHandler } from '@smithy/node-http-handler';
23
24
  import Promise from 'bluebird';
24
25
  import Transport from 'winston-transport';
25
26
 
@@ -53,6 +54,14 @@ export default class AwsKinesis extends Transport {
53
54
  secretAccessKey: options.secretAccessKey,
54
55
  };
55
56
  }
57
+
58
+ this.kinesisClientConfig.maxAttempts = 5;
59
+ this.kinesisClientConfig.requestHandler = new NodeHttpHandler(
60
+ {
61
+ connectionTimeout: 5000,
62
+ socketTimeout: 5000,
63
+ },
64
+ );
56
65
  this.kinesis = new KinesisClient(this.kinesisClientConfig);
57
66
 
58
67
  this.time = setInterval(() => {
package/lib/formatLib.js CHANGED
@@ -70,7 +70,7 @@ const filterMeta = format((origInfo, opts) => {
70
70
  if (!isObject(origItem)) return true;
71
71
  let item = origItem;
72
72
 
73
- // in order to vaoid having the do it for in the rest of the code for mongoose objects
73
+ // in order to avoid having the do it for in the rest of the code for mongoose objects
74
74
  try {
75
75
  item = origItem.toObject();
76
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/sumologic-winston-logger",
3
- "version": "2.0.4",
3
+ "version": "2.1.0",
4
4
  "description": "Log wrapper for sumo, s3, kinesis and winston",
5
5
  "main": "./index.js",
6
6
  "type": "module",
@@ -36,6 +36,7 @@
36
36
  "@mimik/lib-filters": "^2.0.4",
37
37
  "@aws-sdk/client-s3": "3.864.0",
38
38
  "@aws-sdk/client-kinesis": "3.864.0",
39
+ "@smithy/node-http-handler": "4.1.1",
39
40
  "axios": "1.11.0",
40
41
  "bluebird": "3.7.2",
41
42
  "lodash.difference": "4.5.0",