You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-optional-catch-binding

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-optional-catch-binding

Compile optional catch bindings


Version published
Maintainers
4
Created

Package description

What is @babel/plugin-transform-optional-catch-binding?

The @babel/plugin-transform-optional-catch-binding package is a Babel plugin that allows developers to use optional catch bindings in their JavaScript code. This feature is part of the ECMAScript 2019 (ES10) specification and enables developers to use try/catch blocks without the need to specify a catch binding if the error object is not used in the catch block.

What are @babel/plugin-transform-optional-catch-binding's main functionalities?

Optional Catch Binding Transformation

This feature transforms optional catch bindings to be compatible with environments that do not support this ES2019 syntax. It removes the need for an unused error binding in catch blocks.

try {
  // some code that might throw
} catch {
  // handle the error without using the error object
}

Other packages similar to @babel/plugin-transform-optional-catch-binding

Changelog

Source

v7.24.7 (2024-06-05)

:bug: Bug Fix
  • babel-node
    • #16554 Allow extra flags in babel-node (@nicolo-ribaudo)
  • babel-traverse
  • babel-helper-transform-fixture-test-runner, babel-plugin-proposal-explicit-resource-management
:house: Internal
  • babel-helpers, babel-runtime-corejs2, babel-runtime-corejs3, babel-runtime

Readme

Source

@babel/plugin-transform-optional-catch-binding

Compile optional catch bindings

See our website @babel/plugin-transform-optional-catch-binding for more information.

Install

Using npm:

npm install --save-dev @babel/plugin-transform-optional-catch-binding

or using yarn:

yarn add @babel/plugin-transform-optional-catch-binding --dev

Keywords

FAQs

Package last updated on 05 Jun 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc