@thi.ng/meta-css 0.19.25 → 0.19.26
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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -2759,7 +2759,7 @@ The toolchain itself is distributed as CLI bundle with **no runtime
|
|
|
2759
2759
|
dependencies**. The following dependencies are only shown for informational
|
|
2760
2760
|
purposes and are (partially) included in the bundle.
|
|
2761
2761
|
|
|
2762
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 14.
|
|
2762
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 14.23 KB
|
|
2763
2763
|
|
|
2764
2764
|
## Dependencies
|
|
2765
2765
|
|
package/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var Go={default:95,command:92,error:91,hint:90,multi:90,param:96,required:33};va
|
|
|
10
10
|
|
|
11
11
|
`+Ft(t,n.usageOpts));throw new pr(r.message)}},qr=(t,o,n)=>{let r=Qr(t),m={},f,E,G=n.start;for(;G<o.length;){let O=o[G];if(!f){if(n.help.includes(O)){console.log(Ft(t,n.usageOpts));return}let N=kr(t,r,m,O);if(f=N.id,E=N.spec,G=G+~~(N.state<2),N.state)break}else{if(vr(E,m,f,O))break;f=null,G++}}return f&&i(`missing value for: --${rt(f)}`),{result:dr(t,m),index:G,rest:o.slice(G),done:G>=o.length}},Qr=(t)=>Object.entries(t).reduce((o,[n,r])=>r.alias?(o[r.alias]=n,o):o,{}),kr=(t,o,n,r)=>{if(r[0]==="-"){let m;if(r[1]==="-"){if(r==="--")return{state:1};m=lo(r.substring(2))}else m=o[r.substring(1)],!m&&i(`unknown option: ${r}`);let f=t[m];if(!f&&i(m),f.flag){if(n[m]=!0,m=void 0,f.fn&&!f.fn("true"))return{state:1,spec:f}}return{state:0,id:m,spec:f}}return{state:2}},vr=(t,o,n,r)=>{if(t.multi)e(o[n])?o[n].push(r):o[n]=[r];else o[n]=r;return t.fn&&!t.fn(r)},dr=(t,o)=>{let n;for(let r in t)if(n=t[r],o[r]===void 0){if(n.default!==void 0)o[r]=n.default;else if(n.optional===!1)i(`missing arg: --${rt(r)}`)}else if(n.coerce)lr(n,o,r);return o},lr=(t,o,n)=>{try{if(t.multi&&t.delim)o[n]=o[n].reduce((r,m)=>(r.push(...m.split(t.delim)),r),[]);o[n]=t.coerce(o[n])}catch(r){throw new Error(`arg --${rt(n)}: ${r.message}`)}};var fn=async(t)=>{let o=t.argv||process.argv,n=!process.env.NO_COLOR,r=l(n),m={prefix:"",color:n,...t.usage};try{let f,E,G=t.start??2;if(t.single){if(f=Object.keys(t.commands)[0],!f)i("no command provided");E=t.commands[f]}else{if(f=o[G],E=t.commands[f],!E)m.prefix+=rn(t.commands,m),nn(t,m);else m.prefix+=rn({[f]:E},m,`
|
|
12
12
|
Current command:
|
|
13
|
-
`);G++}let O;try{O=on({...t.opts,...E.opts},o,{usageOpts:m,start:G})}catch(h){process.exit(1)}if(!O)process.exit(0);if(E.inputs!==void 0){let h=O.rest.length,_;if(e(E.inputs)){let[C,A]=E.inputs;if(h<C||h>A)_=A<1/0?`expected ${C}-${A} inputs`:`expected at least ${C}
|
|
13
|
+
`);G++}let O;try{O=on({...t.opts,...E.opts},o,{usageOpts:m,start:G})}catch(h){process.exit(1)}if(!O)process.exit(0);if(E.inputs!==void 0){let h=O.rest.length,_;if(e(E.inputs)){let[C,A]=E.inputs;if(h<C||h>A)_=A<1/0?`expected ${C}-${A} inputs`:`expected at least ${C} input(s)`}else if(h!==E.inputs)_=`expected ${E.inputs} input(s)`;if(_)mn(_,r),nn(t,m)}let N=await t.ctx({logger:new zt(process.stderr,t.name,"INFO"),format:n?jt:ko,opts:O.result,inputs:O.rest},E);if(await E.fn(N),t.post)await t.post(N,E)}catch(f){mn(f.message,r),process.exit(1)}},nn=(t,o)=>{process.stderr.write(Ft(t.opts,o)),process.exit(1)},rn=(t,{color:o,lineWidth:n=80}={},r=`
|
|
14
14
|
Available commands:
|
|
15
15
|
`)=>{let m=Object.keys(t),f=Math.max(...m.map((G)=>G.length)),E=l(o);return[r,...m.map((G)=>`${Kt(U(G,E.command),f)} : ${Vt(t[G].desc,f+3,n)}`),`
|
|
16
16
|
`].join(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/meta-css",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.26",
|
|
4
4
|
"description": "Data-driven CSS framework codegen, transpiler & bundler",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@thi.ng/api": "^8.12.2",
|
|
48
|
-
"@thi.ng/args": "^2.10.
|
|
48
|
+
"@thi.ng/args": "^2.10.1",
|
|
49
49
|
"@thi.ng/arrays": "^2.13.11",
|
|
50
50
|
"@thi.ng/checks": "^3.7.18",
|
|
51
51
|
"@thi.ng/compare": "^2.4.28",
|
|
52
52
|
"@thi.ng/errors": "^2.5.42",
|
|
53
53
|
"@thi.ng/file-io": "^2.2.9",
|
|
54
|
-
"@thi.ng/hiccup-css": "^2.7.
|
|
54
|
+
"@thi.ng/hiccup-css": "^2.7.65",
|
|
55
55
|
"@thi.ng/logger": "^3.1.17",
|
|
56
56
|
"@thi.ng/memoize": "^4.0.26",
|
|
57
|
-
"@thi.ng/rstream": "^9.2.
|
|
57
|
+
"@thi.ng/rstream": "^9.2.41",
|
|
58
58
|
"@thi.ng/strings": "^3.9.22",
|
|
59
59
|
"@thi.ng/text-format": "^2.2.41",
|
|
60
|
-
"@thi.ng/transducers": "^9.6.
|
|
60
|
+
"@thi.ng/transducers": "^9.6.10"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@types/node": "^24.3.0",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"status": "alpha",
|
|
114
114
|
"year": 2023
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "b7ede4f099767e0175ea8e09257208f73970b220\n"
|
|
117
117
|
}
|