@master/css-compiler 2.0.0-beta.127 → 2.0.0-beta.129
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/esm/{compiler.js → compiler.mjs} +1 -1
- package/dist/esm/index.default.mjs +1 -0
- package/dist/esm/index.mjs +1 -0
- package/package.json +1 -1
- package/dist/esm/index.default.js +0 -1
- package/dist/esm/index.js +0 -1
- /package/dist/esm/{extract.js → extract.mjs} +0 -0
- /package/dist/esm/options/{index.js → index.mjs} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ee from"upath";import{default as te}from"./options/index.
|
|
1
|
+
import ee from"upath";import{default as te}from"./options/index.mjs";import re from"@master/css";import{performance as oe}from"perf_hooks";import Ue from"./extract.mjs";import ze from"fs";import ne from"fast-glob";import P from"minimatch";import Je from"techor";import M from"node:process";import we from"node:os";import _ from"node:tty";var ae=Object.create,Z=Object.defineProperty,ce=Object.getOwnPropertyDescriptor,ue=Object.getOwnPropertyNames,ge=Object.getPrototypeOf,he=Object.prototype.hasOwnProperty,fe=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),de=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of ue(t))!he.call(r,n)&&n!==e&&Z(r,n,{get:()=>t[n],enumerable:!(o=ce(t,n))||o.enumerable});return r},pe=(r,t,e)=>(e=r!=null?ae(ge(r)):{},de(t||!r||!r.r?Z(e,"default",{value:r,enumerable:!0}):e,r)),me=fe((r,t)=>{"use strict";function e(o){var n=void 0;typeof o=="string"?n=[o]:n=o.raw;for(var l="",s=0;s<n.length;s++)l+=n[s].replace(/\\\n[ \t]*/g,"").replace(/\\`/g,"`"),s<(arguments.length<=1?0:arguments.length-1)&&(l+=arguments.length<=s+1?void 0:arguments[s+1]);var h=l.split(`
|
|
2
2
|
`),c=null;return h.forEach(function(a){var d=a.match(/^(\s+)\S+/);if(d){var $=d[1].length;c?c=Math.min(c,$):c=$}}),c!==null&&(l=h.map(function(a){return a[0]===" "?a.slice(c):a}).join(`
|
|
3
3
|
`)),l=l.trim(),l.replace(/\\n/g,`
|
|
4
4
|
`)}typeof t<"u"&&(t.exports=e)}),m=(r,t)=>{if(!r)throw new Error(t)},be=r=>{let t={joined:!0,spacerNoNeighbour:" ",spacerNeighbour:"\u2502 ",keyNoNeighbour:"\u2514\u2500 ",keyNeighbour:"\u251C\u2500 ",separator:": ",renderFn:e=>["boolean","string","number"].includes(typeof e)?e:void 0,sortFn:null,breakCircularWith:" (circular ref.)",...r};return m(Object.keys(t).length===9,"Unexpected Option(s) provided"),m(typeof t.joined=="boolean",'Option "joined" has invalid format'),m(typeof t.spacerNoNeighbour=="string",'Option "spacerNoNeighbour" has invalid format'),m(typeof t.spacerNeighbour=="string",'Option "spacerNeighbour" has invalid format'),m(typeof t.keyNoNeighbour=="string",'Option "keyNoNeighbour" has invalid format'),m(typeof t.keyNeighbour=="string",'Option "keyNeighbour" has invalid format'),m(typeof t.separator=="string",'Option "separator" has invalid format'),m(typeof t.renderFn=="function",'Option "renderFn" has invalid format'),m(typeof t.sortFn=="function"||t.sortFn===null,'Option "sortFn" has invalid format'),m(typeof t.breakCircularWith=="string"||t.breakCircularWith===null,'Option "breakCircularWith" has invalid format'),t},H=(r,t={})=>{let e=be(t),o=[],n=e.renderFn(r);n!==void 0&&o.push(String(n));let l=a=>e.sortFn===null?a.reverse():a.sort((d,$)=>e.sortFn($,d)),s=[],h=l(Object.keys(r)).map(a=>[a]),c=[r];for(;h.length!==0;){let a=h.pop(),d=c[a.length-1][a[a.length-1]],$=e.breakCircularWith!==null&&c.includes(d);s[a.length-1]=h.length!==0&&h[h.length-1].length===a.length;let se=e.renderFn(d);o.push([s.slice(0,a.length-1).map(E=>E?e.spacerNeighbour:e.spacerNoNeighbour).join(""),s[a.length-1]?e.keyNeighbour:e.keyNoNeighbour,a[a.length-1],se===void 0?"":`${e.separator}${d}`,$?e.breakCircularWith:""].join("")),d instanceof Object&&!Array.isArray(d)&&!$&&(h.push(...l(Object.keys(d)).map(E=>a.concat(E))),c[a.length]=d)}return e.joined===!0?o.join(`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{default as r}from"./options/index.mjs";var o={},t=o;export{o as MasterCSSCompiler,t as default,r as options};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{default as r}from"./options/index.mjs";import{MasterCSSCompiler as p,MasterCSSCompiler as s}from"./compiler.mjs";export{s as MasterCSSCompiler,p as default,r as options};
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@master/css-compiler","scripts":{"build":"aron pack --platform node","dev":"npm run build -- --watch","lint":"eslint ./src","test":"jest"},"license":"MIT","description":"The ahead-of-time compiler of Master CSS","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/compiler"},"keywords":["webpack","plugin","integration","vite","parcel","build tools","css","mastercss","vite-plugin"],"sideEffects":false,"main":"./dist/cjs/index.js","jsnext:main":"./dist/esm/index.
|
|
1
|
+
{"name":"@master/css-compiler","scripts":{"build":"aron pack --platform node --shakable","dev":"npm run build -- --watch","lint":"eslint ./src","test":"jest"},"license":"MIT","description":"The ahead-of-time compiler of Master CSS","author":"Aoyue Design LLC.","funding":"https://docs.master.co/css/donate","homepage":"https://css.master.co","bugs":{"url":"https://github.com/master-co/css/issues"},"repository":{"type":"git","url":"https://github.com/master-co/css.git","directory":"packages/compiler"},"keywords":["webpack","plugin","integration","vite","parcel","build tools","css","mastercss","vite-plugin"],"sideEffects":false,"main":"./dist/cjs/index.js","jsnext:main":"./dist/esm/index.mjs","esnext":"./dist/esm/index.mjs","module":"./dist/esm/index.mjs","types":"./dist/index.d.ts","exports":{".":{"node":{"require":"./dist/cjs/index.js","import":"./dist/esm/index.mjs","types":"./dist/index.d.ts"},"require":"./dist/cjs/index.default.js","import":"./dist/esm/index.default.mjs","types":"./dist/index.default.d.ts"}},"files":["dist"],"publishConfig":{"access":"public"},"dependencies":{"@master/css":"^2.0.0-beta.129","fast-glob":"^3.2.12","minimatch":"^5.1.1","stylelint":"^15.2.0","techor":"^1.1.4","to-extend":"^1.5.2","upath":"^2.0.1"},"devDependencies":{"@swc-node/jest":"^1.6.2","ts-jest":"^29.0.5"},"version":"2.0.0-beta.129"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{default as r}from"./options/index.js";var o={},t=o;export{o as MasterCSSCompiler,t as default,r as options};
|
package/dist/esm/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{default as r}from"./options/index.js";import{MasterCSSCompiler as p,MasterCSSCompiler as s}from"./compiler.js";export{s as MasterCSSCompiler,p as default,r as options};
|
|
File without changes
|
|
File without changes
|