Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
@cumulus/common
Advanced tools
Common libraries for interacting with Cumulus ingest
Cumulus tasks written in node.js should extend Task
to benefit from
the protocol parsing and message interpretation it provides. A minimal task
class is as follows:
const Task = require('@cumulus-test/common/task');
module.exports = class MyTask extends Task {
run() {
// Read inputs
// this.config contains task configuration with all variables resolved
// this.message contains the incoming message, with this.message.payload
// being the input from the previous step
// Do actual work
// Return output, which is the incoming message with its payload overwritten
// to contain the output of this task. The result may optionally be a promise.
return Object.assign({}, this.message, { payload: someOutput });
}
/**
* Entrypoint for Lambda
*/
static handler(...args) {
return MyTask.handle(...args);
}
}
Several modules provide support for working with Tasks and the message protocol:
FAQs
Common utilities used across tasks
We found that @cumulus/common demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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 found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.