Skip to content

Commit

Permalink
Merge pull request #383 from bitfinexcom/staging
Browse files Browse the repository at this point in the history
Release version to master
  • Loading branch information
prdn authored Jul 31, 2024
2 parents 8d00f94 + 81059c5 commit 5b90d3c
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand Down
16 changes: 16 additions & 0 deletions workers/loc.api/queue/write-data-to-stream/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
}

Expand Down

0 comments on commit 5b90d3c

Please sign in to comment.