@podium/layout
Advanced tools
Comparing version 4.0.0-next.4 to 4.0.0-next.5
@@ -161,12 +161,2 @@ /* eslint-disable no-underscore-dangle */ | ||
async process(incoming) { | ||
incoming.name = this.name; | ||
incoming.view = this._view; | ||
incoming.js = this.jsRoute; | ||
incoming.css = this.cssRoute; | ||
await this.context.process(incoming); | ||
await this.httpProxy.process(incoming); | ||
} | ||
css({ value = null, prefix = false } = {}) { | ||
@@ -221,2 +211,14 @@ if (!value) { | ||
async process(incoming, { proxy = true, context = true } = {}) { | ||
incoming.name = this.name; | ||
incoming.view = this._view; | ||
incoming.css = this.cssRoute; | ||
incoming.js = this.jsRoute; | ||
if (context) await this.context.process(incoming); | ||
if (proxy) await this.httpProxy.process(incoming); | ||
return incoming; | ||
} | ||
middleware() { | ||
@@ -223,0 +225,0 @@ return async (req, res, next) => { |
{ | ||
"name": "@podium/layout", | ||
"version": "4.0.0-next.4", | ||
"version": "4.0.0-next.5", | ||
"description": "Module for composing full page layouts out of page fragments in a micro frontend architecture.", | ||
@@ -5,0 +5,0 @@ "main": "lib/layout.js", |
@@ -229,3 +229,3 @@ # @podium/layout | ||
### .process(HttpIncoming) | ||
### .process(HttpIncoming, options) | ||
@@ -275,2 +275,9 @@ Method for processing an incoming HTTP request. This method is intended to be | ||
#### options | ||
| option | default | type | required | details | | ||
| ------- | ------- | --------- | -------- | ------------------------------------------------------------------------- | | ||
| context | `true` | `boolean` | `false` | If `@podium/context` should be applied as part of the `.process()` method | | ||
| proxy | `true` | `boolean` | `false` | If `@podium/proxy` should be applied as part of the `.process()` method | | ||
### .render(httpIncoming, data) | ||
@@ -277,0 +284,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32710
219
694