From 8d207e820d3c3920501484f136dd61d6cdaa3bac Mon Sep 17 00:00:00 2001 From: Ivan Vershigora Date: Sat, 1 Jun 2024 11:47:06 +0100 Subject: [PATCH] fix: upgrade slip39 dependency --- class/wallets/slip39-wallets.ts | 2 +- package-lock.json | 10 +++++----- package.json | 2 +- typings/slip39.d.ts | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/class/wallets/slip39-wallets.ts b/class/wallets/slip39-wallets.ts index 1d5b55d35..0ee4e098d 100644 --- a/class/wallets/slip39-wallets.ts +++ b/class/wallets/slip39-wallets.ts @@ -1,6 +1,6 @@ import createHash from 'create-hash'; import slip39 from 'slip39'; -import { WORD_LIST } from 'slip39/dist/slip39_helper'; +import { WORD_LIST } from 'slip39/src/slip39_helper'; import { HDLegacyP2PKHWallet } from './hd-legacy-p2pkh-wallet'; import { HDSegwitBech32Wallet } from './hd-segwit-bech32-wallet'; diff --git a/package-lock.json b/package-lock.json index b4192f33a..1b7502019 100644 --- a/package-lock.json +++ b/package-lock.json @@ -103,7 +103,7 @@ "rn-nodeify": "10.3.0", "scryptsy": "2.1.0", "silent-payments": "github:BlueWallet/SilentPayments#7ac4d17", - "slip39": "https://github.com/BlueWallet/slip39-js", + "slip39": "https://github.com/BlueWallet/slip39-js#d316ee6", "stream-browserify": "3.0.0", "url": "0.11.3", "wif": "2.0.6" @@ -21093,8 +21093,8 @@ } }, "node_modules/slip39": { - "version": "0.1.7", - "resolved": "git+ssh://git@github.com/BlueWallet/slip39-js.git#35619ed112fa022de1f5a3b6e2996dd3025472b2", + "version": "0.1.9", + "resolved": "git+ssh://git@github.com/BlueWallet/slip39-js.git#d316ee6a929ab645fe5462ef1c91720eb66889c8", "license": "MIT" }, "node_modules/source-map": { @@ -38395,8 +38395,8 @@ } }, "slip39": { - "version": "git+ssh://git@github.com/BlueWallet/slip39-js.git#35619ed112fa022de1f5a3b6e2996dd3025472b2", - "from": "slip39@https://github.com/BlueWallet/slip39-js" + "version": "git+ssh://git@github.com/BlueWallet/slip39-js.git#d316ee6a929ab645fe5462ef1c91720eb66889c8", + "from": "slip39@https://github.com/BlueWallet/slip39-js#d316ee6" }, "source-map": { "version": "0.6.1", diff --git a/package.json b/package.json index 7f9293004..c8a69da29 100644 --- a/package.json +++ b/package.json @@ -188,7 +188,7 @@ "rn-nodeify": "10.3.0", "scryptsy": "2.1.0", "silent-payments": "github:BlueWallet/SilentPayments#7ac4d17", - "slip39": "https://github.com/BlueWallet/slip39-js", + "slip39": "https://github.com/BlueWallet/slip39-js#d316ee6", "stream-browserify": "3.0.0", "url": "0.11.3", "wif": "2.0.6" diff --git a/typings/slip39.d.ts b/typings/slip39.d.ts index bfd2628d0..82ba79e68 100644 --- a/typings/slip39.d.ts +++ b/typings/slip39.d.ts @@ -3,6 +3,6 @@ declare module 'slip39' { export function validateMnemonic(mnemonic: string): boolean; } -declare module 'slip39/dist/slip39_helper' { +declare module 'slip39/src/slip39_helper' { export const WORD_LIST: string[]; }