Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
aws-endpoint
Advanced tools
Readme
A utility for making mock servers to handle AWS requests.
If you're writing a mock for testing purposes to handle calls that would normally go to AWS, this package makes it slightly easier.
It's basically just a thin shim over express, to add CORS and parsing of the
x-amz-target
header.
Install:
yarn add -D aws-endpoint
Import:
import { AwsEndpoint } from 'aws-endpoint';
Instantiate:
const endpoint = new AwsEndpoint('AWSServiceOfSomeKind', {
AnAction(request, response) {
// handle the AWSServiceOfSomeKind.AnAction request
},
async AnAsyncAction(request, response) {
// promises are supported too
}
});
Start:
// start on a specific port
await endpoint.start(8080);
// or let it pick a free one
const port = await endpoint.start()
Then make AWS requests using e.g. the AWS SDK as normal, but use the started server as the endpoint rather than the normal one.
Finally, stop the server:
endpoint.stop();
It's pretty basic to support a specific use case, but if there's something obvious missing for your particular needs, I'm open to pull requests.
FAQs
A utility for making mock servers to handle AWS requests
The npm package aws-endpoint receives a total of 2 weekly downloads. As such, aws-endpoint popularity was classified as not popular.
We found that aws-endpoint 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.