Skip to content

Commit 5b90d3c

Browse files
authored
Merge pull request #383 from bitfinexcom/staging
Release version to master
2 parents 8d00f94 + 81059c5 commit 5b90d3c

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
lines changed

.github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
target-branch: "staging"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
day: "thursday"
9+
time: "00:00"
10+
timezone: "Etc/UTC"
11+
commit-message:
12+
prefix: "[npm] "
13+
labels:
14+
- "npm"
15+
- "dependencies"

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bfx-report",
3-
"version": "4.10.5",
3+
"version": "4.10.6",
44
"description": "Reporting tool",
55
"main": "worker.js",
66
"license": "Apache-2.0",
@@ -29,7 +29,7 @@
2929
"lru": "3.1.0",
3030
"moment": "2.29.4",
3131
"moment-timezone": "0.5.39",
32-
"pug": "3.0.2",
32+
"pug": "3.0.3",
3333
"reflect-metadata": "0.1.13",
3434
"triple-beam": "1.3.0",
3535
"uuid": "9.0.0",

workers/loc.api/queue/write-data-to-stream/helpers.js

+16
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,22 @@ const _formatters = {
8080
}
8181

8282
return msg
83+
},
84+
lowerCaseWithUpperFirst: (str) => {
85+
if (
86+
!str ||
87+
typeof str !== 'string' ||
88+
str.length < 2
89+
) {
90+
return str
91+
}
92+
93+
const lower = str.toLowerCase()
94+
const normalized = lower.replace(/_/g, ' ')
95+
const head = normalized[0].toUpperCase()
96+
const tail = normalized.slice(1)
97+
98+
return `${head}${tail}`
8399
}
84100
}
85101

0 commit comments

Comments
 (0)