
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.
@envelop/instruments
Advanced tools
This package contains utility functions and types to ease the use of instruments accross Envelop, Yoga, whatwg-node and Hive Gateway plugins.
@envelop/instruments
This package contains utility functions and types to ease the use of instruments accross Envelop, Yoga, whatwg-node and Hive Gateway plugins.
[!NOTE] Instruments are automatically composed together. This should only be used if the default ordering doesn't suit your needs (ie. instruments and hooks should be executed in different order)
composeInstruments(instruments: Instruments[]): Instruments
This function composes all the instruments into one. The instruments will be called in the same order as they are in the array (from top to bottom).
import { composeInstruments } from '@envelop/instruments'
// Extract instruments to compose from their plugins
const { instruments: instruments1, ...plugin1 } = usePlugin1()
const { instruments: instruments2, ...plugin2 } = usePlugin2()
const getEnveloped = envelop({
plugins: [
plugin1,
plugin2,
// Plugin instruments and plugin hooks will be executed in a different order
{ instruments: composeInstruments([instruments1, instruments2]) }
]
})
FAQs
This package contains utility functions and types to ease the use of instruments accross Envelop, Yoga, whatwg-node and Hive Gateway plugins.
The npm package @envelop/instruments receives a total of 11,684 weekly downloads. As such, @envelop/instruments popularity was classified as popular.
We found that @envelop/instruments demonstrated a healthy version release cadence and project activity because the last version was released less than 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
/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.