@carrierllc/mcp 0.13.19 → 0.13.21
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/{chunk-NUVSW46O.js → chunk-IUYX4NKC.js} +2 -2
- package/dist/{chunk-NUVSW46O.js.map → chunk-IUYX4NKC.js.map} +1 -1
- package/dist/cli.js +10 -6
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/templates/storefront/package-lock.json +40 -40
- package/templates/storefront/package.json +1 -1
- package/templates/storefront/pnpm-workspace.yaml +7 -0
- package/templates/storefront/src/app/layout.tsx +1 -1
package/dist/cli.js
CHANGED
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
verifyStorefront,
|
|
40
40
|
walletScreen,
|
|
41
41
|
which
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-IUYX4NKC.js";
|
|
43
43
|
import {
|
|
44
44
|
copyTree,
|
|
45
45
|
exists,
|
|
@@ -243,12 +243,15 @@ async function patchBrandConfig(path, brand) {
|
|
|
243
243
|
setField("accentLight", deriveAccentLight(brand.colors.accent));
|
|
244
244
|
setField("bg", brand.colors.bg);
|
|
245
245
|
const socialEntries = Object.entries(brand.social).filter(([, v]) => v);
|
|
246
|
-
const
|
|
246
|
+
const socialLines = [
|
|
247
|
+
` x: ${JSON.stringify(brand.social.x ?? "")},`,
|
|
248
|
+
...socialEntries.filter(([k]) => k !== "x").map(([k, v]) => ` ${k}: ${JSON.stringify(v)},`)
|
|
249
|
+
];
|
|
247
250
|
src = src.replace(
|
|
248
251
|
/social:\s*\{[^}]*\}/s,
|
|
249
|
-
|
|
250
|
-
${
|
|
251
|
-
}`
|
|
252
|
+
`social: {
|
|
253
|
+
${socialLines.join("\n")}
|
|
254
|
+
}`
|
|
252
255
|
);
|
|
253
256
|
await writeFile(path, src);
|
|
254
257
|
}
|
|
@@ -341,12 +344,13 @@ function parseCountryInput(raw) {
|
|
|
341
344
|
const added = codesFor(part);
|
|
342
345
|
if (!added) return { ok: false, message: "Countries are names, such as France, or codes such as FR." };
|
|
343
346
|
for (const code of added) {
|
|
344
|
-
if (regions.length >=
|
|
347
|
+
if (regions.length >= MAX_REGIONS_PER_PLAN) break;
|
|
345
348
|
if (!regions.includes(code)) regions.push(code);
|
|
346
349
|
}
|
|
347
350
|
}
|
|
348
351
|
return { ok: true, regions };
|
|
349
352
|
}
|
|
353
|
+
var MAX_REGIONS_PER_PLAN = 250;
|
|
350
354
|
function parseAmount(raw, unit, message, max, whole) {
|
|
351
355
|
const text3 = raw.trim().replace(unit, "").trim();
|
|
352
356
|
if (text3 === "" || !/^\d+(\.\d+)?$/.test(text3)) return { ok: false, message };
|