Remove default export

This commit is contained in:
Daniel Huigens 2020-04-23 03:33:52 +02:00
parent bdad8e3eec
commit c48070def6

View File

@ -1,21 +1,11 @@
/* eslint-disable import/newline-after-import, import/first */
/**
* Export high level api as default.
* Export high level API functions.
* Usage:
*
* import openpgp from 'openpgp.js'
* openpgp.encryptMessage(keys, text)
*/
import * as openpgp from './openpgp';
export default openpgp;
/**
* Export each high level api function separately.
* Usage:
*
* import { encryptMessage } from 'openpgp.js'
* encryptMessage(keys, text)
* import { encrypt } from 'openpgp'
* encrypt({ message, publicKeys })
*/
export {
encrypt, decrypt, sign, verify,