@dosgato/templating 0.0.53 → 0.0.54

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.
@@ -179,6 +179,8 @@ export declare abstract class Component<DataType extends ComponentData = any, Fe
179
179
  renderedAreas: Map<string, RenderedComponent[]>;
180
180
  hadError: boolean;
181
181
  autoLabel: string;
182
+ reqHeaders: Headers;
183
+ reqUrl: URL;
182
184
  /**
183
185
  * For logging errors during rendering without crashing the render. If your fetch, setContext,
184
186
  * render, or renderVariation functions throw, the error will be logged but the page render will
@@ -243,6 +245,11 @@ export declare abstract class Page<DataType extends PageData = any, FetchedType
243
245
  * should place include it in the <head> element
244
246
  */
245
247
  headContent: string;
248
+ /**
249
+ * This method will be provided to page templates by the render server. You may call it
250
+ * at any time during fetch, context, or render, to set an HTTP header on the response
251
+ */
252
+ addHeader: (key: string, value: string) => void;
246
253
  protected passError(e: Error, path: string): void;
247
254
  constructor(page: PageRecord<DataType>, editMode: boolean);
248
255
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dosgato/templating",
3
- "version": "0.0.53",
3
+ "version": "0.0.54",
4
4
  "description": "A library to support building templates for dosgato CMS.",
5
5
  "type": "module",
6
6
  "exports": {