Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "fix(deps): update dependency ramda to ^0.30.0" #3044

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.30.0",
"ramda": "^0.26.1",
"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(values.legal_address.country,"code"),
propEq("code", values.legal_address.country),
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(currentUser.legal_address.country,"code" ),
propEq("code", currentUser.legal_address.country),
countries
).name
}
Expand All @@ -131,13 +131,13 @@ export class ViewProfilePage extends React.Component<Props> {
{
find(
propEq(
currentUser.legal_address.state_or_territory,
"code"
"code",
currentUser.legal_address.state_or_territory
),
find(
propEq(
currentUser.legal_address.country,
"code"
"code",
currentUser.legal_address.country
),
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.mergeRight({ headers: {} });
const headers = R.merge({ headers: {} });

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

const credentials = R.mergeRight({ credentials: "same-origin" });
const credentials = R.merge({ 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.mergeRight({
const jsonHeaders = R.merge({
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.30.0
ramda: ^0.26.1
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
Loading