Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
babel-plugin-remove-functions
Advanced tools
This is a WIP and experimental implementation of https://github.com/ember-cli/rfcs/pull/50.
Given the following configuration:
{
removals: [
{
module: 'ember',
methods: [
'assert',
'debug',
'deprecate',
'info',
'runInDebug',
'warn'
]
}
]
}
And the following source javascript:
import Ember from 'ember';
export default Ember.Component.extend({
didInsertElement() {
console.log('didInsertElement');
Ember.isEqual('this will not be removed', 'ok?');
Ember.assert('this will be removed');
Ember.assert('this will also be removed', true);
Ember.debug('this will be removed');
Ember.deprecate(
'this will be removed',
false,
{
id: 'test-deprecation',
until: '3.0.0',
url: 'http://foo.com'
}
);
Ember.info('this will be removed');
Ember.runInDebug(() => {
Ember.Component.reopen({
didInsertElement() {
console.log('this will all be removed');
}
});
});
Ember.warn('this will be removed');
}
});
The output will be:
import Ember from 'ember';
export default Ember.Component.extend({
didInsertElement() {
console.log('didInsertElement');
Ember.isEqual('this will not be removed', 'ok?');
}
});
Use astexplorer.net for exploring and experimenting with the Babel AST.
This is based on babel-plugin-filter-imports by mmum.
FAQs
Remove code from ember-cli builds
The npm package babel-plugin-remove-functions receives a total of 133 weekly downloads. As such, babel-plugin-remove-functions popularity was classified as not popular.
We found that babel-plugin-remove-functions 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 now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.