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

@dawnjs/dn-middleware-call

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dawnjs/dn-middleware-call

A middleware to call other pipeline

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
4
Weekly downloads
 
Created
Source

@dawnjs/dn-middleware-call

npm npm

Usage

demo1:
  - name: '@dawnjs/dn-middleware-shell'
    script:
      - echo demo1

demo2:
  - name: '@dawnjs/dn-middleware-shell'
    script:
      - echo demo2

demo3:
  - name: '@dawnjs/dn-middleware-shell'
    script:
      - echo demo3

demo:
  - name: '@dawnjs/dn-middleware-call'
    pipe:
      - demo3
    when:
      'process.env.NODE_ENV !== "production"': demo1
      'process.env.NODE_ENV === "production"': demo2

Options

NameTypeDescription
pipestring | string[]The pipeline name[s] which needs to be called always in order
whenobjectThe pipeline name which needs to be called if meet the conditions after pipe array

Condition expression description

  • Condition expression can be any valid statement that return boolean value.
  • Middleware will extract all field in context to the condition expression scope with with statement.

Keywords

FAQs

Package last updated on 16 Jun 2021

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

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