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

+1 -1
View File
@@ -4,4 +4,4 @@
*/
export { randomFeature } from "./src/feature";
export { getRandomIdInjectable } from "./src/get-random-id.injectable";
export { getRandomIdInjectionToken, getRandomIdInjectable } from "./src/get-random-id.injectable";
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "@k8slens/random",
"private": false,
"version": "1.0.0-alpha.0",
"version": "1.0.0",
"description": "Highly extendable random in the Lens.",
"type": "commonjs",
"files": [
@@ -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,
});