From 2094ca1207633fc50f7e234bd50969e314d1a9be Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 4 Mar 2014 22:42:21 +0200 Subject: [PATCH] Properly define the crypto dependencies. Fixes #125 --- main.js | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/main.js b/main.js index c66a50733..fb1a7e85a 100644 --- a/main.js +++ b/main.js @@ -54,13 +54,23 @@ config = { //module value. exports: 'Backbone' }, - 'jquery.tinysort': { deps: ['jquery'] }, - 'strophe': { deps: ['jquery'] }, - 'underscore': { exports: '_' }, - 'strophe.muc': { deps: ['strophe', 'jquery'] }, - 'strophe.roster': { deps: ['strophe'] }, - 'strophe.vcard': { deps: ['strophe'] }, - 'strophe.disco': { deps: ['strophe'] } + 'underscore': { exports: '_' }, + 'crypto.aes': { deps: ['crypto.cipher-core'] }, + 'crypto.cipher-core': { deps: ['crypto.enc-base64', 'crypto.evpkdf'] }, + 'crypto.enc-base64': { deps: ['crypto.core'] }, + 'crypto.evpkdf': { deps: ['crypto.md5'] }, + 'crypto.hmac': { deps: ['crypto.core'] }, + 'crypto.md5': { deps: ['crypto.core'] }, + 'crypto.mode-ctr': { deps: ['crypto.cipher-core'] }, + 'crypto.pad-nopadding': { deps: ['crypto.cipher-core'] }, + 'crypto.sha1': { deps: ['crypto.core'] }, + 'crypto.sha256': { deps: ['crypto.core'] }, + 'jquery.tinysort': { deps: ['jquery'] }, + 'strophe': { deps: ['jquery'] }, + 'strophe.disco': { deps: ['strophe'] }, + 'strophe.muc': { deps: ['strophe', 'jquery'] }, + 'strophe.roster': { deps: ['strophe'] }, + 'strophe.vcard': { deps: ['strophe'] } } };