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

aesthetic-adapter-css-modules

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aesthetic-adapter-css-modules - npm Package Compare versions

Comparing version 1.3.0 to 1.4.0

src/NativeAdapter.js

4

CHANGELOG.md

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

18

lib/NativeAdapter.js

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

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