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

stylis

Package Overview
Dependencies
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylis - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json

@@ -5,3 +5,3 @@ {

"description": "stylis is a small css compiler",
"version": "0.1.3",
"version": "0.1.4",
"homepage": "https://github.com/thysultan/stylis.js",

@@ -8,0 +8,0 @@ "license": "MIT",

@@ -139,3 +139,3 @@ # Stylis

```html
<script src=https://unpkg.com/stylis@0.1.2/stylis.min.js></script>
<script src=https://unpkg.com/stylis@0.1.4/stylis.min.js></script>
```

@@ -142,0 +142,0 @@

@@ -81,2 +81,6 @@ /*!

var line = '';
var regkeyf = /@(keyframes +.*?}$)/g;
var regtrans = /(transform:.*?;)/g;
var regspaces = / +/g;
var reganim = /(,|:) +/g;

@@ -143,3 +147,3 @@ while (i < len) {

// vendor prefix transforms properties
line = line.replace(/ +/g, '').replace(/(transform:.*?;)/g, '-webkit-$1$1');
line = line.replace(regspaces, '').replace(regtrans, '-webkit-$1$1');

@@ -150,3 +154,3 @@ if (second === 107) {

} else {
line = line.replace(/@(keyframes +.*?}$)/g, '@-webkit-$1}@$1}');
line = line.replace(regkeyf, '@-webkit-$1}@$1}');
}

@@ -161,3 +165,3 @@ }

// remove space after `,` and `:` then split line
var split = line.replace(/(,|:) +/g, '$1').split(':');
var split = line.replace(reganim, '$1').split(':');

@@ -164,0 +168,0 @@ // build line

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

!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(global):"function"==typeof define&&define.amd?define(e(window)):window.stylis=e(window)}(function(e){"use strict";function t(e,t,i){var n=r(e[0],e.substr(1),t,!1);if(i){if(document){if(i.nodeType)return i.appendChild(document.createTextNode(n)),i;var o=document.createElement("style");return o.textContent=n,o}return"<style>"+n+"</style>"}return n}function r(e,t,r,i){for(var n=i?"["+e+"="+t+"]":e+t,o="",a=r.length,f=0,s="";f<a;){var d=r.charCodeAt(f);if(123===d||125===d||59===d){s+=r[f],s=s.trim();var l=s.charCodeAt(0);if(47===l)s=125===d?"}":"";else if(64===l){var c=s.charCodeAt(1)||0;if(107===c||114===c){f++,s=107==c?s.substr(1,10)+t+s.substr(11):"";for(var u=0;f<a;){var p=r[f++],b=p.charCodeAt(0);if(9!==b&&13!==b&&10!==b){if(125===b){if(1===u)break;u=1}else 123===b&&(u=0);s+=p}}s=s.replace(/ +/g,"").replace(/(transform:.*?;)/g,"-webkit-$1$1"),s=107===c?"@-webkit-"+s+"}@"+s+"}":s.replace(/@(keyframes +.*?}$)/g,"@-webkit-$1}@$1}")}}else{var c=s.charCodeAt(1)||0,v=s.charCodeAt(2)||0;if(97===l&&110===c&&105===v){var w=s.replace(/(,|:) +/g,"$1").split(":");s=w[0]+":"+t+w[1].split(",").join(","+t),s="-webkit-"+s+s}else if(116===l&&114===c&&97===v||97===l&&112===c&&112===v)s="-webkit-"+s+s;else if(123===d){for(var w=s.split(","),h="",m=0,y=w.length;m<y;m++){var C=w[m],g=C.charCodeAt(0),k="";k=0===m?58===g||38===g||123===g?n:n+" ":","+n,h+=123===g?k+C:38===g?k+C.substr(1):k+C}s=h}}o+=s,s=""}else 9!==d&&13!==d&&10!==d&&(s+=r[f]);f++}return o}return t});
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(global):"function"==typeof define&&define.amd?define(e(window)):window.stylis=e(window)}(function(e){"use strict";function t(e,t,i){var n=r(e[0],e.substr(1),t,!1);if(i){if(document){if(i.nodeType)return i.appendChild(document.createTextNode(n)),i;var o=document.createElement("style");return o.textContent=n,o}return"<style>"+n+"</style>"}return n}function r(e,t,r,i){for(var n=i?"["+e+"="+t+"]":e+t,o="",a=r.length,f=0,s="",d=/@(keyframes +.*?}$)/g,l=/(transform:.*?;)/g,c=/ +/g,u=/(,|:) +/g;f<a;){var p=r.charCodeAt(f);if(123===p||125===p||59===p){s+=r[f],s=s.trim();var b=s.charCodeAt(0);if(47===b)s=125===p?"}":"";else if(64===b){var v=s.charCodeAt(1)||0;if(107===v||114===v){f++,s=107==v?s.substr(1,10)+t+s.substr(11):"";for(var w=0;f<a;){var h=r[f++],m=h.charCodeAt(0);if(9!==m&&13!==m&&10!==m){if(125===m){if(1===w)break;w=1}else 123===m&&(w=0);s+=h}}s=s.replace(c,"").replace(l,"-webkit-$1$1"),s=107===v?"@-webkit-"+s+"}@"+s+"}":s.replace(d,"@-webkit-$1}@$1}")}}else{var v=s.charCodeAt(1)||0,y=s.charCodeAt(2)||0;if(97===b&&110===v&&105===y){var C=s.replace(u,"$1").split(":");s=C[0]+":"+t+C[1].split(",").join(","+t),s="-webkit-"+s+s}else if(116===b&&114===v&&97===y||97===b&&112===v&&112===y)s="-webkit-"+s+s;else if(123===p){for(var C=s.split(","),g="",k=0,A=C.length;k<A;k++){var $=C[k],x=$.charCodeAt(0),j="";j=0===k?58===x||38===x||123===x?n:n+" ":","+n,g+=123===x?j+$:38===x?j+$.substr(1):j+$}s=g}}o+=s,s=""}else 9!==p&&13!==p&&10!==p&&(s+=r[f]);f++}return o}return t});
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