@carrierllc/mcp 0.13.19 → 0.13.20
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-VM2X3RHP.js} +2 -2
- package/dist/{chunk-NUVSW46O.js.map → chunk-VM2X3RHP.js.map} +1 -1
- package/dist/cli.js +3 -2
- 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/dist/cli.js
CHANGED
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
verifyStorefront,
|
|
40
40
|
walletScreen,
|
|
41
41
|
which
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-VM2X3RHP.js";
|
|
43
43
|
import {
|
|
44
44
|
copyTree,
|
|
45
45
|
exists,
|
|
@@ -341,12 +341,13 @@ function parseCountryInput(raw) {
|
|
|
341
341
|
const added = codesFor(part);
|
|
342
342
|
if (!added) return { ok: false, message: "Countries are names, such as France, or codes such as FR." };
|
|
343
343
|
for (const code of added) {
|
|
344
|
-
if (regions.length >=
|
|
344
|
+
if (regions.length >= MAX_REGIONS_PER_PLAN) break;
|
|
345
345
|
if (!regions.includes(code)) regions.push(code);
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
return { ok: true, regions };
|
|
349
349
|
}
|
|
350
|
+
var MAX_REGIONS_PER_PLAN = 250;
|
|
350
351
|
function parseAmount(raw, unit, message, max, whole) {
|
|
351
352
|
const text3 = raw.trim().replace(unit, "").trim();
|
|
352
353
|
if (text3 === "" || !/^\d+(\.\d+)?$/.test(text3)) return { ok: false, message };
|