@mimik/sumologic-winston-logger 1.6.17 → 1.6.18

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.
@@ -122,7 +122,7 @@ module.exports = class AwsKinesis extends Transport {
122
122
  levelData = events[level];
123
123
  }
124
124
  levelData.size += infoSize;
125
- levelData.Records.push({ Data: JSON.stringify(data), PartitionKey: `${PARTITION_KEY}-${randomInt(0, RANDOM_LIMIT)}` });
125
+ levelData.Records.push({ Data: Buffer.from(JSON.stringify(data)), PartitionKey: `${PARTITION_KEY}-${randomInt(0, RANDOM_LIMIT)}` });
126
126
  if (levelData.Records.length >= this.maxEvents || levelData.size >= this.maxSize) {
127
127
  this.send(levelData.Records, level);
128
128
  levelData.Records = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/sumologic-winston-logger",
3
- "version": "1.6.17",
3
+ "version": "1.6.18",
4
4
  "description": "Log wrapper for sumo, s3, kinesis and winston",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -34,8 +34,8 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@mimik/lib-filters": "^1.4.8",
37
- "@aws-sdk/client-s3": "3.388.0",
38
- "@aws-sdk/client-kinesis": "3.388.0",
37
+ "@aws-sdk/client-s3": "3.391.0",
38
+ "@aws-sdk/client-kinesis": "3.391.0",
39
39
  "axios": "1.4.0",
40
40
  "bluebird": "3.7.2",
41
41
  "lodash.difference": "4.5.0",
@@ -54,7 +54,7 @@
54
54
  "devDependencies": {
55
55
  "@mimik/eslint-plugin-dependencies": "^2.4.5",
56
56
  "@mimik/eslint-plugin-document-env": "^1.0.5",
57
- "@mimik/request-helper": "^1.7.8",
57
+ "@mimik/request-helper": "^1.7.9",
58
58
  "body-parser": "1.20.2",
59
59
  "chai": "4.3.7",
60
60
  "eslint": "8.47.0",