1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/packages/core
Juho Heikka d8acff67d1
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-21 16:09:03 +02: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-21 16:09:03 +02: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 Switch to using NPM workspaces (#7115) 2023-02-20 12:48:18 +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
package.json Switch to using NPM workspaces (#7115) 2023-02-20 12:48:18 +02: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