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

jss-plugin-extend

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

jss-plugin-extend - npm Package Compare versions

Comparing version 10.4.0 to 10.5.0

10

dist/jss-plugin-extend.bundle.js

@@ -146,6 +146,6 @@ function _extends() {

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

@@ -158,7 +158,7 @@

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

@@ -165,0 +165,0 @@

@@ -5,7 +5,10 @@ 'use strict';

function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var _extends = require('@babel/runtime/helpers/extends');
var warning = require('tiny-warning');
var _extends = _interopDefault(require('@babel/runtime/helpers/extends'));
var warning = _interopDefault(require('tiny-warning'));
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
var warning__default = /*#__PURE__*/_interopDefaultLegacy(warning);
var isObject = function isObject(obj) {

@@ -26,3 +29,3 @@ return obj && typeof obj === 'object' && !Array.isArray(obj);

if (refRule === rule) {
process.env.NODE_ENV !== "production" ? warning(false, "[JSS] A rule tries to extend itself \n" + rule.toString()) : void 0;
process.env.NODE_ENV !== "production" ? warning__default['default'](false, "[JSS] A rule tries to extend itself \n" + rule.toString()) : void 0;
return;

@@ -45,3 +48,3 @@ }

var singleExtend = style.extend[index];
var singleStyle = typeof singleExtend === 'string' ? _extends({}, style, {
var singleStyle = typeof singleExtend === 'string' ? _extends__default['default']({}, style, {
extend: singleExtend

@@ -122,6 +125,6 @@ }) : style.extend[index];

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

@@ -134,7 +137,7 @@

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

@@ -141,0 +144,0 @@

@@ -113,6 +113,6 @@ import _extends from '@babel/runtime/helpers/esm/extends';

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

@@ -125,7 +125,7 @@

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

@@ -132,0 +132,0 @@

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = global || self, factory(global.jssPluginExtend = {}));
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jssPluginExtend = {}));
}(this, (function (exports) { 'use strict';

@@ -152,6 +152,6 @@

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

@@ -164,7 +164,7 @@

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

@@ -171,0 +171,0 @@

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e=e||self).jssPluginExtend={})}(this,function(e){"use strict";function n(){return(n=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var t=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},r="extendCurrValue"+Date.now();function o(e,r,i,f){return void 0===f&&(f={}),function(e,r,i,f){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var u=0;u<e.extend.length;u++){var d=e.extend[u];o("string"==typeof d?n({},e,{extend:d}):e.extend[u],r,i,f)}else for(var a in e.extend)"extend"!==a?t(e.extend[a])?(a in f||(f[a]={}),o(e.extend[a],r,i,f[a])):f[a]=e.extend[a]:o(e.extend.extend,r,i,f);else{if(!i)return;var l=i.getRule(e.extend);if(!l)return;if(l===r)return;var s=l.options.parent;s&&o(s.rules.raw[e.extend],r,i,f)}}(e,r,i,f),function(e,n,r,i){for(var f in e)"extend"!==f&&(t(i[f])&&t(e[f])?o(e[f],n,r,i[f]):t(e[f])?i[f]=o(e[f],n,r):i[f]=e[f])}(e,r,i,f),f}e.default=function(){return{onProcessStyle:function(e,n,t){return"extend"in e?o(e,n,t):e},onChangeValue:function(e,n,t){if("extend"!==n)return e;if(null==e||!1===e){for(var o in t[r])t.prop(o,null);return t[r]=null,null}if("object"==typeof e){for(var i in e)t.prop(i,e[i]);t[r]=e}return null}}},Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((e="undefined"!=typeof globalThis?globalThis:e||self).jssPluginExtend={})}(this,(function(e){"use strict";function n(){return(n=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e}).apply(this,arguments)}var t=function(e){return e&&"object"==typeof e&&!Array.isArray(e)},r="extendCurrValue"+Date.now();function o(e,r,i,f){return void 0===f&&(f={}),function(e,r,i,f){if("string"!=typeof e.extend)if(Array.isArray(e.extend))for(var u=0;u<e.extend.length;u++){var d=e.extend[u];o("string"==typeof d?n({},e,{extend:d}):e.extend[u],r,i,f)}else for(var l in e.extend)"extend"!==l?t(e.extend[l])?(l in f||(f[l]={}),o(e.extend[l],r,i,f[l])):f[l]=e.extend[l]:o(e.extend.extend,r,i,f);else{if(!i)return;var a=i.getRule(e.extend);if(!a)return;if(a===r)return;var s=a.options.parent;s&&o(s.rules.raw[e.extend],r,i,f)}}(e,r,i,f),function(e,n,r,i){for(var f in e)"extend"!==f&&(t(i[f])&&t(e[f])?o(e[f],n,r,i[f]):t(e[f])?i[f]=o(e[f],n,r):i[f]=e[f])}(e,r,i,f),f}e.default=function(){return{onProcessStyle:function(e,n,t){return"extend"in e?o(e,n,t):e},onChangeValue:function(e,n,t){if("extend"!==n)return e;if(null==e||!1===e){for(var o in t[r])t.prop(o,null);return t[r]=null,null}if("object"==typeof e){for(var i in e)t.prop(i,e[i]);t[r]=e}return null}}},Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "jss-plugin-extend",
"description": "JSS plugin that enables mixing in styles.",
"version": "10.4.0",
"version": "10.5.0",
"license": "MIT",

@@ -22,3 +22,3 @@ "homepage": "https://cssinjs.org/jss-extend",

"src",
"LICENSE"
"!*.test.*"
],

@@ -38,12 +38,12 @@ "keywords": [

"devDependencies": {
"jss-plugin-expand": "10.4.0",
"jss-plugin-nested": "10.4.0",
"jss-plugin-rule-value-function": "10.4.0"
"jss-plugin-expand": "10.5.0",
"jss-plugin-nested": "10.5.0",
"jss-plugin-rule-value-function": "10.5.0"
},
"dependencies": {
"@babel/runtime": "^7.3.1",
"jss": "10.4.0",
"jss": "10.5.0",
"tiny-warning": "^1.0.2"
},
"gitHead": "a864fcf08c6da3cbb7ae878c09eaf52e619ed6c3"
"gitHead": "f9d93723ea0b8748c8a89248ebb680ed07e95c48"
}

@@ -12,3 +12,3 @@ # jss-plugin-extend

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

@@ -15,0 +15,0 @@ ## Install

@@ -98,7 +98,7 @@ // @flow

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

@@ -109,9 +109,9 @@ return null

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

@@ -118,0 +118,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