@base44-preview/cli 0.1.29-pr.656.a562be5 → 0.1.31-pr.657.7711db6

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
@@ -239374,7 +239374,7 @@ import { join as join13 } from "node:path";
239374
239374
  // package.json
239375
239375
  var package_default = {
239376
239376
  name: "base44",
239377
- version: "0.1.29",
239377
+ version: "0.1.31",
239378
239378
  description: "Base44 CLI - Unified interface for managing Base44 applications",
239379
239379
  type: "module",
239380
239380
  bin: {
@@ -261311,7 +261311,7 @@ function shardOf(group, response, verdict, options) {
261311
261311
  gzipBytes: verdict.gzipBytes,
261312
261312
  ...response.activation ? { activation: response.activation } : {},
261313
261313
  wrapper: {
261314
- secrets: response.activation ? `blob-${response.activation}` : "binding",
261314
+ secrets: response.activation ? `blob_${response.activation}` : "binding",
261315
261315
  postResponseTelemetry: options.postResponseTelemetry ?? false,
261316
261316
  staticEgress: STATIC_EGRESS_ARTIFACT_MARKER
261317
261317
  }
@@ -261394,8 +261394,9 @@ async function compilerInput(root, fn) {
261394
261394
  for (const filePath of fn.filePaths) {
261395
261395
  backendFiles[projectPath(root, filePath)] = await readTextFile(filePath);
261396
261396
  }
261397
- const { entry, files } = await cfwBundleInput(projectPath(root, fn.entryPath), await readTextFile(fn.entryPath), backendFiles);
261398
- return { name: fn.name, entry, files };
261397
+ const source = await readTextFile(fn.entryPath);
261398
+ const { entry, files } = await cfwBundleInput(projectPath(root, fn.entryPath), source, backendFiles);
261399
+ return { input: { name: fn.name, entry, files }, source };
261399
261400
  }
261400
261401
  function describeFailure(failure) {
261401
261402
  const where = failure.function ? `${failure.function}: ` : "";
@@ -261413,11 +261414,14 @@ async function compileBackendBundles(root, functionsDir) {
261413
261414
  }
261414
261415
  await requireCompilerRuntime();
261415
261416
  const sorted = [...functions].sort((a, b) => a.name < b.name ? -1 : 1);
261416
- const inputs = await pMap(sorted, (fn) => compilerInput(root, fn), {
261417
+ const compiled = await pMap(sorted, (fn) => compilerInput(root, fn), {
261417
261418
  concurrency: 8
261418
261419
  });
261419
- const entries = new Map(inputs.map((input) => [input.name, input.entry]));
261420
- const built = await compileFunctionShards(inputs, SHARD_POLICY, COMPILE_MODES);
261420
+ const declared = new Map(compiled.map(({ input, source }) => [
261421
+ input.name,
261422
+ { name: input.name, entry: input.entry, source }
261423
+ ]));
261424
+ const built = await compileFunctionShards(compiled.map(({ input }) => input), SHARD_POLICY, COMPILE_MODES);
261421
261425
  if (!built.ok) {
261422
261426
  throw new InvalidInputError(`Backend functions failed to compile (${built.failures.length} error${built.failures.length === 1 ? "" : "s"}).`, { details: built.failures.map(describeFailure) });
261423
261427
  }
@@ -261427,10 +261431,7 @@ async function compileBackendBundles(root, functionsDir) {
261427
261431
  module,
261428
261432
  size: module.byteLength,
261429
261433
  digest: sha256(module),
261430
- functions: shard.functions.map((name) => ({
261431
- name,
261432
- entry: entries.get(name)
261433
- })),
261434
+ functions: shard.functions.map((name) => declared.get(name)),
261434
261435
  wrapper: shard.wrapper
261435
261436
  };
261436
261437
  });
@@ -271283,4 +271284,4 @@ export {
271283
271284
  runCLI
271284
271285
  };
271285
271286
 
271286
- //# debugId=F35542A3D74C85C064756E2164756E21
271287
+ //# debugId=7FB565796F6FC1AA64756E2164756E21