send-sls-logger 0.0.28 → 0.0.29
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/lib/init.js +4 -0
- package/package.json +1 -1
package/lib/init.js
CHANGED
|
@@ -9,6 +9,10 @@ const defaultLogData = {};
|
|
|
9
9
|
const exclude = [];
|
|
10
10
|
let tracker;
|
|
11
11
|
|
|
12
|
+
const getType = (val) => {
|
|
13
|
+
return Object.prototype.toString.call(val).toLocaleLowerCase().slice(8, -1);
|
|
14
|
+
};
|
|
15
|
+
|
|
12
16
|
let maxLength = 200;
|
|
13
17
|
const formatDataMaxLength = (data) => {
|
|
14
18
|
if (getType(data) === "object") {
|