aesthetic-adapter-css-modules
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -0,2 +1,6 @@ | ||
# 1.4.0 | ||
* Updated IE requirement to 11+. | ||
* Updated to include src/ files in the published package. | ||
# 1.3.0 | ||
* Updated to support React 15.5 and the new `prop-types` package. |
@@ -6,2 +6,3 @@ /** | ||
// eslint-disable-next-line import/no-unresolved | ||
module.exports = require('./lib/NativeAdapter').default; |
@@ -37,8 +37,2 @@ 'use strict'; | ||
/*:: import type { StyleDeclarationMap, TransformedStylesMap } from '../../types';*/ /** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
var CSSModulesAdapter = function (_Adapter) { | ||
@@ -54,4 +48,4 @@ (0, _inherits3.default)(CSSModulesAdapter, _Adapter); | ||
key: 'transform', | ||
value: function transform(styleName /*: string*/, declarations /*: StyleDeclarationMap*/) /*: TransformedStylesMap*/ { | ||
if (process.env.NODE_ENV === 'development') { | ||
value: function transform(styleName, declarations) { | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (this.native) { | ||
@@ -64,3 +58,3 @@ throw new Error('CSS modules do not support React Native.'); | ||
(0, _keys2.default)(declarations).forEach(function (setName /*: string*/) { | ||
(0, _keys2.default)(declarations).forEach(function (setName) { | ||
output[setName] = styleName + '-' + String(declarations[setName]); | ||
@@ -73,4 +67,8 @@ }); | ||
return CSSModulesAdapter; | ||
}(_Adapter3.default); | ||
}(_Adapter3.default); /** | ||
* @copyright 2017, Miles Johnson | ||
* @license https://opensource.org/licenses/MIT | ||
* | ||
*/ | ||
exports.default = CSSModulesAdapter; |
{ | ||
"name": "aesthetic-adapter-css-modules", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "CSS modules support for Aesthetic.", | ||
@@ -15,10 +15,10 @@ "keywords": [ | ||
"babel-runtime": "^6.23.0", | ||
"prop-types": "^15.5.8" | ||
"prop-types": "^15.5.9" | ||
}, | ||
"peerDependencies": { | ||
"aesthetic": "^1.3.0" | ||
"aesthetic": "^1.4.0" | ||
}, | ||
"devDependencies": { | ||
"aesthetic": "^1.3.0" | ||
"aesthetic": "^1.4.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
9129
9
73
3
Updatedprop-types@^15.5.9