jss-plugin-compose
Advanced tools
Comparing version 10.7.1 to 10.8.0
@@ -22,6 +22,7 @@ function warning(condition, message) { | ||
* | ||
* @param {Object} original rule | ||
* @param {String} className class string | ||
* @return {Boolean} flag, indicating function was successfull or not | ||
* @param original rule | ||
* @param className class string | ||
* @return flag indicating function was successfull or not | ||
*/ | ||
function registerClass(rule, className) { | ||
@@ -45,4 +46,3 @@ // Skip falsy values | ||
var _ref = rule.options, | ||
parent = _ref.parent; // It is a ref to a local rule. | ||
var parent = rule.options.parent; // It is a ref to a local rule. | ||
@@ -71,5 +71,2 @@ if (className[0] === '$') { | ||
* Convert compose property to additional class, remove property from original styles. | ||
* | ||
* @param {Rule} rule | ||
* @api public | ||
*/ | ||
@@ -76,0 +73,0 @@ |
@@ -14,6 +14,7 @@ 'use strict'; | ||
* | ||
* @param {Object} original rule | ||
* @param {String} className class string | ||
* @return {Boolean} flag, indicating function was successfull or not | ||
* @param original rule | ||
* @param className class string | ||
* @return flag indicating function was successfull or not | ||
*/ | ||
function registerClass(rule, className) { | ||
@@ -37,4 +38,3 @@ // Skip falsy values | ||
var _ref = rule.options, | ||
parent = _ref.parent; // It is a ref to a local rule. | ||
var parent = rule.options.parent; // It is a ref to a local rule. | ||
@@ -63,5 +63,2 @@ if (className[0] === '$') { | ||
* Convert compose property to additional class, remove property from original styles. | ||
* | ||
* @param {Rule} rule | ||
* @api public | ||
*/ | ||
@@ -68,0 +65,0 @@ |
@@ -6,6 +6,7 @@ import warning from 'tiny-warning'; | ||
* | ||
* @param {Object} original rule | ||
* @param {String} className class string | ||
* @return {Boolean} flag, indicating function was successfull or not | ||
* @param original rule | ||
* @param className class string | ||
* @return flag indicating function was successfull or not | ||
*/ | ||
function registerClass(rule, className) { | ||
@@ -29,4 +30,3 @@ // Skip falsy values | ||
var _ref = rule.options, | ||
parent = _ref.parent; // It is a ref to a local rule. | ||
var parent = rule.options.parent; // It is a ref to a local rule. | ||
@@ -55,5 +55,2 @@ if (className[0] === '$') { | ||
* Convert compose property to additional class, remove property from original styles. | ||
* | ||
* @param {Rule} rule | ||
* @api public | ||
*/ | ||
@@ -60,0 +57,0 @@ |
@@ -28,6 +28,7 @@ (function (global, factory) { | ||
* | ||
* @param {Object} original rule | ||
* @param {String} className class string | ||
* @return {Boolean} flag, indicating function was successfull or not | ||
* @param original rule | ||
* @param className class string | ||
* @return flag indicating function was successfull or not | ||
*/ | ||
function registerClass(rule, className) { | ||
@@ -51,4 +52,3 @@ // Skip falsy values | ||
var _ref = rule.options, | ||
parent = _ref.parent; // It is a ref to a local rule. | ||
var parent = rule.options.parent; // It is a ref to a local rule. | ||
@@ -77,5 +77,2 @@ if (className[0] === '$') { | ||
* Convert compose property to additional class, remove property from original styles. | ||
* | ||
* @param {Rule} rule | ||
* @api public | ||
*/ | ||
@@ -82,0 +79,0 @@ |
{ | ||
"name": "jss-plugin-compose", | ||
"description": "JSS plugin for classes composition", | ||
"version": "10.7.1", | ||
"version": "10.8.0", | ||
"license": "MIT", | ||
@@ -40,6 +40,6 @@ "homepage": "https://cssinjs.org/jss-compose", | ||
"@babel/runtime": "^7.3.1", | ||
"jss": "10.7.1", | ||
"jss": "10.8.0", | ||
"tiny-warning": "^1.0.2" | ||
}, | ||
"gitHead": "2b54776c03d97a3bccbbcb28b63508f74103ebbc" | ||
"gitHead": "d2e1aea99b2a8a9c2d8725df1dfcd222d2504a7a" | ||
} |
@@ -11,3 +11,3 @@ # jss-plugin-compose | ||
See our website [jss-plugin-compose](https://cssinjs.org/jss-plugin-compose?v=v10.7.1) for more information. | ||
See our website [jss-plugin-compose](https://cssinjs.org/jss-plugin-compose?v=v10.8.0) for more information. | ||
@@ -14,0 +14,0 @@ ## Install |
@@ -1,4 +0,2 @@ | ||
// @flow | ||
import warning from 'tiny-warning' | ||
import type {Plugin, StyleSheet} from 'jss' | ||
@@ -8,5 +6,5 @@ /** | ||
* | ||
* @param {Object} original rule | ||
* @param {String} className class string | ||
* @return {Boolean} flag, indicating function was successfull or not | ||
* @param original rule | ||
* @param className class string | ||
* @return flag indicating function was successfull or not | ||
*/ | ||
@@ -32,3 +30,3 @@ function registerClass(rule, className) { | ||
const {parent} = ((rule.options: any): {parent: StyleSheet}) | ||
const {parent} = rule.options | ||
@@ -61,7 +59,4 @@ // It is a ref to a local rule. | ||
* Convert compose property to additional class, remove property from original styles. | ||
* | ||
* @param {Rule} rule | ||
* @api public | ||
*/ | ||
export default function jssCompose(): Plugin { | ||
export default function jssCompose() { | ||
function onProcessStyle(style, rule) { | ||
@@ -68,0 +63,0 @@ if (!('composes' in style)) return style |
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
13
18647
309
+ Addedjss@10.8.0(transitive)
- Removedjss@10.7.1(transitive)
Updatedjss@10.8.0