
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@adobe/aio-lib-env
Advanced tools
This is a helper library that is to be used in the Adobe I/O CLI and SDKs to determine the environment to run in, whether prod
, or stage
.
$ npm install @adobe/aio-lib-env
Determining the Environment
const {
getCliEnv, /* function */
setCliEnv, /* function */
SUPPORTED_ENVS, /* array<string> */
DEFAULT_ENV, /* string */
PROD_ENV, /* string */
STAGE_ENV /* string */
} = require('@adobe/aio-lib-env')
// getCliEnv defaults to PROD_ENV if the global config key is not set, or is set to an unknown env
const env = getCliEnv()
// do something based on the env - switch to prod or stage endpoints, for example
Setting the Environment (.aio)
{
cli: {
env: "prod"
}
}
Setting the Environment (.env)
AIO_CLI_ENV=prod
Setting the Environment (in code)
const { setCliEnv, PROD_ENV, STAGE_ENV } = require('@adobe/aio-lib-env')
setCliEnv(PROD_ENV)
setCliEnv(STAGE_ENV)
setCliEnv('delta-quadrant') // throws Error
LOG_LEVEL=debug <your_call_here>
Prepend the LOG_LEVEL
environment variable and debug
value to the call that invokes your function, on the command line. This should output a lot of debug data for your SDK calls.
Contributions are welcome! Read the Contributing Guide for more information.
This project is licensed under the Apache V2 License. See LICENSE for more information.
FAQs
Adobe I/O lib for determining dev environment
The npm package @adobe/aio-lib-env receives a total of 12,309 weekly downloads. As such, @adobe/aio-lib-env popularity was classified as popular.
We found that @adobe/aio-lib-env demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 22 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.