
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
Tranformation chain utilizing an accumulating mixin (called a glom) input parameter.
npm install glom
If one was to describe the atomic actions required to create a new account using a chain of asynchronous functions, your Glom would look like this:
// A chain of business rules for account creation
new Glom([
validateUserInput,
isEmailUnique,
createUser,
[createDefaultPermissions, deleteUser, createError, returnJson] // Sidechain in case of failure
notifyAdmin,
registerNewUserStats,
returnJson
]).run({
email: 'bob@bob.com',
password: 'woooo'
}, console.log, console.error);
var Glom = require('glom');
function incrementData (value, next, error) {
done({
value: value + 1
});
}
function setDataSnapshot (value, next, error) {
this.snapshots.set('value', value);
done();
}
function doubleData (value, next, error) {
if (value > 5) {
error('Data is too big.');
} else {
done({
value: value * 2
});
}
}
function printData (value, next, error) {
console.log(value);
done();
}
function revertToSnapshot (messages, next, error) {
done({
value: this.snapshots.get('value')
});
}
Glom([
incrementData,
getDataSnapshot,
[doubleData, revertToSnapshot],
printData
]).run({
value: 3
}, function glomDone (glom) {
console.log('Glom complete with final transformation:');
console.dir(glom);
}, console.error);
Notice that each method in a Glom has its own parameters, allowing any simple, testable, and potentially isomorphic method to be used by Glom, provided the last two parameters are callbacks named next and error. Please see the tests for more use cases.
FAQs
Modanic chain utilizing an accumulating mixin input parameter.
We found that glom demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.