Socket
Socket
Sign inDemoInstall

jss-plugin-extend

Package Overview
Dependencies
6
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.7.1 to 10.8.0

src/index.js.flow

12

dist/jss-plugin-extend.bundle.js

@@ -130,5 +130,2 @@ function _extends() {

* Handle `extend` property.
*
* @param {Rule} rule
* @api public
*/

@@ -147,8 +144,6 @@

if (value == null || value === false) {
// $FlowFixMe[prop-missing]
for (var key in rule[valueNs]) {
rule.prop(key, null);
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
}
rule[valueNs] = null;

@@ -159,9 +154,6 @@ return null;

if (typeof value === 'object') {
// $FlowFixMe[invalid-in-rhs] This will be an object
for (var _key in value) {
// $FlowFixMe[incompatible-use] This will be an object
rule.prop(_key, value[_key]);
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
}
rule[valueNs] = value;

@@ -168,0 +160,0 @@ } // Make sure we don't set the value in the core.

@@ -106,5 +106,2 @@ 'use strict';

* Handle `extend` property.
*
* @param {Rule} rule
* @api public
*/

@@ -123,8 +120,6 @@

if (value == null || value === false) {
// $FlowFixMe[prop-missing]
for (var key in rule[valueNs]) {
rule.prop(key, null);
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
}
rule[valueNs] = null;

@@ -135,9 +130,6 @@ return null;

if (typeof value === 'object') {
// $FlowFixMe[invalid-in-rhs] This will be an object
for (var _key in value) {
// $FlowFixMe[incompatible-use] This will be an object
rule.prop(_key, value[_key]);
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
}
rule[valueNs] = value;

@@ -144,0 +136,0 @@ } // Make sure we don't set the value in the core.

@@ -97,5 +97,2 @@ import _extends from '@babel/runtime/helpers/esm/extends';

* Handle `extend` property.
*
* @param {Rule} rule
* @api public
*/

@@ -114,8 +111,6 @@

if (value == null || value === false) {
// $FlowFixMe[prop-missing]
for (var key in rule[valueNs]) {
rule.prop(key, null);
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
}
rule[valueNs] = null;

@@ -126,9 +121,6 @@ return null;

if (typeof value === 'object') {
// $FlowFixMe[invalid-in-rhs] This will be an object
for (var _key in value) {
// $FlowFixMe[incompatible-use] This will be an object
rule.prop(_key, value[_key]);
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
}
rule[valueNs] = value;

@@ -135,0 +127,0 @@ } // Make sure we don't set the value in the core.

@@ -136,5 +136,2 @@ (function (global, factory) {

* Handle `extend` property.
*
* @param {Rule} rule
* @api public
*/

@@ -153,8 +150,6 @@

if (value == null || value === false) {
// $FlowFixMe[prop-missing]
for (var key in rule[valueNs]) {
rule.prop(key, null);
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
}
rule[valueNs] = null;

@@ -165,9 +160,6 @@ return null;

if (typeof value === 'object') {
// $FlowFixMe[invalid-in-rhs] This will be an object
for (var _key in value) {
// $FlowFixMe[incompatible-use] This will be an object
rule.prop(_key, value[_key]);
} // $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
}
rule[valueNs] = value;

@@ -174,0 +166,0 @@ } // Make sure we don't set the value in the core.

{
"name": "jss-plugin-extend",
"description": "JSS plugin that enables mixing in styles.",
"version": "10.7.1",
"version": "10.8.0",
"license": "MIT",

@@ -38,12 +38,12 @@ "homepage": "https://cssinjs.org/jss-extend",

"devDependencies": {
"jss-plugin-expand": "10.7.1",
"jss-plugin-nested": "10.7.1",
"jss-plugin-rule-value-function": "10.7.1"
"jss-plugin-expand": "10.8.0",
"jss-plugin-nested": "10.8.0",
"jss-plugin-rule-value-function": "10.8.0"
},
"dependencies": {
"@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-extend

See our website [jss-plugin-extend](https://cssinjs.org/jss-plugin-extend?v=v10.7.1) for more information.
See our website [jss-plugin-extend](https://cssinjs.org/jss-plugin-extend?v=v10.8.0) for more information.

@@ -14,0 +14,0 @@ ## Install

@@ -1,7 +0,5 @@

// @flow
/* eslint-disable no-use-before-define */
import warning from 'tiny-warning'
import type {Plugin} from 'jss'
const isObject = obj => obj && typeof obj === 'object' && !Array.isArray(obj)
const isObject = (obj) => obj && typeof obj === 'object' && !Array.isArray(obj)
const valueNs = `extendCurrValue${Date.now()}`

@@ -83,7 +81,4 @@

* Handle `extend` property.
*
* @param {Rule} rule
* @api public
*/
export default function jssExtend(): Plugin {
export default function jssExtend() {
function onProcessStyle(style, rule, sheet) {

@@ -99,7 +94,5 @@ if ('extend' in style) return extend(style, rule, sheet)

if (value == null || value === false) {
// $FlowFixMe[prop-missing]
for (const key in rule[valueNs]) {
rule.prop(key, null)
}
// $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
rule[valueNs] = null

@@ -110,9 +103,6 @@ return null

if (typeof value === 'object') {
// $FlowFixMe[invalid-in-rhs] This will be an object
for (const key in value) {
// $FlowFixMe[incompatible-use] This will be an object
rule.prop(key, value[key])
}
// $FlowFixMe[prop-missing] Flow complains because there is no indexer property in StyleRule
rule[valueNs] = value

@@ -119,0 +109,0 @@ }

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc