Skip to content

Commit 3c8e36e

Browse files
committed
(release): v0.0.10
1 parent 5840ca4 commit 3c8e36e

File tree

6 files changed

+19
-18
lines changed

6 files changed

+19
-18
lines changed

.fernignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22

33
src/Client.ts
44
src/core/form-data-utils/FormDataWrapper.ts
5-
README.md
5+
src/core/form-data-utils/index.ts
6+
src/core/index.ts
7+
README.md
8+
package.json

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
"form-data": "4.0.0",
1818
"node-fetch": "2.7.0",
1919
"qs": "6.11.2",
20+
"formdata-node": "^6.0.3",
21+
"form-data-encoder": "^4.0.2",
2022
"js-base64": "3.7.2"
2123
},
2224
"devDependencies": {

src/Client.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,10 @@ import * as stream from "stream";
1010
import urlJoin from "url-join";
1111
import * as errors from "./errors/index";
1212
import * as serializers from "./serialization/index";
13-
import { Pdf } from "./api/resources/pdf/client/Client";
1413

1514
export declare namespace FileForgeClient {
1615
interface Options {
1716
environment?: core.Supplier<environments.FileForgeEnvironment | string>;
18-
username: core.Supplier<string>;
19-
password: core.Supplier<string>;
2017
apiKey: core.Supplier<string>;
2118
}
2219

@@ -55,7 +52,6 @@ export class FileForgeClient {
5552
),
5653
method: "POST",
5754
headers: {
58-
Authorization: await this._getAuthorizationHeader(),
5955
"X-API-Key": await core.Supplier.get(this._options.apiKey),
6056
"X-Fern-Language": "JavaScript",
6157
"X-Fern-SDK-Name": "fileforge",
@@ -126,17 +122,4 @@ export class FileForgeClient {
126122
});
127123
}
128124
}
129-
130-
protected _pdf: Pdf | undefined;
131-
132-
public get pdf(): Pdf {
133-
return (this._pdf ??= new Pdf(this._options));
134-
}
135-
136-
protected async _getAuthorizationHeader(): Promise<string | undefined> {
137-
return core.BasicAuth.toAuthorizationHeader({
138-
username: await core.Supplier.get(this._options.username),
139-
password: await core.Supplier.get(this._options.password),
140-
});
141-
}
142125
}

src/core/form-data-utils/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from "./FormDataWrapper";

src/core/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
export * from "./fetcher";
22
export * from "./runtime";
33
export * from "./auth";
4+
export * from "./form-data-utils";
45
export * as serialization from "./schemas";
6+

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,11 @@ find-up@^4.0.0, find-up@^4.1.0:
12421242
locate-path "^5.0.0"
12431243
path-exists "^4.0.0"
12441244

1245+
form-data-encoder@^4.0.2:
1246+
version "4.0.2"
1247+
resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-4.0.2.tgz#dd286fd5f9049e8ded1d44ce427f5e29185c7c12"
1248+
integrity sha512-KQVhvhK8ZkWzxKxOr56CPulAhH3dobtuQ4+hNQ+HekH/Wp5gSOafqRAeTphQUJAIk0GBvHZgJ2ZGRWd5kphMuw==
1249+
12451250
form-data@4.0.0, form-data@^4.0.0:
12461251
version "4.0.0"
12471252
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
@@ -1251,6 +1256,11 @@ form-data@4.0.0, form-data@^4.0.0:
12511256
combined-stream "^1.0.8"
12521257
mime-types "^2.1.12"
12531258

1259+
formdata-node@^6.0.3:
1260+
version "6.0.3"
1261+
resolved "https://registry.yarnpkg.com/formdata-node/-/formdata-node-6.0.3.tgz#48f8e2206ae2befded82af621ef015f08168dc6d"
1262+
integrity sha512-8e1++BCiTzUno9v5IZ2J6bv4RU+3UKDmqWUQD0MIMVCd9AdhWkO1gw57oo1mNEX1dMq2EGI+FbWz4B92pscSQg==
1263+
12541264
fs.realpath@^1.0.0:
12551265
version "1.0.0"
12561266
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"

0 commit comments

Comments
 (0)