Comparing version 3.1.0 to 3.1.1
@@ -0,1 +1,5 @@ | ||
## 3.1.1 June 08, 2017 | ||
- middleware, patch: allow middleware to monkey-patch return value | ||
## 3.1.0 June 08, 2017 | ||
@@ -2,0 +6,0 @@ |
@@ -6,3 +6,3 @@ { | ||
"description": "light - weight css preprocessor", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"homepage": "https://github.com/thysultan/stylis.js", | ||
@@ -9,0 +9,0 @@ "license": "MIT", |
@@ -43,3 +43,3 @@ type selectors = Array<string> | ||
interface stylis { | ||
(namescope: string, input: string): string | ||
(namescope: string, input: string): string|any | ||
set: set | ||
@@ -46,0 +46,0 @@ use: use |
@@ -1074,3 +1074,3 @@ /* | ||
* @param {number} length | ||
* @return {(string|void)} | ||
* @return {(string|void|*)} | ||
*/ | ||
@@ -1101,3 +1101,3 @@ function proxy (context, content, selectors, parents, line, column, length) { | ||
default: { | ||
return out + '' | ||
return out | ||
} | ||
@@ -1112,3 +1112,3 @@ } | ||
* @param {string} input | ||
* @return {string} | ||
* @return {(string|*)} | ||
*/ | ||
@@ -1231,3 +1231,3 @@ function stylis (selector, input) { | ||
* | ||
* @param {string} output | ||
* @param {(string|*)} output | ||
* @return {string} | ||
@@ -1234,0 +1234,0 @@ */ |
@@ -14,4 +14,4 @@ function T(){function U(d,f,b,n){for(var h=0,g=0,l=0,k=0,c,m,w=0,E=c=0,q=m=0,r,B=0,A=0,e=0,D=0,Q=b.length,G=Q-1,p,a="",v="",t="",L="",M="",u;q<Q;){r=b.charCodeAt(q);if(0===g+k+l+h){if(1===D){switch(r){case 44:break;default:q--,r=59}D=0}switch(q){case G:if(0<e&&(a=a.replace(H,"")),0<(a=a.trim()).length){switch(r){case 32:case 9:case 59:case 13:case 10:break;default:a+=b.charAt(q)}r=59}}switch(r){case 123:a=a.trim();c=a.charCodeAt(0);w=1;for(q++;q<Q;){r=b.charCodeAt(q);switch(r){case 123:w++;break; | ||
"");case 13:case 10:case 32:n=(d=d.trim()).charCodeAt(0)}switch(n){case 38:switch(K+b){case 0:case 1:if(0===f.trim().length)break;default:return d.replace(G,f.trim())}break;case 58:switch(d.charCodeAt(1)){case 103:if(0<X&&0<K)return d.replace(pa,"$1").replace(G,A);break;default:return f.trim()+d}default:switch(d.charCodeAt(d.length-1)){case 38:return f.replace(A,"").trim()+" "+d.replace(G,A)}}return f+d}function I(d,f,b,n,h,g,l){for(var k=0,c=f,m;k<x;k++)switch(m=L[k].call(D,d,c,b,n,h,g,l)){case void 0:case !1:case !0:case null:break; | ||
default:c=m}switch(c){case void 0:case !1:case !0:case null:case f:break;default:return c+""}}function D(d,f){var b=d,n=b.charCodeAt(0);33>n&&(n=(b=b.trim()).charCodeAt(0));0<N&&(O=b.replace(qa,91===n?"":"-"));n=1;1===K?A=b:F=b;var h=[A];0<x&&I(-1,f,h,h,C,y,0);b=U(V,h,f,0);0<x&&(h=I(-2,b,h,h,C,y,b.length),void 0!==h&&"string"!==typeof(b=h)&&(n=0));F=A=O="";P=0;y=C=1;return 0===fa*n?b:b.replace(H,"").replace(ra,"").replace(sa,"$1").replace(ta,"$1").replace(ua," ")}function M(d){switch(d){case void 0:case null:x= | ||
default:c=m}switch(c){case void 0:case !1:case !0:case null:case f:break;default:return c}}function D(d,f){var b=d,n=b.charCodeAt(0);33>n&&(n=(b=b.trim()).charCodeAt(0));0<N&&(O=b.replace(qa,91===n?"":"-"));n=1;1===K?A=b:F=b;var h=[A];0<x&&I(-1,f,h,h,C,y,0);b=U(V,h,f,0);0<x&&(h=I(-2,b,h,h,C,y,b.length),void 0!==h&&"string"!==typeof(b=h)&&(n=0));F=A=O="";P=0;y=C=1;return 0===fa*n?b:b.replace(H,"").replace(ra,"").replace(sa,"$1").replace(ta,"$1").replace(ua," ")}function M(d){switch(d){case void 0:case null:x= | ||
L.length=0;break;default:switch(d.constructor){case Array:for(var f=0,b=d.length;f<b;f++)M(d[f]);break;case Function:L[x++]=d;break;case Boolean:da=!!d|0}}return M}function ga(d){for(var f in d){var b=d[f];switch(f){case "keyframe":N=b|0;break;case "global":X=b|0;break;case "cascade":K=b|0;break;case "compress":fa=b|0;break;case "prefix":R=b|0;break;case "semicolon":ca=b|0}}return ga}var Z=/^\0+/g,H=/[\0\r]/g,ba=/: */g,ka=/zoo|gra/,la=/ *(transform)/g,ia=/,+\s*(?![^(]*[)])/g,ja=/ +\s*(?![^(]*[)])/g, | ||
ma=/ *[\0] */g,oa=/,\r+?/g,G=/&/g,qa=/\W+/g,pa=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,ha=/@(k\w+s)\s*(\S*)\s*/,Y=/::?(place)/g,ra=/\s+(?=[{\];=:>])/g,sa=/([[}=:>])\s+/g,ta=/(\{[^{]+?);(?=\})/g,ua=/\s{2,}/g,na=/([^\(])(:+) */g,y=1,C=1,P=0,K=1,R=1,X=1,fa=0,ca=0,V=[],L=[],x=0,da=0,N=1,O="",F="",A="";D.use=M;D.set=ga;return D}"object"===typeof exports&&"undefined"!==typeof module?module.exports=T():"function"===typeof define&&define.amd?define(T()):window.stylis=T(); |
55819