Finish refactoring src/**/*.js to use import & export

This commit is contained in:
Tankred Hase
2016-02-05 15:19:49 +07:00
parent 70ac662073
commit 8728db2b08
18 changed files with 54 additions and 86 deletions

View File

@@ -14,7 +14,7 @@ import random from './random';
import pkcs1 from './pkcs1';
import crypto from './crypto.js';
module.exports = {
const mod = {
/** @see module:crypto/cipher */
cipher: cipher,
/** @see module:crypto/hash */
@@ -32,5 +32,7 @@ module.exports = {
};
for (var i in crypto) {
module.exports[i] = crypto[i];
mod[i] = crypto[i];
}
export default mod;