Skip to content

Commit

Permalink
fix(deps): update dependency ramda to ^0.30.0 (#3013)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Jul 15, 2024
1 parent 82cb1a2 commit b0e52be
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"prop-types": "^15.5.10",
"query-string": "^6.4.0",
"raf": "^3.4.1",
"ramda": "^0.26.1",
"ramda": "^0.30.0",
"react": "^16.8.4",
"react-addons-shallow-compare": "^15.6.0",
"react-day-picker": "^7.3.0",
Expand Down
2 changes: 1 addition & 1 deletion static/js/components/forms/ProfileFormFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export const LegalAddressFields = ({
>
<option value="">-----</option>
{find(
propEq("code", values.legal_address.country),
propEq(values.legal_address.country,"code"),
countries
).states.map((state, i) => (
<option key={i} value={state.code}>
Expand Down
10 changes: 5 additions & 5 deletions static/js/containers/pages/profile/ViewProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class ViewProfilePage extends React.Component<Props> {
<div className="col">
{
find(
propEq("code", currentUser.legal_address.country),
propEq(currentUser.legal_address.country,"code" ),
countries
).name
}
Expand All @@ -131,13 +131,13 @@ export class ViewProfilePage extends React.Component<Props> {
{
find(
propEq(
"code",
currentUser.legal_address.state_or_territory
currentUser.legal_address.state_or_territory,
"code"
),
find(
propEq(
"code",
currentUser.legal_address.country
currentUser.legal_address.country,
"code"
),
countries
).states
Expand Down
8 changes: 4 additions & 4 deletions static/js/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ export function csrfSafeMethod(method: string): boolean {
return /^(GET|HEAD|OPTIONS|TRACE)$/.test(method);
}

const headers = R.merge({ headers: {} });
const headers = R.mergeRight({ headers: {} });

const method = R.merge({ method: "GET" });
const method = R.mergeRight({ method: "GET" });

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

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

Expand All @@ -40,7 +40,7 @@ const csrfToken = R.unless(
setWith(R.lensPath(["headers", "X-CSRFToken"]), () => getCookie("csrftoken")),
);

const jsonHeaders = R.merge({
const jsonHeaders = R.mergeRight({
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10190,7 +10190,7 @@ __metadata:
prop-types: ^15.5.10
query-string: ^6.4.0
raf: ^3.4.1
ramda: ^0.26.1
ramda: ^0.30.0
react: ^16.8.4
react-addons-shallow-compare: ^15.6.0
react-day-picker: ^7.3.0
Expand Down Expand Up @@ -11868,20 +11868,20 @@ __metadata:
languageName: node
linkType: hard

"ramda@npm:^0.26.1":
version: 0.26.1
resolution: "ramda@npm:0.26.1"
checksum: 19c2730e44c129538151ae034c89be9b2c6a4ccc7c65cff57497418bc532ce09282f98cd927c39b0b03c6bc3f1d1a12d822b7b07f96a1634f4958a6c05b7b384
languageName: node
linkType: hard

"ramda@npm:^0.27.0, ramda@npm:^0.27.1":
version: 0.27.1
resolution: "ramda@npm:0.27.1"
checksum: 31a0c0ef739b2525d7615f84cbb5d3cb89ee0c795469b711f729ea1d8df0dccc3cd75d3717a1e9742d42315ce86435680b7c87743eb7618111c60c144a5b8059
languageName: node
linkType: hard

"ramda@npm:^0.30.0":
version: 0.30.1
resolution: "ramda@npm:0.30.1"
checksum: ce6f4b6b967a84a4e65c01ab1b1cdd73d46b8efe71aeccf5d1443c56c4e31a0ea82ece7df6510453dd3d83b92cabf8a6b4d50d189a1b35c08a6f44b281bebf79
languageName: node
linkType: hard

"randexp@npm:0.4.6":
version: 0.4.6
resolution: "randexp@npm:0.4.6"
Expand Down

0 comments on commit b0e52be

Please sign in to comment.