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

twind

Package Overview
Dependencies
Maintainers
2
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

twind - npm Package Compare versions

Comparing version 0.8.0 to 0.8.1

2

package.json
{
"name": "twind",
"version": "0.8.0",
"version": "0.8.1",
"description": "compiles tailwind like shorthand syntax into css at runtime",

@@ -5,0 +5,0 @@ "keywords": [

@@ -6,9 +6,9 @@ # Twind

[![MIT License](https://badgen.net/github/license/tw-in-js/twind)](https://github.com/tw-in-js/twind/blob/main/LICENSE)
[![Latest Release](https://flat.badgen.net/npm/v/twind?icon=npm&label)](https://www.npmjs.com/package/twind)
[![Bundle Size](https://flat.badgen.net/bundlephobia/minzip/twind?icon=packagephobia&label&color=blue)](https://bundlephobia.com/result?p=twind 'gzip bundle size (including dependencies)')
[![Package Size](https://flat.badgen.net/badgesize/brotli/https:/unpkg.com/twind/twind.js?icon=jsdelivr&label&color=blue)](https://unpkg.com/twind/twind.js 'brotli package size (without dependencies)')
[![Latest Release](https://flat.badgen.net/npm/v/twind?icon=npm&label&cache=10800)](https://www.npmjs.com/package/twind)
[![Bundle Size](https://flat.badgen.net/bundlephobia/minzip/twind?icon=packagephobia&label&color=blue&cache=10800)](https://bundlephobia.com/result?p=twind 'gzip bundle size (including dependencies)')
[![Package Size](https://flat.badgen.net/badgesize/brotli/https:/unpkg.com/twind/twind.js?icon=jsdelivr&label&color=blue&cache=10800)](https://unpkg.com/twind/twind.js 'brotli package size (without dependencies)')
[![Typescript](https://flat.badgen.net/badge/icon/included?icon=typescript&label)](https://unpkg.com/browse/twind/twind.d.ts)
[![Github](https://flat.badgen.net/badge/icon/tw-in-js%2Ftwind?icon=github&label)](https://github.com/tw-in-js/twind)
[![CI](https://github.com/tw-in-js/twind/workflows/CI/badge.svg)](https://github.com/tw-in-js/twind/actions?query=workflow%3Aci)
[![Coverage Status](https://flat.badgen.net/coveralls/c/github/tw-in-js/twind/main?icon=codecov&label)](https://coveralls.io/github/tw-in-js/twind?branch=main)
[![Coverage Status](https://flat.badgen.net/coveralls/c/github/tw-in-js/twind/main?icon=codecov&label&cache=10800)](https://coveralls.io/github/tw-in-js/twind?branch=main)
[![PRs Welcome](https://flat.badgen.net/badge/PRs/welcome/purple)](http://makeapullrequest.com)

@@ -193,3 +193,2 @@

setup({
preflight: true, // Include Tailwind base reset
theme: {

@@ -196,0 +195,0 @@ extend: {

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

import{tw as l,setup as m}from"..";var f=({target:e,addedNodes:n})=>{var d;let o=(d=e.getAttribute)==null?void 0:d.call(e,"class");if(o){let t=l(o);o!==t&&e.setAttribute("class",t)}for(let t=n.length;t--;){let r=n[t];i([{target:r,addedNodes:r.children||[]}])}},i=e=>e.forEach(f),a=new MutationObserver(i),c=()=>a.disconnect(),s=()=>{let e=document.querySelector('script[type="twind-config"]');u(e?JSON.parse(e.innerHTML):{})},u=({target:e=document.documentElement,...n}={})=>{removeEventListener("DOMContentLoaded",s),m(n),c(),i([{target:e,addedNodes:[e]}]),e.hidden=!1,a.observe(e,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0})};document.readyState==="loading"?addEventListener("DOMContentLoaded",s):s();export{u as setup,c as stop};
import{tw as m,setup as p}from"..";var f=({target:e,addedNodes:t})=>{var r;let o=(r=e.getAttribute)==null?void 0:r.call(e,"class");if(o){let n=m(o);o!==n&&e.setAttribute("class",n)}for(let n=t.length;n--;){let d=t[n];i([{target:d,addedNodes:d.children||[]}])}},i=e=>e.forEach(f),a=new MutationObserver(i),c=()=>a.disconnect(),s=()=>{let e=document.querySelector('script[type="twind-config"]');u(e?JSON.parse(e.innerHTML):{})};document.readyState==="loading"?addEventListener("DOMContentLoaded",s):l=setTimeout(s);var l,u=({target:e=document.documentElement,...t}={})=>{removeEventListener("DOMContentLoaded",s),clearTimeout(l),Object.keys(t).length&&p(t),c(),i([{target:e,addedNodes:[e]}]),e.hidden=!1,a.observe(e,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0})};export{u as setup,c as stop};
//# sourceMappingURL=shim.js.map

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

(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports,require('..')):typeof define==='function'&&define.amd?define(['exports','..'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.twindShim={},g.twind));}(this,(function(exports, __){'use strict';var f=Object.prototype.hasOwnProperty,a=Object.getOwnPropertySymbols,p=Object.prototype.propertyIsEnumerable,c=(e,o)=>{var n={};for(var t in e)f.call(e,t)&&o.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&a)for(var t of a(e))o.indexOf(t)<0&&p.call(e,t)&&(n[t]=e[t]);return n};var v=({target:e,addedNodes:o})=>{var t;let n=(t=e.getAttribute)==null?void 0:t.call(e,"class");if(n){let i=__.tw(n);n!==i&&e.setAttribute("class",i);}for(let i=o.length;i--;){let r=o[i];s([{target:r,addedNodes:r.children||[]}]);}},s=e=>e.forEach(v),u=new MutationObserver(s),l=()=>u.disconnect(),d=()=>{let e=document.querySelector('script[type="twind-config"]');m(e?JSON.parse(e.innerHTML):{});},m=(n={})=>{var{target:e=document.documentElement}=n,o=c(n,["target"]);removeEventListener("DOMContentLoaded",d),__.setup(o),l(),s([{target:e,addedNodes:[e]}]),e.hidden=!1,u.observe(e,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0});};document.readyState==="loading"?addEventListener("DOMContentLoaded",d):d();exports.setup=m;exports.stop=l;Object.defineProperty(exports,'__esModule',{value:true});})));//# sourceMappingURL=shim.umd.js.map
(function(g,f){typeof exports==='object'&&typeof module!=='undefined'?f(exports,require('..')):typeof define==='function'&&define.amd?define(['exports','..'],f):(g=typeof globalThis!=='undefined'?globalThis:g||self,f(g.twindShim={},g.twind));}(this,(function(exports, __){'use strict';var f=Object.prototype.hasOwnProperty,a=Object.getOwnPropertySymbols,b=Object.prototype.propertyIsEnumerable,c=(e,o)=>{var n={};for(var t in e)f.call(e,t)&&o.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&a)for(var t of a(e))o.indexOf(t)<0&&b.call(e,t)&&(n[t]=e[t]);return n};var M=({target:e,addedNodes:o})=>{var t;let n=(t=e.getAttribute)==null?void 0:t.call(e,"class");if(n){let i=__.tw(n);n!==i&&e.setAttribute("class",i);}for(let i=o.length;i--;){let d=o[i];s([{target:d,addedNodes:d.children||[]}]);}},s=e=>e.forEach(M),u=new MutationObserver(s),l=()=>u.disconnect(),r=()=>{let e=document.querySelector('script[type="twind-config"]');m(e?JSON.parse(e.innerHTML):{});};document.readyState==="loading"?addEventListener("DOMContentLoaded",r):p=setTimeout(r);var p,m=(n={})=>{var{target:e=document.documentElement}=n,o=c(n,["target"]);removeEventListener("DOMContentLoaded",r),clearTimeout(p),Object.keys(o).length&&__.setup(o),l(),s([{target:e,addedNodes:[e]}]),e.hidden=!1,u.observe(e,{attributes:!0,attributeFilter:["class"],subtree:!0,childList:!0});};exports.setup=m;exports.stop=l;Object.defineProperty(exports,'__esModule',{value:true});})));//# sourceMappingURL=shim.umd.js.map

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

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