@opentripplanner/core-utils
Advanced tools
Comparing version 0.0.21 to 0.0.22
@@ -224,3 +224,3 @@ "use strict"; | ||
* application state. This method does some extra logic on top of this data | ||
* in order to create a request suitable for OTP. See types#queryType | ||
* in order to create a request suitable for OTP. See __tests__/query.js#L14 for more. | ||
* @param {boolean} ignoreRealtimeUpdates If true, will create a request that | ||
@@ -227,0 +227,0 @@ * does not use realtime data. |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.createChainableTypeChecker = createChainableTypeChecker; | ||
exports.userLocationType = exports.geocodedFeatureType = exports.configuredCompanyType = exports.configuredModesType = exports.configuredModeType = exports.queryType = exports.modeSelectorOptionsType = exports.modeOptionType = exports.latlngType = exports.stationType = exports.transitiveDataType = exports.stopLayerStopType = exports.transitIndexStopWithRoutes = exports.timeOptionsType = exports.locationType = exports.itineraryType = exports.fareType = exports.legType = exports.placeType = exports.stepsType = exports.encodedPolylineType = exports.configType = exports.vehicleRentalMapOverlaySymbolsType = exports.transitVehicleType = exports.languageConfigType = exports.transitOperatorType = exports.leafletPathType = exports.companyType = void 0; | ||
exports.userLocationType = exports.geocodedFeatureType = exports.configuredCompanyType = exports.configuredModesType = exports.configuredModeType = exports.modeSelectorOptionsType = exports.modeOptionType = exports.latlngType = exports.stationType = exports.transitiveDataType = exports.stopLayerStopType = exports.transitIndexStopWithRoutes = exports.timeOptionsType = exports.locationType = exports.itineraryType = exports.fareType = exports.legType = exports.placeType = exports.stepsType = exports.encodedPolylineType = exports.configType = exports.vehicleRentalMapOverlaySymbolsType = exports.transitVehicleType = exports.languageConfigType = exports.transitOperatorType = exports.leafletPathType = exports.companyType = void 0; | ||
@@ -545,29 +545,2 @@ var _propTypes = _interopRequireDefault(require("prop-types")); | ||
const queryType = _propTypes.default.shape({ | ||
from: locationType, | ||
to: locationType, | ||
date: _propTypes.default.string, | ||
time: _propTypes.default.string, | ||
departArrive: _propTypes.default.string, | ||
startTime: _propTypes.default.string, | ||
endTime: _propTypes.default.string, | ||
mode: _propTypes.default.string, | ||
showIntermediateStops: _propTypes.default.bool, | ||
maxWalkDistance: _propTypes.default.number, | ||
maxBikeDistance: _propTypes.default.number, | ||
optimize: _propTypes.default.string, | ||
optimizeBike: _propTypes.default.string, | ||
maxWalkTime: _propTypes.default.number, | ||
walkSpeed: _propTypes.default.number, | ||
maxBikeTime: _propTypes.default.number, | ||
bikeSpeed: _propTypes.default.number, | ||
maxEScooterDistance: _propTypes.default.number, | ||
watts: _propTypes.default.number, | ||
ignoreRealtimeUpdates: _propTypes.default.bool, | ||
companies: _propTypes.default.string, | ||
wheelchair: _propTypes.default.bool | ||
}); | ||
exports.queryType = queryType; | ||
const configuredModeType = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({ | ||
@@ -574,0 +547,0 @@ mode: _propTypes.default.string.isRequired, |
{ | ||
"name": "@opentripplanner/core-utils", | ||
"version": "0.0.21", | ||
"version": "0.0.22", | ||
"description": "Core functionality that is shared among numerous UI components", | ||
@@ -20,3 +20,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "327f30a4c468d786a48dbafef8dabdbba91a7cfb" | ||
"gitHead": "9ee3a7184fffb2401e9ccc0930b743ae028a1b0f" | ||
} |
@@ -237,3 +237,3 @@ import moment from "moment"; | ||
* application state. This method does some extra logic on top of this data | ||
* in order to create a request suitable for OTP. See types#queryType | ||
* in order to create a request suitable for OTP. See __tests__/query.js#L14 for more. | ||
* @param {boolean} ignoreRealtimeUpdates If true, will create a request that | ||
@@ -240,0 +240,0 @@ * does not use realtime data. |
@@ -505,27 +505,2 @@ import PropTypes from "prop-types"; | ||
export const queryType = PropTypes.shape({ | ||
from: locationType, | ||
to: locationType, | ||
date: PropTypes.string, | ||
time: PropTypes.string, | ||
departArrive: PropTypes.string, | ||
startTime: PropTypes.string, | ||
endTime: PropTypes.string, | ||
mode: PropTypes.string, | ||
showIntermediateStops: PropTypes.bool, | ||
maxWalkDistance: PropTypes.number, | ||
maxBikeDistance: PropTypes.number, | ||
optimize: PropTypes.string, | ||
optimizeBike: PropTypes.string, | ||
maxWalkTime: PropTypes.number, | ||
walkSpeed: PropTypes.number, | ||
maxBikeTime: PropTypes.number, | ||
bikeSpeed: PropTypes.number, | ||
maxEScooterDistance: PropTypes.number, | ||
watts: PropTypes.number, | ||
ignoreRealtimeUpdates: PropTypes.bool, | ||
companies: PropTypes.string, | ||
wheelchair: PropTypes.bool | ||
}); | ||
export const configuredModeType = PropTypes.oneOfType([ | ||
@@ -532,0 +507,0 @@ PropTypes.string, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
202573
5622