@tailwindcss/node 0.0.0-insiders.ec2f3bb → 0.0.0-insiders.eec1bf2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";var Ce=Object.create;var R=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var $e=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty;var X=(e,t)=>{for(var r in t)R(e,r,{get:t[r],enumerable:!0})},Z=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ke(t))!be.call(e,n)&&n!==r&&R(e,n,{get:()=>t[n],enumerable:!(s=Re(t,n))||s.enumerable});return e};var h=(e,t,r)=>(r=e!=null?Ce($e(e)):{},Z(t||!e||!e.__esModule?R(r,"default",{value:e,enumerable:!0}):r,e)),Te=e=>Z(R({},"__esModule",{value:!0}),e);var ht={};X(ht,{Features:()=>g.Features,Instrumentation:()=>Y,__unstable__loadDesignSystem:()=>ut,compile:()=>at,compileAst:()=>ot,env:()=>k,loadModule:()=>J,normalizePath:()=>U});module.exports=Te(ht);var
|
|
1
|
+
"use strict";var Ce=Object.create;var R=Object.defineProperty;var Re=Object.getOwnPropertyDescriptor;var ke=Object.getOwnPropertyNames;var $e=Object.getPrototypeOf,be=Object.prototype.hasOwnProperty;var X=(e,t)=>{for(var r in t)R(e,r,{get:t[r],enumerable:!0})},Z=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ke(t))!be.call(e,n)&&n!==r&&R(e,n,{get:()=>t[n],enumerable:!(s=Re(t,n))||s.enumerable});return e};var h=(e,t,r)=>(r=e!=null?Ce($e(e)):{},Z(t||!e||!e.__esModule?R(r,"default",{value:e,enumerable:!0}):r,e)),Te=e=>Z(R({},"__esModule",{value:!0}),e);var ht={};X(ht,{Features:()=>g.Features,Instrumentation:()=>Y,__unstable__loadDesignSystem:()=>ut,compile:()=>at,compileAst:()=>ot,env:()=>k,loadModule:()=>J,normalizePath:()=>U});module.exports=Te(ht);var we=h(require("module")),Ee=require("url");var k={};X(k,{DEBUG:()=>V});var V=_e(process.env.DEBUG);function _e(e){if(e===void 0)return!1;if(e==="true"||e==="1")return!0;if(e==="false"||e==="0")return!1;if(e==="*")return!0;let t=e.split(",").map(r=>r.split(":")[0]);return t.includes("-tailwindcss")?!1:!!t.includes("tailwindcss")}var A=h(require("enhanced-resolve")),Ae=require("jiti"),D=h(require("fs")),Q=h(require("fs/promises")),y=h(require("path")),z=require("url"),g=require("tailwindcss");var $=h(require("fs/promises")),S=h(require("path")),Oe=[/import[\s\S]*?['"](.{3,}?)['"]/gi,/import[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/export[\s\S]*from[\s\S]*?['"](.{3,}?)['"]/gi,/require\(['"`](.+)['"`]\)/gi],Pe=[".js",".cjs",".mjs"],Ue=["",".js",".cjs",".mjs",".ts",".cts",".mts",".jsx",".tsx"],De=["",".ts",".cts",".mts",".tsx",".js",".cjs",".mjs",".jsx"];async function Ie(e,t){for(let r of t){let s=`${e}${r}`;if((await $.default.stat(s).catch(()=>null))?.isFile())return s}for(let r of t){let s=`${e}/index${r}`;if(await $.default.access(s).then(()=>!0,()=>!1))return s}return null}async function ee(e,t,r,s){let n=Pe.includes(s)?Ue:De,l=await Ie(S.default.resolve(r,t),n);if(l===null||e.has(l))return;e.add(l),r=S.default.dirname(l),s=S.default.extname(l);let i=await $.default.readFile(l,"utf-8"),a=[];for(let o of Oe)for(let f of i.matchAll(o))f[1].startsWith(".")&&a.push(ee(e,f[1],r,s));await Promise.all(a)}async function te(e){let t=new Set;return await ee(t,e,S.default.dirname(e),S.default.extname(e)),Array.from(t)}var B=h(require("path"));var w=92,b=47,T=42,Fe=34,Ve=39,Le=58,_=59,x=10,E=32,O=9,re=123,L=125,j=40,se=41,Ke=91,We=93,ne=45,K=64,je=33;function ie(e){e[0]==="\uFEFF"&&(e=e.slice(1)),e=e.replaceAll(`\r
|
|
2
2
|
`,`
|
|
3
|
-
`);let t=[],r=[],s=[],n=null,l=null,i="",a="",o;for(let f=0;f<e.length;f++){let u=e.charCodeAt(f);if(u===
|
|
3
|
+
`);let t=[],r=[],s=[],n=null,l=null,i="",a="",o;for(let f=0;f<e.length;f++){let u=e.charCodeAt(f);if(u===w)i+=e.slice(f,f+2),f+=1;else if(u===b&&e.charCodeAt(f+1)===T){let c=f;for(let m=f+2;m<e.length;m++)if(o=e.charCodeAt(m),o===w)m+=1;else if(o===T&&e.charCodeAt(m+1)===b){f=m+1;break}let p=e.slice(c,f+1);p.charCodeAt(2)===je&&r.push(ae(p.slice(2,-2)))}else if(u===Ve||u===Fe){let c=f;for(let p=f+1;p<e.length;p++)if(o=e.charCodeAt(p),o===w)p+=1;else if(o===u){f=p;break}else{if(o===_&&e.charCodeAt(p+1)===x)throw new Error(`Unterminated string: ${e.slice(c,p+1)+String.fromCharCode(u)}`);if(o===x)throw new Error(`Unterminated string: ${e.slice(c,p)+String.fromCharCode(u)}`)}i+=e.slice(c,f+1)}else{if((u===E||u===x||u===O)&&(o=e.charCodeAt(f+1))&&(o===E||o===x||o===O))continue;if(u===x){if(i.length===0)continue;o=i.charCodeAt(i.length-1),o!==E&&o!==x&&o!==O&&(i+=" ")}else if(u===ne&&e.charCodeAt(f+1)===ne&&i.length===0){let c="",p=f,m=-1;for(let d=f+2;d<e.length;d++)if(o=e.charCodeAt(d),o===w)d+=1;else if(o===b&&e.charCodeAt(d+1)===T){for(let v=d+2;v<e.length;v++)if(o=e.charCodeAt(v),o===w)v+=1;else if(o===T&&e.charCodeAt(v+1)===b){d=v+1;break}}else if(m===-1&&o===Le)m=i.length+d-p;else if(o===_&&c.length===0){i+=e.slice(p,d),f=d;break}else if(o===j)c+=")";else if(o===Ke)c+="]";else if(o===re)c+="}";else if((o===L||e.length-1===d)&&c.length===0){f=d-1,i+=e.slice(p,d);break}else(o===se||o===We||o===L)&&c.length>0&&e[d]===c[c.length-1]&&(c=c.slice(0,-1));let F=W(i,m);if(!F)throw new Error("Invalid custom property, expected a value");n?n.nodes.push(F):t.push(F),i=""}else if(u===_&&i.charCodeAt(0)===K)l=C(i),n?n.nodes.push(l):t.push(l),i="",l=null;else if(u===_&&a[a.length-1]!==")"){let c=W(i);if(!c)throw i.length===0?new Error("Unexpected semicolon"):new Error(`Invalid declaration: \`${i.trim()}\``);n?n.nodes.push(c):t.push(c),i=""}else if(u===re&&a[a.length-1]!==")")a+="}",l=le(i.trim()),n&&n.nodes.push(l),s.push(n),n=l,i="",l=null;else if(u===L&&a[a.length-1]!==")"){if(a==="")throw new Error("Missing opening {");if(a=a.slice(0,-1),i.length>0)if(i.charCodeAt(0)===K)l=C(i),n?n.nodes.push(l):t.push(l),i="",l=null;else{let p=i.indexOf(":");if(n){let m=W(i,p);if(!m)throw new Error(`Invalid declaration: \`${i.trim()}\``);n.nodes.push(m)}}let c=s.pop()??null;c===null&&n&&t.push(n),n=c,i="",l=null}else if(u===j)a+=")",i+="(";else if(u===se){if(a[a.length-1]!==")")throw new Error("Missing opening (");a=a.slice(0,-1),i+=")"}else{if(i.length===0&&(u===E||u===x||u===O))continue;i+=String.fromCharCode(u)}}}if(i.charCodeAt(0)===K&&t.push(C(i)),a.length>0&&n){if(n.kind==="rule")throw new Error(`Missing closing } at ${n.selector}`);if(n.kind==="at-rule")throw new Error(`Missing closing } at ${n.name} ${n.params}`)}return r.length>0?r.concat(t):t}function C(e,t=[]){for(let r=5;r<e.length;r++){let s=e.charCodeAt(r);if(s===E||s===j){let n=e.slice(0,r).trim(),l=e.slice(r).trim();return M(n,l,t)}}return M(e.trim(),"",t)}function W(e,t=e.indexOf(":")){if(t===-1)return null;let r=e.indexOf("!important",t+1);return oe(e.slice(0,t).trim(),e.slice(t+1,r===-1?e.length:r).trim(),r!==-1)}var N=class extends Map{constructor(r){super();this.factory=r}get(r){let s=super.get(r);return s===void 0&&(s=this.factory(r,this),this.set(r,s)),s}};var Be=64;function He(e,t=[]){return{kind:"rule",selector:e,nodes:t}}function M(e,t="",r=[]){return{kind:"at-rule",name:e,params:t,nodes:r}}function le(e,t=[]){return e.charCodeAt(0)===Be?C(e,t):He(e,t)}function oe(e,t,r=!1){return{kind:"declaration",property:e,value:t,important:r}}function ae(e){return{kind:"comment",value:e}}function P(e,t,r=[],s={}){for(let n=0;n<e.length;n++){let l=e[n],i=r[r.length-1]??null;if(l.kind==="context"){if(P(l.nodes,t,r,{...s,...l.context})===2)return 2;continue}r.push(l);let a=!1,o=0,f=t(l,{parent:i,context:s,path:r,replaceWith(u){a||(a=!0,Array.isArray(u)?u.length===0?(e.splice(n,1),o=0):u.length===1?(e[n]=u[0],o=1):(e.splice(n,1,...u),o=u.length):(e[n]=u,o=1))}})??0;if(r.pop(),a){f===0?n--:n+=o-1;continue}if(f===2)return 2;if(f!==1&&"nodes"in l){r.push(l);let u=P(l.nodes,t,r,s);if(r.pop(),u===2)return 2}}}function ue(e){function t(s,n=0){let l="",i=" ".repeat(n);if(s.kind==="declaration")l+=`${i}${s.property}: ${s.value}${s.important?" !important":""};
|
|
4
4
|
`;else if(s.kind==="rule"){l+=`${i}${s.selector} {
|
|
5
5
|
`;for(let a of s.nodes)l+=t(a,n+1);l+=`${i}}
|
|
6
6
|
`}else if(s.kind==="at-rule"){if(s.nodes.length===0)return`${i}${s.name} ${s.params};
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
Timers:`);let n=-1/0,l=new Map;for(let[i,{value:a}]of this.#t){let o=`${(Number(a)/1e6).toFixed(2)}ms`;l.set(i,o),n=Math.max(n,o.length)}for(let i of this.#t.keys()){let a=i.split("//").length;r.push(`${I(`[${l.get(i).padStart(n," ")}]`)}${" ".repeat(a-1)}${a===1?" ":I(" \u21B3 ")}${i.split("//").pop()} ${this.#r.get(i).value===1?"":I(Ne(`\xD7 ${this.#r.get(i).value}`))}`.trimEnd())}t(`
|
|
13
13
|
${r.join(`
|
|
14
14
|
`)}
|
|
15
|
-
`),this.reset()}[Symbol.dispose](){V&&this.report()}};function I(e){return`\x1B[2m${e}\x1B[22m`}function Ne(e){return`\x1B[34m${e}\x1B[39m`}process.versions.bun||
|
|
15
|
+
`),this.reset()}[Symbol.dispose](){V&&this.report()}};function I(e){return`\x1B[2m${e}\x1B[22m`}function Ne(e){return`\x1B[34m${e}\x1B[39m`}process.versions.bun||we.register?.((0,Ee.pathToFileURL)(require.resolve("@tailwindcss/node/esm-cache-loader")));0&&(module.exports={Features,Instrumentation,__unstable__loadDesignSystem,compile,compileAst,env,loadModule,normalizePath});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailwindcss/node",
|
|
3
|
-
"version": "0.0.0-insiders.
|
|
3
|
+
"version": "0.0.0-insiders.eec1bf2",
|
|
4
4
|
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"enhanced-resolve": "^5.18.1",
|
|
37
37
|
"jiti": "^2.4.2",
|
|
38
|
-
"tailwindcss": "0.0.0-insiders.
|
|
38
|
+
"tailwindcss": "0.0.0-insiders.eec1bf2"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsup-node",
|