From 549440bf01ac5fa76d34d0b263f409a9802121e4 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Fri, 6 Jan 2023 17:57:26 +0530 Subject: refactor: uses uuid instead of your shitty math.random bullshit --- package.json | 4 +++- src/index.ts | 8 ++------ src/runtime.ts | 16 ++++++++-------- yarn.lock | 15 +++++++++++++++ 4 files changed, 28 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index a1e6d56..0028d3d 100644 --- a/package.json +++ b/package.json @@ -14,9 +14,11 @@ "@types/node": "^18.11.18", "ts-morph": "^17.0.1", "ts-node": "^10.9.1", - "typescript": "^4.9.4" + "typescript": "^4.9.4", + "uuid": "^9.0.0" }, "devDependencies": { + "@types/uuid": "^9.0.0", "nodemon": "^2.0.20" } } diff --git a/src/index.ts b/src/index.ts index b8a69ac..aad0c00 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,7 +13,7 @@ export interface GetArgs extends EffectAtom { } export interface ReadLine extends EffectAtom { } -export interface JsExpr<_Expr extends string> extends EffectAtom {} +export interface JsExpr<_Expr extends string> extends EffectAtom { } export interface Program { effects: Effs, @@ -34,10 +34,6 @@ interface PrintK