Skip to content

Commit

Permalink
Merge branch 'main' of github.com:juspay/hyperswitch-web into fetch-a…
Browse files Browse the repository at this point in the history
…pi-changes
  • Loading branch information
PritishBudhiraja committed Nov 4, 2024
2 parents 5584032 + f1e63f1 commit caf1967
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [0.98.5](https://github.com/juspay/hyperswitch-web/compare/v0.98.4...v0.98.5) (2024-11-04)


### Bug Fixes

* format function refactor for better logs readability ([#757](https://github.com/juspay/hyperswitch-web/issues/757)) ([4f4ee6b](https://github.com/juspay/hyperswitch-web/commit/4f4ee6be28975b3060c955388f0536d2f6cea7ea))

## [0.98.4](https://github.com/juspay/hyperswitch-web/compare/v0.98.3...v0.98.4) (2024-10-30)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orca-payment-page",
"version": "0.98.4",
"version": "0.98.5",
"main": "index.js",
"private": true,
"dependencies": {
Expand Down
10 changes: 5 additions & 5 deletions src/Utilities/Utils.res
Original file line number Diff line number Diff line change
Expand Up @@ -849,11 +849,6 @@ let getHeaders = (~uri=?, ~token=?, ~headers=Dict.make()) => {
})
Fetch.Headers.fromObject(headerObj->dictToObj)
}
let arrayJsonToCamelCase = arr => {
arr->Array.map(item => {
item->transformKeys(CamelCase)
})
}

let formatException = exc =>
switch exc {
Expand Down Expand Up @@ -924,6 +919,11 @@ let fetchApi = async (uri, ~bodyStr: string="", ~headers=Dict.make(), ~method: F
}
}
}
let arrayJsonToCamelCase = arr => {
arr->Array.map(item => {
item->transformKeys(CamelCase)
})
}

let getArrayValFromJsonDict = (dict, key, arrayKey) => {
dict
Expand Down

0 comments on commit caf1967

Please sign in to comment.