1
0
mirror of https://github.com/lensapp/lens.git synced 2024-09-20 05:47:24 +03:00

Fix issue with opening of terminal

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-01-07 19:29:24 +02:00
parent d89609415b
commit 4441d714dd
No known key found for this signature in database
GPG Key ID: 5F465B5672372402
4 changed files with 14 additions and 13 deletions

View File

@ -196,8 +196,8 @@
"@hapi/call": "^8.0.1",
"@hapi/subtext": "^7.0.3",
"@kubernetes/client-node": "^0.16.1",
"@ogre-tools/injectable": "3.0.0",
"@ogre-tools/injectable-react": "3.0.0",
"@ogre-tools/injectable": "3.1.0",
"@ogre-tools/injectable-react": "3.1.0",
"@sentry/electron": "^2.5.4",
"@sentry/integrations": "^6.15.0",
"abort-controller": "^3.0.0",

View File

@ -29,6 +29,7 @@ const shellRequestAuthenticatorInjectable = getInjectable({
return authenticator;
},
lifecycle: lifecycleEnum.singleton,
});

View File

@ -48,7 +48,7 @@ export class ShellRequestAuthenticator {
* @param token The value that is being presented as a one time authentication token
* @returns `true` if `token` was valid, false otherwise
*/
authenticate(clusterId: ClusterId, tabId: string, token: string): boolean {
authenticate = (clusterId: ClusterId, tabId: string, token: string): boolean => {
const clusterTokens = this.tokens.get(clusterId);
if (!clusterTokens) {
@ -66,5 +66,5 @@ export class ShellRequestAuthenticator {
}
return false;
}
};
}

View File

@ -979,19 +979,19 @@
dependencies:
lodash "^4.17.21"
"@ogre-tools/injectable-react@3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@ogre-tools/injectable-react/-/injectable-react-3.0.0.tgz#074252080a5972daa9bfbd3a257bee904941c498"
integrity sha512-67dRDHlUndh91PHZQHBu9K24k7q4nA9z0ebLuqzWgrys3fpEXcnEaGR7J3WLbtQqnn7joHl5caMSG54KKcr8lA==
"@ogre-tools/injectable-react@3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@ogre-tools/injectable-react/-/injectable-react-3.1.0.tgz#76417e71a02cd571633cae6171e04cfd67e9a95a"
integrity sha512-v8uDRzEgwLmG0uWMgePFoqTQ8skklXFMPC8V3CtD4WV/7Brll3WkGZrgHLM/hJPn5/9xVIz51GK1jp0yvJK6HA==
dependencies:
"@ogre-tools/fp" "^3.0.0"
"@ogre-tools/injectable" "^3.0.0"
"@ogre-tools/injectable" "^3.1.0"
lodash "^4.17.21"
"@ogre-tools/injectable@3.0.0", "@ogre-tools/injectable@^3.0.0":
version "3.0.0"
resolved "https://registry.yarnpkg.com/@ogre-tools/injectable/-/injectable-3.0.0.tgz#0dedafddd53dd13440d1072a51fe0a84661dfb9a"
integrity sha512-fx5yNrmeVNHPYd80hNg+eHq1HoZmPYuGXD6Mdmo33rLOznf7ipBnmcK4nyCfgr/h8+2dwRYIYLLFI7cleSSdcA==
"@ogre-tools/injectable@3.1.0", "@ogre-tools/injectable@^3.1.0":
version "3.1.0"
resolved "https://registry.yarnpkg.com/@ogre-tools/injectable/-/injectable-3.1.0.tgz#f03ddc0316b68e35e0adfa392410ee0bdcdcb772"
integrity sha512-/513kD4vDGrzw9lVMiQlnivVjos8ZiezWm4svm5BRiZ8y6NwsORlvR2DfViqijJZhp3nFC4i1tQkHHbf8g7lIA==
dependencies:
"@ogre-tools/fp" "^3.0.0"
lodash "^4.17.21"