
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@walltowall/auxline
Advanced tools
Generate auxillary data using a series of contextually aware functions.
Generate auxillary data using a series of contextually aware functions.
npm i auxline
import auxline from 'auxline'
// Data used to generate auxillary data.
const list = [
{ id: 1, type: 'HeroBlock', text: 'Text for a Hero component' },
{ id: 2, type: 'CallToActionBlock', text: 'Hey', buttonText: 'Call Me' },
{ id: 3, type: 'FooterBlock', year: 2074 },
]
// List of functions to generate auxillary data derived from the provided data.
const fns = {
// Get a list of types for each item in data.
types: data => data.map(x => x.type),
// Get a list of keys for each item in data.
keys: data => data.map(x => x.id),
// Get a list of containers for each item in data.
containers: (data, { types }) =>
data.map((x, i) => (types[i] === 'FooterBlock' ? 'footer' : 'body')),
// Group data items by container with keys.
tree: (data, { keys, containers }) =>
data.reduce((acc, x, i) => {
const key = keys[i]
const container = containers[i]
acc[container] = (acc[container] || []).concat({ ...x, key })
return acc
}, {}),
}
const { types, keys, containers, tree } = auxline(fns, list)
auxline(fns, data)
fns
: Object of functions. Each key represents a group of auxillary data.
Auxillary data will be available to subsequent functions using the function's
key.data
: Any data to be used to generate auxillary data.Each function in fns
is provided two pieces of data:
data
: The original data provided to auxline
.context
: An object of auxillary data. Each function receives the aggregate
auxillary data keyed by function name.Functions are called serially in the order of property definition.
FAQs
Generate auxillary data using a series of contextually aware functions.
We found that @walltowall/auxline demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.