Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
kinesis-client
Advanced tools
A very minimal functional wrapper around the AWS SDK to provide a Kinesis Client. I'll extend as necessary.
The idea here is that the kinesis
require functions more like a namespace containing functions than as an object.
NOT PRODUCTION READY
To use in a lambda, do something like the below:
const kinesis = require('kinesis-client');
var defaultOpts = {
endpoint: 'localhost:4567',
region: 'us-east-1',
apiVersion: '2013-12-02',
sslEnabled: false
};
module.exports.source = (event, context, callback) => {
const kinesisClient = kinesis.createClient(defaultOpts);
var streamName = 'events';
var streamOpts = { ShardCount: 1, StreamName: streamName }
kinesis.createStream(kinesisClient, streamOpts);
console.log(event.body);
kinesis.putRecord(kinesisClient,
{
Data: JSON.stringify(event.body),
PartitionKey: '0', // change this!
StreamName: streamName
});
};
Add more tests!
MIT
FAQs
A tiny Kinesis client library
We found that kinesis-client 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.