@base44-preview/cli 0.1.1-pr.555.9853704 → 0.1.1-pr.555.c9c117a

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
@@ -243777,7 +243777,7 @@ async function deploySingleRealtimeHandler(name2, payload) {
243777
243777
  const appClient = getAppClient();
243778
243778
  let response;
243779
243779
  try {
243780
- response = await appClient.put(`backend-functions/${encodeURIComponent(name2)}`, { json: payload, timeout: false });
243780
+ response = await appClient.put(`realtime-handlers/${encodeURIComponent(name2)}`, { json: payload, timeout: false });
243781
243781
  } catch (error48) {
243782
243782
  throw await ApiError.fromHttpError(error48, `deploying realtime handler "${name2}"`);
243783
243783
  }
@@ -243807,7 +243807,7 @@ async function readRealtimeHandler(entryFile, realtimeDir) {
243807
243807
  }
243808
243808
  const entry = basename4(entryFile);
243809
243809
  const schemaPath = join10(handlerDir, "schema.jsonc");
243810
- let messageSchema = undefined;
243810
+ let messageSchema;
243811
243811
  if (await pathExists(schemaPath)) {
243812
243812
  const parsed = await readJsonFile(schemaPath);
243813
243813
  const result = RealtimeHandlerSchemaFileSchema.safeParse(parsed);
@@ -254696,7 +254696,10 @@ var SDK_PACKAGE_NAMES = ["@base44/sdk", "@base44-preview/sdk"];
254696
254696
  async function detectSdkPackageName(projectRoot) {
254697
254697
  try {
254698
254698
  const pkg = await readJsonFile(join26(projectRoot, "package.json"));
254699
- const deps = { ...pkg.dependencies, ...pkg.devDependencies };
254699
+ const deps = {
254700
+ ...pkg.dependencies,
254701
+ ...pkg.devDependencies
254702
+ };
254700
254703
  for (const name2 of SDK_PACKAGE_NAMES) {
254701
254704
  if (name2 in deps)
254702
254705
  return name2;
@@ -254732,7 +254735,7 @@ async function generateContent(input) {
254732
254735
  ],
254733
254736
  [
254734
254737
  "RealtimeHandlerRegistry",
254735
- realtimeHandlers.filter((h5) => h5.messageSchema).map((h5, _10, arr) => {
254738
+ realtimeHandlers.filter((h5) => h5.messageSchema).map((h5, _10, _arr) => {
254736
254739
  const idx = realtimeHandlers.indexOf(h5);
254737
254740
  return `"${h5.name}": ${realtimeRegistryEntries[idx]};`;
254738
254741
  })
@@ -254787,7 +254790,7 @@ async function compileRealtimeHandler(handler) {
254787
254790
  additionalProperties: false,
254788
254791
  strictIndexSignatures: true
254789
254792
  });
254790
- const match = ts8.match(/\{([^]*)\}/);
254793
+ const match = ts8.match(/\{([\s\S]*)\}/);
254791
254794
  return match ? `{
254792
254795
  ${match[1]}}` : "unknown";
254793
254796
  } catch {
@@ -262893,4 +262896,4 @@ export {
262893
262896
  CLIExitError
262894
262897
  };
262895
262898
 
262896
- //# debugId=33E3FAB72031407264756E2164756E21
262899
+ //# debugId=BE0AB0A4F339A36D64756E2164756E21