diff --git a/package.json b/package.json index f781c8da566..d6f7c25f16f 100644 --- a/package.json +++ b/package.json @@ -158,7 +158,7 @@ "style-loader": "^0.23.1", "ts-jest": "^25.0.0", "ts-loader": "^8.0.2", - "typescript": "^3.9.5", + "typescript": "^4.1.5", "typescript-plugin-styled-components": "^1.5.0", "url-loader": "^1.1.2", "wait-on": "^3.1.0", diff --git a/src/neo4j-arc/common/utils/objectUtils.ts b/src/neo4j-arc/common/utils/objectUtils.ts index 14fc7e20cd4..b271f0a59a2 100644 --- a/src/neo4j-arc/common/utils/objectUtils.ts +++ b/src/neo4j-arc/common/utils/objectUtils.ts @@ -41,5 +41,5 @@ export function mapObjectValues( } export function keys(object: T): Array { - return Object.keys(object) as Array + return Object.keys(object as any) as Array } diff --git a/src/shared/services/bolt/driverFactory.ts b/src/shared/services/bolt/driverFactory.ts index 91853ae3649..9d327c9fce4 100644 --- a/src/shared/services/bolt/driverFactory.ts +++ b/src/shared/services/bolt/driverFactory.ts @@ -33,7 +33,7 @@ export const createDriverOrFailFn = ( try { const res = neo4j.driver(url, auth, spreadOpts) return res - } catch (e) { + } catch (e: any) { failFn(e) return null } diff --git a/src/shared/services/bolt/globalDrivers.ts b/src/shared/services/bolt/globalDrivers.ts index 36238d2b102..71972e3c098 100644 --- a/src/shared/services/bolt/globalDrivers.ts +++ b/src/shared/services/bolt/globalDrivers.ts @@ -63,7 +63,7 @@ export const buildGlobalDriversObject = async ( ) routed && (await routed.verifyConnectivity()) routingSupported = true - } catch (e) { + } catch (e: any) { if (e && isNonSupportedRoutingSchemeError(e)) { routingSupported = false failFn(e) diff --git a/src/shared/services/commandInterpreterHelper.ts b/src/shared/services/commandInterpreterHelper.ts index c0df8d28f85..c0590e93f7a 100644 --- a/src/shared/services/commandInterpreterHelper.ts +++ b/src/shared/services/commandInterpreterHelper.ts @@ -250,7 +250,7 @@ const availableCommands = [ put(updateQueryResult(action.requestId, null, 'success')) } return true - } catch (error) { + } catch (error: any) { if (!action.parentId) { put( frames.add({ diff --git a/yarn.lock b/yarn.lock index d89be290c01..31dbbf3001e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13934,11 +13934,16 @@ typescript-plugin-styled-components@^1.5.0: resolved "https://registry.npmjs.org/typescript-plugin-styled-components/-/typescript-plugin-styled-components-1.6.0.tgz" integrity sha512-cUCbOuY0iNr1JjPYC5MqCiABrfv2ouLift+7gi4vS0gBPQySUT006wHCjwzynMfU5LGMQaZqpssAgzRRjt30Ng== -typescript@^3.2.1, typescript@^3.9.3, typescript@^3.9.5: +typescript@^3.2.1, typescript@^3.9.3: version "3.9.10" resolved "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz" integrity "sha1-cPORCselHta+952ngAaQsZv3eLg= sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==" +typescript@^4.1.5: + version "4.9.5" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" + integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== + uglify-js@3.4.x: version "3.4.10" resolved "https://registry.npmjs.org/uglify-js/-/uglify-js-3.4.10.tgz"