
Product
Rubygems Ecosystem Support Now Generally Available
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
cypress-babel-esx-preprocessor
Advanced tools
Cypress plugin to allow you to use all proposals to the JavaScript language at Proposal stage or above by using babel-preset-stage-1 as well as all JavaScript that has been finalised in the ECMA standard by using babel-preset-env
Cypress plugin to allow you to use all proposals to the JavaScript language at Proposal stage or above by using babel-preset-stage-1 as well as all JavaScript that has been finalised in the ECMA standard by using babel-preset-env
This uses Cypress' default preprocessor under the hood (@cypress/browserify-preprocessor), adding the necessary configuration to use these babel presets
Most notably this allows use of object destructuring/object spread syntax in your Cypress spec files
# npm
npm install cypress-babel-esx-preprocessor --save-dev
# yarn
yarn add cypress-babel-esx-preprocessor --dev
// cypress/plugins/index.js
const babelEsX = require('cypress-babel-esx-preprocessor');
module.exports = (on) => {
on('file:preprocessor', babelEsX());
};
Pass in some additional babel presets/plugins:
// cypress/plugins/index.js
const babelEsX = require('cypress-babel-esx-preprocessor');
module.exports = (on) => {
const babelOptions = {
presets: ['babel-preset-react'],
plugins: ['babel-plugin-lodash']
};
on('file:preprocessor', babelEsX(babelOptions));
};
Pass in options to @cypress/browserify-preprocessor:
// cypress/plugins/index.js
const babelEsX = require('cypress-babel-esx-preprocessor');
const browserify = require('@cypress/browserify-preprocessor')
module.exports = (on) => {
const options = browserify.defaultOptions;
options.extensions.push('ts', 'tsx');
on('file:preprocessor', babelEsX(null, options));
};
FAQs
Cypress plugin to allow you to use all proposals to the JavaScript language at Proposal stage or above by using babel-preset-stage-1 as well as all JavaScript that has been finalised in the ECMA standard by using babel-preset-env
The npm package cypress-babel-esx-preprocessor receives a total of 46 weekly downloads. As such, cypress-babel-esx-preprocessor popularity was classified as not popular.
We found that cypress-babel-esx-preprocessor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.