Skip to content

Commit

Permalink
(release): v0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-bot committed May 17, 2024
1 parent 5840ca4 commit 9b52d54
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

src/Client.ts
src/core/form-data-utils/FormDataWrapper.ts
src/core/form-data-utils/index.ts
src/core/index.ts
README.md
17 changes: 0 additions & 17 deletions src/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,10 @@ import * as stream from "stream";
import urlJoin from "url-join";
import * as errors from "./errors/index";
import * as serializers from "./serialization/index";
import { Pdf } from "./api/resources/pdf/client/Client";

export declare namespace FileForgeClient {
interface Options {
environment?: core.Supplier<environments.FileForgeEnvironment | string>;
username: core.Supplier<string>;
password: core.Supplier<string>;
apiKey: core.Supplier<string>;
}

Expand Down Expand Up @@ -55,7 +52,6 @@ export class FileForgeClient {
),
method: "POST",
headers: {
Authorization: await this._getAuthorizationHeader(),
"X-API-Key": await core.Supplier.get(this._options.apiKey),
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "fileforge",
Expand Down Expand Up @@ -126,17 +122,4 @@ export class FileForgeClient {
});
}
}

protected _pdf: Pdf | undefined;

public get pdf(): Pdf {
return (this._pdf ??= new Pdf(this._options));
}

protected async _getAuthorizationHeader(): Promise<string | undefined> {
return core.BasicAuth.toAuthorizationHeader({
username: await core.Supplier.get(this._options.username),
password: await core.Supplier.get(this._options.password),
});
}
}
1 change: 1 addition & 0 deletions src/core/form-data-utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from "./FormDataWrapper";
2 changes: 2 additions & 0 deletions src/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export * from "./fetcher";
export * from "./runtime";
export * from "./auth";
export * from "./form-data-utils";
export * as serialization from "./schemas";

0 comments on commit 9b52d54

Please sign in to comment.