
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.
@netlify/functions-utils
Advanced tools
Utility for handling Netlify Functions in Netlify Build plugins.
This allows plugins to:
// Add a Netlify Functions file or directory to a build
export const onPreBuild = async function ({ utils }) {
await utils.functions.add('./path/to/function')
}
Returns: Promise<object[]>
Returns the list of Netlify Functions main files as a Promise resolving to an array of objects with the following properties:
name
{string}
: Function name, as used in the URL https://{hostname}/.netlify/functions/{name}
mainFile
{string}
: absolute path to the Function's main fileextension
{string}
: file extension of the Function's main file. For Go Functions, this might be an empty string.
For Node.js Functions, this is either .js
or .zip
.runtime
"js" | "go"
: Function's programming languageThis throws when no functions
directory was specified by the user, or when it points to a non-existing directory.
Returns: Promise<object[]>
Same as list()
except it also returns the files required by the Functions main files. This is much slower. The object
have the following additional member:
srcFile
{string}
: absolute path to the filepath
: string
Returns: Promise
Add a Functions file or directory to a build.
This throws when no functions
directory was specified by the user, or when it points to a non-existing directory.
FAQs
Utility for adding Functions files in Netlify Build
The npm package @netlify/functions-utils receives a total of 145,665 weekly downloads. As such, @netlify/functions-utils popularity was classified as popular.
We found that @netlify/functions-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 20 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.