Skip to content

Commit b04e007

Browse files
committed
fix: bump deps versions and fix where needed
1 parent 27fd829 commit b04e007

File tree

19 files changed

+2604
-633
lines changed

19 files changed

+2604
-633
lines changed

jest.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import path from 'path'
2+
import { createDefaultPreset } from 'ts-jest'
3+
import * as url from 'url'
4+
5+
const __dirname = url.fileURLToPath(new url.URL('.', import.meta.url))
6+
7+
const tsconfig = path.join(__dirname, './tsconfig.json')
8+
9+
const tsJestTransformCfg = createDefaultPreset({ tsconfig }).transform
10+
11+
/** @type {import("jest").Config} **/
12+
export default {
13+
testEnvironment: 'node',
14+
transform: {
15+
...tsJestTransformCfg,
16+
},
17+
testPathIgnorePatterns: ['<rootDir>/cypress/'],
18+
coverageReporters: ['text-summary', 'html'],
19+
}

jest.config.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

package-lock.json

Lines changed: 2558 additions & 603 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
@@ -92,4 +92,4 @@
9292
"packages/client",
9393
"packages/dns"
9494
]
95-
}
95+
}

packages/core/src/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ export function isNode(): boolean {
3232
try {
3333
// should fail in strict mode
3434
const window = {}
35+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
3536
window
36-
} catch (error) {
37+
} catch {
3738
hasNoWindow = false
3839
}
3940

packages/cosmos/src/account.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ async function getCosmosAccount(wallet: OfflineAminoSigner, accountNumber = 0):
5858
try {
5959
const account = accounts[accountNumber]
6060
return new CosmosAccount(wallet, account.address, accountNumber)
61-
} catch (err) {
61+
} catch {
6262
throw new RangeError('Account offset out of bound')
6363
}
6464
}

packages/cosmos/src/verify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export async function verifyCosmos(
4141
const secp256k1 = new elliptic.ec('secp256k1')
4242
const key = secp256k1.keyFromPublic(publicKey)
4343
return key.verify(message, signatureObj)
44-
} catch (e: unknown) {
44+
} catch {
4545
return false
4646
}
4747
}

packages/evm/src/provider/rpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function findChainMetadataByChainId(chainId: number): ChainMetadataType |
191191
* Wrapper for JSON RPC Providers (ex: Metamask).
192192
*/
193193
export class JsonRPCWallet extends BaseProviderWallet {
194-
public declare readonly provider: providers.JsonRpcProvider | providers.Web3Provider
194+
declare public readonly provider: providers.JsonRpcProvider | providers.Web3Provider
195195
private signer?: providers.JsonRpcSigner | Wallet
196196
public address?: string
197197
private publicKey?: string

packages/evm/src/verify.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function verifyEthereum(
2525
try {
2626
const address = ethers.utils.verifyMessage(message, signature)
2727
return address === signerAddress
28-
} catch (e: unknown) {
28+
} catch {
2929
return false
3030
}
3131
}

packages/message/src/instance/impl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ export class InstanceMessageClient extends DefaultMessageClient<
7878
}: InstancePublishConfiguration): Promise<InstanceContent> {
7979
const timestamp = Date.now() / 1000
8080
const { address } = account
81-
// To remove @typescript-eslint/no-unused-vars at buildtime, without removing the argument
81+
82+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
8283
storageEngine
8384

8485
const mergedResources = {

0 commit comments

Comments
 (0)