Skip to content

Commit

Permalink
style: fix lint warnings (#122)
Browse files Browse the repository at this point in the history
Fixing some lint warnings
Trigger a major version bump for the previous merged PR chore: adding peer dependency with algosdk #107

BREAKING CHANGES: The previous merged PR (commit 80d501f) introduced some breaking changes, however semantic release didn't detect as a breaking change, as the commit wasn't formatted correctly.
  • Loading branch information
neilcampbell authored Aug 31, 2023
1 parent 80d501f commit 65f6a7a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ A HTTP Client that wraps the Algorand SDK HTTP Client with retries

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L45)
[src/types/urlTokenBaseHTTPClient.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L48)

## Properties

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This is the default implementation of BaseHTTPClient.

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L45)
[src/types/urlTokenBaseHTTPClient.ts:48](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L48)

## Properties

Expand All @@ -67,7 +67,7 @@ This is the default implementation of BaseHTTPClient.

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:41](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L41)
[src/types/urlTokenBaseHTTPClient.ts:44](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L44)

___

Expand All @@ -77,7 +77,7 @@ ___

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L45)
[src/types/urlTokenBaseHTTPClient.ts:53](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L53)

___

Expand All @@ -87,7 +87,7 @@ ___

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:42](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L42)
[src/types/urlTokenBaseHTTPClient.ts:45](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L45)

## Methods

Expand All @@ -114,7 +114,7 @@ BaseHTTPClient.delete

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:176](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L176)
[src/types/urlTokenBaseHTTPClient.ts:185](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L185)

___

Expand All @@ -140,7 +140,7 @@ BaseHTTPClient.get

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:137](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L137)
[src/types/urlTokenBaseHTTPClient.ts:146](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L146)

___

Expand All @@ -165,7 +165,7 @@ A URL string

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:71](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L71)
[src/types/urlTokenBaseHTTPClient.ts:80](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L80)

___

Expand All @@ -192,7 +192,7 @@ BaseHTTPClient.post

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:153](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L153)
[src/types/urlTokenBaseHTTPClient.ts:162](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L162)

___

Expand All @@ -212,7 +212,7 @@ ___

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:97](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L97)
[src/types/urlTokenBaseHTTPClient.ts:106](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L106)

___

Expand All @@ -232,7 +232,7 @@ ___

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:128](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L128)
[src/types/urlTokenBaseHTTPClient.ts:137](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L137)

___

Expand All @@ -252,4 +252,4 @@ ___

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:89](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L89)
[src/types/urlTokenBaseHTTPClient.ts:98](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L98)
2 changes: 1 addition & 1 deletion docs/code/modules/types_urlTokenBaseHTTPClient.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@

#### Defined in

[src/types/urlTokenBaseHTTPClient.ts:33](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L33)
[src/types/urlTokenBaseHTTPClient.ts:36](https://github.com/algorandfoundation/algokit-utils-ts/blob/main/src/types/urlTokenBaseHTTPClient.ts#L36)
2 changes: 1 addition & 1 deletion src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const sendAtomicTransactionComposer = async function (atcSend: AtomicTran
decodeError: r.decodeError,
returnValue: r.returnValue,
rawReturnValue: r.rawReturnValue,
} as ABIReturn),
}) as ABIReturn,
),
} as SendAtomicTransactionComposerResults
// eslint-disable-next-line @typescript-eslint/no-explicit-any
Expand Down
13 changes: 11 additions & 2 deletions src/types/urlTokenBaseHTTPClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export interface CustomTokenHeader {
}

class URLTokenBaseHTTPError extends Error implements BaseHTTPClientError {
constructor(message: string, public response: BaseHTTPClientResponse) {
constructor(
message: string,
public response: BaseHTTPClientResponse,
) {
super(message)
this.name = 'URLTokenBaseHTTPError'
this.response = response
Expand All @@ -42,7 +45,13 @@ export class URLTokenBaseHTTPClient implements BaseHTTPClient {
private readonly tokenHeader: TokenHeader

// eslint-disable-next-line @typescript-eslint/no-explicit-any
constructor(tokenHeader: TokenHeader, baseServer: string, port?: string | number, private defaultHeaders: Record<string, any> = {}) {
constructor(
tokenHeader: TokenHeader,
baseServer: string,
port?: string | number,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
private defaultHeaders: Record<string, any> = {},
) {
// Append a trailing slash so we can use relative paths. Without the trailing
// slash, the last path segment will be replaced by the relative path. See
// usage in `addressWithPath`.
Expand Down

0 comments on commit 65f6a7a

Please sign in to comment.