Skip to content

Commit 7a23c7d

Browse files
committed
fix: casing of applyToHttpsOptions
1 parent 27480cd commit 7a23c7d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export class KubeConfig {
130130
this.makePathsAbsolute(rootDirectory);
131131
}
132132

133-
public async applytoHTTPSOptions(opts: https.RequestOptions | WebSocket.ClientOptions): Promise<void> {
133+
public async applyToHTTPSOptions(opts: https.RequestOptions | WebSocket.ClientOptions): Promise<void> {
134134
await this.applyOptions(opts);
135135

136136
const user = this.getCurrentUser();

src/config_test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ describe('KubeConfig', () => {
246246
kc.loadFromFile(kcTlsServerNameFileName);
247247

248248
const opts: https.RequestOptions = {};
249-
await kc.applytoHTTPSOptions(opts);
249+
await kc.applyToHTTPSOptions(opts);
250250

251251
expect(opts).to.deep.equal({
252252
headers: {},
@@ -285,7 +285,7 @@ describe('KubeConfig', () => {
285285
kc.loadFromFile(kcFileName);
286286

287287
const opts: https.RequestOptions = {};
288-
kc.applytoHTTPSOptions(opts);
288+
kc.applyToHTTPSOptions(opts);
289289

290290
expect(opts).to.deep.equal({
291291
headers: {},
@@ -701,7 +701,7 @@ describe('KubeConfig', () => {
701701

702702
config.loadFromClusterAndUser({} as Cluster, { username: user, password: passwd } as User);
703703
const opts = {} as https.RequestOptions;
704-
await config.applytoHTTPSOptions(opts);
704+
await config.applyToHTTPSOptions(opts);
705705

706706
expect(opts.auth).to.equal(`${user}:${passwd}`);
707707
});

src/proto-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class ProtoClient {
1414
hostname: u.hostname,
1515
protocol: u.protocol,
1616
};
17-
await this.config.applytoHTTPSOptions(options);
17+
await this.config.applyToHTTPSOptions(options);
1818
const req = http.request(options);
1919

2020
const result = await new Promise<any>((resolve, reject) => {

src/web-socket-handler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export class WebSocketHandler implements WebSocketInterface {
166166

167167
const opts: WebSocket.ClientOptions = {};
168168

169-
await this.config.applytoHTTPSOptions(opts);
169+
await this.config.applyToHTTPSOptions(opts);
170170

171171
return await new Promise<WebSocket>((resolve, reject) => {
172172
const client = this.socketFactory

0 commit comments

Comments
 (0)