deps: update typescript to v4.1.6

This commit is contained in:
jamaljsr 2021-07-02 00:04:55 -04:00
parent ff8284f141
commit 816bb35788
No known key found for this signature in database
GPG key ID: 8680860C961AD657
5 changed files with 19 additions and 11 deletions

View file

@ -85,7 +85,7 @@
"node-sass": "4.14.1",
"prettier": "2.1.2",
"ts-protoc-gen": "0.12.0",
"typescript": "4.0.5"
"typescript": "4.1.6"
},
"eslintConfig": {
"extends": "react-app",

View file

@ -185,7 +185,7 @@ export default class AccountStore {
});
// remove any accounts in state that are not in the API response
const serverIds = accountsList.map(a => hex(a.traderKey));
const localIds = keys(this.accounts);
const localIds = keys(this.accounts).map(key => String(key));
localIds
.filter(id => !serverIds.includes(id))
.forEach(id => this.accounts.delete(id));

View file

@ -151,7 +151,7 @@ export default class OrderStore {
});
// remove any leases in state that are not in the API response
const serverIds = leasesList.map(a => Lease.channelPointToString(a.channelPoint));
const localIds = keys(this.leases);
const localIds = keys(this.leases).map(key => String(key));
localIds
.filter(id => !serverIds.includes(id))
.forEach(id => this.leases.delete(id));

View file

@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
@ -16,9 +20,13 @@
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react",
"jsx": "react-jsx",
"baseUrl": "src"
},
"include": ["src"],
"exclude": ["src/types/generated/**"]
"include": [
"src"
],
"exclude": [
"src/types/generated/**"
]
}

View file

@ -16310,10 +16310,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
typescript@4.0.5:
version "4.0.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.0.5.tgz#ae9dddfd1069f1cb5beb3ef3b2170dd7c1332389"
integrity sha512-ywmr/VrTVCmNTJ6iV2LwIrfG1P+lv6luD8sUJs+2eI9NLGigaN+nUQc13iHqisq7bra9lnmUSYqbJvegraBOPQ==
typescript@4.1.6:
version "4.1.6"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.6.tgz#1becd85d77567c3c741172339e93ce2e69932138"
integrity sha512-pxnwLxeb/Z5SP80JDRzVjh58KsM6jZHRAOtTpS7sXLS4ogXNKC9ANxHHZqLLeVHZN35jCtI4JdmLLbLiC1kBow==
unbox-primitive@^1.0.1:
version "1.0.1"