react-with-styles-interface-aphrodite
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -0,1 +1,6 @@ | ||
## v1.1.1 | ||
- This release reverts all of the changes from 1.1.0, so inline styles no longer | ||
include vendor prefixes. | ||
## v1.1.0 | ||
@@ -2,0 +7,0 @@ |
@@ -15,6 +15,2 @@ Object.defineProperty(exports, "__esModule", { | ||
var _static = require('inline-style-prefixer/static'); | ||
var _static2 = _interopRequireDefault(_static); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } | ||
@@ -93,3 +89,3 @@ | ||
if (hasInlineStyles) { | ||
result.style = (0, _static2['default'])(inlineStyles); | ||
result.style = inlineStyles; | ||
} | ||
@@ -96,0 +92,0 @@ return result; |
{ | ||
"name": "react-with-styles-interface-aphrodite", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "react-with-styles interface for Aphrodite", | ||
@@ -61,5 +61,4 @@ "main": "lib/aphroditeInterface.js", | ||
"array-flatten": "^2.1.0", | ||
"has": "^1.0.1", | ||
"inline-style-prefixer": "^2.0.0" | ||
"has": "^1.0.1" | ||
} | ||
} |
@@ -5,3 +5,2 @@ import { StyleSheet, css } from 'aphrodite'; | ||
import has from 'has'; | ||
import prefixAll from 'inline-style-prefixer/static'; | ||
@@ -73,3 +72,3 @@ // This function takes the array of styles and separates them into styles that | ||
if (hasInlineStyles) { | ||
result.style = prefixAll(inlineStyles); | ||
result.style = inlineStyles; | ||
} | ||
@@ -76,0 +75,0 @@ return result; |
@@ -107,21 +107,2 @@ import { expect } from 'chai'; | ||
it('prefixes inline styles', () => { | ||
const style = { | ||
display: 'flex', | ||
}; | ||
expect(aphroditeInterface.resolve([style])) | ||
.to.eql({ | ||
style: { | ||
display: [ | ||
'-webkit-box', | ||
'-moz-box', | ||
'-ms-flexbox', | ||
'-webkit-flex', | ||
'flex', | ||
], | ||
}, | ||
}); | ||
}); | ||
it('handles a mix of Aphrodite and inline styles', () => { | ||
@@ -128,0 +109,0 @@ const styles = aphroditeInterface.create({ |
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
3
15603
282
- Removedinline-style-prefixer@^2.0.0
- Removedbowser@1.9.4(transitive)
- Removedinline-style-prefixer@2.0.5(transitive)