
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
ember-cli-preprocess-registry
Advanced tools
Used by Ember CLI to provide a registry of preprocessors. The main types
used throughout the system are css
, template
, js
.
You can access both your own addon's and your parent's (whichever item is including you)
registry via the setupPreprocessorRegistry
hook in your addon's index.js
.
Example:
module.exports = {
name: 'special-js-sauce',
setupPreprocessorRegistry(type, registry) {
if (type !== 'parent') { return; }
registry.add('js', {
name: 'special-js-sauce-preprocessor',
toTree() {
// do your thing here....
}
});
}
}
Registry.prototype.add(type: String, plugin: Plugin)
Adds the provided plugin to the registry for the type specified.
Example:
class SpecialSauce {
get name() { return 'special-sauce'; }
toTree(tree) {
// return new tree after processing
}
}
registry.add('js', new SpecialSauce);
Registry.prototype.load(type: String): Plugin[]
Returns an array of all plugins that are registered for a given type.
Registry.prototype.extensionsForType(type: String): string[]
Returns an array of all known extensions for a given type.
Registry.prototype.remove(type: String, plugin: Plugin)
Removes the provided plugin from the specified type listing.
npm install
npm test
v5.0.1 (2023-05-11)
broccoli-persistent-filter is a Broccoli plugin that provides a base class for creating persistent filters. It allows you to create custom filters that can transform files in a Broccoli tree. Unlike ember-cli-preprocess-registry, which is specific to Ember CLI, broccoli-persistent-filter is a more general-purpose tool for creating file transformations in Broccoli.
ember-cli-htmlbars is an Ember CLI plugin that provides a preprocessor for compiling Handlebars templates. It is specifically designed for handling Handlebars templates in Ember applications, whereas ember-cli-preprocess-registry provides a more general framework for managing various types of preprocessors.
ember-cli-babel is an Ember CLI plugin that integrates Babel for transpiling JavaScript files. It allows you to use the latest JavaScript features in your Ember applications. While ember-cli-preprocess-registry provides a way to register and manage custom preprocessors, ember-cli-babel focuses specifically on JavaScript transpilation using Babel.
FAQs
Preprocessor registry used internally by ember-cli.
The npm package ember-cli-preprocess-registry receives a total of 155,516 weekly downloads. As such, ember-cli-preprocess-registry popularity was classified as popular.
We found that ember-cli-preprocess-registry demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.