Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

[Fix] Upgrade lodash #860

Merged
merged 2 commits into from
Feb 14, 2019
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
4 changes: 3 additions & 1 deletion app/pages/reservation/ReservationPage.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { first, isEmpty, last } from 'lodash';
import first from 'lodash/first';
import isEmpty from 'lodash/isEmpty';
import last from 'lodash/last';
import moment from 'moment';
import React, { Component, PropTypes } from 'react';
import Loader from 'react-loader';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { pick, uniq } from 'lodash';
import pick from 'lodash/pick';
import uniq from 'lodash/uniq';
import camelCase from 'lodash/camelCase';
import React, { Component, PropTypes } from 'react';
import Col from 'react-bootstrap/lib/Col';
Expand Down
4 changes: 3 additions & 1 deletion app/pages/reservation/reservationPageSelector.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { createSelector, createStructuredSelector } from 'reselect';
import { first, isEmpty, orderBy } from 'lodash';
import first from 'lodash/first';
import isEmpty from 'lodash/isEmpty';
import orderBy from 'lodash/orderBy';
import queryString from 'query-string';

import ActionTypes from 'constants/ActionTypes';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import Button from 'react-bootstrap/lib/Button';
import Col from 'react-bootstrap/lib/Col';
import Row from 'react-bootstrap/lib/Row';
import moment from 'moment';
import { first, last, orderBy } from 'lodash';
import first from 'lodash/first';
import last from 'lodash/last';
import orderBy from 'lodash/orderBy';

import { addNotification } from 'actions/notificationsActions';
import {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { filter, isEmpty, map } from 'lodash';
import filter from 'lodash/filter';
import isEmpty from 'lodash/isEmpty';
import map from 'lodash/map';
import { createSelector, createStructuredSelector } from 'reselect';
import Moment from 'moment';
import { extendMoment } from 'moment-range';
Expand Down
5 changes: 4 additions & 1 deletion app/pages/resource/reservation-calendar/utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { filter, maxBy, minBy, some } from 'lodash';
import filter from 'lodash/filter';
import maxBy from 'lodash/maxBy';
import minBy from 'lodash/minBy';
import some from 'lodash/some';
import moment from 'moment';

import constants from 'constants/AppConstants';
Expand Down
2 changes: 1 addition & 1 deletion app/pages/resource/resource-header/ResourceHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { PropTypes } from 'react';
import Button from 'react-bootstrap/lib/Button';
import Grid from 'react-bootstrap/lib/Grid';
import { FormattedNumber } from 'react-intl';
import { round } from 'lodash';
import round from 'lodash/round';
import iconHome from 'hel-icons/dist/shapes/home.svg';
import iconMapMarker from 'hel-icons/dist/shapes/map-marker.svg';
import iconTicket from 'hel-icons/dist/shapes/ticket.svg';
Expand Down
2 changes: 1 addition & 1 deletion app/pages/resource/resource-map-info/ResourceMapInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { PropTypes } from 'react';
import Button from 'react-bootstrap/lib/Button';
import Grid from 'react-bootstrap/lib/Grid';
import iconMapMarker from 'hel-icons/dist/shapes/map-marker.svg';
import { upperFirst } from 'lodash';
import upperFirst from 'lodash/upperFirst';

import { injectT } from 'i18n';
import { getServiceMapUrl } from 'utils/unitUtils';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { first, last, orderBy, pick, uniq } from 'lodash';
import first from 'lodash/first';
import last from 'lodash/last';
import orderBy from 'lodash/orderBy';
import pick from 'lodash/pick';
import uniq from 'lodash/uniq';
import camelCase from 'lodash/camelCase';
import React, { Component, PropTypes } from 'react';
import Modal from 'react-bootstrap/lib/Modal';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { first, last, orderBy } from 'lodash';
import first from 'lodash/first';
import last from 'lodash/last';
import orderBy from 'lodash/orderBy';

import { deleteReservation, postReservation, putReservation } from 'actions/reservationActions';
import {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"leaflet": "1.0.3",
"lightbox-react": "0.3.7",
"location-origin": "1.1.4",
"lodash": "4.17.5",
"lodash": "4.17.11",
"mobile-detect": "1.4.0",
"moment": "2.24.0",
"moment-range": "4.0.1",
Expand Down