@base44-preview/cli 0.1.10-pr.607.517737 → 0.1.10-pr.607.841a324
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 +4 -3
- package/dist/cli/index.js.map +3 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -258382,9 +258382,10 @@ async function getFunctionNamesForHint(availableFunctionNames, logsError) {
|
|
|
258382
258382
|
throw logsError;
|
|
258383
258383
|
}
|
|
258384
258384
|
}
|
|
258385
|
-
function createFunctionNotFoundError(functionName, availableFunctionNames) {
|
|
258385
|
+
function createFunctionNotFoundError(functionName, availableFunctionNames, logsError) {
|
|
258386
258386
|
const available = availableFunctionNames.join(", ");
|
|
258387
258387
|
return new InvalidInputError(`Function "${functionName}" was not found in this app`, {
|
|
258388
|
+
cause: logsError,
|
|
258388
258389
|
hints: [
|
|
258389
258390
|
{ message: `Available functions in this app: ${available}` },
|
|
258390
258391
|
{
|
|
@@ -258407,7 +258408,7 @@ async function fetchLogsForFunctions(functionNames, options, availableFunctionNa
|
|
|
258407
258408
|
const namesForHint = await getFunctionNamesForHint(availableFunctionNames, error48);
|
|
258408
258409
|
if (namesForHint.length === 0)
|
|
258409
258410
|
throw error48;
|
|
258410
|
-
throw createFunctionNotFoundError(functionName, namesForHint);
|
|
258411
|
+
throw createFunctionNotFoundError(functionName, namesForHint, error48);
|
|
258411
258412
|
}
|
|
258412
258413
|
const matchingLogs = filters.level ? logs.filter((entry) => entry.level === filters.level) : logs;
|
|
258413
258414
|
allEntries.push(...matchingLogs.map((entry) => normalizeLogEntry(entry, functionName)));
|
|
@@ -268091,4 +268092,4 @@ export {
|
|
|
268091
268092
|
runCLI
|
|
268092
268093
|
};
|
|
268093
268094
|
|
|
268094
|
-
//# debugId=
|
|
268095
|
+
//# debugId=85D146C5204055CA64756E2164756E21
|