extension-create 4.0.34 → 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.
@@ -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 = ` 🧩 ${external_pintor_default().brightBlue('Extension.js')}` + (version ? ` ${external_pintor_default().gray(version)}` : '') + (suffix ? ` ${suffix}` : '');
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
  });
@@ -1337,8 +1338,6 @@ function buildOptionalInstallArgs(pm, dependencies, installDir) {
1337
1338
  if ('yarn' === pm) return [
1338
1339
  'add',
1339
1340
  ...dependencies,
1340
- '--cwd',
1341
- installDir,
1342
1341
  '--optional'
1343
1342
  ];
1344
1343
  if ('pnpm' === pm) return [
@@ -1,5 +1,5 @@
1
1
  {
2
- "createdWith": "extension-create@4.0.33",
2
+ "createdWith": "extension-create@4.0.35",
3
3
  "template": "javascript",
4
4
  "source": "bundled"
5
5
  }
@@ -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-18
12
+ Last updated: 2026-08-20
13
13
 
14
14
  ## Listing
15
15
 
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {},
18
18
  "devDependencies": {
19
- "extension": "^4.0.33"
19
+ "extension": "^4.0.35"
20
20
  },
21
21
  "packageManager": "pnpm@10.28.0",
22
22
  "pnpm": {
package/package.json CHANGED
@@ -25,7 +25,7 @@
25
25
  "templates"
26
26
  ],
27
27
  "name": "extension-create",
28
- "version": "4.0.34",
28
+ "version": "4.1.0",
29
29
  "description": "The standalone extension creation engine for Extension.js",
30
30
  "author": {
31
31
  "name": "Cezar Augusto",