diff --git a/package.json b/package.json index 3fa0a52..99c9cdf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "occulto", - "version": "1.0.4", + "version": "1.0.5", "description": "crypt utility", "main": "./lib/index.js", "types": "./lib/index.d.ts", diff --git a/src/index.ts b/src/index.ts index 354c1d7..daae3ce 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,15 +1,14 @@ -import RSA from './RSA' -import Symmetric from './Symmetric' +import RSA_Internal from './RSA' +import Symmetric_Internal from './Symmetric' -const exp = { +export const RSA = RSA_Internal +export const Symmetric = Symmetric_Internal + + +export default { RSA, Symmetric, } -module.exports = { - ...exp, - default: exp, -} - // Require node 11 -if(parseInt(process.versions.node.split('.')[0]) < 10) throw new Error('Node 10 or higher is required') \ No newline at end of file +if (parseInt(process.versions.node.split('.')[0]) < 10) throw new Error('Node 10 or higher is required') \ No newline at end of file