Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
yup-endpoints-client
Advanced tools
A set of utilities for sending and receiving data from a yup endpoints server.
A set of utilities for sending and receiving data from a yup endpoints server.
npm install yup yup-endpoints-client
Or, if you prefer using Yarn:
yarn add yup yup-endpoints-client
Here's a quick example to get you started:
// Add your server url to the client
const client = new YupFetcherClient("http://your-domain.com")
// Define the endpoint
const createUserEndpoint = createYupEndpoint({
path: "/create-user",
in: yup.object({
name: yup.string().required(),
age: yup.number().required(),
}),
})
// Create the endpoint fetcher function
const createUserFetcher = client.createYupEndpointFetcher(createUserEndpoint)
// Provide a TypeScript object
createUserFetcher({
name: "John Smith",
age: 45
})
// Or use FormData as the input
const formData = new FormData()
formData.set("name", "John Smith")
formData.set("age", "45")
createUserFetcher(formData)
Contributions are always welcome!
This project is licensed under the MIT License.
If you have any questions or issues, feel free to open an issue on the GitHub repository.
Special thanks to the contributors of this project and the Yup library for making input validation simpler and more efficient.
FAQs
A set of utilities for sending and receiving data from a yup endpoints server.
The npm package yup-endpoints-client receives a total of 0 weekly downloads. As such, yup-endpoints-client popularity was classified as not popular.
We found that yup-endpoints-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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.