@briklab/lib 1.1.9 → 1.2.0-test
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/cli-john/index.js +459 -15
- package/dist/cli-john/index.js.map +1 -1
- package/dist/color/index.js +205 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/dist/jstc/index.js +97 -5
- package/dist/stylesheet/index.js +251 -14
- package/dist/warner/index.d.ts +4 -0
- package/dist/warner/index.js +169 -4
- package/dist/warner/index.js.map +1 -1
- package/package.json +2 -3
package/dist/warner/index.js
CHANGED
|
@@ -1,4 +1,169 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Warning collector for briklab modules
|
|
3
|
+
*/
|
|
4
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
5
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
6
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
7
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
8
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
9
|
+
};
|
|
10
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
11
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
12
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
13
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
14
|
+
};
|
|
15
|
+
var _Warner_instances, _Warner_warnings, _Warner_options, _Warner_formatForBrowser, _Warner_formatForNode, _Warner_print;
|
|
16
|
+
import JSTC from "../jstc/index.js";
|
|
17
|
+
const IS_BROWSER = typeof window !== "undefined" && typeof window?.console !== "undefined";
|
|
18
|
+
const IS_NODE = typeof process !== "undefined" && !!process.stdout;
|
|
19
|
+
const NODE_STYLES = {
|
|
20
|
+
label: "\x1b[35m",
|
|
21
|
+
tag: "\x1b[36m",
|
|
22
|
+
msg: "\x1b[0m",
|
|
23
|
+
hint: "\x1b[2m",
|
|
24
|
+
reset: "\x1b[0m",
|
|
25
|
+
bold: "\x1b[1m",
|
|
26
|
+
};
|
|
27
|
+
JSTC.addCustomHandler("WarnerOptions", (p) => {
|
|
28
|
+
return (p &&
|
|
29
|
+
typeof p === "object" &&
|
|
30
|
+
((typeof p.level === "string" && "silent summary full".split(" ").includes(p.level)) || !(p.level)) &&
|
|
31
|
+
(typeof p.maxWarnings === "number" || !(p.maxWarnings)) &&
|
|
32
|
+
(typeof p.onWarn === "function" || !(p.onWarn)) &&
|
|
33
|
+
(typeof p.onSummary === "function" || !(p.onSummary)) &&
|
|
34
|
+
(typeof p.packageName === "string" || !(p.packageName)));
|
|
35
|
+
});
|
|
36
|
+
JSTC.addCustomHandler("Warning", (p) => {
|
|
37
|
+
return (p &&
|
|
38
|
+
typeof p.message === "string" &&
|
|
39
|
+
(typeof p.source === "string" || !p.source) &&
|
|
40
|
+
(typeof p.hint === "string" || !p.hint) &&
|
|
41
|
+
(typeof p.instantlyWarn === "boolean" || !p.instantlyWarn) &&
|
|
42
|
+
(typeof p.tag === "string" || !p.tag) &&
|
|
43
|
+
(typeof p.documentation === "string" || !p.documentation));
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* A Warner instance
|
|
47
|
+
*/
|
|
48
|
+
class Warner {
|
|
49
|
+
constructor(options = {}) {
|
|
50
|
+
_Warner_instances.add(this);
|
|
51
|
+
_Warner_warnings.set(this, []);
|
|
52
|
+
_Warner_options.set(this, {});
|
|
53
|
+
options.level = options.level ?? "summary";
|
|
54
|
+
options.maxWarnings = Number(options.maxWarnings ?? 20);
|
|
55
|
+
options.onWarn = options.onWarn ?? (() => { });
|
|
56
|
+
options.onSummary = options.onSummary ?? (() => { });
|
|
57
|
+
options.packageName = options.packageName ?? "";
|
|
58
|
+
__classPrivateFieldSet(this, _Warner_options, options, "f");
|
|
59
|
+
}
|
|
60
|
+
get warnings() {
|
|
61
|
+
return __classPrivateFieldGet(this, _Warner_warnings, "f");
|
|
62
|
+
}
|
|
63
|
+
setLevel(level) {
|
|
64
|
+
if (["silent", "summary", "full"].includes(level))
|
|
65
|
+
__classPrivateFieldGet(this, _Warner_options, "f").level = level;
|
|
66
|
+
}
|
|
67
|
+
setPackageName(name) {
|
|
68
|
+
__classPrivateFieldGet(this, _Warner_options, "f").packageName = String(name);
|
|
69
|
+
}
|
|
70
|
+
clear() {
|
|
71
|
+
__classPrivateFieldSet(this, _Warner_warnings, [], "f");
|
|
72
|
+
}
|
|
73
|
+
count() {
|
|
74
|
+
return __classPrivateFieldGet(this, _Warner_warnings, "f").length;
|
|
75
|
+
}
|
|
76
|
+
warn(warning) {
|
|
77
|
+
if (!JSTC.for([warning]).check(["Warning"]))
|
|
78
|
+
return;
|
|
79
|
+
if (__classPrivateFieldGet(this, _Warner_options, "f").maxWarnings && __classPrivateFieldGet(this, _Warner_warnings, "f").length < __classPrivateFieldGet(this, _Warner_options, "f").maxWarnings) {
|
|
80
|
+
__classPrivateFieldGet(this, _Warner_warnings, "f").push(warning);
|
|
81
|
+
}
|
|
82
|
+
try {
|
|
83
|
+
__classPrivateFieldGet(this, _Warner_options, "f").onWarn?.(warning);
|
|
84
|
+
}
|
|
85
|
+
catch (e) {
|
|
86
|
+
}
|
|
87
|
+
if (warning.instantlyWarn) {
|
|
88
|
+
__classPrivateFieldGet(this, _Warner_instances, "m", _Warner_print).call(this, warning);
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (__classPrivateFieldGet(this, _Warner_options, "f").level === "full")
|
|
92
|
+
__classPrivateFieldGet(this, _Warner_instances, "m", _Warner_print).call(this, warning);
|
|
93
|
+
if (__classPrivateFieldGet(this, _Warner_options, "f").level === "summary") {
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Finalize all warnings and log summary if needed
|
|
98
|
+
*/
|
|
99
|
+
finalize() {
|
|
100
|
+
this.flush();
|
|
101
|
+
}
|
|
102
|
+
flush() {
|
|
103
|
+
if (__classPrivateFieldGet(this, _Warner_options, "f").level === "full") {
|
|
104
|
+
__classPrivateFieldGet(this, _Warner_warnings, "f").forEach((w) => __classPrivateFieldGet(this, _Warner_instances, "m", _Warner_print).call(this, w));
|
|
105
|
+
}
|
|
106
|
+
if (__classPrivateFieldGet(this, _Warner_options, "f").level === "summary") {
|
|
107
|
+
try {
|
|
108
|
+
__classPrivateFieldGet(this, _Warner_options, "f").onSummary?.(__classPrivateFieldGet(this, _Warner_warnings, "f").length, [...__classPrivateFieldGet(this, _Warner_warnings, "f")]);
|
|
109
|
+
}
|
|
110
|
+
catch (e) { }
|
|
111
|
+
const count = __classPrivateFieldGet(this, _Warner_warnings, "f").length;
|
|
112
|
+
const max = __classPrivateFieldGet(this, _Warner_options, "f").maxWarnings;
|
|
113
|
+
if (IS_BROWSER) {
|
|
114
|
+
console.log(`${max ? (count > max ? `${max}+` : String(count)) : String(count)} warnings collected`);
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
console.log(`${count} warnings collected`);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
_Warner_warnings = new WeakMap(), _Warner_options = new WeakMap(), _Warner_instances = new WeakSet(), _Warner_formatForBrowser = function _Warner_formatForBrowser(w) {
|
|
123
|
+
const lines = [];
|
|
124
|
+
const label = __classPrivateFieldGet(this, _Warner_options, "f").packageName ? `${__classPrivateFieldGet(this, _Warner_options, "f").packageName}: ` : "";
|
|
125
|
+
const tagOrSource = w.tag ? `[${w.tag}] ` : w.source ? `[${w.source}] ` : "";
|
|
126
|
+
const header = `${tagOrSource}${label}${w.message}`;
|
|
127
|
+
const cssHeader = "background:#222;color:#fff;padding:2px 6px;border-radius:4px;font-weight:700;";
|
|
128
|
+
lines.push(header, cssHeader);
|
|
129
|
+
if (w.hint) {
|
|
130
|
+
lines.push(`\nHint: ${w.hint}`, "color:#888;font-style:italic;");
|
|
131
|
+
}
|
|
132
|
+
if (w.documentation) {
|
|
133
|
+
lines.push(`\nDocumentation: ${w.documentation}`, "color:#0af;font-weight:600;");
|
|
134
|
+
}
|
|
135
|
+
return lines;
|
|
136
|
+
}, _Warner_formatForNode = function _Warner_formatForNode(w) {
|
|
137
|
+
const parts = [];
|
|
138
|
+
const t = w.tag ? `${NODE_STYLES.tag}[${w.tag}]${NODE_STYLES.reset} ` : w.source ? `${NODE_STYLES.tag}[${w.source}]${NODE_STYLES.reset} ` : "";
|
|
139
|
+
const pkg = __classPrivateFieldGet(this, _Warner_options, "f").packageName ? `${NODE_STYLES.label}${__classPrivateFieldGet(this, _Warner_options, "f").packageName}${NODE_STYLES.reset}: ` : "";
|
|
140
|
+
parts.push(`${t}${pkg}${NODE_STYLES.bold}${w.message}${NODE_STYLES.reset}`);
|
|
141
|
+
if (w.hint)
|
|
142
|
+
parts.push(`${NODE_STYLES.hint}Hint: ${w.hint}${NODE_STYLES.reset}`);
|
|
143
|
+
if (w.documentation)
|
|
144
|
+
parts.push(`Documentation: ${w.documentation}`);
|
|
145
|
+
return parts.join("\n");
|
|
146
|
+
}, _Warner_print = function _Warner_print(w) {
|
|
147
|
+
if (IS_BROWSER) {
|
|
148
|
+
const args = __classPrivateFieldGet(this, _Warner_instances, "m", _Warner_formatForBrowser).call(this, w);
|
|
149
|
+
let fmt = "%c" + args[0];
|
|
150
|
+
const cssArgs = [args[1]];
|
|
151
|
+
let extraFmt = "";
|
|
152
|
+
for (let i = 2; i < args.length; i += 2) {
|
|
153
|
+
extraFmt += "%c" + args[i - 1];
|
|
154
|
+
cssArgs.push(args[i]);
|
|
155
|
+
}
|
|
156
|
+
if (extraFmt)
|
|
157
|
+
fmt += extraFmt;
|
|
158
|
+
console.warn(fmt, ...cssArgs);
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
if (IS_NODE) {
|
|
162
|
+
console.warn(__classPrivateFieldGet(this, _Warner_instances, "m", _Warner_formatForNode).call(this, w));
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
console.warn(`${__classPrivateFieldGet(this, _Warner_options, "f").packageName ? __classPrivateFieldGet(this, _Warner_options, "f").packageName + ': ' : ''}${w.message}`);
|
|
166
|
+
};
|
|
167
|
+
export default Warner;
|
|
168
|
+
export const warner = new Warner({ level: "summary" });
|
|
169
|
+
// TODO: complete this warner bro
|
package/dist/warner/index.js.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["index.js"],
|
|
4
|
-
"mappings": "AAGA,IAAIA,EAAkE,SAAUC,EAAUC,EAAOC,EAAOC,EAAMC,EAAG,CAC7G,GAAID,IAAS,IAAK,MAAM,IAAI,UAAU,gCAAgC,EACtE,GAAIA,IAAS,KAAO,CAACC,EAAG,MAAM,IAAI,UAAU,+CAA+C,EAC3F,GAAI,OAAOH,GAAU,WAAaD,IAAaC,GAAS,CAACG,EAAI,CAACH,EAAM,IAAID,CAAQ,EAAG,MAAM,IAAI,UAAU,yEAAyE,EAChL,OAAQG,IAAS,IAAMC,EAAE,KAAKJ,EAAUE,CAAK,EAAIE,EAAIA,EAAE,MAAQF,EAAQD,EAAM,IAAID,EAAUE,CAAK,EAAIA,CACxG,EACIG,EAAkE,SAAUL,EAAUC,EAAOE,EAAMC,EAAG,CACtG,GAAID,IAAS,KAAO,CAACC,EAAG,MAAM,IAAI,UAAU,+CAA+C,EAC3F,GAAI,OAAOH,GAAU,WAAaD,IAAaC,GAAS,CAACG,EAAI,CAACH,EAAM,IAAID,CAAQ,EAAG,MAAM,IAAI,UAAU,0EAA0E,EACjL,OAAOG,IAAS,IAAMC,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AAM,KAAK;AAAA,CAAI,CAC1B,EAAGjB,EAAgB,SAAuBW,EAAG,CACzC,GAAIT,EAAY,CACZ,MAAMkB,EAAO1B,EAAuB,KAAMC,EAAmB,IAAKG,CAAwB,EAAE,KAAK,KAAMa,CAAC,EACxG,IAAIU,EAAM,KAAOD,EAAK,CAAC,EACvB,MAAME,EAAU,CAACF,EAAK,CAAC,CAAC,EACxB,IAAIG,EAAW,GACf,QAASC,EAAI,EAAGA,EAAIJ,EAAK,OAAQI,GAAK,EAClCD,GAAY,KAAOH,EAAKI,EAAI,CAAC,EAC7BF,EAAQ,KAAKF,EAAKI,CAAC,CAAC,EAEpBD,IACAF,GAAOE,GACX,QAAQ,KAAKF,EAAK,GAAGC,CAAO,EAC5B,MACJ,CACA,GAAInB,EAAS,CACT,QAAQ,KAAKT,EAAuB,KAAMC,EAAmB,IAAKI,CAAqB,EAAE,KAAK,KAAMY,CAAC,CAAC,EACtG,MACJ,CACA,QAAQ,KAAK,GAAGjB,EAAuB,KAAMG,EAAiB,GAAG,EAAE,YAAcH,EAAuB,KAAMG,EAAiB,GAAG,EAAE,YAAc,KAAO,EAAE,GAAGc,EAAE,OAAO,EAAE,CAC7K,EACA,IAAOc,EAAQnB,EACR,MAAMoB,EAAS,IAAIpB,EAAO,CAAE,MAAO,SAAU,CAAC",
|
|
5
5
|
"names": ["__classPrivateFieldSet", "receiver", "state", "value", "kind", "f", "__classPrivateFieldGet", "_Warner_instances", "_Warner_warnings", "_Warner_options", "_Warner_formatForBrowser", "_Warner_formatForNode", "_Warner_print", "JSTC", "IS_BROWSER", "IS_NODE", "NODE_STYLES", "p", "Warner", "options", "level", "name", "warning", "w", "count", "max", "lines", "label", "header", "parts", "t", "pkg", "args", "fmt", "cssArgs", "extraFmt", "i", "index_default", "warner"]
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"repository": {
|
|
35
35
|
"url": "https://github.com/EkaanshPC/briklab-stdlib"
|
|
36
36
|
},
|
|
37
|
-
"version": "1.
|
|
37
|
+
"version": "1.2.0-test",
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@types/cssom": "^0.4.3",
|
|
40
40
|
"@types/node": "^25.1.0",
|
|
@@ -71,8 +71,7 @@
|
|
|
71
71
|
"cssom": "^0.5.0"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
|
-
"build": "tsc
|
|
75
|
-
"minify": "node build.js",
|
|
74
|
+
"build": "tsc",
|
|
76
75
|
"test:smoke": "pnpm run build && node ./test-dist.js"
|
|
77
76
|
}
|
|
78
77
|
}
|