
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/optional-features
Advanced tools
This addon allows you to easily enable/disable optional features in ember-source. To clarify what we mean by optional, these are features that will be opt-in/opt-out and optional for the foreseeable future, not features that will be enabled by default. It is intended for use with apps only not addons.
ember install @ember/optional-features
Features will only be available in versions of ember-source that included them. To list all available features run:
ember feature:list
To enable a feature, run:
ember feature:enable some-feature
Similarly, if you want to disable a feature, you can run:
ember feature:disable some-feature
This addon exposes a build-time method called isFeatureEnabled
, which can be called from an addon's index.js
, e.g.:
included() {
let optionalFeatues = this.addons.find(a => a.name === '@ember/optional-features');
if (optionalFeatures.isFeatureEnabled('jquery-integration') {
// ...
}
}
It also exposes a method called isFeatureExplicitlySet
, which can be used to check whether or not the user has explictly set the value of the option instead of using the default.
WIP -- there does not yet exist a public API for accessing the state of optional features at runtime. This issue is tracking it.
FAQs
The default blueprint for ember-cli addons.
The npm package @ember/optional-features receives a total of 108,016 weekly downloads. As such, @ember/optional-features popularity was classified as popular.
We found that @ember/optional-features demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 17 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.