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

aesthetic

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aesthetic - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0-rc.1

CHANGELOG.md

18

index.js

@@ -6,18 +6,2 @@ /**

const PropTypes = require('react').PropTypes;
const Aesthetic = require('./lib/Aesthetic').default;
Aesthetic.Adapter = require('./lib/Adapter').default;
Aesthetic.ClassNameAdapter = require('./lib/ClassNameAdapter').default;
Aesthetic.ThemeProvider = require('./lib/ThemeProvider').default;
Aesthetic.createStyler = require('./lib/createStyler').default;
Aesthetic.classes = require('./lib/classes').default;
Aesthetic.ClassNamesPropType = PropTypes.objectOf(PropTypes.string);
Aesthetic.StylesPropType = PropTypes.objectOf(PropTypes.object);
Aesthetic.ClassOrStylesPropType = PropTypes.oneOfType([
PropTypes.objectOf(PropTypes.string),
PropTypes.objectOf(PropTypes.object),
]);
module.exports = Aesthetic;
module.exports = require('./lib/index');

@@ -41,2 +41,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _hoistNonReactStatics = require('hoist-non-react-statics');

@@ -52,2 +56,10 @@

/**
* @copyright 2017, Miles Johnson
* @license https://opensource.org/licenses/MIT
*
*/
/* eslint-disable react/sort-comp, react/no-unused-prop-types, react/require-default-props */
/*:: import type {

@@ -59,9 +71,4 @@ TransformedStylesMap,

HOCOptions,
} from '../../types';*/ /**
* @copyright 2017, Miles Johnson
* @license https://opensource.org/licenses/MIT
*
*/
} from '../../types';*/
/* eslint-disable react/sort-comp, react/no-unused-prop-types, react/require-default-props */

@@ -189,5 +196,5 @@ // Keep track in production

StyledComponent.wrappedComponent = Component;
StyledComponent.propTypes = (0, _defineProperty3.default)({}, themePropName, _react.PropTypes.string);
StyledComponent.propTypes = (0, _defineProperty3.default)({}, themePropName, _propTypes2.default.string);
StyledComponent.contextTypes = {
themeName: _react.PropTypes.string
themeName: _propTypes2.default.string
};

@@ -194,0 +201,0 @@

@@ -31,4 +31,14 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* @copyright 2017, Miles Johnson
* @license https://opensource.org/licenses/MIT
*
*/
var ThemeProvider = function (_React$Component) {

@@ -56,15 +66,11 @@ (0, _inherits3.default)(ThemeProvider, _React$Component);

return ThemeProvider;
}(_react2.default.Component); /**
* @copyright 2017, Miles Johnson
* @license https://opensource.org/licenses/MIT
*
*/
}(_react2.default.Component);
ThemeProvider.propTypes = {
children: _react.PropTypes.node.isRequired,
name: _react.PropTypes.string.isRequired
children: _propTypes2.default.node.isRequired,
name: _propTypes2.default.string.isRequired
};
ThemeProvider.childContextTypes = {
themeName: _react.PropTypes.string
themeName: _propTypes2.default.string
};
exports.default = ThemeProvider;
{
"name": "aesthetic",
"version": "1.2.0",
"version": "1.3.0-rc.1",
"description": "Abstract library to support a range of styling options for React components.",

@@ -13,6 +13,7 @@ "keywords": [

"dependencies": {
"aesthetic-utils": "^1.2.0",
"aesthetic-utils": "^1.3.0-rc.1",
"babel-runtime": "^6.23.0",
"hoist-non-react-statics": "^1.2.0",
"lodash.merge": "^4.6.0"
"lodash.merge": "^4.6.0",
"prop-types": "^15.5.8"
},

@@ -23,4 +24,4 @@ "peerDependencies": {

"devDependencies": {
"react": "^15.0.0"
"react": "^15.5.4"
}
}

@@ -1,2 +0,2 @@

# Aesthetic v1.2.0
# Aesthetic v1.3.0
[![Build Status](https://travis-ci.org/milesj/aesthetic.svg?branch=master)](https://travis-ci.org/milesj/aesthetic)

@@ -11,3 +11,4 @@

```javascript
import React, { PropTypes } from 'react';
import React from 'react';
import PropTypes from 'prop-types';
import { classes, ClassNamesPropType } from 'aesthetic';

@@ -14,0 +15,0 @@ import style from '../path/to/styler';

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