Skip to content

Commit

Permalink
Patch: bumped module logger versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Akalanka47000 committed Jan 14, 2024
1 parent 7e8ce62 commit 7007bf5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "bash ../../scripts/test/test.sh"
},
"dependencies": {
"@sliit-foss/module-logger": "1.2.3",
"@sliit-foss/module-logger": "1.2.4",
"chalk": "4.1.2",
"express-http-context": "1.2.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/http-logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"test": "bash ../../scripts/test/test.sh"
},
"dependencies": {
"@sliit-foss/module-logger": "1.2.3"
"@sliit-foss/module-logger": "1.2.4"
},
"repository": {
"type": "git",
Expand Down
4 changes: 3 additions & 1 deletion packages/module-logger/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ const _createLogger = () => {
return `${[..._defaultKeys, ...Object.keys(info)].reduce((acc, key, i) => {
if ((info?.[key] && _defaultKeys.includes(key) && i <= 3) || (i > 3 && !_defaultKeys.includes(key))) {
if (i > 0) acc += ", ";
return (acc += `"${chalk.gray(key)}": "${typeof info[key] === 'object' ? JSON.stringify(info[key]) : info[key]}"`);
return (acc += `"${chalk.gray(key)}": "${
typeof info[key] === "object" ? JSON.stringify(info[key]) : info[key]
}"`);
}
return acc;
}, "{ ")} }`;
Expand Down
2 changes: 1 addition & 1 deletion packages/service-connector/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"test": "bash ../../scripts/test/test.sh"
},
"dependencies": {
"@sliit-foss/module-logger": "1.2.3",
"@sliit-foss/module-logger": "1.2.4",
"axios": "1.6.0",
"chalk": "4.1.2",
"express-http-context": "1.2.4",
Expand Down
30 changes: 24 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7007bf5

Please sign in to comment.