Fixed files not included in release.

Moved node relevant stuff in libloki into its own modules folder.
pull/210/head
Mikunj 6 years ago
parent 014193e737
commit 75d0894104

@ -29,5 +29,5 @@ ts/**/*.js
# Libloki specific files # Libloki specific files
libloki/test/components.js libloki/test/components.js
libloki/mnemonic.js libloki/modules/mnemonic.js
libloki/sc_reduce32.js libloki/modules/sc_reduce32.js

@ -151,23 +151,23 @@ function mn_decode(str, wordset_name) {
var mn_words = { var mn_words = {
english: { english: {
prefix_len: 3, prefix_len: 3,
words: require('../mnemonic_languages/english'), words: require('../../mnemonic_languages/english'),
}, },
electrum: { electrum: {
prefix_len: 0, prefix_len: 0,
words: require('../mnemonic_languages/electrum'), words: require('../../mnemonic_languages/electrum'),
}, },
spanish: { spanish: {
prefix_len: 4, prefix_len: 4,
words: require('../mnemonic_languages/spanish'), words: require('../../mnemonic_languages/spanish'),
}, },
portuguese: { portuguese: {
prefix_len: 4, prefix_len: 4,
words: require('../mnemonic_languages/portuguese'), words: require('../../mnemonic_languages/portuguese'),
}, },
japanese: { japanese: {
prefix_len: 3, prefix_len: 3,
words: require('../mnemonic_languages/japanese'), words: require('../../mnemonic_languages/japanese'),
}, },
}; };

@ -1,6 +1,6 @@
const axios = require('axios'); const axios = require('axios');
const { assert } = require('chai'); const { assert } = require('chai');
const LocalLokiServer = require('../../local_loki_server'); const LocalLokiServer = require('../../modules/local_loki_server');
describe('LocalLokiServer', () => { describe('LocalLokiServer', () => {
before(async () => { before(async () => {

@ -231,8 +231,7 @@
"permissions_popup.html", "permissions_popup.html",
"debug_log.html", "debug_log.html",
"_locales/**", "_locales/**",
"libloki/mnemonic.js", "libloki/modules/*.js",
"libloki/sc_reduce32.js",
"mnemonic_languages/**", "mnemonic_languages/**",
"protos/*", "protos/*",
"js/**", "js/**",

@ -303,12 +303,12 @@ window.lokiMessageAPI = new LokiMessageAPI({
messageServerPort: config.messageServerPort, messageServerPort: config.messageServerPort,
}); });
const LocalLokiServer = require('./libloki/local_loki_server'); const LocalLokiServer = require('./libloki/modules/local_loki_server');
window.localServerPort = config.localServerPort; window.localServerPort = config.localServerPort;
window.localLokiServer = new LocalLokiServer(); window.localLokiServer = new LocalLokiServer();
window.mnemonic = require('./libloki/mnemonic'); window.mnemonic = require('./libloki/modules/mnemonic');
const WorkerInterface = require('./js/modules/util_worker_interface'); const WorkerInterface = require('./js/modules/util_worker_interface');
// A Worker with a 3 minute timeout // A Worker with a 3 minute timeout

Loading…
Cancel
Save