Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
matiu committed Oct 26, 2020
1 parent 2bc4d2f commit 4be66b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"printWidth": 120
},
"scripts": {
"build": "docker build -t bitcore-node .",
"build": "docker build -t bitcore-node . ",
"watch": "./node_modules/.bin/lerna run watch --parallel",
"postinstall": "npm run bootstrap && npm run compile",
"bootstrap": "./node_modules/.bin/lerna bootstrap",
Expand Down
21 changes: 12 additions & 9 deletions packages/bitcore-mnemonic/bitcore-mnemonic.js
Original file line number Diff line number Diff line change
Expand Up @@ -22531,18 +22531,18 @@ module.exports = require('bitcore-lib').errors.extend(spec);
(function (Buffer){
'use strict';

var bitcore = require('bitcore-lib');
var BN = bitcore.crypto.BN;
var unorm = require('unorm');
var _ = bitcore.deps._;
const bitcore = require('bitcore-lib');
const BN = bitcore.crypto.BN;
const unorm = require('unorm');
const _ = bitcore.deps._;

var pbkdf2 = require('./pbkdf2');
var errors = require('./errors');
const pbkdf2 = require('./pbkdf2');
const errors = require('./errors');

var Hash = bitcore.crypto.Hash;
var Random = bitcore.crypto.Random;
const Hash = bitcore.crypto.Hash;
const Random = bitcore.crypto.Random;

var $ = bitcore.util.preconditions;
const $ = bitcore.util.preconditions;


/**
Expand Down Expand Up @@ -22614,6 +22614,9 @@ var Mnemonic = function(data, wordlist) {

phrase = phrase || Mnemonic._mnemonic(ent, wordlist);

// this fixes spacing in JP
phrase = unorm.nfkd(phrase);

Object.defineProperty(this, 'wordlist', {
configurable: false,
value: wordlist
Expand Down

0 comments on commit 4be66b9

Please sign in to comment.