Skip to content

Commit a820fad

Browse files
committed
chore: fix lint errors arising from changes to master
1 parent fe0c15d commit a820fad

File tree

3 files changed

+23
-28
lines changed

3 files changed

+23
-28
lines changed

packages/chomp-api-service/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@
1010
"bugs": {
1111
"url": "https://github.com/MetaMask/core/issues"
1212
},
13+
"license": "MIT",
1314
"repository": {
1415
"type": "git",
1516
"url": "https://github.com/MetaMask/core.git"
1617
},
17-
"license": "MIT",
18+
"files": [
19+
"dist/"
20+
],
1821
"sideEffects": false,
22+
"main": "./dist/index.cjs",
23+
"types": "./dist/index.d.cts",
1924
"exports": {
2025
".": {
2126
"import": {
@@ -29,11 +34,10 @@
2934
},
3035
"./package.json": "./package.json"
3136
},
32-
"main": "./dist/index.cjs",
33-
"types": "./dist/index.d.cts",
34-
"files": [
35-
"dist/"
36-
],
37+
"publishConfig": {
38+
"access": "public",
39+
"registry": "https://registry.npmjs.org/"
40+
},
3741
"scripts": {
3842
"build": "ts-bridge --project tsconfig.build.json --verbose --clean --no-references",
3943
"build:all": "ts-bridge --project tsconfig.build.json --verbose --clean",
@@ -55,7 +59,7 @@
5559
"@tanstack/query-core": "^4.43.0"
5660
},
5761
"devDependencies": {
58-
"@metamask/auto-changelog": "^6.0.0",
62+
"@metamask/auto-changelog": "^6.1.0",
5963
"@ts-bridge/cli": "^0.6.4",
6064
"@types/jest": "^29.5.14",
6165
"deepmerge": "^4.2.2",
@@ -68,9 +72,5 @@
6872
},
6973
"engines": {
7074
"node": "^18.18 || >=20"
71-
},
72-
"publishConfig": {
73-
"access": "public",
74-
"registry": "https://registry.npmjs.org/"
7575
}
7676
}

packages/chomp-api-service/src/chomp-api-service.test.ts

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -464,19 +464,16 @@ describe('ChompApiService', () => {
464464
},
465465
chains: {
466466
'0xa4b1': {
467-
autoDepositDelegate:
468-
'0xb4827a2a066cd2ef88560efdf063dd05c6c41cc7',
467+
autoDepositDelegate: '0xb4827a2a066cd2ef88560efdf063dd05c6c41cc7',
469468
protocol: {
470469
vedaProtocol: {
471470
supportedTokens: [
472471
{
473-
tokenAddress:
474-
'0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
472+
tokenAddress: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
475473
tokenDecimals: 6,
476474
},
477475
],
478-
adapterAddress:
479-
'0x4839b1BA117BdFFA986FCfA4E5fE6b9027b8f8B1',
476+
adapterAddress: '0x4839b1BA117BdFFA986FCfA4E5fE6b9027b8f8B1',
480477
intentTypes: ['cash-deposit', 'cash-withdrawal'],
481478
},
482479
},
@@ -516,9 +513,7 @@ describe('ChompApiService', () => {
516513
it('throws when a chainId is not a valid hex string', async () => {
517514
const { service } = createService();
518515

519-
await expect(
520-
service.getServiceDetails(['not-hex']),
521-
).rejects.toThrow(
516+
await expect(service.getServiceDetails(['not-hex'])).rejects.toThrow(
522517
"Invalid chainId: expected a 0x-prefixed hex string, got 'not-hex'",
523518
);
524519
});
@@ -531,9 +526,9 @@ describe('ChompApiService', () => {
531526
.reply(400);
532527
const { service } = createService();
533528

534-
await expect(
535-
service.getServiceDetails(['0xa4b1']),
536-
).rejects.toThrow("GET /v1/chomp failed with status '400'");
529+
await expect(service.getServiceDetails(['0xa4b1'])).rejects.toThrow(
530+
"GET /v1/chomp failed with status '400'",
531+
);
537532
});
538533

539534
it('throws on malformed response', async () => {
@@ -543,9 +538,9 @@ describe('ChompApiService', () => {
543538
.reply(200, JSON.stringify({ bad: 'data' }));
544539
const { service } = createService();
545540

546-
await expect(
547-
service.getServiceDetails(['0xa4b1']),
548-
).rejects.toThrow('At path: auth -- Expected an object');
541+
await expect(service.getServiceDetails(['0xa4b1'])).rejects.toThrow(
542+
'At path: auth -- Expected an object',
543+
);
549544
});
550545
});
551546
});

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,7 @@ __metadata:
29202920
languageName: node
29212921
linkType: hard
29222922

2923-
"@metamask/auto-changelog@npm:^6.0.0, @metamask/auto-changelog@npm:^6.1.0":
2923+
"@metamask/auto-changelog@npm:^6.1.0":
29242924
version: 6.1.0
29252925
resolution: "@metamask/auto-changelog@npm:6.1.0"
29262926
dependencies:
@@ -3123,7 +3123,7 @@ __metadata:
31233123
version: 0.0.0-use.local
31243124
resolution: "@metamask/chomp-api-service@workspace:packages/chomp-api-service"
31253125
dependencies:
3126-
"@metamask/auto-changelog": "npm:^6.0.0"
3126+
"@metamask/auto-changelog": "npm:^6.1.0"
31273127
"@metamask/base-data-service": "npm:^0.1.1"
31283128
"@metamask/controller-utils": "npm:^11.20.0"
31293129
"@metamask/messenger": "npm:^1.1.1"

0 commit comments

Comments
 (0)