From 33bc083593076084deacdb555f0628edacec72dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Sat, 29 Jun 2024 22:07:35 +0200 Subject: [PATCH 1/2] feat: export decryptor in web package --- .npmignore | 2 ++ node.d.ts | 1 + node.js | 1 + src/web.ts | 1 + 4 files changed, 5 insertions(+) create mode 100644 node.d.ts create mode 100644 node.js diff --git a/.npmignore b/.npmignore index ea6fb83..a75360d 100644 --- a/.npmignore +++ b/.npmignore @@ -3,6 +3,8 @@ !lib/**/* !web.d.ts !web.js +!node.d.ts +!node.js !package.json !README.md !LICENSE diff --git a/node.d.ts b/node.d.ts new file mode 100644 index 0000000..ef80b5f --- /dev/null +++ b/node.d.ts @@ -0,0 +1 @@ +export * from './lib/node'; diff --git a/node.js b/node.js new file mode 100644 index 0000000..b79be42 --- /dev/null +++ b/node.js @@ -0,0 +1 @@ +export * from './lib/node.cjs'; diff --git a/src/web.ts b/src/web.ts index a70232d..6e585fc 100644 --- a/src/web.ts +++ b/src/web.ts @@ -1,2 +1,3 @@ export * from './sdk'; export * from './init'; +export { clientKeyDecryptor, getCiphertextCallParams } from './utils'; From 85bb7e5bf97b587d1cfca19d51755761fb61b068 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20=27birdy=27=20Danjou?= Date: Sat, 29 Jun 2024 22:09:43 +0200 Subject: [PATCH 2/2] chore: 0.5.1 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1e995e0..f7d891c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "fhevmjs", - "version": "0.5.0", + "version": "0.5.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "fhevmjs", - "version": "0.5.0", + "version": "0.5.1", "license": "BSD-3-Clause-Clear", "dependencies": { "@types/keccak": "^3.0.4", diff --git a/package.json b/package.json index 7b89e59..e5ff153 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fhevmjs", - "version": "0.5.0", + "version": "0.5.1", "description": "fhEVM SDK for blockchain using TFHE", "main": "lib/node.js", "types": "lib/node/node.d.ts",