fela-plugin-extend
Advanced tools
Comparing version 1.2.0 to 2.0.0
@@ -52,3 +52,3 @@ (function (global, factory) { | ||
if (extension.condition) { | ||
assign(style, extension.style); | ||
assign(style, extend(extension.style)); | ||
} | ||
@@ -55,0 +55,0 @@ } else { |
@@ -1,1 +0,1 @@ | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.FelaPluginExtend=t()}(this,function(){"use strict";function n(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];return o.reduce(function(t,e){for(var o in e){var r=e[o];t[o]instanceof Object&&r instanceof Object?t[o]=n({},t[o],r):t[o]=r}return t},t)}function t(t,e){e.hasOwnProperty("condition")?e.condition&&n(t,e.style):n(t,e)}function e(n){return Object.keys(n).forEach(function(o){var r=n[o];"extend"===o?([].concat(r).forEach(function(e){return t(n,e)}),delete n[o]):r instanceof Object&&!Array.isArray(r)&&(n[o]=e(r))}),n}var o={};o.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},o.extends=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n};var r=function(){return e};return r}); | ||
!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.FelaPluginExtend=t()}(this,function(){"use strict";function n(t){for(var e=arguments.length,o=Array(e>1?e-1:0),r=1;r<e;r++)o[r-1]=arguments[r];return o.reduce(function(t,e){for(var o in e){var r=e[o];t[o]instanceof Object&&r instanceof Object?t[o]=n({},t[o],r):t[o]=r}return t},t)}function t(t,o){o.hasOwnProperty("condition")?o.condition&&n(t,e(o.style)):n(t,o)}function e(n){return Object.keys(n).forEach(function(o){var r=n[o];"extend"===o?([].concat(r).forEach(function(e){return t(n,e)}),delete n[o]):r instanceof Object&&!Array.isArray(r)&&(n[o]=e(r))}),n}var o={};o.typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol?"symbol":typeof n},o.extends=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o])}return n};var r=function(){return e};return r}); |
{ | ||
"name": "fela-plugin-extend", | ||
"version": "1.2.0", | ||
"version": "2.0.0", | ||
"description": "Fela plugin to extend style objects", | ||
@@ -21,4 +21,4 @@ "main": "index.js", | ||
"peerDependencies": { | ||
"fela": "1.2.0" | ||
"fela": "2.0.0" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # fela-plugin-extend | ||
<img alt="npm downloads" src="https://img.shields.io/npm/dm/fela-plugin-extend.svg"> | ||
<img alt="gzipped size" src="https://img.shields.io/badge/gzipped-0.53kb-brightgreen.svg"> | ||
<img alt="gzipped size" src="https://img.shields.io/badge/gzipped-0.54kb-brightgreen.svg"> | ||
@@ -15,8 +15,8 @@ Allows styles to be extended with other style objects. Supports a condition-based API. | ||
Assuming you are using [npm](https://www.npmjs.com) as your package mananger you can just `npm install`.<br> | ||
Otherwise we also provide a [UMD](https://github.com/umdjs/umd). You can easily use it via [unpkg](https://unpkg.com/). It registers a `FelaPluginExtend` global. | ||
Otherwise we also provide a [UMD](https://github.com/umdjs/umd). You can easily use it via [unpkg](https://unpkg.com/). It registers a `FelaPluginExtend` global. | ||
```HTML | ||
<!-- Fela (Development): Unminified version including all warnings --> | ||
<script src="https://unpkg.com/fela-plugin-extend@1.2.0/dist/fela-plugin-extend.js"></script> | ||
<script src="https://unpkg.com/fela-plugin-extend@2.0.0/dist/fela-plugin-extend.js"></script> | ||
<!-- Fela (Production): Minified version --> | ||
<script src="https://unpkg.com/fela-plugin-extend@1.2.0/dist/fela-plugin-extend.min.js"></script> | ||
<script src="https://unpkg.com/fela-plugin-extend@2.0.0/dist/fela-plugin-extend.min.js"></script> | ||
``` | ||
@@ -23,0 +23,0 @@ |
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
10634