Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@alpaca-travel/graph-sdk-fetch
Advanced tools
[![npm](https://img.shields.io/npm/v/@alpaca-travel/graph-sdk-fetch)](https://www.npmjs.com/package/@alpaca-travel/graph-sdk-fetch)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@alpaca-travel/graph-sdk-fetch)](https://www.npmjs.com/packag
A basic fetch based SDK for use in the browser.
See More:
You can use a hosted version of the SDK via unpkg.com which mirrors and hosts the release made to NPM.
Latest release
https://unpkg.com/@alpaca-travel/graph-sdk-fetch@latest/dist/umd/graph-sdk.min.js
Example pinned to version 2
You can also target a specific version in the URL, pinning the version following a semver style. This will ensure that breaking changes do not affect your implementation.
https://unpkg.com/@alpaca-travel/graph-sdk-fetch@2/dist/umd/graph-sdk.min.js
<!DOCTYPE html>
<html>
<head>
<!-- Include the script in your head -->
<script src="https://unpkg.com/@alpaca-travel/graph-sdk-fetch@latest/dist/umd/graph-sdk.min.js"></script>
</head>
<body>
<script type="text/javascript">
// Update below
const ACCESS_TOKEN = "UPDATE_WITH_YOUR_ACCESS_TOKEN";
// Create the SDK
const sdk = alpacaGraphSdk.getClientSdk({
url: `https://withalpaca.com/api/graphql?accessToken=${ACCESS_TOKEN}`,
});
// Perform a SDK function
// See the rest of the API Documentation
// https://alpacatravel.github.io/graph-sdk/packages/fetch/docs/
sdk
.getItinerary({
id: "itinerary/0mttpRn7spYNDIV979fHbE",
})
.then(({ data }) => console.log(data))
.catch(console.error);
</script>
</body>
</html>
FAQs
[![npm](https://img.shields.io/npm/v/@alpaca-travel/graph-sdk-fetch)](https://www.npmjs.com/package/@alpaca-travel/graph-sdk-fetch)[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@alpaca-travel/graph-sdk-fetch)](https://www.npmjs.com/packag
The npm package @alpaca-travel/graph-sdk-fetch receives a total of 5 weekly downloads. As such, @alpaca-travel/graph-sdk-fetch popularity was classified as not popular.
We found that @alpaca-travel/graph-sdk-fetch 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.