Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@podium/layout

Package Overview
Dependencies
Maintainers
5
Versions
252
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@podium/layout - npm Package Compare versions

Comparing version 4.0.0-next.4 to 4.0.0-next.5

22

lib/layout.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc