
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
gluestick-env-expose-ast
Advanced tools
Expose strategy for environment variables from AST for Gluestick
gluestick-env-expose-ast
This plugin allows you to automatically export environment variables (process.env.*
) by taversing the AST of a provided file.
For example, if the plugin finds process.env.ENV_VAR_0
this variable will be exposed in the final build, both on client and server.
npm install --save gluestick-env-expose-ast
src/gluestick.plugins.js
:export default [
'gluestick-env-expose-ast'
]
// or
export default [
{
plugin: 'gluestick-env-expose-ast',
options: {
parse: 'file.js'
},
},
]
parse
: string | string[]
- path or array of paths to files which will be parsed for process.env.*
exposeRuntime
: boolean
- replace process.env
with window.__GS_ENV_VARS__
to allow passing variables in runtime instead of on compilation time, it will also pass detected variables to the server bundle so window.__GS_ENV_VARS__
gets properly propagated when renderering pages on the serverFAQs
Expose strategy for environment variables from AST for Gluestick
The npm package gluestick-env-expose-ast receives a total of 1 weekly downloads. As such, gluestick-env-expose-ast popularity was classified as not popular.
We found that gluestick-env-expose-ast demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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 uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.