hyperhtml-style
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -1,2 +0,1 @@ | ||
/*! (c) Andrea Giammarchi - ISC */ | ||
var hyperStyle=function(){"use strict";var a=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,f=/([^A-Z])([A-Z]+)/g;return function(e,t){return"ownerSVGElement"in e?function(e,t){var r;r=t?t.cloneNode(!0):(e.setAttribute("style","--hyper:style;"),e.getAttributeNode("style"));return r.value="",e.setAttributeNode(r),n(r,!0)}(e,t):n(e.style,!1)};function l(e,t,r){return t+"-"+r.toLowerCase()}function n(i,u){var s,c;return function(e){var t,r,n,o;switch(typeof e){case"object":if(e){if("object"===s){if(!u&&c!==e)for(r in c)r in e||(i[r]="")}else u?i.value="":i.cssText="";for(r in t=u?{}:i,e)n="number"!=typeof(o=e[r])||a.test(r)?o:o+"px",!u&&/^--/.test(r)?t.setProperty(r,n):t[r]=n;s="object",u?i.value=function(e){var t,r=[];for(t in e)r.push(t.replace(f,l),":",e[t],";");return r.join("")}(c=t):c=e;break}default:c!=e&&(s="string",c=e,u?i.value=e||"":i.cssText=e||"")}}}}(); | ||
var hyperStyle=function(){"use strict";var c=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,f=/([^A-Z])([A-Z]+)/g;return function(e,t){return"ownerSVGElement"in e?function(e,t){t=t?t.cloneNode(!0):(e.setAttribute("style","--hyper:style;"),e.getAttributeNode("style"));return t.value="",e.setAttributeNode(t),r(t,!0)}(e,t):r(e.style,!1)};function a(e,t,r){return t+"-"+r.toLowerCase()}function r(o,i){var u,s;return function(e){var t,r,n;switch(typeof e){case"object":if(e){if("object"===u){if(!i&&s!==e)for(r in s)r in e||(o[r]="")}else i?o.value="":o.cssText="";for(r in t=i?{}:o,e)n="number"!=typeof(n=e[r])||c.test(r)?n:n+"px",!i&&/^--/.test(r)?t.setProperty(r,n):t[r]=n;u="object",i?o.value=function(e){var t,r=[];for(t in e)r.push(t.replace(f,a),":",e[t],";");return r.join("")}(s=t):s=e;break}default:s!=e&&(u="string",s=e,i?o.value=e||"":o.cssText=e||"")}}}}(); |
{ | ||
"name": "hyperhtml-style", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "The hyperHTML's html/svg style updater", | ||
@@ -12,3 +12,3 @@ "main": "cjs/index.js", | ||
"esm": "cp index.js esm/ && echo 'export default hyperStyle;' >> esm/index.js", | ||
"min": "uglifyjs index.js --support-ie8 --comments=/^!/ -c -m -o min.js", | ||
"min": "uglifyjs index.js -c -m -o min.js", | ||
"size": "cat index.js | wc -c && cat min.js | wc -c && gzip -c9 min.js | wc -c && cat min.js | brotli | wc -c", | ||
@@ -18,2 +18,6 @@ "coveralls": "cat ./coverage/lcov.info | coveralls", | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/WebReflection/hyperhtml-style.git" | ||
}, | ||
"keywords": [ | ||
@@ -26,5 +30,5 @@ "hyperhtml", | ||
"devDependencies": { | ||
"ascjs": "^2.5.1", | ||
"basichtml": "^0.20.0", | ||
"coveralls": "^3.0.2", | ||
"ascjs": "^5.0.1", | ||
"basichtml": "^2.4.9", | ||
"coveralls": "^3.1.1", | ||
"istanbul": "^0.4.5", | ||
@@ -31,0 +35,0 @@ "uglifyjs": "^2.4.11" |
# hyperHTML Style | ||
[![Build Status](https://travis-ci.com/WebReflection/hyperhtml-style.svg?branch=master)](https://travis-ci.com/WebReflection/hyperhtml-style) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/hyperhtml-style/badge.svg?branch=master)](https://coveralls.io/github/WebReflection/hyperhtml-style?branch=master) ![WebReflection status](https://offline.report/status/webreflection.svg) | ||
[![Build Status](https://travis-ci.com/WebReflection/hyperhtml-style.svg?branch=master)](https://travis-ci.com/WebReflection/hyperhtml-style) [![Coverage Status](https://coveralls.io/repos/github/WebReflection/hyperhtml-style/badge.svg?branch=master)](https://coveralls.io/github/WebReflection/hyperhtml-style?branch=master) [![Greenkeeper badge](https://badges.greenkeeper.io/WebReflection/hyperhtml-style.svg)](https://greenkeeper.io/) ![WebReflection status](https://offline.report/status/webreflection.svg) | ||
@@ -5,0 +5,0 @@ The [hyperHTML](https://github.com/WebReflection/hyperHTML#hyperhtml)'s html/svg style updater. |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
12010
0
254