mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Update TypeScript version. (#4463)
* Update TypeScript version. This makes the TypeScript version match across other codebases, to facilitate better code sharing. * Fix TS errors after update. Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
This commit is contained in:
parent
04436fca56
commit
15cc3d2099
6
package-lock.json
generated
6
package-lock.json
generated
@ -16815,9 +16815,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "4.2.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz",
|
||||
"integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==",
|
||||
"version": "4.5.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz",
|
||||
"integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==",
|
||||
"dev": true
|
||||
},
|
||||
"uc.micro": {
|
||||
|
@ -82,7 +82,7 @@
|
||||
"rimraf": "^3.0.2",
|
||||
"ts-jest": "^26.5.6",
|
||||
"type-fest": "^1.0.2",
|
||||
"typescript": "^4.2.3"
|
||||
"typescript": "^4.5.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"immer": "^9.0.6"
|
||||
|
@ -269,6 +269,9 @@ export async function generateKeyPairJWK() {
|
||||
true,
|
||||
['encrypt', 'decrypt'],
|
||||
);
|
||||
if (!pair.publicKey || !pair.privateKey) {
|
||||
throw new Error('Unexpected error generating a keypair.');
|
||||
}
|
||||
return {
|
||||
publicKey: await subtle.exportKey('jwk', pair.publicKey),
|
||||
privateKey: await subtle.exportKey('jwk', pair.privateKey),
|
||||
|
@ -35,7 +35,6 @@ export class RequestRow extends PureComponent<Props> {
|
||||
{isGrpc ? (
|
||||
<GrpcTag />
|
||||
) : (
|
||||
// @ts-expect-error -- TSCONVERSION
|
||||
<MethodTag method={request.method} />
|
||||
)}
|
||||
<span className="inline-block">{request.name}</span>
|
||||
|
9
packages/insomnia-app/package-lock.json
generated
9
packages/insomnia-app/package-lock.json
generated
@ -8124,8 +8124,7 @@
|
||||
"binary-extensions": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.1.0.tgz",
|
||||
"integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ==",
|
||||
"optional": true
|
||||
"integrity": "sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ=="
|
||||
},
|
||||
"binary-search-tree": {
|
||||
"version": "0.2.5",
|
||||
@ -22816,9 +22815,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "4.2.3",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.3.tgz",
|
||||
"integrity": "sha512-qOcYwxaByStAWrBf4x0fibwZvMRG+r4cQoTjbPtUlrWjBHbmCAww1i448U0GJ+3cNNEtebDteo/cHOR3xJ4wEw==",
|
||||
"version": "4.5.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz",
|
||||
"integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==",
|
||||
"dev": true
|
||||
},
|
||||
"uc.micro": {
|
||||
|
@ -254,7 +254,7 @@
|
||||
"ts-node": "^9.1.1",
|
||||
"tsconfig-paths": "^3.9.0",
|
||||
"type-fest": "^1.0.2",
|
||||
"typescript": "4.2.3",
|
||||
"typescript": "^4.5.5",
|
||||
"url-loader": "^1.1.2",
|
||||
"val-loader": "^2.1.2",
|
||||
"webpack": "^4.44.1",
|
||||
|
14
packages/insomnia-common/package-lock.json
generated
14
packages/insomnia-common/package-lock.json
generated
@ -307,9 +307,9 @@
|
||||
"dev": true
|
||||
},
|
||||
"typescript": {
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
|
||||
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
|
||||
"version": "4.5.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz",
|
||||
"integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==",
|
||||
"dev": true
|
||||
},
|
||||
"typescript-json-schema": {
|
||||
@ -325,6 +325,14 @@
|
||||
"ts-node": "^9.1.1",
|
||||
"typescript": "~4.2.3",
|
||||
"yargs": "^16.2.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"typescript": {
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
|
||||
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"uri-js": {
|
||||
|
@ -27,6 +27,7 @@
|
||||
"devDependencies": {
|
||||
"ajv": "^8.6.2",
|
||||
"type-fest": "^1.0.2",
|
||||
"typescript": "^4.5.5",
|
||||
"typescript-json-schema": "^0.50.1"
|
||||
}
|
||||
}
|
||||
|
6
packages/insomnia-components/package-lock.json
generated
6
packages/insomnia-components/package-lock.json
generated
@ -25539,9 +25539,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
|
||||
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
|
||||
"version": "4.5.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz",
|
||||
"integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==",
|
||||
"dev": true
|
||||
},
|
||||
"typescript-plugin-styled-components": {
|
||||
|
@ -65,7 +65,7 @@
|
||||
"styled-components": "^4.4.1",
|
||||
"ts-loader": "^8.2.0",
|
||||
"type-fest": "^1.0.2",
|
||||
"typescript": "^4.2.3",
|
||||
"typescript": "^4.5.5",
|
||||
"typescript-plugin-styled-components": "^1.5.0",
|
||||
"webpack": "^4.44.1",
|
||||
"webpack-cli": "^3.3.11",
|
||||
|
12
packages/insomnia-config/package-lock.json
generated
12
packages/insomnia-config/package-lock.json
generated
@ -4506,9 +4506,9 @@
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
|
||||
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
|
||||
"version": "4.5.5",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.5.tgz",
|
||||
"integrity": "sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==",
|
||||
"dev": true
|
||||
},
|
||||
"typescript-json-schema": {
|
||||
@ -4539,6 +4539,12 @@
|
||||
"source-map-support": "^0.5.17",
|
||||
"yn": "3.1.1"
|
||||
}
|
||||
},
|
||||
"typescript": {
|
||||
"version": "4.2.4",
|
||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.2.4.tgz",
|
||||
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -35,6 +35,7 @@
|
||||
"devDependencies": {
|
||||
"jest": "^26.6.3",
|
||||
"ts-node": "^10.2.1",
|
||||
"typescript": "^4.5.5",
|
||||
"typescript-json-schema": "^0.50.1"
|
||||
}
|
||||
}
|
||||
|
@ -3,6 +3,7 @@
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"allowUnreachableCode": false,
|
||||
"allowUnusedLabels": false,
|
||||
"useUnknownInCatchVariables": false,
|
||||
"allowJs": true,
|
||||
"checkJs": true,
|
||||
"declaration": true,
|
||||
|
Loading…
Reference in New Issue
Block a user