chore: bump package.json

Signed-off-by: Gabriel <gaccettola@mirantis.com>
This commit is contained in:
Gabriel authored and Gabriel Accettola committed 2023-06-01 11:36:30 +02:00
1 parent 86fa93ac8b
commit 58e4ebcdea
25 files changed
+57 -43

No files matched your search

@@ -2,11 +2,17 @@
* Copyright (c) OpenLens Authors. All rights reserved.
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { getInjectable } from "@ogre-tools/injectable";
import { getInjectable, getInjectionToken } from "@ogre-tools/injectable";
import { v4 as getRandomId } from "uuid";
export type GetRandomId = () => string;
export const getRandomIdInjectionToken = getInjectionToken<GetRandomId>({
id: "get-random-id-injection-token",
});
export const getRandomIdInjectable = getInjectable({
id: "get-random-id",
instantiate: () => () => getRandomId(),
instantiate: (): GetRandomId => () => getRandomId(),
causesSideEffects: true,
injectionToken: getRandomIdInjectionToken,
});