@itentialopensource/adapter-kafkav2 1.0.5 → 1.0.6
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.
- package/CHANGELOG.md +8 -0
- package/package.json +3 -3
- package/utils/dbUtil.js +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itentialopensource/adapter-kafkav2",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Itential adapter to connect to kafka",
|
|
5
5
|
"main": "adapter.js",
|
|
6
6
|
"scripts": {
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"fs-extra": "11.3.6",
|
|
45
45
|
"json-query": "2.2.2",
|
|
46
46
|
"kafkajs": "2.2.4",
|
|
47
|
-
"kafka-lz4-lite": "
|
|
47
|
+
"kafka-lz4-lite": "2.0.1",
|
|
48
48
|
"kafkajs-snappy": "1.1.0",
|
|
49
49
|
"mongodb": "4.17.2",
|
|
50
50
|
"readline-sync": "1.4.10",
|
|
51
|
-
"uuid": "
|
|
51
|
+
"uuid": "11.1.1",
|
|
52
52
|
"mocha": "12.0.0-rc.1",
|
|
53
53
|
"winston": "3.17.0"
|
|
54
54
|
},
|
package/utils/dbUtil.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/* eslint no-unused-vars:warn */
|
|
6
6
|
|
|
7
7
|
const fs = require('fs-extra');
|
|
8
|
-
const
|
|
8
|
+
const { v4: uuidv4 } = require('uuid');
|
|
9
9
|
|
|
10
10
|
/* Fetch in the other needed components for the this Adaptor */
|
|
11
11
|
const {
|
|
@@ -983,7 +983,7 @@ class DBUtil {
|
|
|
983
983
|
// create the unique identifier (should we let mongo do this?)
|
|
984
984
|
const dataInfo = data;
|
|
985
985
|
if (!{}.hasOwnProperty.call(dataInfo, '_id')) {
|
|
986
|
-
dataInfo._id =
|
|
986
|
+
dataInfo._id = uuidv4();
|
|
987
987
|
}
|
|
988
988
|
|
|
989
989
|
let res;
|