extension-create 4.0.35 → 4.1.0
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/lib/messaging.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export interface CardInput {
|
|
|
23
23
|
suffix?: string;
|
|
24
24
|
rows?: CardRow[];
|
|
25
25
|
}
|
|
26
|
+
export declare const MAX_CARD_ROWS = 3;
|
|
26
27
|
export declare function card(input?: CardInput): string;
|
|
27
28
|
export declare function browserRowValue(browser: string, versionLine?: string): string;
|
|
28
29
|
export declare function isCardKeyClaimed(key: string): boolean;
|
package/dist/module.cjs
CHANGED
|
@@ -94,11 +94,12 @@ const fmt = {
|
|
|
94
94
|
}
|
|
95
95
|
};
|
|
96
96
|
const CARD_LABEL_WIDTH = 15;
|
|
97
|
+
const MAX_CARD_ROWS = 3;
|
|
97
98
|
function card(input = {}) {
|
|
98
99
|
const version = String(input.version || '').trim();
|
|
99
100
|
const suffix = String(input.suffix || '').trim();
|
|
100
|
-
const head = ` 🧩
|
|
101
|
-
const body = (input.rows || []).filter((row)=>String(row.value || '').trim().length > 0).map((row)=>{
|
|
101
|
+
const head = ` 🧩 Extension.js` + (version ? ` ${external_pintor_default().gray(version)}` : '') + (suffix ? ` ${suffix}` : '');
|
|
102
|
+
const body = (input.rows || []).filter((row)=>String(row.value || '').trim().length > 0).slice(0, MAX_CARD_ROWS).map((row)=>{
|
|
102
103
|
const label = row.label.padEnd(CARD_LABEL_WIDTH);
|
|
103
104
|
return ` ${label}${external_pintor_default().gray(String(row.value).trim())}`;
|
|
104
105
|
});
|
|
@@ -9,7 +9,7 @@ Packaging your extension is local and free. Submitting the result to a
|
|
|
9
9
|
store is what [extension.dev](https://docs.extension.dev/publish/overview?utm_source=store-md)
|
|
10
10
|
does, and it sponsors Extension.js.
|
|
11
11
|
|
|
12
|
-
Last updated: 2026-08-
|
|
12
|
+
Last updated: 2026-08-20
|
|
13
13
|
|
|
14
14
|
## Listing
|
|
15
15
|
|