mirror of
https://github.com/cupcakearmy/occulto.git
synced 2024-12-22 10:16:29 +00:00
typescript declaration
This commit is contained in:
parent
4ffbd21c63
commit
df89829327
@ -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",
|
||||||
|
17
src/index.ts
17
src/index.ts
@ -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')
|
Loading…
Reference in New Issue
Block a user