@base44-preview/cli 0.0.1-pr.13.d022278 → 0.0.1-pr.13.e830fa0

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
@@ -496,20 +496,17 @@ const base44Client = ky.create({
496
496
  afterResponse: [handleUnauthorized]
497
497
  }
498
498
  });
499
- let _appClient = null;
500
499
  /**
501
500
  * Returns an HTTP client scoped to the current app.
502
- * Lazily initialized on first call (app ID must be set via BASE44_CLIENT_ID env var).
503
501
  */
504
502
  function getAppClient() {
505
- if (!_appClient) _appClient = base44Client.extend({ prefixUrl: new URL(`/api/apps/${getAppId()}/`, getBase44ApiUrl()).href });
506
- return _appClient;
503
+ return base44Client.extend({ prefixUrl: new URL(`/api/apps/${getAppId()}/`, getBase44ApiUrl()).href });
507
504
  }
508
505
 
509
506
  //#endregion
510
507
  //#region src/core/resources/entity/api.ts
511
- const appClient = getAppClient();
512
508
  async function pushEntities(entities) {
509
+ const appClient = getAppClient();
513
510
  const schemaSyncPayload = entities.reduce((acc, current) => {
514
511
  return {
515
512
  ...acc,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/cli",
3
- "version": "0.0.1-pr.13.d022278",
3
+ "version": "0.0.1-pr.13.e830fa0",
4
4
  "description": "Base44 CLI - Unified interface for managing Base44 applications",
5
5
  "type": "module",
6
6
  "main": "./dist/cli/index.js",