1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/core
Juho Heikka 5c6be48c0a Fix ensure hashed directory for extension (#7188)
* Fix ensure hashed directory for extension

Earlier open lens versions stored extension_data directory based on
path of extension's package.json. This causes problems
because extensions have moved to new location. This ensures
backward compatibility that extension will get the same
directory than before the change.

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Reconstruct the key for old hashed directories

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Remove unnecessary return

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Use sync version of random bytes

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Add migration to new type of key

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Fix global override for random bytes to not return a promise

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

* Make registeredExtensions a dependency

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>

---------

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
2023-02-22 08:41:39 -05:00
..
__mocks__ Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
build Move @k8slens/generate-tray-icons to seperate package (#7057) 2023-02-01 11:41:44 -08:00
src Fix ensure hashed directory for extension (#7188) 2023-02-22 08:41:39 -05:00
static Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
test-data Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
types Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
webpack Set core webpack dependencies as externals (#7094) 2023-02-02 16:52:21 +02:00
.eslintrc.js Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
.gitignore Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
.swcrc Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
.yarnrc Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
package.json Bump typedoc from 0.23.24 to 0.23.25 (#7181) 2023-02-17 11:23:02 -05:00
tailwind.config.js Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
tsconfig.json Restructure to monorepo (#6907) 2023-01-24 10:46:26 -08:00
yarn.lock Bump typedoc from 0.23.24 to 0.23.25 (#7181) 2023-02-17 11:23:02 -05:00