@podium/layout
Advanced tools
Comparing version 3.0.0-beta.7 to 3.0.0-beta.8
@@ -5,2 +5,3 @@ /* eslint-disable no-underscore-dangle */ | ||
const { HttpIncoming } = require('@podium/utils'); | ||
const schemas = require('@podium/schemas'); | ||
@@ -15,3 +16,2 @@ const Context = require('@podium/context'); | ||
const joi = require('joi'); | ||
const State = require('./state'); | ||
@@ -137,4 +137,4 @@ const utils = require('./utils'); | ||
async process(state) { | ||
const s = state; | ||
async process(incoming) { | ||
const s = incoming; | ||
s.name = this.name; | ||
@@ -149,8 +149,8 @@ | ||
return (req, res, next) => { | ||
const state = new State(req, res, res.locals); | ||
const incoming = new HttpIncoming(req, res, res.locals); | ||
this.process(state) | ||
this.process(incoming) | ||
.then(result => { | ||
if (result) { | ||
putils.setAtLocalsPodium(res, 'context', state.context); | ||
putils.setAtLocalsPodium(res, 'context', incoming.context); | ||
next(); | ||
@@ -157,0 +157,0 @@ } |
{ | ||
"name": "@podium/layout", | ||
"version": "3.0.0-beta.7", | ||
"version": "3.0.0-beta.8", | ||
"description": "Module for composing full page layouts out of page fragments in a micro frontend architecture.", | ||
@@ -36,10 +36,9 @@ "main": "lib/layout.js", | ||
"@podium/client": "3.0.0-beta.2", | ||
"@podium/context": "3.0.0-beta.4", | ||
"@podium/proxy": "3.0.0-beta.3", | ||
"@podium/context": "3.0.0-beta.5", | ||
"@podium/proxy": "3.0.0-beta.4", | ||
"@podium/schemas": "3.0.0", | ||
"@podium/utils": "3.0.0", | ||
"@podium/utils": "3.1.0", | ||
"abslog": "2.2.3", | ||
"joi": "^14.3.1", | ||
"lodash.merge": "^4.6.1", | ||
"original-url": "^1.2.2", | ||
"readable-stream": "^3.1.1" | ||
@@ -46,0 +45,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
10
17745
6
155
+ Added@podium/context@3.0.0-beta.5(transitive)
+ Added@podium/proxy@3.0.0-beta.4(transitive)
+ Added@podium/utils@3.0.0-beta.13.1.0(transitive)
- Removedoriginal-url@^1.2.2
- Removed@podium/context@3.0.0-beta.4(transitive)
- Removed@podium/proxy@3.0.0-beta.3(transitive)
- Removed@podium/utils@3.0.0(transitive)
- Removedoriginal-url@1.2.2(transitive)
Updated@podium/context@3.0.0-beta.5
Updated@podium/proxy@3.0.0-beta.4
Updated@podium/utils@3.1.0