Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-with-styles-interface-aphrodite

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-with-styles-interface-aphrodite - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

5

CHANGELOG.md

@@ -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 @@

6

lib/aphroditeInterface.js

@@ -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({

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc