Comparing version 0.15.1 to 0.15.2
@@ -1,2 +0,2 @@ | ||
import{tw as f}from"../twind.js";var p=(e,t=1)=>e.slice(t);var c=(e,t)=>{e.size>t&&e.delete(e.keys().next().value)};var b=typeof CSS!="undefined"&&CSS.escape||(e=>{let t=e.charCodeAt(0),s="";return t>=48&&t<=57&&(s="\\"+t.toString(16)+" ",e=p(e)),s+e.replace(/[!./:#]/g,"\\$&")});var l=new WeakMap,g=e=>{let t=l.get(e);return t||(t=new Map,l.set(e,t)),t},h=({tw:e=f}={})=>{let t=g(e),s=({target:n,addedNodes:i})=>{var d;let o=(d=n.getAttribute)==null?void 0:d.call(n,"class");if(o){let r=t.get(o);r||(r=e(o),t.set(o,r),c(t,1e4)),o!==r&&n.setAttribute("class",r)}for(let r=i.length;r--;){let u=i[r];a([{target:u,addedNodes:u.children||[]}])}},a=n=>n.forEach(s);if(typeof MutationObserver=="function"){let n=new MutationObserver(a);return{observe(i){return a([{target:i,addedNodes:[i]}]),n.observe(i,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0}),this},disconnect(){return n.disconnect(),this}}}return{observe(){return this},disconnect(){return this}}};function x(e,t=this){return h(t).observe(e)}export{h as createObserver,x as observe}; | ||
import{tw as f}from"../twind.js";var p=(t,e=1)=>t.slice(e);var c=(t,e)=>{t.size>e&&t.delete(t.keys().next().value)};var b=typeof CSS!="undefined"&&CSS.escape||(t=>{let e=t.charCodeAt(0),s="";return e>=48&&e<=57&&(s="\\"+e.toString(16)+" ",t=p(t)),s+t.replace(/[!./:#]/g,"\\$&")});var l=new WeakMap,g=t=>{let e=l.get(t);return e||(e=new Map,l.set(t,e)),e},h=({tw:t=f}={})=>{let e=g(t),s=({target:r,addedNodes:i})=>{var d;let o=(d=r.getAttribute)==null?void 0:d.call(r,"class");if(o){let n=e.get(o);n||(n=t(o),e.set(o,n),e.set(n,n),c(e,3e4)),o!==n&&r.setAttribute("class",n)}for(let n=i.length;n--;){let u=i[n];a([{target:u,addedNodes:u.children||[]}])}},a=r=>r.forEach(s);if(typeof MutationObserver=="function"){let r=new MutationObserver(a);return{observe(i){return a([{target:i,addedNodes:[i]}]),r.observe(i,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0}),this},disconnect(){return r.disconnect(),this}}}return{observe(){return this},disconnect(){return this}}};function x(t,e=this){return h(e).observe(t)}export{h as createObserver,x as observe}; | ||
//# sourceMappingURL=observe.js.map |
@@ -1,1 +0,1 @@ | ||
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports,require('../twind.umd.js')):typeof define==='function'&&define.amd?define(['exports','../twind.umd'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.twindObserve={},g.twind));}(this,(function(exports, twind_umd_js){'use strict';var c=(e,t)=>{e.size>t&&e.delete(e.keys().next().value);};var l=new WeakMap,g=e=>{let t=l.get(e);return t||(t=new Map,l.set(e,t)),t},h=({tw:e=twind_umd_js.tw}={})=>{let t=g(e),s=({target:n,addedNodes:i})=>{var d;let o=(d=n.getAttribute)==null?void 0:d.call(n,"class");if(o){let r=t.get(o);r||(r=e(o),t.set(o,r),c(t,1e4)),o!==r&&n.setAttribute("class",r);}for(let r=i.length;r--;){let u=i[r];a([{target:u,addedNodes:u.children||[]}]);}},a=n=>n.forEach(s);if(typeof MutationObserver=="function"){let n=new MutationObserver(a);return {observe(i){return a([{target:i,addedNodes:[i]}]),n.observe(i,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0}),this},disconnect(){return n.disconnect(),this}}}return {observe(){return this},disconnect(){return this}}};function x(e,t=this){return h(t).observe(e)}exports.createObserver=h;exports.observe=x;Object.defineProperty(exports,'__esModule',{value:true});})));//# sourceMappingURL=observe.umd.js.map | ||
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports,require('../twind.umd.js')):typeof define==='function'&&define.amd?define(['exports','../twind.umd'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.twindObserve={},g.twind));}(this,(function(exports, twind_umd_js){'use strict';var c=(t,e)=>{t.size>e&&t.delete(t.keys().next().value);};var l=new WeakMap,g=t=>{let e=l.get(t);return e||(e=new Map,l.set(t,e)),e},h=({tw:t=twind_umd_js.tw}={})=>{let e=g(t),s=({target:r,addedNodes:i})=>{var d;let o=(d=r.getAttribute)==null?void 0:d.call(r,"class");if(o){let n=e.get(o);n||(n=t(o),e.set(o,n),e.set(n,n),c(e,3e4)),o!==n&&r.setAttribute("class",n);}for(let n=i.length;n--;){let u=i[n];a([{target:u,addedNodes:u.children||[]}]);}},a=r=>r.forEach(s);if(typeof MutationObserver=="function"){let r=new MutationObserver(a);return {observe(i){return a([{target:i,addedNodes:[i]}]),r.observe(i,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0}),this},disconnect(){return r.disconnect(),this}}}return {observe(){return this},disconnect(){return this}}};function x(t,e=this){return h(e).observe(t)}exports.createObserver=h;exports.observe=x;Object.defineProperty(exports,'__esModule',{value:true});})));//# sourceMappingURL=observe.umd.js.map |
{ | ||
"name": "twind", | ||
"version": "0.15.1", | ||
"version": "0.15.2", | ||
"description": "compiles tailwind like shorthand syntax into css at runtime", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -8,3 +8,3 @@ // src/shim/server/index.ts | ||
var shim = (markup, options = {}) => { | ||
const {tw = defaultTW} = typeof options === "function" ? {tw: options} : options; | ||
const {tw = defaultTW} = typeof options == "function" ? {tw: options} : options; | ||
let lastAttribName = ""; | ||
@@ -11,0 +11,0 @@ let lastChunkStart = 0; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
784816
5051