@base44-preview/cli 0.0.30-pr.220.245e9c0 → 0.0.30-pr.220.650c524
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 +18 -6
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -152254,9 +152254,14 @@ var CreateProjectResponseSchema = exports_external.looseObject({
|
|
|
152254
152254
|
var ProjectSchema = exports_external.object({
|
|
152255
152255
|
id: exports_external.string(),
|
|
152256
152256
|
name: exports_external.string(),
|
|
152257
|
-
|
|
152258
|
-
|
|
152259
|
-
})
|
|
152257
|
+
user_description: exports_external.string().optional().nullable(),
|
|
152258
|
+
is_managed_source_code: exports_external.boolean().optional()
|
|
152259
|
+
}).transform((data) => ({
|
|
152260
|
+
id: data.id,
|
|
152261
|
+
name: data.name,
|
|
152262
|
+
userDescription: data.user_description,
|
|
152263
|
+
isManagedSourceCode: data.is_managed_source_code
|
|
152264
|
+
}));
|
|
152260
152265
|
var ProjectsResponseSchema = exports_external.array(ProjectSchema);
|
|
152261
152266
|
var TestOverridesSchema = exports_external.object({
|
|
152262
152267
|
appConfig: exports_external.object({
|
|
@@ -152462,6 +152467,13 @@ class ApiError extends SystemError {
|
|
|
152462
152467
|
return new ApiError(`Error ${context}: ${String(error48)}`);
|
|
152463
152468
|
}
|
|
152464
152469
|
static getDefaultHints(statusCode) {
|
|
152470
|
+
if (statusCode === 400) {
|
|
152471
|
+
return [
|
|
152472
|
+
{
|
|
152473
|
+
message: "The server rejected the request. Check the error message above for details."
|
|
152474
|
+
}
|
|
152475
|
+
];
|
|
152476
|
+
}
|
|
152465
152477
|
if (statusCode === 401) {
|
|
152466
152478
|
return [{ message: "Try logging in again", command: "base44 login" }];
|
|
152467
152479
|
}
|
|
@@ -170288,7 +170300,7 @@ async function eject(options8) {
|
|
|
170288
170300
|
const projectOptions = ejectableProjects.map((p4) => ({
|
|
170289
170301
|
value: p4,
|
|
170290
170302
|
label: p4.name,
|
|
170291
|
-
hint: p4.userDescription
|
|
170303
|
+
hint: p4.userDescription ?? undefined
|
|
170292
170304
|
}));
|
|
170293
170305
|
const selected = await ve({
|
|
170294
170306
|
message: `Choose a project to download ${theme.styles.dim("(Note: this will clone the selected project)")}`,
|
|
@@ -170319,7 +170331,7 @@ async function eject(options8) {
|
|
|
170319
170331
|
});
|
|
170320
170332
|
updateMessage("Creating a new project...");
|
|
170321
170333
|
const newProjectName = `${selectedProject.name} Copy`;
|
|
170322
|
-
const { projectId: newProjectId } = await createProject(newProjectName, selectedProject.userDescription);
|
|
170334
|
+
const { projectId: newProjectId } = await createProject(newProjectName, selectedProject.userDescription ?? undefined);
|
|
170323
170335
|
updateMessage("Linking the project...");
|
|
170324
170336
|
await writeAppConfig(resolvedPath, newProjectId);
|
|
170325
170337
|
await writeFile(`${resolvedPath}/.env.local`, `VITE_BASE44_APP_ID=${newProjectId}`);
|
|
@@ -174641,4 +174653,4 @@ export {
|
|
|
174641
174653
|
CLIExitError
|
|
174642
174654
|
};
|
|
174643
174655
|
|
|
174644
|
-
//# debugId=
|
|
174656
|
+
//# debugId=B74E52EE47C03DF964756E2164756E21
|