aesthetic-adapter-css-modules
Advanced tools
Comparing version 1.4.2 to 1.5.0
@@ -0,1 +1,5 @@ | ||
# 1.5.0 | ||
* Updated Flow definitions. | ||
* Wrapped errors in `__DEV__` environment checks. | ||
# 1.4.2 | ||
@@ -2,0 +6,0 @@ * Fixed an issue with the lerna package. |
@@ -6,3 +6,3 @@ /** | ||
// eslint-disable-next-line import/no-unresolved | ||
// eslint-disable-next-line | ||
module.exports = require('./lib/NativeAdapter').default; |
@@ -48,3 +48,3 @@ 'use strict'; | ||
value: function transform(styleName, declarations) { | ||
if (process.env.NODE_ENV !== 'production') { | ||
if ("production" !== process.env.NODE_ENV) { | ||
if (this.native) { | ||
@@ -51,0 +51,0 @@ throw new Error('CSS modules do not support React Native.'); |
{ | ||
"name": "aesthetic-adapter-css-modules", | ||
"version": "1.4.2", | ||
"version": "1.5.0", | ||
"description": "CSS modules support for Aesthetic.", | ||
@@ -14,11 +14,11 @@ "keywords": [ | ||
"dependencies": { | ||
"babel-runtime": "^6.23.0", | ||
"babel-runtime": "^6.25.0", | ||
"prop-types": "^15.5.10" | ||
}, | ||
"peerDependencies": { | ||
"aesthetic": "^1.4.2" | ||
"aesthetic": "^1.5.0" | ||
}, | ||
"devDependencies": { | ||
"aesthetic": "^1.4.2" | ||
"aesthetic": "^1.5.0" | ||
} | ||
} |
@@ -13,3 +13,3 @@ /** | ||
transform(styleName: string, declarations: StyleDeclarationMap): TransformedStylesMap { | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (__DEV__) { | ||
if (this.native) { | ||
@@ -16,0 +16,0 @@ throw new Error('CSS modules do not support React Native.'); |
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
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
9290
2
Updatedbabel-runtime@^6.25.0