@stacksjs/stx 0.2.151 → 0.2.152

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.
@@ -25,7 +25,7 @@ export declare function createEdgeCache(): EdgeCache | undefined;
25
25
  /**
26
26
  * Create an edge handler.
27
27
  */
28
- export declare function createEdgeHandler(config: EdgeHandlerConfig): void;
28
+ export declare function createEdgeHandler(config: EdgeHandlerConfig): (_request: Request, _platformContext?: Record<string, unknown>) => Promise<Response>;
29
29
  /**
30
30
  * Create a streaming response for edge platforms.
31
31
  */
package/dist/includes.js CHANGED
@@ -531,6 +531,8 @@ export async function processIncludes(template, context, filePath, options, depe
531
531
  const errorMessage = error instanceof Error ? error.message : String(error);
532
532
  return createDetailedErrorMessage("Include", `Error loading include file ${includePath}: ${errorMessage}`, filePath, templateStr, offsetPos);
533
533
  }
534
+ if (partialContent)
535
+ partialContent = partialContent.replace(/\{\{--[\s\S]*?--\}\}/g, "");
534
536
  if (partialContent && partialContent.includes("@stream")) {
535
537
  const { processStreamDirectives } = await import("./streaming.js");
536
538
  partialContent = processStreamDirectives(partialContent, context);