Research
Recent Trends in Malicious Packages Targeting Discord
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
ember-env-macros
Advanced tools
Readme
Get both build and runtime configurations in Ember app or addon.
yarn add ember-env-macros
If you have build env:
// ember-cli-build.js
module.exports = function(defaults) {
let app = new EmberAddon(defaults, {
'some-config': {
buildKey: true,
nestedKey: {
key: 'build',
},
},
});
return app.toTree();
};
and config env:
module.exports = function(environment) {
let ENV = {
// ...
'some-config': {
envKey: false,
nestedKey: {
key: 'config',
},
},
}
You can get access to them via:
import { configEnv, buildEnv } from 'ember-env-macros';
let model = {
config: {
envValue: configEnv('some-config.envKey'),
nestedValue: configEnv('some-config.nestedKey.key'),
defaultValue: configEnv('some-config.missingKey', 'default'),
},
build: {
buildValue: buildEnv('some-config.buildKey'),
nestedValue: buildEnv('some-config.nestedKey.key'),
defaultValue: buildEnv('some-config.missingKey', 'default'),
},
};
The build output will be:
var model = {
config: {
envValue: false,
nestedValue: 'config',
defaultValue: 'default',
},
build: {
buildValue: true,
nestedValue: 'build',
defaultValue: 'default',
},
};
When used in an addon or engine, both config and build envs are from the host app.
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
The default blueprint for ember-cli addons.
The npm package ember-env-macros receives a total of 105 weekly downloads. As such, ember-env-macros popularity was classified as not popular.
We found that ember-env-macros 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.
Research
The Socket research team breaks down a sampling of malicious packages that download and execute files, among other suspicious behaviors, targeting the popular Discord platform.
Security News
Socket CEO Feross Aboukhadijeh joins a16z partners to discuss how modern, sophisticated supply chain attacks require AI-driven defenses and explore the challenges and solutions in leveraging AI for threat detection early in the development life cycle.
Security News
NIST's new AI Risk Management Framework aims to enhance the security and reliability of generative AI systems and address the unique challenges of malicious AI exploits.