Skip to content

Commit 816bb35

Browse files
committed
deps: update typescript to v4.1.6
1 parent ff8284f commit 816bb35

File tree

5 files changed

+19
-11
lines changed

5 files changed

+19
-11
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"node-sass": "4.14.1",
8686
"prettier": "2.1.2",
8787
"ts-protoc-gen": "0.12.0",
88-
"typescript": "4.0.5"
88+
"typescript": "4.1.6"
8989
},
9090
"eslintConfig": {
9191
"extends": "react-app",

app/src/store/stores/accountStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export default class AccountStore {
185185
});
186186
// remove any accounts in state that are not in the API response
187187
const serverIds = accountsList.map(a => hex(a.traderKey));
188-
const localIds = keys(this.accounts);
188+
const localIds = keys(this.accounts).map(key => String(key));
189189
localIds
190190
.filter(id => !serverIds.includes(id))
191191
.forEach(id => this.accounts.delete(id));

app/src/store/stores/orderStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default class OrderStore {
151151
});
152152
// remove any leases in state that are not in the API response
153153
const serverIds = leasesList.map(a => Lease.channelPointToString(a.channelPoint));
154-
const localIds = keys(this.leases);
154+
const localIds = keys(this.leases).map(key => String(key));
155155
localIds
156156
.filter(id => !serverIds.includes(id))
157157
.forEach(id => this.leases.delete(id));

app/tsconfig.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": ["dom", "dom.iterable", "esnext"],
4+
"lib": [
5+
"dom",
6+
"dom.iterable",
7+
"esnext"
8+
],
59
"allowJs": true,
610
"skipLibCheck": true,
711
"esModuleInterop": true,
@@ -16,9 +20,13 @@
1620
"resolveJsonModule": true,
1721
"isolatedModules": true,
1822
"noEmit": true,
19-
"jsx": "react",
23+
"jsx": "react-jsx",
2024
"baseUrl": "src"
2125
},
22-
"include": ["src"],
23-
"exclude": ["src/types/generated/**"]
26+
"include": [
27+
"src"
28+
],
29+
"exclude": [
30+
"src/types/generated/**"
31+
]
2432
}

app/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16310,10 +16310,10 @@ typedarray@^0.0.6:
1631016310
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1631116311
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1631216312

16313-
typescript@4.0.5:
16314-
version "4.0.5"
16315-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"
16316-
integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==
16313+
typescript@4.1.6:
16314+
version "4.1.6"
16315+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.6.tgz#1becd85d77567c3c741172339e93ce2e69932138"
16316+
integrity sha512-pxnwLxeb/Z5SP80JDRzVjh58KsM6jZHRAOtTpS7sXLS4ogXNKC9ANxHHZqLLeVHZN35jCtI4JdmLLbLiC1kBow==
1631716317

1631816318
unbox-primitive@^1.0.1:
1631916319
version "1.0.1"

0 commit comments

Comments
 (0)