@base44-preview/cli 0.0.41-pr.394.ff9a1f1 → 0.0.41-pr.396.3d0a1da
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/index.js +6 -5
- package/dist/cli/index.js.map +5 -5
- package/package.json +2 -1
package/dist/cli/index.js
CHANGED
|
@@ -161575,7 +161575,7 @@ var require_is_promise = __commonJS((exports, module) => {
|
|
|
161575
161575
|
}
|
|
161576
161576
|
});
|
|
161577
161577
|
|
|
161578
|
-
// ../../node_modules/path-to-regexp/dist/index.js
|
|
161578
|
+
// ../../node_modules/router/node_modules/path-to-regexp/dist/index.js
|
|
161579
161579
|
var require_dist = __commonJS((exports) => {
|
|
161580
161580
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
161581
161581
|
exports.PathError = exports.TokenData = undefined;
|
|
@@ -238469,6 +238469,7 @@ var package_default = {
|
|
|
238469
238469
|
json5: "^2.2.3",
|
|
238470
238470
|
ky: "^1.14.2",
|
|
238471
238471
|
lodash: "^4.17.23",
|
|
238472
|
+
msw: "^2.12.10",
|
|
238472
238473
|
multer: "^2.0.0",
|
|
238473
238474
|
nanoid: "^5.1.6",
|
|
238474
238475
|
open: "^11.0.0",
|
|
@@ -247919,7 +247920,7 @@ function getLogsCommand(context) {
|
|
|
247919
247920
|
return new Command("logs").description("Fetch function logs for this app").option("--function <names>", "Filter by function name(s), comma-separated. If omitted, fetches logs for all project functions").option("--since <datetime>", "Show logs from this time (ISO format)", normalizeDatetime).option("--until <datetime>", "Show logs until this time (ISO format)", normalizeDatetime).addOption(new Option("--level <level>", "Filter by log level").choices([...LogLevelSchema.options]).hideHelp()).option("-n, --limit <n>", "Results per page (1-1000, default: 50)", (v) => {
|
|
247920
247921
|
const n2 = Number.parseInt(v, 10);
|
|
247921
247922
|
if (Number.isNaN(n2) || n2 < 1 || n2 > 1000) {
|
|
247922
|
-
throw new
|
|
247923
|
+
throw new InvalidInputError(`Invalid limit: "${v}". Must be a number between 1 and 1000.`);
|
|
247923
247924
|
}
|
|
247924
247925
|
return v;
|
|
247925
247926
|
}).addOption(new Option("--order <order>", "Sort order").choices(["asc", "desc"])).action(async (options) => {
|
|
@@ -247994,10 +247995,10 @@ function validateInput(command) {
|
|
|
247994
247995
|
const hasEntries = entries.length > 0;
|
|
247995
247996
|
const hasEnvFile = Boolean(envFile);
|
|
247996
247997
|
if (!hasEntries && !hasEnvFile) {
|
|
247997
|
-
|
|
247998
|
+
throw new InvalidInputError("Provide KEY=VALUE pairs or use --env-file. Example: base44 secrets set KEY1=VALUE1 KEY2=VALUE2");
|
|
247998
247999
|
}
|
|
247999
248000
|
if (hasEntries && hasEnvFile) {
|
|
248000
|
-
|
|
248001
|
+
throw new InvalidInputError("Provide KEY=VALUE pairs or --env-file, but not both.");
|
|
248001
248002
|
}
|
|
248002
248003
|
}
|
|
248003
248004
|
async function setSecretsAction(entries, options) {
|
|
@@ -255142,4 +255143,4 @@ export {
|
|
|
255142
255143
|
CLIExitError
|
|
255143
255144
|
};
|
|
255144
255145
|
|
|
255145
|
-
//# debugId=
|
|
255146
|
+
//# debugId=5197AF7DA9482FFF64756E2164756E21
|