react-time-picker
Advanced tools
Comparing version 2.5.2 to 2.6.0
@@ -8,4 +8,8 @@ 'use strict'; | ||
var _locales = require('./locales'); | ||
var _getUserLocale = require('get-user-locale'); | ||
var _getUserLocale2 = _interopRequireDefault(_getUserLocale); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var formatterCache = {}; | ||
@@ -21,3 +25,3 @@ | ||
// eslint-disable-next-line no-param-reassign | ||
locale = (0, _locales.getDefaultLocale)(); | ||
locale = (0, _getUserLocale2.default)(); | ||
} | ||
@@ -24,0 +28,0 @@ |
{ | ||
"name": "react-time-picker", | ||
"version": "2.5.2", | ||
"version": "2.6.0", | ||
"description": "A time picker for your React app.", | ||
@@ -14,3 +14,3 @@ "main": "dist/entry.js", | ||
"test": "yarn run test-eslint && yarn run test-jest", | ||
"test-eslint": "eslint ./src", | ||
"test-eslint": "eslint src/ test/ --ext .jsx,.js", | ||
"test-jest": "jest", | ||
@@ -41,6 +41,6 @@ "test-jest-coverage": "jest --coverage" | ||
"detect-element-overflow": "^1.1.1", | ||
"lodash.once": "^4.1.1", | ||
"get-user-locale": "^1.1.0", | ||
"merge-class-names": "^1.1.1", | ||
"prop-types": "^15.6.0", | ||
"react-clock": "^2.2.1", | ||
"react-clock": "^2.3.0", | ||
"react-lifecycles-compat": "^3.0.4" | ||
@@ -61,9 +61,9 @@ }, | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb": "^17.0.0", | ||
"eslint-plugin-import": "^2.13.0", | ||
"eslint-config-airbnb": "^17.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"eslint-plugin-jsx-a11y": "^6.1.1", | ||
"eslint-plugin-react": "^7.9.1", | ||
"jest": "^23.4.1", | ||
"jest-cli": "^23.4.1", | ||
"less": "^3.7.1", | ||
"eslint-plugin-react": "^7.11.1", | ||
"jest": "^23.5.0", | ||
"jest-cli": "^23.5.0", | ||
"less": "~3.7.1", | ||
"react": "^16.4.1", | ||
@@ -70,0 +70,0 @@ "react-dom": "^16.4.1", |
@@ -0,0 +0,0 @@ import React from 'react'; |
@@ -1,2 +0,2 @@ | ||
import { getDefaultLocale } from './locales'; | ||
import getUserLocale from 'get-user-locale'; | ||
@@ -13,3 +13,3 @@ const formatterCache = {}; | ||
// eslint-disable-next-line no-param-reassign | ||
locale = getDefaultLocale(); | ||
locale = getUserLocale(); | ||
} | ||
@@ -16,0 +16,0 @@ |
@@ -17,3 +17,5 @@ import React, { PureComponent } from 'react'; | ||
59, | ||
maxTime && hour === getHours(maxTime) && getMinutes(maxTime), | ||
maxTime | ||
&& hour === getHours(maxTime) | ||
&& getMinutes(maxTime), | ||
); | ||
@@ -26,3 +28,5 @@ } | ||
0, | ||
minTime && hour === getHours(minTime) && getMinutes(minTime), | ||
minTime | ||
&& hour === getHours(minTime) | ||
&& getMinutes(minTime), | ||
); | ||
@@ -29,0 +33,0 @@ } |
@@ -18,6 +18,6 @@ import React, { PureComponent } from 'react'; | ||
59, | ||
maxTime && | ||
hour === getHours(maxTime) && | ||
minute === getMinutes(maxTime) && | ||
getSeconds(maxTime), | ||
maxTime | ||
&& hour === getHours(maxTime) | ||
&& minute === getMinutes(maxTime) | ||
&& getSeconds(maxTime), | ||
); | ||
@@ -30,6 +30,6 @@ } | ||
0, | ||
minTime && | ||
hour === getHours(minTime) && | ||
minute === getMinutes(minTime) && | ||
getSeconds(minTime), | ||
minTime | ||
&& hour === getHours(minTime) | ||
&& minute === getMinutes(minTime) | ||
&& getSeconds(minTime), | ||
); | ||
@@ -36,0 +36,0 @@ } |
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
152938
47
3981
+ Addedget-user-locale@^1.1.0
+ Addedget-user-locale@1.5.1(transitive)
+ Addedlodash.memoize@4.1.2(transitive)
- Removedlodash.once@^4.1.1
- Removedlodash.once@4.1.1(transitive)
Updatedreact-clock@^2.3.0