typescript declaration

This commit is contained in:
cupcakearmy 2019-04-09 11:35:08 +02:00
parent 4ffbd21c63
commit df89829327
2 changed files with 9 additions and 10 deletions

View File

@ -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",

View File

@ -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')