Socket
Socket
Sign inDemoInstall

@twilio/flex-plugin-core-utils

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twilio/flex-plugin-core-utils

Node utility package that helps migrate Flex plugins to use Flex Declarative Component APIs


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

Flex Plugin Core Utils

A core utility package written in Node TypeScript which helps build plugins for Flex.

It uses Facebook's JSCodeshift to parse through Flex plugin code and perform different operations like migration/validation.

Usage

Validate

Validates the given plugin files (TSX/JSX/TS/JS) for violation of a list of rules for a given Flex UI version. These rules include checks against the following:

  1. Flex UI API Compatibility
  2. Flex UI Dependency Conflicts
  3. Direct DOM Manipulation.
Method
validate(filePaths: string[], rules: Rules, config: RunnerConfig)
Arguments
  • filePaths - Paths to plugin files which needs to be validated
  • rules - List of rules to check violations for in the given plugin files
  • config - JSCodeshift runner configuration options

Migrate

Migrates the given plugin files (TSX/JSX/TS/JS) to use the latest Flex Declarative Component API used to build on top of Flex.

Method
migrate(filePaths: string[], config: RunnerConfig)
Arguments
  • filePaths - Paths to plugin files which needs to be migrated
  • config - JSCodeshift runner configuration options

Note:

This is an utility package used by Twilio Flex Plugin Builder internally and is not meant to be used as a stand-alone package. We do not support it for use outside of Twilio.

FAQs

Package last updated on 28 May 2024

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