Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
JavaScript API Client for TigerBay. This API is designed primarily for use in NodeJS but can be used in the browser.
The API is built with TypeScript and so typings are provided out-of-the-box.
import * as TigerBay from 'tigerbay';
// Get the credentials from `TB_CLIENT_ID` and `TB_CLIENT_SECRET`
const credentials = TigerBay.Auth.EnvCredentials();
const client = new TigerBay.Client({
baseUrl: 'yourdomain.ontigerbay.com',
credentials: credentials
});
// Get a booking
client.Reservations.find('booking_ref').then(booking => {
console.log(`Booking Get`);
}).catch(error => {
console.error(`Unable to get booking: ${error.message}`)
});
Authentication credentials (client_id
and client_secret
) are given to the Client
through a
CredentialProvider
, which is a function returning a promise of credentials.
The type signature for a provider is:
async (): Promise<ClientCredentials>
The following credential providers are provided out-of-the-box:
ConstantCredentials
Takes in a set of credentials and creates a provider which will always return those credentials.
const credentials = TigerBay.Auth.ConstantCredentials({clientId: 'client_id', clientSecret: 'client_secret'})
EnvCredentials
Gets the credentials from the process environment. An optional prefix can be given and defaults to TB
// Uses `REX_CLIENT_ID` and `REX_CLIENT_SECRET`
const credentials = TigerBay.Auth.EnvCredentials('REX');
The API surface is broken down into resource-oriented modules. These modules are accessed through
a TigerBay.Client
instance.
The API client is built on Axios and exposes methods to add or remove request and response interceptors:
FAQs
API Client library for TigerBay
The npm package tigerbay receives a total of 86 weekly downloads. As such, tigerbay popularity was classified as not popular.
We found that tigerbay demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.