@shell-shock/preset-cli 0.9.12 → 0.9.13
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/_virtual/_rolldown/runtime.mjs +1 -4
- package/dist/components/banner-builtin.cjs +3 -3
- package/dist/components/banner-builtin.mjs +3 -3
- package/dist/components/banner-builtin.mjs.map +1 -1
- package/dist/components/command-entry.cjs +1 -0
- package/dist/components/command-entry.mjs +1 -0
- package/dist/components/command-entry.mjs.map +1 -1
- package/dist/components/virtual-command-entry.cjs +1 -0
- package/dist/components/virtual-command-entry.mjs +1 -0
- package/dist/components/virtual-command-entry.mjs.map +1 -1
- package/dist/packages/plugin-changelog/dist/components/changelog-command.cjs +2 -2
- package/dist/packages/plugin-changelog/dist/components/changelog-command.mjs +1 -1
- package/dist/packages/unified/dist/html-DzncQodH.cjs +156 -0
- package/dist/packages/unified/dist/html-DzncQodH.mjs +157 -0
- package/dist/packages/unified/dist/html-DzncQodH.mjs.map +1 -0
- package/dist/packages/unified/dist/markdown/index.cjs +1 -1
- package/dist/packages/unified/dist/markdown/index.mjs +1 -1
- package/dist/packages/unified/dist/{markdown-OuY_JOk0.cjs → markdown-BiaU4FQg.cjs} +3 -3
- package/dist/packages/unified/dist/{markdown-OuY_JOk0.mjs → markdown-BiaU4FQg.mjs} +4 -4
- package/dist/packages/unified/dist/{markdown-OuY_JOk0.mjs.map → markdown-BiaU4FQg.mjs.map} +1 -1
- package/package.json +11 -15
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.cjs +0 -36
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs +0 -36
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs.map +0 -1
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs +0 -32
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs +0 -33
- package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs.map +0 -1
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.cjs +0 -133
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs +0 -134
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.cjs +0 -32
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs +0 -31
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/utilities.mjs.map +0 -1
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.cjs +0 -169
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs +0 -167
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/ansi-styles/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.cjs +0 -98
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs +0 -95
- package/dist/node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/vendor/supports-color/index.mjs.map +0 -1
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs +0 -23
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs +0 -23
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs.map +0 -1
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.cjs +0 -36
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs +0 -36
- package/dist/node_modules/.pnpm/colors-option@6.1.2/node_modules/colors-option/build/src/options.mjs.map +0 -1
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.cjs +0 -10
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs +0 -10
- package/dist/node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.mjs.map +0 -1
- package/dist/packages/unified/dist/html-Di3_LwV3.cjs +0 -337
- package/dist/packages/unified/dist/html-Di3_LwV3.mjs +0 -338
- package/dist/packages/unified/dist/html-Di3_LwV3.mjs.map +0 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { __toESM } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { parse } from "../../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.mjs";
|
|
3
|
+
import { require_he } from "../../../node_modules/.pnpm/he@1.2.0/node_modules/he/he.mjs";
|
|
4
|
+
import { require_normalize_html_whitespace } from "../../../node_modules/.pnpm/normalize-html-whitespace@1.0.0/node_modules/normalize-html-whitespace/index.mjs";
|
|
5
|
+
import "../../../node_modules/.pnpm/wrap-ansi@10.0.0/node_modules/wrap-ansi/index.mjs";
|
|
6
|
+
|
|
7
|
+
//#region ../unified/dist/html-DzncQodH.mjs
|
|
8
|
+
var import_he = /* @__PURE__ */ __toESM(require_he(), 1);
|
|
9
|
+
var import_normalize_html_whitespace = /* @__PURE__ */ __toESM(require_normalize_html_whitespace(), 1);
|
|
10
|
+
const r = (e) => ({
|
|
11
|
+
pre: !1,
|
|
12
|
+
lineWidth: 120,
|
|
13
|
+
fontAttrs: !0,
|
|
14
|
+
depth: 0,
|
|
15
|
+
asciiMode: !1,
|
|
16
|
+
...e
|
|
17
|
+
}), i = (e, t) => e == null && t == null ? null : e == null ? t : t == null ? e : t.value == null ? {
|
|
18
|
+
pre: e.pre,
|
|
19
|
+
value: e.value,
|
|
20
|
+
post: e.post == null ? t.pre == null ? t.post == null ? `` : t.post : t.pre : e.post
|
|
21
|
+
} : e.value == null ? {
|
|
22
|
+
pre: e.pre == null ? e.post == null ? t.pre == null ? `` : t.pre : e.post : e.pre,
|
|
23
|
+
value: t.value,
|
|
24
|
+
post: t.post
|
|
25
|
+
} : e.post == null ? t.pre == null ? {
|
|
26
|
+
pre: e.pre,
|
|
27
|
+
value: `${e.value}${t.value}`,
|
|
28
|
+
post: t.post
|
|
29
|
+
} : {
|
|
30
|
+
pre: e.pre,
|
|
31
|
+
value: `${e.value}${t.pre}${t.value}`,
|
|
32
|
+
post: t.post
|
|
33
|
+
} : {
|
|
34
|
+
pre: e.pre,
|
|
35
|
+
value: `${e.value}${e.post}${t.value}`,
|
|
36
|
+
post: t.post
|
|
37
|
+
}, a = /* @__PURE__ */ new WeakMap(), o = (e, t, n = null) => {
|
|
38
|
+
if (!e || typeof e != `object` || !t || typeof t != `string`) return n;
|
|
39
|
+
let r = a.get(e);
|
|
40
|
+
if (r) {
|
|
41
|
+
let e = r.get(t);
|
|
42
|
+
if (e !== void 0) return e ?? n;
|
|
43
|
+
}
|
|
44
|
+
if (!e.attrs || !Array.isArray(e.attrs) || e.attrs.length === 0) return r || (r = /* @__PURE__ */ new Map(), a.set(e, r)), r.set(t, null), n;
|
|
45
|
+
let i = e.attrs.find((e) => e && typeof e == `object` && e.name === t);
|
|
46
|
+
if (r || (r = /* @__PURE__ */ new Map(), a.set(e, r)), !i || i.value === void 0) return r.set(t, null), n;
|
|
47
|
+
let o = i.value;
|
|
48
|
+
return r.set(t, o), o;
|
|
49
|
+
}, s = import_he.default.decode, c = import_normalize_html_whitespace.default, l = (e, t) => {
|
|
50
|
+
let n = String(e.value ?? ``);
|
|
51
|
+
if (t.pre) return {
|
|
52
|
+
pre: null,
|
|
53
|
+
value: s(n),
|
|
54
|
+
post: null,
|
|
55
|
+
type: `inline`,
|
|
56
|
+
nodeName: `#text`
|
|
57
|
+
};
|
|
58
|
+
let r = [...(c(n) || ``).replaceAll(`
|
|
59
|
+
`, ` `)], i = [` `, `
|
|
60
|
+
`].includes(r[0] ?? ``) ? r.shift() ?? null : null, a = [` `, `
|
|
61
|
+
`].includes(r.at(-1) ?? ``) ? r.pop() ?? null : null;
|
|
62
|
+
return {
|
|
63
|
+
pre: i,
|
|
64
|
+
value: r.length > 0 ? `${s(r.join(``))}` : null,
|
|
65
|
+
post: a,
|
|
66
|
+
type: `inline`,
|
|
67
|
+
nodeName: `#text`
|
|
68
|
+
};
|
|
69
|
+
}, u = (e) => (t, n) => {
|
|
70
|
+
let r = e ?? ((e) => e ?? null), a = p.span;
|
|
71
|
+
if (!t || !t.childNodes) return null;
|
|
72
|
+
let o = t.childNodes.reduce((e, r) => {
|
|
73
|
+
let o = v(r, n, a);
|
|
74
|
+
return o ? {
|
|
75
|
+
...i(e, o),
|
|
76
|
+
type: `inline`,
|
|
77
|
+
nodeName: t.nodeName
|
|
78
|
+
} : e;
|
|
79
|
+
}, null);
|
|
80
|
+
return {
|
|
81
|
+
pre: o?.pre ? r(o.pre, t, n) : null,
|
|
82
|
+
value: r(o?.value, t, n),
|
|
83
|
+
post: o?.post ? r(o.post, t, n) : null,
|
|
84
|
+
type: `inline`,
|
|
85
|
+
nodeName: t.nodeName
|
|
86
|
+
};
|
|
87
|
+
}, d = u((e, t, n) => {
|
|
88
|
+
let r = o(t, `href`, null), i = o(t, `title`, null), a = !r || [
|
|
89
|
+
`file://`,
|
|
90
|
+
`http://`,
|
|
91
|
+
`https://`,
|
|
92
|
+
`mailto:`,
|
|
93
|
+
`ftp://`,
|
|
94
|
+
`ftps://`,
|
|
95
|
+
`sftp://`,
|
|
96
|
+
`ssh://`,
|
|
97
|
+
`dav://`,
|
|
98
|
+
`tel:`,
|
|
99
|
+
`git://`
|
|
100
|
+
].some((e) => r.startsWith(e)) ? r : null;
|
|
101
|
+
return a ? `link("${a}", ${i ? `"${i}", ` : ``}${a && (a.startsWith(`http://`) || a.startsWith(`https://`)) ? `true` : `false`})` : i ? `"${i}"` : ``;
|
|
102
|
+
}), f = u((e, t) => {
|
|
103
|
+
let n = o(t, `title`, null);
|
|
104
|
+
return e ? n ? `${e} (${n})` : e : ``;
|
|
105
|
+
});
|
|
106
|
+
var p = {
|
|
107
|
+
"#text": l,
|
|
108
|
+
a: d,
|
|
109
|
+
abbr: f
|
|
110
|
+
};
|
|
111
|
+
const m = process.env.CACHE_RENDER !== `false`, h = /* @__PURE__ */ new WeakMap(), g = (e, t) => {
|
|
112
|
+
if (!m || !e || typeof e != `object`) return;
|
|
113
|
+
let n = h.get(e);
|
|
114
|
+
if (n) return n.get(JSON.stringify({
|
|
115
|
+
lineWidth: t.lineWidth,
|
|
116
|
+
pre: t.pre,
|
|
117
|
+
listDepth: t.listDepth,
|
|
118
|
+
listType: t.listType,
|
|
119
|
+
depth: t.depth
|
|
120
|
+
}));
|
|
121
|
+
}, _ = (e, t, n) => {
|
|
122
|
+
if (!m || !e || typeof e != `object`) return;
|
|
123
|
+
let r = h.get(e);
|
|
124
|
+
if (r || (r = /* @__PURE__ */ new Map(), h.set(e, r)), r.set(JSON.stringify({
|
|
125
|
+
lineWidth: t.lineWidth,
|
|
126
|
+
pre: t.pre,
|
|
127
|
+
listDepth: t.listDepth,
|
|
128
|
+
listType: t.listType,
|
|
129
|
+
depth: t.depth
|
|
130
|
+
}), n), r.size > 10) {
|
|
131
|
+
let e = r.keys().next().value;
|
|
132
|
+
r.delete(e);
|
|
133
|
+
}
|
|
134
|
+
}, v = (e, t, n = p.div) => {
|
|
135
|
+
if (!e) return null;
|
|
136
|
+
let r = t.depth === void 0 ? 0 : t.depth;
|
|
137
|
+
if (r >= 100) return null;
|
|
138
|
+
let i = {
|
|
139
|
+
...t,
|
|
140
|
+
depth: r + 1
|
|
141
|
+
}, a = g(e, i);
|
|
142
|
+
if (a !== void 0) return a;
|
|
143
|
+
let o = null;
|
|
144
|
+
try {
|
|
145
|
+
o = (p[e.nodeName || `#text`] || n)(e, i), _(e, i, o);
|
|
146
|
+
} catch {
|
|
147
|
+
o = null;
|
|
148
|
+
}
|
|
149
|
+
return o;
|
|
150
|
+
};
|
|
151
|
+
function y(t, n) {
|
|
152
|
+
return `${(v(parse(t, { sourceCodeLocationInfo: !0 }), r(n)) || { value: `` }).value}\n`;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
//#endregion
|
|
156
|
+
export { y };
|
|
157
|
+
//# sourceMappingURL=html-DzncQodH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html-DzncQodH.mjs","names":["t","n","e"],"sources":["../../../../../unified/dist/html-DzncQodH.mjs"],"sourcesContent":["import{parse as e}from\"parse5\";import t from\"he\";import n from\"normalize-html-whitespace\";import\"wrap-ansi\";const r=e=>({pre:!1,lineWidth:120,fontAttrs:!0,depth:0,asciiMode:!1,...e}),i=(e,t)=>e==null&&t==null?null:e==null?t:t==null?e:t.value==null?{pre:e.pre,value:e.value,post:e.post==null?t.pre==null?t.post==null?``:t.post:t.pre:e.post}:e.value==null?{pre:e.pre==null?e.post==null?t.pre==null?``:t.pre:e.post:e.pre,value:t.value,post:t.post}:e.post==null?t.pre==null?{pre:e.pre,value:`${e.value}${t.value}`,post:t.post}:{pre:e.pre,value:`${e.value}${t.pre}${t.value}`,post:t.post}:{pre:e.pre,value:`${e.value}${e.post}${t.value}`,post:t.post},a=new WeakMap,o=(e,t,n=null)=>{if(!e||typeof e!=`object`||!t||typeof t!=`string`)return n;let r=a.get(e);if(r){let e=r.get(t);if(e!==void 0)return e??n}if(!e.attrs||!Array.isArray(e.attrs)||e.attrs.length===0)return r||(r=new Map,a.set(e,r)),r.set(t,null),n;let i=e.attrs.find(e=>e&&typeof e==`object`&&e.name===t);if(r||(r=new Map,a.set(e,r)),!i||i.value===void 0)return r.set(t,null),n;let o=i.value;return r.set(t,o),o},s=t.decode,c=n,l=(e,t)=>{let n=String(e.value??``);if(t.pre)return{pre:null,value:s(n),post:null,type:`inline`,nodeName:`#text`};let r=[...(c(n)||``).replaceAll(`\n`,` `)],i=[` `,`\n`].includes(r[0]??``)?r.shift()??null:null,a=[` `,`\n`].includes(r.at(-1)??``)?r.pop()??null:null;return{pre:i,value:r.length>0?`${s(r.join(``))}`:null,post:a,type:`inline`,nodeName:`#text`}},u=e=>(t,n)=>{let r=e??(e=>e??null),a=p.span;if(!t||!t.childNodes)return null;let o=t.childNodes.reduce((e,r)=>{let o=v(r,n,a);return o?{...i(e,o),type:`inline`,nodeName:t.nodeName}:e},null);return{pre:o?.pre?r(o.pre,t,n):null,value:r(o?.value,t,n),post:o?.post?r(o.post,t,n):null,type:`inline`,nodeName:t.nodeName}},d=u((e,t,n)=>{let r=o(t,`href`,null),i=o(t,`title`,null),a=!r||[`file://`,`http://`,`https://`,`mailto:`,`ftp://`,`ftps://`,`sftp://`,`ssh://`,`dav://`,`tel:`,`git://`].some(e=>r.startsWith(e))?r:null;return a?`link(\"${a}\", ${i?`\"${i}\", `:``}${a&&(a.startsWith(`http://`)||a.startsWith(`https://`))?`true`:`false`})`:i?`\"${i}\"`:``}),f=u((e,t)=>{let n=o(t,`title`,null);return e?n?`${e} (${n})`:e:``});var p={\"#text\":l,a:d,abbr:f};const m=process.env.CACHE_RENDER!==`false`,h=new WeakMap,g=(e,t)=>{if(!m||!e||typeof e!=`object`)return;let n=h.get(e);if(n)return n.get(JSON.stringify({lineWidth:t.lineWidth,pre:t.pre,listDepth:t.listDepth,listType:t.listType,depth:t.depth}))},_=(e,t,n)=>{if(!m||!e||typeof e!=`object`)return;let r=h.get(e);if(r||(r=new Map,h.set(e,r)),r.set(JSON.stringify({lineWidth:t.lineWidth,pre:t.pre,listDepth:t.listDepth,listType:t.listType,depth:t.depth}),n),r.size>10){let e=r.keys().next().value;r.delete(e)}},v=(e,t,n=p.div)=>{if(!e)return null;let r=t.depth===void 0?0:t.depth;if(r>=100)return null;let i={...t,depth:r+1},a=g(e,i);if(a!==void 0)return a;let o=null;try{o=(p[e.nodeName||`#text`]||n)(e,i),_(e,i,o)}catch{o=null}return o};function y(t,n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|
+
const require_markdown_BiaU4FQg = require('../markdown-BiaU4FQg.cjs');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
|
|
2
|
-
const
|
|
2
|
+
const require_html_DzncQodH = require('./html-DzncQodH.cjs');
|
|
3
3
|
const require_index = require('../../../node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.cjs');
|
|
4
4
|
const require_index$1 = require('../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.cjs');
|
|
5
5
|
require('../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.cjs');
|
|
@@ -14,7 +14,7 @@ const require_index$10 = require('../../../node_modules/.pnpm/markdown-it-sup@2.
|
|
|
14
14
|
const require_index$11 = require('../../../node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.cjs');
|
|
15
15
|
let _stryke_string_format = require("@stryke/string-format");
|
|
16
16
|
|
|
17
|
-
//#region ../unified/dist/markdown-
|
|
17
|
+
//#region ../unified/dist/markdown-BiaU4FQg.mjs
|
|
18
18
|
var import_markdown_it_task_lists = /* @__PURE__ */ require_runtime.__toESM(require_index$11.default, 1);
|
|
19
19
|
const p = () => {
|
|
20
20
|
let e = require_index$1.default({
|
|
@@ -75,7 +75,7 @@ const p = () => {
|
|
|
75
75
|
return e.renderer.rules.footnote_anchor = () => ``, e;
|
|
76
76
|
}, m = (e) => p().render(e);
|
|
77
77
|
function h(t, n) {
|
|
78
|
-
return
|
|
78
|
+
return require_html_DzncQodH.y(m(t), n);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
//#endregion
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __toESM } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { y } from "./html-DzncQodH.mjs";
|
|
3
3
|
import { t } from "../../../node_modules/.pnpm/@mdit_plugin-alert@0.23.2_markdown-it@14.1.1/node_modules/@mdit/plugin-alert/dist/index.mjs";
|
|
4
4
|
import MarkdownIt from "../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/lib/index.mjs";
|
|
5
5
|
import "../../../node_modules/.pnpm/markdown-it@14.1.1/node_modules/markdown-it/index.mjs";
|
|
@@ -14,7 +14,7 @@ import sup_plugin from "../../../node_modules/.pnpm/markdown-it-sup@2.0.0/node_m
|
|
|
14
14
|
import { require_markdown_it_task_lists } from "../../../node_modules/.pnpm/markdown-it-task-lists@2.1.1/node_modules/markdown-it-task-lists/index.mjs";
|
|
15
15
|
import { upperCaseFirst } from "@stryke/string-format";
|
|
16
16
|
|
|
17
|
-
//#region ../unified/dist/markdown-
|
|
17
|
+
//#region ../unified/dist/markdown-BiaU4FQg.mjs
|
|
18
18
|
var import_markdown_it_task_lists = /* @__PURE__ */ __toESM(require_markdown_it_task_lists(), 1);
|
|
19
19
|
const p = () => {
|
|
20
20
|
let e = MarkdownIt({
|
|
@@ -75,9 +75,9 @@ const p = () => {
|
|
|
75
75
|
return e.renderer.rules.footnote_anchor = () => ``, e;
|
|
76
76
|
}, m = (e) => p().render(e);
|
|
77
77
|
function h(t, n) {
|
|
78
|
-
return
|
|
78
|
+
return y(m(t), n);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
//#endregion
|
|
82
82
|
export { h };
|
|
83
|
-
//# sourceMappingURL=markdown-
|
|
83
|
+
//# sourceMappingURL=markdown-BiaU4FQg.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown-
|
|
1
|
+
{"version":3,"file":"markdown-BiaU4FQg.mjs","names":["r","s","c","l","o","i","a","d","u","f","n","e"],"sources":["../../../../../unified/dist/markdown-BiaU4FQg.mjs"],"sourcesContent":["import{t as e}from\"./html-DzncQodH.mjs\";import{alert as t}from\"@mdit/plugin-alert\";import{upperCaseFirst as n}from\"@stryke/string-format\";import r from\"markdown-it\";import i from\"markdown-it-abbr\";import a from\"markdown-it-container\";import o from\"markdown-it-deflist\";import s from\"markdown-it-footnote\";import c from\"markdown-it-ins\";import l from\"markdown-it-mark\";import u from\"markdown-it-sub\";import d from\"markdown-it-sup\";import f from\"markdown-it-task-lists\";const p=()=>{let e=r({html:!0,langPrefix:`language-`,linkify:!0}).use(s).use(c).use(l).use(o).use(i).use(a).use(d).use(u).use(f).use(t,{deep:!1,openRender(e,t){let n=e[t],r=null;switch(n?.markup){case`important`:r=`red`;break;case`note`:r=`blue`;break;case`tip`:r=`green`;break;case`warning`:r=`yellow`;break;case`caution`:r=`magenta`;break;default:r=`blue`}return`<blockquote data-cli-color=\"${r}\">`},closeRender(){return`</blockquote>`},titleRender(e,t){let r=e[t],i=null;switch(r?.markup){case`important`:i=`red`;break;case`note`:i=`blue`;break;case`tip`:i=`green`;break;case`warning`:i=`yellow`;break;case`caution`:i=`magenta`;break;default:i=`blue`}return`<p><span data-cli-color=\"${i}\"><b>${n(r?.content||``)}\n }</b></span></p>`}});return e.renderer.rules.footnote_anchor=()=>``,e},m=e=>p().render(e);function h(t,n){return e(m(t),n)}export{h as t};\n//# sourceMappingURL=markdown-BiaU4FQg.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;AAAod,MAAM,UAAM;CAAC,IAAI,IAAEA,WAAE;EAAC,MAAK,CAAC;EAAE,YAAW;EAAY,SAAQ,CAAC;EAAE,CAAC,CAAC,IAAIC,gBAAE,CAAC,IAAIC,WAAE,CAAC,IAAIC,aAAE,CAAC,IAAIC,eAAE,CAAC,IAAIC,YAAE,CAAC,IAAIC,iBAAE,CAAC,IAAIC,WAAE,CAAC,IAAIC,WAAE,CAAC,IAAIC,sCAAE,CAAC,IAAI,GAAE;EAAC,MAAK,CAAC;EAAE,WAAW,GAAE,GAAE;GAAC,IAAI,IAAE,EAAE,IAAG,IAAE;AAAK,WAAO,GAAG,QAAV;IAAkB,KAAI;AAAY,SAAE;AAAM;IAAM,KAAI;AAAO,SAAE;AAAO;IAAM,KAAI;AAAM,SAAE;AAAQ;IAAM,KAAI;AAAU,SAAE;AAAS;IAAM,KAAI;AAAU,SAAE;AAAU;IAAM,QAAQ,KAAE;;AAAO,UAAM,+BAA+B,EAAE;;EAAK,cAAa;AAAC,UAAM;;EAAiB,YAAY,GAAE,GAAE;GAAC,IAAI,IAAE,EAAE,IAAG,IAAE;AAAK,WAAO,GAAG,QAAV;IAAkB,KAAI;AAAY,SAAE;AAAM;IAAM,KAAI;AAAO,SAAE;AAAO;IAAM,KAAI;AAAM,SAAE;AAAQ;IAAM,KAAI;AAAU,SAAE;AAAS;IAAM,KAAI;AAAU,SAAE;AAAU;IAAM,QAAQ,KAAE;;AAAO,UAAM,4BAA4B,EAAE,OAAOC,eAAE,GAAG,WAAS,GAAG,CAAC;;;EACpoC,CAAC;AAAC,QAAO,EAAE,SAAS,MAAM,wBAAoB,IAAG;GAAG,KAAE,MAAG,GAAG,CAAC,OAAO,EAAE;AAAC,SAAS,EAAE,GAAE,GAAE;AAAC,QAAOC,EAAE,EAAE,EAAE,EAAC,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/preset-cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
|
|
6
6
|
"keywords": [
|
|
@@ -184,15 +184,15 @@
|
|
|
184
184
|
"@powerlines/deepkit": "^0.6.167",
|
|
185
185
|
"@powerlines/plugin-alloy": "^0.26.9",
|
|
186
186
|
"@powerlines/plugin-plugin": "^0.12.343",
|
|
187
|
-
"@shell-shock/core": "^0.17.
|
|
188
|
-
"@shell-shock/plugin-banner": "^0.1.
|
|
189
|
-
"@shell-shock/plugin-completions": "^0.4.
|
|
190
|
-
"@shell-shock/plugin-console": "^0.2.
|
|
191
|
-
"@shell-shock/plugin-help": "^0.2.
|
|
192
|
-
"@shell-shock/plugin-prompts": "^0.3.
|
|
193
|
-
"@shell-shock/plugin-theme": "^0.4.
|
|
194
|
-
"@shell-shock/plugin-upgrade": "^0.1.
|
|
195
|
-
"@shell-shock/preset-script": "^0.6.
|
|
187
|
+
"@shell-shock/core": "^0.17.1",
|
|
188
|
+
"@shell-shock/plugin-banner": "^0.1.28",
|
|
189
|
+
"@shell-shock/plugin-completions": "^0.4.9",
|
|
190
|
+
"@shell-shock/plugin-console": "^0.2.5",
|
|
191
|
+
"@shell-shock/plugin-help": "^0.2.19",
|
|
192
|
+
"@shell-shock/plugin-prompts": "^0.3.42",
|
|
193
|
+
"@shell-shock/plugin-theme": "^0.4.14",
|
|
194
|
+
"@shell-shock/plugin-upgrade": "^0.1.46",
|
|
195
|
+
"@shell-shock/preset-script": "^0.6.56",
|
|
196
196
|
"@stryke/path": "^0.27.4",
|
|
197
197
|
"@stryke/string-format": "^0.17.9",
|
|
198
198
|
"@stryke/type-checks": "^0.6.1",
|
|
@@ -232,12 +232,8 @@
|
|
|
232
232
|
"@mdit/plugin-alert": "0.23.2",
|
|
233
233
|
"@stryke/types": "0.11.3",
|
|
234
234
|
"ansi-styles": "6.2.3",
|
|
235
|
-
"chalk": "5.6.2",
|
|
236
|
-
"chalk-string": "4.0.0",
|
|
237
|
-
"colors-option": "6.1.2",
|
|
238
235
|
"entities": ["4.5.0", "6.0.1"],
|
|
239
236
|
"he": "1.2.0",
|
|
240
|
-
"is-plain-obj": "4.1.0",
|
|
241
237
|
"linkify-it": "5.0.0",
|
|
242
238
|
"markdown-it": "14.1.1",
|
|
243
239
|
"markdown-it-abbr": "2.0.0",
|
|
@@ -256,5 +252,5 @@
|
|
|
256
252
|
"uc.micro": "2.1.0",
|
|
257
253
|
"wrap-ansi": "10.0.0"
|
|
258
254
|
},
|
|
259
|
-
"gitHead": "
|
|
255
|
+
"gitHead": "0a96451134431381e1d79f85dceaaafd5cf94cfe"
|
|
260
256
|
}
|
package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.cjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
//#region ../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.js
|
|
3
|
-
const normalizeRgbArgs = (args, method) => {
|
|
4
|
-
if (args.length !== 3) throw new TypeError(`There must be 3 arguments with "${method}", not ${args.length}`);
|
|
5
|
-
const argsA = args.map(Number);
|
|
6
|
-
argsA.forEach((arg, index) => {
|
|
7
|
-
validateRgbArg(arg, args[index], method);
|
|
8
|
-
});
|
|
9
|
-
return argsA;
|
|
10
|
-
};
|
|
11
|
-
const validateRgbArg = (arg, input, method) => {
|
|
12
|
-
if (!Number.isInteger(arg) || String(arg) !== input) throw new TypeError(`Argument "${arg}" must be an integer with "${method}"`);
|
|
13
|
-
if (arg > MAX_RGB) throw new TypeError(`Argument "${arg}" must be less than ${MAX_RGB} with "${method}"`);
|
|
14
|
-
};
|
|
15
|
-
const MAX_RGB = 255;
|
|
16
|
-
const normalizeHexArgs = (args, method) => {
|
|
17
|
-
if (args.length !== 1) throw new TypeError(`There must be exactly one argument with "${method}", not ${args.length}`);
|
|
18
|
-
validateHexArg(args[0], method);
|
|
19
|
-
return args;
|
|
20
|
-
};
|
|
21
|
-
const validateHexArg = (arg, method) => {
|
|
22
|
-
if (arg.includes("#")) throw new TypeError(`Argument "${arg}" must not include # with "${method}"`);
|
|
23
|
-
if (!HEX_LENGTH.has(arg.length)) throw new TypeError(`Argument "${arg}" must have 3 or 6 characters with "${method}"`);
|
|
24
|
-
if (!HEX_REGEXP.test(arg)) throw new TypeError(`Argument "${arg}" must be an hexadecimal string with "${method}"`);
|
|
25
|
-
};
|
|
26
|
-
const HEX_LENGTH = new Set([3, 6]);
|
|
27
|
-
const HEX_REGEXP = /^[a-f\d]{3,6}$/iu;
|
|
28
|
-
const ARGS_METHODS = {
|
|
29
|
-
rgb: normalizeRgbArgs,
|
|
30
|
-
bgRgb: normalizeRgbArgs,
|
|
31
|
-
hex: normalizeHexArgs,
|
|
32
|
-
bgHex: normalizeHexArgs
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
//#endregion
|
|
36
|
-
exports.ARGS_METHODS = ARGS_METHODS;
|
package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
//#region ../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.js
|
|
2
|
-
const normalizeRgbArgs = (args, method) => {
|
|
3
|
-
if (args.length !== 3) throw new TypeError(`There must be 3 arguments with "${method}", not ${args.length}`);
|
|
4
|
-
const argsA = args.map(Number);
|
|
5
|
-
argsA.forEach((arg, index) => {
|
|
6
|
-
validateRgbArg(arg, args[index], method);
|
|
7
|
-
});
|
|
8
|
-
return argsA;
|
|
9
|
-
};
|
|
10
|
-
const validateRgbArg = (arg, input, method) => {
|
|
11
|
-
if (!Number.isInteger(arg) || String(arg) !== input) throw new TypeError(`Argument "${arg}" must be an integer with "${method}"`);
|
|
12
|
-
if (arg > MAX_RGB) throw new TypeError(`Argument "${arg}" must be less than ${MAX_RGB} with "${method}"`);
|
|
13
|
-
};
|
|
14
|
-
const MAX_RGB = 255;
|
|
15
|
-
const normalizeHexArgs = (args, method) => {
|
|
16
|
-
if (args.length !== 1) throw new TypeError(`There must be exactly one argument with "${method}", not ${args.length}`);
|
|
17
|
-
validateHexArg(args[0], method);
|
|
18
|
-
return args;
|
|
19
|
-
};
|
|
20
|
-
const validateHexArg = (arg, method) => {
|
|
21
|
-
if (arg.includes("#")) throw new TypeError(`Argument "${arg}" must not include # with "${method}"`);
|
|
22
|
-
if (!HEX_LENGTH.has(arg.length)) throw new TypeError(`Argument "${arg}" must have 3 or 6 characters with "${method}"`);
|
|
23
|
-
if (!HEX_REGEXP.test(arg)) throw new TypeError(`Argument "${arg}" must be an hexadecimal string with "${method}"`);
|
|
24
|
-
};
|
|
25
|
-
const HEX_LENGTH = new Set([3, 6]);
|
|
26
|
-
const HEX_REGEXP = /^[a-f\d]{3,6}$/iu;
|
|
27
|
-
const ARGS_METHODS = {
|
|
28
|
-
rgb: normalizeRgbArgs,
|
|
29
|
-
bgRgb: normalizeRgbArgs,
|
|
30
|
-
hex: normalizeHexArgs,
|
|
31
|
-
bgHex: normalizeHexArgs
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
//#endregion
|
|
35
|
-
export { ARGS_METHODS };
|
|
36
|
-
//# sourceMappingURL=args.mjs.map
|
package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"args.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/args.js"],"sourcesContent":["\nconst normalizeRgbArgs=(args,method)=>{\nif(args.length!==3){\nthrow new TypeError(\n`There must be 3 arguments with \"${method}\", not ${args.length}`\n)\n}\n\nconst argsA=args.map(Number);\nargsA.forEach((arg,index)=>{\nvalidateRgbArg(arg,args[index],method)\n});\nreturn argsA\n};\n\nconst validateRgbArg=(arg,input,method)=>{\nif(!Number.isInteger(arg)||String(arg)!==input){\nthrow new TypeError(`Argument \"${arg}\" must be an integer with \"${method}\"`)\n}\n\nif(arg>MAX_RGB){\nthrow new TypeError(\n`Argument \"${arg}\" must be less than ${MAX_RGB} with \"${method}\"`\n)\n}\n};\n\nconst MAX_RGB=255;\n\n\nconst normalizeHexArgs=(args,method)=>{\nif(args.length!==1){\nthrow new TypeError(\n`There must be exactly one argument with \"${method}\", not ${args.length}`\n)\n}\n\nvalidateHexArg(args[0],method);\nreturn args\n};\n\nconst validateHexArg=(arg,method)=>{\nif(arg.includes(\"#\")){\nthrow new TypeError(`Argument \"${arg}\" must not include # with \"${method}\"`)\n}\n\nif(!HEX_LENGTH.has(arg.length)){\nthrow new TypeError(\n`Argument \"${arg}\" must have 3 or 6 characters with \"${method}\"`\n)\n}\n\nif(!HEX_REGEXP.test(arg)){\nthrow new TypeError(\n`Argument \"${arg}\" must be an hexadecimal string with \"${method}\"`\n)\n}\n};\n\n\nconst HEX_LENGTH=new Set([3,6]);\nconst HEX_REGEXP=/^[a-f\\d]{3,6}$/iu;\n\n\nexport const ARGS_METHODS={\nrgb:normalizeRgbArgs,\nbgRgb:normalizeRgbArgs,\nhex:normalizeHexArgs,\nbgHex:normalizeHexArgs\n};"],"x_google_ignoreList":[0],"mappings":";AACA,MAAM,oBAAkB,MAAK,WAAS;AACtC,KAAG,KAAK,WAAS,EACjB,OAAM,IAAI,UACV,mCAAmC,OAAO,SAAS,KAAK,SACvD;CAGD,MAAM,QAAM,KAAK,IAAI,OAAO;AAC5B,OAAM,SAAS,KAAI,UAAQ;AAC3B,iBAAe,KAAI,KAAK,QAAO,OAAO;GACpC;AACF,QAAO;;AAGP,MAAM,kBAAgB,KAAI,OAAM,WAAS;AACzC,KAAG,CAAC,OAAO,UAAU,IAAI,IAAE,OAAO,IAAI,KAAG,MACzC,OAAM,IAAI,UAAU,aAAa,IAAI,6BAA6B,OAAO,GAAG;AAG5E,KAAG,MAAI,QACP,OAAM,IAAI,UACV,aAAa,IAAI,sBAAsB,QAAQ,SAAS,OAAO,GAC9D;;AAID,MAAM,UAAQ;AAGd,MAAM,oBAAkB,MAAK,WAAS;AACtC,KAAG,KAAK,WAAS,EACjB,OAAM,IAAI,UACV,4CAA4C,OAAO,SAAS,KAAK,SAChE;AAGD,gBAAe,KAAK,IAAG,OAAO;AAC9B,QAAO;;AAGP,MAAM,kBAAgB,KAAI,WAAS;AACnC,KAAG,IAAI,SAAS,IAAI,CACpB,OAAM,IAAI,UAAU,aAAa,IAAI,6BAA6B,OAAO,GAAG;AAG5E,KAAG,CAAC,WAAW,IAAI,IAAI,OAAO,CAC9B,OAAM,IAAI,UACV,aAAa,IAAI,sCAAsC,OAAO,GAC7D;AAGD,KAAG,CAAC,WAAW,KAAK,IAAI,CACxB,OAAM,IAAI,UACV,aAAa,IAAI,wCAAwC,OAAO,GAC/D;;AAKD,MAAM,aAAW,IAAI,IAAI,CAAC,GAAE,EAAE,CAAC;AAC/B,MAAM,aAAW;AAGjB,MAAa,eAAa;CAC1B,KAAI;CACJ,OAAM;CACN,KAAI;CACJ,OAAM;CACL"}
|
package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.cjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
const require_main = require('../../../../../colors-option@6.1.2/node_modules/colors-option/build/src/main.cjs');
|
|
2
|
-
const require_args = require('./args.cjs');
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.js
|
|
5
|
-
const chalkString = (styles, opts) => {
|
|
6
|
-
if (typeof styles !== "string") throw new TypeError(`Styles must be a string, not: ${styles}`);
|
|
7
|
-
const chalk = require_main.default(opts);
|
|
8
|
-
const chalkMethod = styles.trim().split(STYLE_SEPARATOR).reduce(useChalkMethod, chalk);
|
|
9
|
-
return addStyles.bind(void 0, chalkMethod);
|
|
10
|
-
};
|
|
11
|
-
const STYLE_SEPARATOR = /\s+/u;
|
|
12
|
-
const useChalkMethod = (chalk, style) => {
|
|
13
|
-
const [method, ...args] = style.split(ARGS_SEPARATOR);
|
|
14
|
-
if (typeof chalk[method] !== "function") throw new TypeError(`Style "${style}" is unknown.`);
|
|
15
|
-
return method in require_args.ARGS_METHODS ? getArgsChalkMethod(chalk, method, args) : getNoArgsChalkMethod(chalk, method, args);
|
|
16
|
-
};
|
|
17
|
-
const ARGS_SEPARATOR = "-";
|
|
18
|
-
const getArgsChalkMethod = (chalk, method, args) => {
|
|
19
|
-
const argsA = require_args.ARGS_METHODS[method](args, method);
|
|
20
|
-
return chalk[method](...argsA);
|
|
21
|
-
};
|
|
22
|
-
const getNoArgsChalkMethod = (chalk, method, args) => {
|
|
23
|
-
if (args.length !== 0) throw new TypeError(`No arguments "${args[0]}" allowed with "${method}"`);
|
|
24
|
-
return chalk[method];
|
|
25
|
-
};
|
|
26
|
-
const addStyles = (chalkMethod, string) => {
|
|
27
|
-
if (typeof string !== "string") throw new TypeError(`Argument must be a string, not: ${string}`);
|
|
28
|
-
return chalkMethod(string);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
exports.default = chalkString;
|
package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import colorsOption from "../../../../../colors-option@6.1.2/node_modules/colors-option/build/src/main.mjs";
|
|
2
|
-
import { ARGS_METHODS } from "./args.mjs";
|
|
3
|
-
|
|
4
|
-
//#region ../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.js
|
|
5
|
-
const chalkString = (styles, opts) => {
|
|
6
|
-
if (typeof styles !== "string") throw new TypeError(`Styles must be a string, not: ${styles}`);
|
|
7
|
-
const chalk = colorsOption(opts);
|
|
8
|
-
const chalkMethod = styles.trim().split(STYLE_SEPARATOR).reduce(useChalkMethod, chalk);
|
|
9
|
-
return addStyles.bind(void 0, chalkMethod);
|
|
10
|
-
};
|
|
11
|
-
const STYLE_SEPARATOR = /\s+/u;
|
|
12
|
-
const useChalkMethod = (chalk, style) => {
|
|
13
|
-
const [method, ...args] = style.split(ARGS_SEPARATOR);
|
|
14
|
-
if (typeof chalk[method] !== "function") throw new TypeError(`Style "${style}" is unknown.`);
|
|
15
|
-
return method in ARGS_METHODS ? getArgsChalkMethod(chalk, method, args) : getNoArgsChalkMethod(chalk, method, args);
|
|
16
|
-
};
|
|
17
|
-
const ARGS_SEPARATOR = "-";
|
|
18
|
-
const getArgsChalkMethod = (chalk, method, args) => {
|
|
19
|
-
const argsA = ARGS_METHODS[method](args, method);
|
|
20
|
-
return chalk[method](...argsA);
|
|
21
|
-
};
|
|
22
|
-
const getNoArgsChalkMethod = (chalk, method, args) => {
|
|
23
|
-
if (args.length !== 0) throw new TypeError(`No arguments "${args[0]}" allowed with "${method}"`);
|
|
24
|
-
return chalk[method];
|
|
25
|
-
};
|
|
26
|
-
const addStyles = (chalkMethod, string) => {
|
|
27
|
-
if (typeof string !== "string") throw new TypeError(`Argument must be a string, not: ${string}`);
|
|
28
|
-
return chalkMethod(string);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export { chalkString as default };
|
|
33
|
-
//# sourceMappingURL=main.mjs.map
|
package/dist/node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"main.mjs","names":[],"sources":["../../../../../../../../../../node_modules/.pnpm/chalk-string@4.0.0/node_modules/chalk-string/build/src/main.js"],"sourcesContent":["import colorsOption from\"colors-option\";\n\nimport{ARGS_METHODS}from\"./args.js\";\n\n\n\nconst chalkString=(styles,opts)=>{\nif(typeof styles!==\"string\"){\nthrow new TypeError(`Styles must be a string, not: ${styles}`)\n}\n\nconst chalk=colorsOption(opts);\nconst chalkMethod=styles.\ntrim().\nsplit(STYLE_SEPARATOR).\nreduce(useChalkMethod,chalk);\nreturn addStyles.bind(undefined,chalkMethod)\n};\n\nexport default chalkString;\n\nconst STYLE_SEPARATOR=/\\s+/u;\n\n\n\nconst useChalkMethod=(chalk,style)=>{\nconst[method,...args]=style.split(ARGS_SEPARATOR);\n\nif(typeof chalk[method]!==\"function\"){\nthrow new TypeError(`Style \"${style}\" is unknown.`)\n}\n\nreturn method in ARGS_METHODS?\ngetArgsChalkMethod(chalk,method,args):\ngetNoArgsChalkMethod(chalk,method,args)\n};\n\nconst ARGS_SEPARATOR=\"-\";\n\n\n\nconst getArgsChalkMethod=(chalk,method,args)=>{\nconst argsA=ARGS_METHODS[method](args,method);\nreturn chalk[method](...argsA)\n};\n\n\nconst getNoArgsChalkMethod=(chalk,method,args)=>{\nif(args.length!==0){\nthrow new TypeError(`No arguments \"${args[0]}\" allowed with \"${method}\"`)\n}\n\nreturn chalk[method]\n};\n\nconst addStyles=(chalkMethod,string)=>{\nif(typeof string!==\"string\"){\nthrow new TypeError(`Argument must be a string, not: ${string}`)\n}\n\nreturn chalkMethod(string)\n};"],"x_google_ignoreList":[0],"mappings":";;;;AAMA,MAAM,eAAa,QAAO,SAAO;AACjC,KAAG,OAAO,WAAS,SACnB,OAAM,IAAI,UAAU,iCAAiC,SAAS;CAG9D,MAAM,QAAM,aAAa,KAAK;CAC9B,MAAM,cAAY,OAClB,MAAM,CACN,MAAM,gBAAgB,CACtB,OAAO,gBAAe,MAAM;AAC5B,QAAO,UAAU,KAAK,QAAU,YAAY;;AAK5C,MAAM,kBAAgB;AAItB,MAAM,kBAAgB,OAAM,UAAQ;CACpC,MAAK,CAAC,QAAO,GAAG,QAAM,MAAM,MAAM,eAAe;AAEjD,KAAG,OAAO,MAAM,YAAU,WAC1B,OAAM,IAAI,UAAU,UAAU,MAAM,eAAe;AAGnD,QAAO,UAAU,eACjB,mBAAmB,OAAM,QAAO,KAAK,GACrC,qBAAqB,OAAM,QAAO,KAAK;;AAGvC,MAAM,iBAAe;AAIrB,MAAM,sBAAoB,OAAM,QAAO,SAAO;CAC9C,MAAM,QAAM,aAAa,QAAQ,MAAK,OAAO;AAC7C,QAAO,MAAM,QAAQ,GAAG,MAAM;;AAI9B,MAAM,wBAAsB,OAAM,QAAO,SAAO;AAChD,KAAG,KAAK,WAAS,EACjB,OAAM,IAAI,UAAU,iBAAiB,KAAK,GAAG,kBAAkB,OAAO,GAAG;AAGzE,QAAO,MAAM;;AAGb,MAAM,aAAW,aAAY,WAAS;AACtC,KAAG,OAAO,WAAS,SACnB,OAAM,IAAI,UAAU,mCAAmC,SAAS;AAGhE,QAAO,YAAY,OAAO"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
const require_index = require('./vendor/ansi-styles/index.cjs');
|
|
2
|
-
const require_index$1 = require('./vendor/supports-color/index.cjs');
|
|
3
|
-
const require_utilities = require('./utilities.cjs');
|
|
4
|
-
|
|
5
|
-
//#region ../../node_modules/.pnpm/chalk@5.6.2/node_modules/chalk/source/index.js
|
|
6
|
-
const { stdout: stdoutColor, stderr: stderrColor } = require_index$1.default;
|
|
7
|
-
const GENERATOR = Symbol("GENERATOR");
|
|
8
|
-
const STYLER = Symbol("STYLER");
|
|
9
|
-
const IS_EMPTY = Symbol("IS_EMPTY");
|
|
10
|
-
const levelMapping = [
|
|
11
|
-
"ansi",
|
|
12
|
-
"ansi",
|
|
13
|
-
"ansi256",
|
|
14
|
-
"ansi16m"
|
|
15
|
-
];
|
|
16
|
-
const styles = Object.create(null);
|
|
17
|
-
const applyOptions = (object, options = {}) => {
|
|
18
|
-
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) throw new Error("The `level` option should be an integer from 0 to 3");
|
|
19
|
-
const colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
20
|
-
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
21
|
-
};
|
|
22
|
-
var Chalk = class {
|
|
23
|
-
constructor(options) {
|
|
24
|
-
return chalkFactory(options);
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
const chalkFactory = (options) => {
|
|
28
|
-
const chalk = (...strings) => strings.join(" ");
|
|
29
|
-
applyOptions(chalk, options);
|
|
30
|
-
Object.setPrototypeOf(chalk, createChalk.prototype);
|
|
31
|
-
return chalk;
|
|
32
|
-
};
|
|
33
|
-
function createChalk(options) {
|
|
34
|
-
return chalkFactory(options);
|
|
35
|
-
}
|
|
36
|
-
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
37
|
-
for (const [styleName, style] of Object.entries(require_index.default)) styles[styleName] = { get() {
|
|
38
|
-
const builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
39
|
-
Object.defineProperty(this, styleName, { value: builder });
|
|
40
|
-
return builder;
|
|
41
|
-
} };
|
|
42
|
-
styles.visible = { get() {
|
|
43
|
-
const builder = createBuilder(this, this[STYLER], true);
|
|
44
|
-
Object.defineProperty(this, "visible", { value: builder });
|
|
45
|
-
return builder;
|
|
46
|
-
} };
|
|
47
|
-
const getModelAnsi = (model, level, type, ...arguments_) => {
|
|
48
|
-
if (model === "rgb") {
|
|
49
|
-
if (level === "ansi16m") return require_index.default[type].ansi16m(...arguments_);
|
|
50
|
-
if (level === "ansi256") return require_index.default[type].ansi256(require_index.default.rgbToAnsi256(...arguments_));
|
|
51
|
-
return require_index.default[type].ansi(require_index.default.rgbToAnsi(...arguments_));
|
|
52
|
-
}
|
|
53
|
-
if (model === "hex") return getModelAnsi("rgb", level, type, ...require_index.default.hexToRgb(...arguments_));
|
|
54
|
-
return require_index.default[type][model](...arguments_);
|
|
55
|
-
};
|
|
56
|
-
for (const model of [
|
|
57
|
-
"rgb",
|
|
58
|
-
"hex",
|
|
59
|
-
"ansi256"
|
|
60
|
-
]) {
|
|
61
|
-
styles[model] = { get() {
|
|
62
|
-
const { level } = this;
|
|
63
|
-
return function(...arguments_) {
|
|
64
|
-
const styler = createStyler(getModelAnsi(model, levelMapping[level], "color", ...arguments_), require_index.default.color.close, this[STYLER]);
|
|
65
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
66
|
-
};
|
|
67
|
-
} };
|
|
68
|
-
const bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
69
|
-
styles[bgModel] = { get() {
|
|
70
|
-
const { level } = this;
|
|
71
|
-
return function(...arguments_) {
|
|
72
|
-
const styler = createStyler(getModelAnsi(model, levelMapping[level], "bgColor", ...arguments_), require_index.default.bgColor.close, this[STYLER]);
|
|
73
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
74
|
-
};
|
|
75
|
-
} };
|
|
76
|
-
}
|
|
77
|
-
const proto = Object.defineProperties(() => {}, {
|
|
78
|
-
...styles,
|
|
79
|
-
level: {
|
|
80
|
-
enumerable: true,
|
|
81
|
-
get() {
|
|
82
|
-
return this[GENERATOR].level;
|
|
83
|
-
},
|
|
84
|
-
set(level) {
|
|
85
|
-
this[GENERATOR].level = level;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
const createStyler = (open, close, parent) => {
|
|
90
|
-
let openAll;
|
|
91
|
-
let closeAll;
|
|
92
|
-
if (parent === void 0) {
|
|
93
|
-
openAll = open;
|
|
94
|
-
closeAll = close;
|
|
95
|
-
} else {
|
|
96
|
-
openAll = parent.openAll + open;
|
|
97
|
-
closeAll = close + parent.closeAll;
|
|
98
|
-
}
|
|
99
|
-
return {
|
|
100
|
-
open,
|
|
101
|
-
close,
|
|
102
|
-
openAll,
|
|
103
|
-
closeAll,
|
|
104
|
-
parent
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
const createBuilder = (self, _styler, _isEmpty) => {
|
|
108
|
-
const builder = (...arguments_) => applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
109
|
-
Object.setPrototypeOf(builder, proto);
|
|
110
|
-
builder[GENERATOR] = self;
|
|
111
|
-
builder[STYLER] = _styler;
|
|
112
|
-
builder[IS_EMPTY] = _isEmpty;
|
|
113
|
-
return builder;
|
|
114
|
-
};
|
|
115
|
-
const applyStyle = (self, string) => {
|
|
116
|
-
if (self.level <= 0 || !string) return self[IS_EMPTY] ? "" : string;
|
|
117
|
-
let styler = self[STYLER];
|
|
118
|
-
if (styler === void 0) return string;
|
|
119
|
-
const { openAll, closeAll } = styler;
|
|
120
|
-
if (string.includes("\x1B")) while (styler !== void 0) {
|
|
121
|
-
string = require_utilities.stringReplaceAll(string, styler.close, styler.open);
|
|
122
|
-
styler = styler.parent;
|
|
123
|
-
}
|
|
124
|
-
const lfIndex = string.indexOf("\n");
|
|
125
|
-
if (lfIndex !== -1) string = require_utilities.stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
126
|
-
return openAll + string + closeAll;
|
|
127
|
-
};
|
|
128
|
-
Object.defineProperties(createChalk.prototype, styles);
|
|
129
|
-
const chalk = createChalk();
|
|
130
|
-
const chalkStderr = createChalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
131
|
-
|
|
132
|
-
//#endregion
|
|
133
|
-
exports.Chalk = Chalk;
|