@base44-preview/cli 0.1.1-pr.555.6305311 → 0.1.1-pr.555.9853704
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 +5 -8
- package/dist/cli/index.js.map +5 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -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;
|
|
243810
|
+
let messageSchema = undefined;
|
|
243811
243811
|
if (await pathExists(schemaPath)) {
|
|
243812
243812
|
const parsed = await readJsonFile(schemaPath);
|
|
243813
243813
|
const result = RealtimeHandlerSchemaFileSchema.safeParse(parsed);
|
|
@@ -254696,10 +254696,7 @@ 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 = {
|
|
254700
|
-
...pkg.dependencies,
|
|
254701
|
-
...pkg.devDependencies
|
|
254702
|
-
};
|
|
254699
|
+
const deps = { ...pkg.dependencies, ...pkg.devDependencies };
|
|
254703
254700
|
for (const name2 of SDK_PACKAGE_NAMES) {
|
|
254704
254701
|
if (name2 in deps)
|
|
254705
254702
|
return name2;
|
|
@@ -254735,7 +254732,7 @@ async function generateContent(input) {
|
|
|
254735
254732
|
],
|
|
254736
254733
|
[
|
|
254737
254734
|
"RealtimeHandlerRegistry",
|
|
254738
|
-
realtimeHandlers.filter((h5) => h5.messageSchema).map((h5, _10,
|
|
254735
|
+
realtimeHandlers.filter((h5) => h5.messageSchema).map((h5, _10, arr) => {
|
|
254739
254736
|
const idx = realtimeHandlers.indexOf(h5);
|
|
254740
254737
|
return `"${h5.name}": ${realtimeRegistryEntries[idx]};`;
|
|
254741
254738
|
})
|
|
@@ -254790,7 +254787,7 @@ async function compileRealtimeHandler(handler) {
|
|
|
254790
254787
|
additionalProperties: false,
|
|
254791
254788
|
strictIndexSignatures: true
|
|
254792
254789
|
});
|
|
254793
|
-
const match = ts8.match(/\{([
|
|
254790
|
+
const match = ts8.match(/\{([^]*)\}/);
|
|
254794
254791
|
return match ? `{
|
|
254795
254792
|
${match[1]}}` : "unknown";
|
|
254796
254793
|
} catch {
|
|
@@ -262896,4 +262893,4 @@ export {
|
|
|
262896
262893
|
CLIExitError
|
|
262897
262894
|
};
|
|
262898
262895
|
|
|
262899
|
-
//# debugId=
|
|
262896
|
+
//# debugId=33E3FAB72031407264756E2164756E21
|