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/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", 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';