locales-detector
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -10,2 +10,11 @@ # Change Log | ||
## [0.4.0] 2018-01-26 | ||
### Changed | ||
- Browser for Karma testing was switched to Chromeless. | ||
- Update rollup config. | ||
- Update ESlint config. | ||
- Remove minified version of build file. | ||
- Update babel config. | ||
## [0.3.0] 2017-09-22 | ||
@@ -12,0 +21,0 @@ ### Added |
@@ -302,3 +302,3 @@ import queryString from 'query-string'; | ||
* @param {Array<string>} locales - list of locales | ||
* @returns {Array<string>} | ||
* @returns {Array<string>} list of transformed locales | ||
*/ | ||
@@ -501,3 +501,3 @@ | ||
/** | ||
* Navigator detector try load locales from brower navigator variable. | ||
* Navigator detector try load locales from browser navigator variable. | ||
*/ | ||
@@ -526,3 +526,3 @@ | ||
* | ||
* @returns {Array<string>} | ||
* @returns {Array<string>} list of locales from browser | ||
*/ | ||
@@ -613,4 +613,2 @@ | ||
/** | ||
* On default languages are loaded from window.navigator | ||
* | ||
* @param {Array<string>} locales - list of locales | ||
@@ -628,5 +626,5 @@ */ | ||
/** | ||
* Get list of locales. | ||
* Get list your of locales. | ||
* | ||
* @returns {Array<string>} | ||
* @returns {Array<string>} list of your locales | ||
*/ | ||
@@ -633,0 +631,0 @@ |
@@ -308,3 +308,3 @@ (function (global, factory) { | ||
* @param {Array<string>} locales - list of locales | ||
* @returns {Array<string>} | ||
* @returns {Array<string>} list of transformed locales | ||
*/ | ||
@@ -507,3 +507,3 @@ | ||
/** | ||
* Navigator detector try load locales from brower navigator variable. | ||
* Navigator detector try load locales from browser navigator variable. | ||
*/ | ||
@@ -532,3 +532,3 @@ | ||
* | ||
* @returns {Array<string>} | ||
* @returns {Array<string>} list of locales from browser | ||
*/ | ||
@@ -619,4 +619,2 @@ | ||
/** | ||
* On default languages are loaded from window.navigator | ||
* | ||
* @param {Array<string>} locales - list of locales | ||
@@ -634,5 +632,5 @@ */ | ||
/** | ||
* Get list of locales. | ||
* Get list your of locales. | ||
* | ||
* @returns {Array<string>} | ||
* @returns {Array<string>} list of your locales | ||
*/ | ||
@@ -639,0 +637,0 @@ |
{ | ||
"name": "locales-detector", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Tool for detecting locales of visitors and transform them.", | ||
@@ -26,19 +26,9 @@ "keywords": [ | ||
"babel-eslint": "^8.0.0", | ||
"babel-plugin-external-helpers": "^6.18.0", | ||
"babel-plugin-external-helpers": "^6.22.0", | ||
"babel-plugin-istanbul": "^4.1.5", | ||
"babel-plugin-transform-flow-strip-types": "^6.18.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-es2015": "^6.18.0", | ||
"bower": "^1.8.0", | ||
"babel-preset-env": "^1.6.1", | ||
"babel-preset-flow": "^6.23.0", | ||
"codecov": "^2.3.0", | ||
"eslint": "^4.7.1", | ||
"eslint-config-airbnb": "^15.1.0", | ||
"eslint-plugin-flowtype": "^2.29.1", | ||
"eslint-plugin-flowtype-errors": "^3.3.1", | ||
"eslint-plugin-import": "^2.1.0", | ||
"eslint-plugin-jasmine": "^2.2.0", | ||
"eslint-plugin-jsdoc": "^3.1.2", | ||
"eslint-plugin-jsx-a11y": "^6.0.2", | ||
"eslint-plugin-promise": "^3.4.0", | ||
"eslint-plugin-react": "^7.3.0", | ||
"eslint-config-socifi": "1.x", | ||
"flow-bin": "0.54.1", | ||
@@ -49,2 +39,3 @@ "flow-coverage-report": "^0.3.0", | ||
"karma-babel-preprocessor": "^7.0.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-commonjs": "^1.0.0", | ||
@@ -54,7 +45,4 @@ "karma-coverage": "^1.1.1", | ||
"karma-junit-reporter": "^1.1.0", | ||
"karma-phantomjs-launcher": "^1.0.2", | ||
"phantomjs-prebuilt": "^2.1.13", | ||
"rollup": "^0.50.0", | ||
"rollup-plugin-babel": "^3.0.2", | ||
"rollup-plugin-uglify": "^2.0.1" | ||
"rollup-plugin-babel": "^3.0.2" | ||
}, | ||
@@ -71,4 +59,10 @@ "dependencies": { | ||
"flow-coverage": "node node_modules/flow-coverage-report/bin/flow-coverage-report.js -f \"node_modules\\flow-bin\\vendor\\flow\" -i \"src/**/*.js\" -t html -t text -t json -o tests/coverage/flow", | ||
"build": "node rollup.js" | ||
} | ||
"build": "node node_modules/rollup/bin/rollup --config ./rollup.config.js" | ||
}, | ||
"browserslist": [ | ||
"> 1%", | ||
"Last 2 versions", | ||
"not ie <= 10", | ||
"not ie_mob <= 10" | ||
] | ||
} |
@@ -11,4 +11,2 @@ // @flow | ||
/** | ||
* On default languages are loaded from window.navigator | ||
* | ||
* @param {Array<string>} locales - list of locales | ||
@@ -22,5 +20,5 @@ */ | ||
/** | ||
* Get list of locales. | ||
* Get list your of locales. | ||
* | ||
* @returns {Array<string>} | ||
* @returns {Array<string>} list of your locales | ||
*/ | ||
@@ -27,0 +25,0 @@ getLocales(): Array<string> { |
@@ -5,3 +5,3 @@ // @flow | ||
/** | ||
* Navigator detector try load locales from brower navigator variable. | ||
* Navigator detector try load locales from browser navigator variable. | ||
*/ | ||
@@ -24,3 +24,3 @@ class NavigatorDetector extends Detector { | ||
* | ||
* @returns {Array<string>} | ||
* @returns {Array<string>} list of locales from browser | ||
*/ | ||
@@ -27,0 +27,0 @@ getLocales(): Array<string> { |
@@ -24,3 +24,3 @@ // @flow | ||
* @param {Array<string>} locales - list of locales | ||
* @returns {Array<string>} | ||
* @returns {Array<string>} list of transformed locales | ||
*/ | ||
@@ -27,0 +27,0 @@ transform(locales: Array<string>): Array<string> { |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
78812
21
1
1405