change build target from es2015 to es2017

This commit is contained in:
d-yokoi 2019-03-24 20:56:56 +09:00
parent d84e2821f3
commit ac0da78a1b
No known key found for this signature in database
GPG Key ID: 49EAF81BC6A0D19A
2 changed files with 4 additions and 14 deletions

View File

@ -1,12 +1,4 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
Object.defineProperty(exports, "__esModule", { value: true });
const createHash = require("create-hash");
const pbkdf2_1 = require("pbkdf2");
@ -76,11 +68,9 @@ function mnemonicToSeedAsync(mnemonic, password) {
});
}
exports.mnemonicToSeedAsync = mnemonicToSeedAsync;
function mnemonicToSeedHexAsync(mnemonic, password) {
return __awaiter(this, void 0, void 0, function* () {
const buf = yield mnemonicToSeedAsync(mnemonic, password);
return buf.toString('hex');
});
async function mnemonicToSeedHexAsync(mnemonic, password) {
const buf = await mnemonicToSeedAsync(mnemonic, password);
return buf.toString('hex');
}
exports.mnemonicToSeedHexAsync = mnemonicToSeedHexAsync;
function mnemonicToEntropy(mnemonic, wordlist) {

View File

@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2015",
"target": "es2017",
"module": "commonjs",
"outDir": "./src",
"declaration": true,