react-flag-icon-css
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -0,1 +1,16 @@ | ||
<a name="1.0.7"></a> | ||
## 1.0.7 (2017-01-02) | ||
* chore: remove unused duplicate country codes file ([8acd57b](https://github.com/matteocng/react-flag-icon-css/commit/8acd57b)) | ||
* chore: replace .eslintrc with .eslintrc.js ([98a455c](https://github.com/matteocng/react-flag-icon-css/commit/98a455c)) | ||
* chore: run yarn upgrade 'modulename' ([1d886e8](https://github.com/matteocng/react-flag-icon-css/commit/1d886e8)) | ||
* chore: yarn upgrade ([67c5b3d](https://github.com/matteocng/react-flag-icon-css/commit/67c5b3d)) | ||
* fix: fixes #2. add eu, un, gb-eng, gb-nir, gb-sct, gb-wls flags ([8f479e6](https://github.com/matteocng/react-flag-icon-css/commit/8f479e6)), closes [#2](https://github.com/matteocng/react-flag-icon-css/issues/2) | ||
* fix: make country codes more automated and tested ([7ad2177](https://github.com/matteocng/react-flag-icon-css/commit/7ad2177)) | ||
* style: fix eslint errors and misc fixes ([058d32a](https://github.com/matteocng/react-flag-icon-css/commit/058d32a)) | ||
* feat: add yarn https://yarnpkg.com/ ([d6d4d5f](https://github.com/matteocng/react-flag-icon-css/commit/d6d4d5f)) | ||
* docs: fix broken link ([c7f057d](https://github.com/matteocng/react-flag-icon-css/commit/c7f057d)) | ||
<a name="1.0.6"></a> | ||
@@ -2,0 +17,0 @@ ## 1.0.6 (2016-10-10) |
@@ -15,8 +15,7 @@ 'use strict'; | ||
return function (_ref) { | ||
var props = _objectWithoutProperties(_ref, []); | ||
var props = _objectWithoutProperties(_ref, []), | ||
_ref$Component = _ref.Component, | ||
Component = _ref$Component === undefined ? 'span' : _ref$Component, | ||
children = _ref.children; | ||
var _ref$Component = _ref.Component; | ||
var Component = _ref$Component === undefined ? 'span' : _ref$Component; | ||
var children = _ref.children; | ||
var stylePropName = options.useCssModules ? 'styleName' : 'className'; | ||
@@ -23,0 +22,0 @@ var p = _defineProperty({}, stylePropName, (0, _functions.makeClassnames)(props, options)); |
@@ -22,16 +22,15 @@ 'use strict'; | ||
var makeClassesObject = exports.makeClassesObject = function makeClassesObject(_ref, options) { | ||
var makeClassesObject = function makeClassesObject(_ref, options) { | ||
var _obj; | ||
var props = _objectWithoutProperties(_ref, []); | ||
var props = _objectWithoutProperties(_ref, []), | ||
code = _ref.code, | ||
_ref$flip = _ref.flip, | ||
flip = _ref$flip === undefined ? '' : _ref$flip, | ||
_ref$size = _ref.size, | ||
size = _ref$size === undefined ? '' : _ref$size, | ||
_ref$squared = _ref.squared, | ||
squared = _ref$squared === undefined ? false : _ref$squared, | ||
rotate = _ref.rotate; | ||
var code = _ref.code; | ||
var _ref$flip = _ref.flip; | ||
var flip = _ref$flip === undefined ? '' : _ref$flip; | ||
var _ref$size = _ref.size; | ||
var size = _ref$size === undefined ? '' : _ref$size; | ||
var _ref$squared = _ref.squared; | ||
var squared = _ref$squared === undefined ? false : _ref$squared; | ||
var rotate = _ref.rotate; | ||
var obj = (_obj = {}, _defineProperty(_obj, _constants.flagIconClassesPrefixName, true), _defineProperty(_obj, _constants.flagIconClassesPrefix + 'squared', squared), _defineProperty(_obj, '' + _constants.flagIconClassesPrefix + size, size), _defineProperty(_obj, '' + _constants.flagIconClassesPrefix + code, code), _defineProperty(_obj, _constants.flagIconClassesPrefix + 'flip-' + flip, flip), _defineProperty(_obj, _constants.flagIconClassesPrefix + 'rotate-' + (rotate ? rotate : ''), rotate), _defineProperty(_obj, _constants.baseThemeStyleName, options.useCssModules && options.themeStyles), _obj); | ||
@@ -45,4 +44,6 @@ | ||
exports.makeClassesObject = makeClassesObject; | ||
exports.default = function (props, options) { | ||
return (0, _classnames2.default)(makeClassesObject(props, options)); | ||
}; |
@@ -8,2 +8,3 @@ 'use strict'; | ||
var flagIconClassesPrefixName = exports.flagIconClassesPrefixName = 'flag-icon'; | ||
var flagIconClassesPrefix = exports.flagIconClassesPrefix = flagIconClassesPrefixName + '-'; | ||
var flagIconClassesPrefix = exports.flagIconClassesPrefix = flagIconClassesPrefixName + '-'; | ||
var flagIconModulePath = exports.flagIconModulePath = 'node_modules/flag-icon-css'; |
@@ -8,3 +8,3 @@ 'use strict'; | ||
var _countries = require('../static/countries'); | ||
var _countries = require('../../static/countries.json'); | ||
@@ -11,0 +11,0 @@ var _countries2 = _interopRequireDefault(_countries); |
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.objectKeysApplyFn = exports.constants = exports.countries = exports.makeStyles = exports.makeFlagIconOptions = exports.makeClassesObject = exports.makeClassnames = undefined; | ||
exports.diffArrays = exports.objectKeysApplyFn = exports.constants = exports.countries = exports.makeStyles = exports.makeFlagIconOptions = exports.makeClassesObject = exports.makeClassnames = undefined; | ||
@@ -64,2 +64,9 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
}, {}); | ||
}; | ||
var diffArrays = exports.diffArrays = function diffArrays(arA, arB) { | ||
var arrays = arA.length > arB.length ? [arA, arB] : [arB, arA]; | ||
return arrays[0].filter(function (newArElem) { | ||
return !arrays[1].includes(newArElem); | ||
}); | ||
}; |
@@ -1,1 +0,11 @@ | ||
"use strict"; | ||
"use strict"; | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
var _countries = require("../functions/countries"); | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
var countryCodesEnum = (0, _countries.getCountryCodes)().reduce(function (arReturn, countryCode) { | ||
return _extends({}, arReturn, _defineProperty({}, countryCode, countryCode)); | ||
}, {}); |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/matteocng/react-flag-icon-css#readme", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"main": "./lib", | ||
@@ -29,4 +29,4 @@ "author": { | ||
"classnames": "^2.2.5", | ||
"flag-icon-css": "^2.4.0", | ||
"react-css-modules": "^4.0.0", | ||
"flag-icon-css": "^2.8.0", | ||
"react-css-modules": "^4.1.0", | ||
"tcomb": "^3.2.15", | ||
@@ -36,31 +36,31 @@ "tcomb-react": "^0.9.3" | ||
"devDependencies": { | ||
"babel-cli": "^6.16.0", | ||
"babel-eslint": "^7.0.0", | ||
"babel-cli": "^6.18.0", | ||
"babel-eslint": "^7.1.1", | ||
"babel-plugin-transform-export-extensions": "^6.8.0", | ||
"babel-plugin-transform-object-rest-spread": "^6.8.0", | ||
"babel-preset-es2015": "^6.14.0", | ||
"babel-preset-react": "^6.11.1", | ||
"babel-plugin-transform-object-rest-spread": "^6.20.2", | ||
"babel-preset-es2015": "^6.18.0", | ||
"babel-preset-react": "^6.16.0", | ||
"classnames": "^2.2.5", | ||
"css-modules-require-hook": "^4.0.3", | ||
"enzyme": "^2.4.1", | ||
"eslint": "^3.6.1", | ||
"eslint-config-airbnb": "^12.0.0", | ||
"eslint-plugin-babel": "^3.3.0", | ||
"eslint-plugin-flowtype": "^2.19.0", | ||
"eslint-plugin-import": "^1.16.0", | ||
"eslint-plugin-jsx-a11y": "^2.2.2", | ||
"eslint-plugin-react": "^6.3.0", | ||
"flag-icon-css": "^2.4.0", | ||
"flow-bin": "^0.32.0", | ||
"css-modules-require-hook": "^4.0.5", | ||
"enzyme": "^2.6.0", | ||
"eslint": "^3.12.1", | ||
"eslint-config-airbnb": "^13.0.0", | ||
"eslint-plugin-babel": "^4.0.0", | ||
"eslint-plugin-flowtype": "^2.29.1", | ||
"eslint-plugin-import": "^2.2.0", | ||
"eslint-plugin-jsx-a11y": "^2.2.3", | ||
"eslint-plugin-react": "^6.8.0", | ||
"flag-icon-css": "^2.8.0", | ||
"flow-bin": "^0.37.0", | ||
"flow-copy-source": "^1.1.0", | ||
"jsdom": "^9.5.0", | ||
"jsdom": "^9.8.3", | ||
"mkdirp": "^0.5.1", | ||
"node-sass": "^3.10.0", | ||
"react": "^15.3.2", | ||
"react-addons-test-utils": "^15.3.2", | ||
"react-css-modules": "^4.0.0", | ||
"react-dom": "^15.3.2", | ||
"node-sass": "^4.0.0", | ||
"react": "^15.4.1", | ||
"react-addons-test-utils": "^15.4.1", | ||
"react-css-modules": "^4.1.0", | ||
"react-dom": "^15.4.1", | ||
"rimraf": "^2.5.4", | ||
"sass-lint": "^1.9.1", | ||
"tape": "^4.6.0", | ||
"sass-lint": "^1.10.2", | ||
"tape": "^4.6.3", | ||
"tcomb": "^3.2.15", | ||
@@ -67,0 +67,0 @@ "tcomb-react": "^0.9.3" |
@@ -82,2 +82,2 @@ A simple React SVG country flags component that works with React Css Modules (default) or global Css. | ||
This project is licensed under the terms of the [MIT license](relative link/LICENSE). | ||
This project is licensed under the terms of the [MIT license](LICENSE). |
@@ -215,2 +215,5 @@ [{ | ||
}, { | ||
"name": "European Union", | ||
"code": "eu" | ||
}, { | ||
"name": "Falkland Islands (Malvinas)", | ||
@@ -708,2 +711,17 @@ "code": "fk" | ||
}, { | ||
"name": "England", | ||
"code": "gb-eng" | ||
}, { | ||
"name": "Northern Ireland", | ||
"code": "gb-nir" | ||
}, { | ||
"name": "Scotland", | ||
"code": "gb-sct" | ||
}, { | ||
"name": "Wales", | ||
"code": "gb-wls" | ||
}, { | ||
"name": "United Nations", | ||
"code": "un" | ||
}, { | ||
"name": "United States", | ||
@@ -710,0 +728,0 @@ "code": "us" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
187750
44
1241
1
Updatedflag-icon-css@^2.8.0
Updatedreact-css-modules@^4.1.0