🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@dsaid/chain-wrap-components

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@dsaid/chain-wrap-components

This provides a helper function for [Swagger UI](https://swagger.io/docs/open-source-tools/swagger-ui/customization/plugin-api/), it allows:

0.0.2
unpublished
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

@dsaid/chain-wrap-components npm version

This provides a helper function for Swagger UI, it allows:

  • Use of chainWrapComponents(plugin1, plugin2...) to enable chaining for multiple plugins with the same components in wrapComponents.
  • Add support to e.g. swagger-ui v4.18.3, pluginsOptions: {pluginLoadType: "chain"} does not support chaining in wrapComponents.

Prerequisites

Install

$ npm install @dsaid/chain-wrap-components

Usage

import otpAuthPlugin from '@dsaid/swagger-ui-plugin-otp-auth'
import samlAuthPlugin from '@dsaid/swagger-ui-plugin-saml-auth'
import chainWrapComponents from '@dsaid/chain-wrap-components'

// swagger-ui initialization
  SwaggerUI({
    plugins: [
      // otpAuthPlugin and samlAuthPlugin both overriding wrapComponenrs
      // e.g. wrapComponents: {AuthItem: ...}
      chainWrapComponents(otpAuthPlugin, samlAuthPlugin),
      ...
    ]
  })

FAQs

Package last updated on 05 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts