Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@babel/plugin-proposal-optional-catch-binding
Advanced tools
The @babel/plugin-proposal-optional-catch-binding package allows developers to use the optional catch binding syntax proposed for JavaScript. This syntax lets you use try/catch blocks without needing to specify a catch binding if you don't need it for the catch block.
Optional Catch Binding
This feature allows you to omit the catch binding (the error variable) when you don't need to use it within the catch block. It simplifies the syntax when the error object is unnecessary.
try {
// some code that might throw
} catch {
// handle the error without using the error object
}
This package allows Babel to parse the optional catch binding syntax. However, it doesn't transform it. It's useful when you want your code to be parsed correctly but don't need to compile it down for older environments that don't support the feature.
Similar to @babel/plugin-proposal-optional-catch-binding, this package provides the functionality to transform optional catch bindings for compatibility with environments that do not support the feature natively. It's an alternative that might be used in different Babel setups or before the official Babel plugin was available.
Compile optional catch bindings
See our website @babel/plugin-proposal-optional-catch-binding for more information.
Using npm:
npm install --save-dev @babel/plugin-proposal-optional-catch-binding
or using yarn:
yarn add @babel/plugin-proposal-optional-catch-binding --dev
FAQs
Compile optional catch bindings
We found that @babel/plugin-proposal-optional-catch-binding demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.