From 7a2b4057d49bbf27415cfc7139aaf9bbf5689f2e Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Wed, 24 Jul 2024 14:41:03 +0300 Subject: [PATCH 1/4] Add dependabot config --- .github/dependabot.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..1a9eb6fd --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: + - package-ecosystem: "npm" + target-branch: "staging" + directory: "/" + schedule: + interval: "weekly" + day: "thursday" + time: "00:00" + timezone: "Etc/UTC" + commit-message: + prefix: "[npm] " + labels: + - "npm" + - "dependencies" From 8181137afc494618a83c3525ae895a4d21236817 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Wed, 24 Jul 2024 14:42:05 +0300 Subject: [PATCH 2/4] Bump pug version to 3.0.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 62f9603e..001e8767 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "lru": "3.1.0", "moment": "2.29.4", "moment-timezone": "0.5.39", - "pug": "3.0.2", + "pug": "3.0.3", "reflect-metadata": "0.1.13", "triple-beam": "1.3.0", "uuid": "9.0.0", From 3383e183d7a88ae7a9fb369c4f3ce3eadfd52aa4 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Mon, 29 Jul 2024 13:32:40 +0300 Subject: [PATCH 3/4] Add csv formatter for tax report source field --- .../queue/write-data-to-stream/helpers.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/workers/loc.api/queue/write-data-to-stream/helpers.js b/workers/loc.api/queue/write-data-to-stream/helpers.js index 431b3cf3..26fdb643 100644 --- a/workers/loc.api/queue/write-data-to-stream/helpers.js +++ b/workers/loc.api/queue/write-data-to-stream/helpers.js @@ -80,6 +80,22 @@ const _formatters = { } return msg + }, + lowerCaseWithUpperFirst: (str) => { + if ( + !str || + typeof str !== 'string' || + str.length < 2 + ) { + return str + } + + const lower = str.toLowerCase() + const normalized = lower.replace(/_/g, ' ') + const head = normalized[0].toUpperCase() + const tail = normalized.slice(1) + + return `${head}${tail}` } } From ee44661dd2ff5bc40ca7b12bee89cf0904641003 Mon Sep 17 00:00:00 2001 From: Vladimir Voronkov Date: Tue, 30 Jul 2024 08:39:01 +0300 Subject: [PATCH 4/4] Bump version up to 4.10.6 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 001e8767..476f7aa4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bfx-report", - "version": "4.10.5", + "version": "4.10.6", "description": "Reporting tool", "main": "worker.js", "license": "Apache-2.0",