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", "name": "occulto",
"version": "1.0.4", "version": "1.0.5",
"description": "crypt utility", "description": "crypt utility",
"main": "./lib/index.js", "main": "./lib/index.js",
"types": "./lib/index.d.ts", "types": "./lib/index.d.ts",

View File

@ -1,15 +1,14 @@
import RSA from './RSA' import RSA_Internal from './RSA'
import Symmetric from './Symmetric' import Symmetric_Internal from './Symmetric'
const exp = { export const RSA = RSA_Internal
export const Symmetric = Symmetric_Internal
export default {
RSA, RSA,
Symmetric, Symmetric,
} }
module.exports = {
...exp,
default: exp,
}
// Require node 11 // Require node 11
if (parseInt(process.versions.node.split('.')[0]) < 10) throw new Error('Node 10 or higher is required') if (parseInt(process.versions.node.split('.')[0]) < 10) throw new Error('Node 10 or higher is required')