Skip to content

Commit b3a2bfa

Browse files
fix(deps): update dependency ramda to v0.32.0 (#2531)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: CP <[email protected]>
1 parent 554d439 commit b3a2bfa

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

frontend/public/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
"prop-types": "15.8.1",
8080
"query-string": "6.14.1",
8181
"raf": "3.4.1",
82-
"ramda": "0.26.1",
82+
"ramda": "0.32.0",
8383
"react": "16.14.0",
8484
"react-addons-shallow-compare": "15.6.3",
8585
"react-day-picker": "7.4.10",

frontend/public/src/lib/api.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ export function csrfSafeMethod(method: string): boolean {
4444
return /^(GET|HEAD|OPTIONS|TRACE)$/.test(method)
4545
}
4646

47-
const headers = R.merge({ headers: {} })
47+
const headers = R.mergeRight({ headers: {} })
4848

49-
const method = R.merge({ method: "GET" })
49+
const method = R.mergeRight({ method: "GET" })
5050

51-
const credentials = R.merge({ credentials: "same-origin" })
51+
const credentials = R.mergeRight({ credentials: "same-origin" })
5252

5353
const setWith = R.curry((path, valFunc, obj) => R.set(path, valFunc(), obj))
5454

@@ -57,7 +57,7 @@ const csrfToken = R.unless(
5757
setWith(R.lensPath(["headers", "X-CSRFToken"]), () => getCSRFCookie())
5858
)
5959

60-
const jsonHeaders = R.merge({
60+
const jsonHeaders = R.mergeRight({
6161
headers: {
6262
"Content-Type": "application/json",
6363
Accept: "application/json"
@@ -130,7 +130,7 @@ const _fetchJSONWithCSRF = async (
130130
// and reject a Left.
131131
return R.compose(
132132
resolveEither,
133-
S.bimap(R.merge({ errorStatusCode: response.status }), R.identity),
133+
S.bimap(R.mergeRight({ errorStatusCode: response.status }), R.identity),
134134
filterE(() => response.ok),
135135
parseJSON,
136136
handleEmptyJSON

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14831,7 +14831,7 @@ __metadata:
1483114831
prop-types: 15.8.1
1483214832
query-string: 6.14.1
1483314833
raf: 3.4.1
14834-
ramda: 0.26.1
14834+
ramda: 0.32.0
1483514835
react: 16.14.0
1483614836
react-addons-shallow-compare: 15.6.3
1483714837
react-day-picker: 7.4.10
@@ -17500,10 +17500,10 @@ __metadata:
1750017500
languageName: node
1750117501
linkType: hard
1750217502

17503-
"ramda@npm:0.26.1":
17504-
version: 0.26.1
17505-
resolution: "ramda@npm:0.26.1"
17506-
checksum: 19c2730e44c129538151ae034c89be9b2c6a4ccc7c65cff57497418bc532ce09282f98cd927c39b0b03c6bc3f1d1a12d822b7b07f96a1634f4958a6c05b7b384
17503+
"ramda@npm:0.32.0":
17504+
version: 0.32.0
17505+
resolution: "ramda@npm:0.32.0"
17506+
checksum: d26ce9796b60e89496ba3663d2e3d7f7eb0cb885c3949bc4fb0353b27b4409c25af4006c88f6970888d743ca16a0d8b616bcf8aaa353dc09b830f6f90cddb7b1
1750717507
languageName: node
1750817508
linkType: hard
1750917509

0 commit comments

Comments
 (0)