Skip to content
This repository was archived by the owner on Sep 22, 2024. It is now read-only.

Commit 2896efa

Browse files
committed
fix(api): removes (optional) envVarApiKey from NetzoOptions in favor of using netzo.http to manually construct client for admin/development/testing (internal)
1 parent d9d5406 commit 2896efa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: mod.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ import {
2121
* @returns {Netzo} - a new instance of the Netzo SDK
2222
*/
2323
export const Netzo = (options: NetzoOptions) => {
24-
const { apiKey, envVarApiKey, baseURL = "https://api.netzo.io" } = options;
24+
const { apiKey, baseURL = "https://api.netzo.io" } = options;
2525

2626
const api = http({
2727
baseURL,
2828
headers: {
2929
"accept": "application/json",
3030
"content-type": "application/json",
31-
...(apiKey && { "x-api-key": apiKey }),
32-
...(envVarApiKey && { "x-env-var-api-key": envVarApiKey }),
31+
"x-api-key": apiKey,
3332
},
3433
});
3534

Diff for: types.ts

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export type Netzo = (options: NetzoOptions) => INetzo;
99

1010
export interface NetzoOptions {
1111
apiKey: string;
12-
envVarApiKey?: string; // for development/testing
1312
baseURL?: string;
1413
}
1514

0 commit comments

Comments
 (0)