From df898293279ee2867e4cb6e605fa6d8108e22eb2 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Tue, 9 Apr 2019 11:35:08 +0200 Subject: [PATCH] typescript declaration --- package.json | 2 +- src/index.ts | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) 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