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

fela-utils

Package Overview
Dependencies
Maintainers
2
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-utils - npm Package Compare versions

Comparing version 12.0.0-rc.1 to 12.0.0-rc.2

2

es/normalizeNestedProperty.js
export default function normalizeNestedProperty(nestedProperty) {
if (nestedProperty.charAt(0) === '&') {
return nestedProperty.slice(1);
return nestedProperty.substr(1);
}

@@ -5,0 +5,0 @@

@@ -10,3 +10,3 @@ "use strict";

if (nestedProperty.charAt(0) === '&') {
return nestedProperty.slice(1);
return nestedProperty.substr(1);
}

@@ -13,0 +13,0 @@

{
"name": "fela-utils",
"version": "12.0.0-rc.1",
"version": "12.0.0-rc.2",
"description": "Internal utilities for Fela",

@@ -58,3 +58,3 @@ "main": "lib/index.js",

},
"gitHead": "20e073d04b1a97beb6a099e160b0813db845a5e9"
"gitHead": "0e5e638041a6a62e52128dbac21e9c5f21d80b66"
}

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

!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("FelaUtils",[],n):"object"==typeof exports?exports.FelaUtils=n():t.FelaUtils=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)e.d(r,u,function(n){return t[n]}.bind(null,u));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=1)}([,function(t,n,e){"use strict";function r(t,n,e){for(var r in t)e=n(e,t[r],r,t);return e}function u(t,n){return"".concat(t,"{").concat(n,"}")}function o(t,n,e){for(var r=0,u=t.length;r<u;++r)e=n(e,t[r],r,u,t);return e}function i(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return c(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function a(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return f(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return f(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function l(t,n){return o(r(t,(function(e,r,u){var o=function(t,n){for(var e=-1,r=0;r<t.length;r++)if(n(t[r])){e=r;break}return e}(e,(function(e){return n(t[e],e)>n(r,u)}));return-1!==o?function(t,n,e){return[].concat(i(t.slice(0,e)),[n],i(t.slice(e,t.length)))}(e,u,o):[].concat(a(e),[u])}),[]),(function(n,e){return n[e]=t[e],n}),{})}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===t.length||0===n.length?0:t.indexOf(t.find((function(t){return null!==n.match(t)})))+1}e.r(n),e.d(n,"clusterCache",(function(){return S})),e.d(n,"cssifySupportRules",(function(){return A})),e.d(n,"generateDeclarationReference",(function(){return U})),e.d(n,"generateCombinedMediaQuery",(function(){return M})),e.d(n,"generateCSSRule",(function(){return u})),e.d(n,"generateCSSSelector",(function(){return j})),e.d(n,"generateCSSSupportRule",(function(){return R})),e.d(n,"getRuleScore",(function(){return s})),e.d(n,"isMediaQuery",(function(){return T})),e.d(n,"isNestedSelector",(function(){return O})),e.d(n,"isSupport",(function(){return P})),e.d(n,"isUndefinedValue",(function(){return _})),e.d(n,"isValidHTMLElement",(function(){return w})),e.d(n,"normalizeNestedProperty",(function(){return x})),e.d(n,"processStyleWithPlugins",(function(){return I})),e.d(n,"sheetMap",(function(){return Y})),e.d(n,"RULE_TYPE",(function(){return p})),e.d(n,"KEYFRAME_TYPE",(function(){return y})),e.d(n,"FONT_TYPE",(function(){return v})),e.d(n,"STATIC_TYPE",(function(){return m})),e.d(n,"CLEAR_TYPE",(function(){return g}));var d,p="RULE",y="KEYFRAME",v="FONT",m="STATIC",g="CLEAR";function b(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var h=(b(d={},p,(function(t,n){var e=n.selector,r=n.declaration,o=n.support,i=n.media,c=u(e,r);o?i?(t.supportMediaRules[i]||(t.supportMediaRules[i]={}),t.supportMediaRules[i][o]||(t.supportMediaRules[i][o]=""),t.supportMediaRules[i][o]+=c):(t.supportRules[o]||(t.supportRules[o]=""),t.supportRules[o]+=c):i?(t.mediaRules[i]||(t.mediaRules[i]=""),t.mediaRules[i]+=c):t.rules+=c})),b(d,v,(function(t,n){var e=n.fontFace;t.fontFaces+=e})),b(d,y,(function(t,n){var e=n.keyframe;t.keyframes+=e})),b(d,m,(function(t,n){var e=n.css,r=n.selector;t.statics+=r?u(r,e):e})),d);function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=l(t,(function(t){return s(n,t.pseudo)}));return r(e,(function(t,n){var e=h[n.type];return e&&e(t,n),t}),{mediaRules:{},supportRules:{},supportMediaRules:{},fontFaces:"",statics:"",keyframes:"",rules:""})}function R(t,n){return"@supports ".concat(t,"{").concat(n,"}")}function A(t){return r(t,(function(t,n,e){return n.length>0&&(t+=R(e,n)),t}),"")}function M(t,n){return 0===t.length?n:"".concat(t," and ").concat(n)}function j(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,u=".".concat(t).repeat(r);return"".concat(e).concat(u).concat(n)}function T(t){return"@media"===t.substr(0,6)}var E=/^(:|\[|>|&)/;function O(t){return E.test(t)}function P(t){return"@supports"===t.substr(0,9)}var C=/undefined|null/,F=/url/;function _(t){return null==t||"string"==typeof t&&C.test(t)&&!F.test(t)}function w(t){return t&&1===t.nodeType}function x(t){return"&"===t.charAt(0)?t.slice(1):t}function I(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.plugins;return u.length>0?o(u,(function(n,u){return u(n,e,t,r)}),n):n}function U(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return u+r+e+t+n}var Y={fontFaces:v,statics:m,keyframes:y,rules:p}}])}));
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define("FelaUtils",[],n):"object"==typeof exports?exports.FelaUtils=n():t.FelaUtils=n()}(window,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return t[r].call(u.exports,u,u.exports,e),u.l=!0,u.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var u in t)e.d(r,u,function(n){return t[n]}.bind(null,u));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=1)}([,function(t,n,e){"use strict";function r(t,n,e){for(var r in t)e=n(e,t[r],r,t);return e}function u(t,n){return"".concat(t,"{").concat(n,"}")}function o(t,n,e){for(var r=0,u=t.length;r<u;++r)e=n(e,t[r],r,u,t);return e}function i(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return c(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return c(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function a(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return f(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);"Object"===e&&t.constructor&&(e=t.constructor.name);if("Map"===e||"Set"===e)return Array.from(t);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return f(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e<n;e++)r[e]=t[e];return r}function l(t,n){return o(r(t,(function(e,r,u){var o=function(t,n){for(var e=-1,r=0;r<t.length;r++)if(n(t[r])){e=r;break}return e}(e,(function(e){return n(t[e],e)>n(r,u)}));return-1!==o?function(t,n,e){return[].concat(i(t.slice(0,e)),[n],i(t.slice(e,t.length)))}(e,u,o):[].concat(a(e),[u])}),[]),(function(n,e){return n[e]=t[e],n}),{})}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return 0===t.length||0===n.length?0:t.indexOf(t.find((function(t){return null!==n.match(t)})))+1}e.r(n),e.d(n,"clusterCache",(function(){return S})),e.d(n,"cssifySupportRules",(function(){return A})),e.d(n,"generateDeclarationReference",(function(){return U})),e.d(n,"generateCombinedMediaQuery",(function(){return M})),e.d(n,"generateCSSRule",(function(){return u})),e.d(n,"generateCSSSelector",(function(){return j})),e.d(n,"generateCSSSupportRule",(function(){return R})),e.d(n,"getRuleScore",(function(){return s})),e.d(n,"isMediaQuery",(function(){return T})),e.d(n,"isNestedSelector",(function(){return O})),e.d(n,"isSupport",(function(){return P})),e.d(n,"isUndefinedValue",(function(){return _})),e.d(n,"isValidHTMLElement",(function(){return w})),e.d(n,"normalizeNestedProperty",(function(){return x})),e.d(n,"processStyleWithPlugins",(function(){return I})),e.d(n,"sheetMap",(function(){return Y})),e.d(n,"RULE_TYPE",(function(){return p})),e.d(n,"KEYFRAME_TYPE",(function(){return y})),e.d(n,"FONT_TYPE",(function(){return v})),e.d(n,"STATIC_TYPE",(function(){return m})),e.d(n,"CLEAR_TYPE",(function(){return g}));var d,p="RULE",y="KEYFRAME",v="FONT",m="STATIC",g="CLEAR";function b(t,n,e){return n in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}var h=(b(d={},p,(function(t,n){var e=n.selector,r=n.declaration,o=n.support,i=n.media,c=u(e,r);o?i?(t.supportMediaRules[i]||(t.supportMediaRules[i]={}),t.supportMediaRules[i][o]||(t.supportMediaRules[i][o]=""),t.supportMediaRules[i][o]+=c):(t.supportRules[o]||(t.supportRules[o]=""),t.supportRules[o]+=c):i?(t.mediaRules[i]||(t.mediaRules[i]=""),t.mediaRules[i]+=c):t.rules+=c})),b(d,v,(function(t,n){var e=n.fontFace;t.fontFaces+=e})),b(d,y,(function(t,n){var e=n.keyframe;t.keyframes+=e})),b(d,m,(function(t,n){var e=n.css,r=n.selector;t.statics+=r?u(r,e):e})),d);function S(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=l(t,(function(t){return s(n,t.pseudo)}));return r(e,(function(t,n){var e=h[n.type];return e&&e(t,n),t}),{mediaRules:{},supportRules:{},supportMediaRules:{},fontFaces:"",statics:"",keyframes:"",rules:""})}function R(t,n){return"@supports ".concat(t,"{").concat(n,"}")}function A(t){return r(t,(function(t,n,e){return n.length>0&&(t+=R(e,n)),t}),"")}function M(t,n){return 0===t.length?n:"".concat(t," and ").concat(n)}function j(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,u=".".concat(t).repeat(r);return"".concat(e).concat(u).concat(n)}function T(t){return"@media"===t.substr(0,6)}var E=/^(:|\[|>|&)/;function O(t){return E.test(t)}function P(t){return"@supports"===t.substr(0,9)}var C=/undefined|null/,F=/url/;function _(t){return null==t||"string"==typeof t&&C.test(t)&&!F.test(t)}function w(t){return t&&1===t.nodeType}function x(t){return"&"===t.charAt(0)?t.substr(1):t}function I(t,n,e){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.plugins;return u.length>0?o(u,(function(n,u){return u(n,e,t,r)}),n):n}function U(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";return u+r+e+t+n}var Y={fontFaces:v,statics:m,keyframes:y,rules:p}}])}));
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