Skip to content

Commit 7199db1

Browse files
committed
ci: regenerated with OpenAPI Doc 0.1.0, Speakeay CLI 0.16.1
1 parent 9445985 commit 7199db1

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
management:
22
openapi-checksum: 8e8183d84cace76310a3208e63cd7855
33
openapi-version: 0.1.0
4-
speakeasy-version: 0.16.0
4+
speakeasy-version: 0.16.1
55
telemetryenabled: null
66
typescript:
77
author: Speakeasy
88
packagename: '@speakeasy-api/speakeasy-client-sdk-typescript'
9-
version: 0.6.0
9+
version: 0.6.1

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@speakeasy-api/speakeasy-client-sdk-typescript",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44
"author": "Speakeasy",
55
"scripts": {
66
"prepare": "tsc --build"

src/sdk/sdk.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,20 @@ export class SDK {
3939
public _securityClient: AxiosInstance;
4040
public _serverURL: string;
4141
private _language = "typescript";
42-
private _sdkVersion = "0.6.0";
43-
private _genVersion = "0.16.0";
42+
private _sdkVersion = "0.6.1";
43+
private _genVersion = "0.16.1";
4444

4545
constructor(props: SDKProps) {
4646
this._serverURL = props.serverUrl ?? ServerList[ServerProd];
4747

4848
this._defaultClient = props.defaultClient ?? axios.create({ baseURL: this._serverURL });
4949
if (props.security) {
50+
let security: Security = props.security;
51+
if (!(security instanceof utils.SpeakeasyBase))
52+
security = new Security(security);
5053
this._securityClient = utils.createSecurityClient(
5154
this._defaultClient,
52-
props.security
55+
security
5356
);
5457
} else {
5558
this._securityClient = this._defaultClient;

0 commit comments

Comments
 (0)