
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
appsync-client
Advanced tools
A lightweight Appsync client that signs requests for you - designed to be run server-side (e.g. on Lambdas).
A lightweight Appsync client that signs requests for you (using IAM permissions) - perfect for running on Lambdas or servers.
Queries are made using TypedDocumentNode which means that the variables and results will be automatically typed for you if using Typescript.
import AppsyncClient from "appsync-client";
async function getTodo() {
// Create a client
const client = new AppsyncClient({
// Required
apiUrl: "https://xxx.appsync-api.xx-xxxx-x.amazonaws.com/graphql",
// Optional - these will default to process.env values (e.g. the IAM
// role of the Lambda)
accessKeyId: "",
secretAccessKey: "",
sessionToken: ""
});
// Query for Todos
const res = await client.request({
// The typed document node query
query: TypedDocumentNodeQuery,
// Variables to replace (here we are replacing $id with "todoId")
variables: {
id: "todoId"
}
);
}
CD Feature | Provided |
---|---|
✅ | Typescript |
✅ | Linting (AirBnB + Prettier) |
✅ | Unit tests (Jest) |
✅ | 100% test coverage |
✅ | Github Continuous Deployment |
FAQs
A lightweight Appsync client that signs requests for you - designed to be run server-side (e.g. on Lambdas).
The npm package appsync-client receives a total of 799 weekly downloads. As such, appsync-client popularity was classified as not popular.
We found that appsync-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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.