From 35524915057744fee706e7653dd64a76c974cf34 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Mon, 23 Jun 2014 13:40:38 +1000 Subject: [PATCH] all: consistent import order --- index.js | 9 +++++---- test/index.js | 6 +++--- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 481078e..c0ebdbc 100644 --- a/index.js +++ b/index.js @@ -1,12 +1,13 @@ var CryptoJS = require('crypto-js') -var path = require('path') -var includeFolder = require('include-folder') -var Wordlists = includeFolder(path.join(__dirname, 'wordlists')) var crypto = require('crypto') +var includeFolder = require('include-folder') +var path = require('path') +var wordlists = includeFolder(path.join(__dirname, 'wordlists')) + function BIP39(language) { language = language || 'en' - this.wordlist = JSON.parse(Wordlists[language]) + this.wordlist = JSON.parse(wordlists[language]) } BIP39.prototype.mnemonicToSeed = function(mnemonic, password) { diff --git a/test/index.js b/test/index.js index 9409737..5d46d6c 100644 --- a/test/index.js +++ b/test/index.js @@ -1,8 +1,8 @@ -var vectors = require('./vectors.json').english -var BIP39 = require('../index.js') -var wordlist = require('../wordlists/en.json') var assert = require('assert') +var wordlist = require('../wordlists/en.json') +var vectors = require('./vectors.json').english +var BIP39 = require('../index.js') var bip39 = new BIP39() describe('constructor', function(){