@base44-preview/cli 0.0.1-pr.13.b66c6b8 → 0.0.1-pr.13.c36964c

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 CHANGED
@@ -507,7 +507,12 @@ function getAppClient() {
507
507
  //#region src/core/resources/entity/api.ts
508
508
  async function pushEntities(entities) {
509
509
  const appClient = getAppClient();
510
- const schemaSyncPayload = Object.fromEntries(entities.map((entity) => [entity.name, entity]));
510
+ const schemaSyncPayload = entities.reduce((acc, current) => {
511
+ return {
512
+ ...acc,
513
+ [current.name]: current
514
+ };
515
+ }, {});
511
516
  const response = await appClient.put("entities-schemas/sync-all", {
512
517
  json: { entityNameToSchema: schemaSyncPayload },
513
518
  throwHttpErrors: false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.1-pr.13.b66c6b8",
3
+ "version": "0.0.1-pr.13.c36964c",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",