@ranwhenparked/trustap-sdk 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +2 -2
- package/dist/client.js +2 -2
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Client, type ClientOptions, type PathBasedClient } from "openapi-fetch";
|
|
2
2
|
import type { paths } from "./generated/types.ts";
|
|
3
3
|
export declare const TRUSTAP_BASE_URLS: {
|
|
4
|
-
readonly staging: "https://dev.stage.trustap.com
|
|
5
|
-
readonly production: "https://dev.trustap.com
|
|
4
|
+
readonly staging: "https://dev.stage.trustap.com";
|
|
5
|
+
readonly production: "https://dev.trustap.com";
|
|
6
6
|
};
|
|
7
7
|
export type TrustapClient = Client<paths>;
|
|
8
8
|
export type TrustapPathClient = PathBasedClient<paths>;
|
package/dist/client.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import createClient, { createPathBasedClient, mergeHeaders, } from "openapi-fetch";
|
|
2
2
|
export const TRUSTAP_BASE_URLS = {
|
|
3
|
-
staging: "https://dev.stage.trustap.com
|
|
4
|
-
production: "https://dev.trustap.com
|
|
3
|
+
staging: "https://dev.stage.trustap.com",
|
|
4
|
+
production: "https://dev.trustap.com",
|
|
5
5
|
};
|
|
6
6
|
export function createApiKeyAuthHeader(apiKey) {
|
|
7
7
|
return `Basic ${encodeBase64(`${apiKey}:`)}`;
|