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

@@ -33,7 +33,7 @@
import enums from '../enums.js';
module.exports = {
export default {
prefer_hash_algorithm: enums.hash.sha256,
encryption_cipher: enums.symmetric.aes256,
compression: enums.compression.zip,

View File

@@ -2,5 +2,7 @@
* @see module:config/config
* @module config
*/
import config from './config.js';
module.exports = config;
'use strict';
export { default } from './config.js';

View File

@@ -5,12 +5,10 @@
'use strict';
module.exports = LocalStorage;
/**
* @constructor
*/
function LocalStorage() {}
export default function LocalStorage() {}
/**
* Reads the config out of the HTML5 local storage