Skip to content

Commit

Permalink
build: migrate patches from patch-package to yarn patch (#497)
Browse files Browse the repository at this point in the history
---

# app/mobiles
yarn @debank/common@npm:0.3.58
yarn @metamask/eth-sig-util@npm:5.1.0
yarn @onekeyfe/hd-transport-react-native@npm:1.0.10
yarn @rabby-wallet/rabby-api@npm:0.8.5
yarn @react-native-menu/menu@npm:1.1.3
yarn eth-rpc-errors@npm:4.0.3
yarn nativewind@npm:2.0.11
yarn react-native-fs@npm:2.20.0
yarn react-native-keychain@npm:8.0.0
yarn react-native-mmkv@npm:2.12.2
yarn react-native-webview@npm:13.10.5
yarn react-use@npm:17.4.2
yarn zeego@npm:1.10.0

# root
yarn @keystonehq/bc-ur-registry@npm:0.6.4
yarn @ledgerhq/hw-app-eth@npm:6.40.2
yarn @ledgerhq/hw-transport@npm:6.31.4
  • Loading branch information
richardo2016x authored Dec 9, 2024
1 parent 6b99ebf commit 24570d9
Show file tree
Hide file tree
Showing 20 changed files with 484 additions and 396 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/@debank/common/dist/chain.d.ts b/node_modules/@debank/common/dist/chain.d.ts
index ae0b2d4..70873af 100644
--- a/node_modules/@debank/common/dist/chain.d.ts
+++ b/node_modules/@debank/common/dist/chain.d.ts
diff --git a/dist/chain.d.ts b/dist/chain.d.ts
index ae0b2d4bae688b199a3ff375d7bfc89bab20362e..70873af56664bae8cba3f13a95e90b802294290e 100644
--- a/dist/chain.d.ts
+++ b/dist/chain.d.ts
@@ -2,6 +2,7 @@ import { CHAINS_ENUM, ChainRaw } from "./chain-data";
export declare type Chain = ChainRaw & {
logo: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/@keystonehq/bc-ur-registry/dist/CryptoAccount.js b/node_modules/@keystonehq/bc-ur-registry/dist/CryptoAccount.js
index 8e7bd5d..c14f90f 100644
--- a/node_modules/@keystonehq/bc-ur-registry/dist/CryptoAccount.js
+++ b/node_modules/@keystonehq/bc-ur-registry/dist/CryptoAccount.js
diff --git a/dist/CryptoAccount.js b/dist/CryptoAccount.js
index 8e7bd5de863a0554bdef5339a0e94f19093ed588..c14f90f70a3da8b85f2db005233fff2b51f10a67 100644
--- a/dist/CryptoAccount.js
+++ b/dist/CryptoAccount.js
@@ -1,7 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/contracts.js b/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/contracts.js
index 713d3a3..79f8f75 100644
--- a/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/contracts.js
+++ b/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/contracts.js
diff --git a/lib/services/ledger/contracts.js b/lib/services/ledger/contracts.js
index 713d3a32c9aad00dfdf2ffa8a24a57230af2a3e0..79f8f75f3c1677dd1e9f857829ad15cce05b7dae 100644
--- a/lib/services/ledger/contracts.js
+++ b/lib/services/ledger/contracts.js
@@ -25,7 +25,7 @@ const loadInfosForContractMethod = (contractAddress, selector, chainId, userLoad
if (pluginBaseURL) {
const url = `${pluginBaseURL}/plugins/ethereum.json`;
Expand All @@ -11,10 +11,10 @@ index 713d3a3..79f8f75 100644
.then(r => r.data)
.catch(e => {
(0, logs_1.log)("error", "could not fetch from " + url + ": " + String(e));
diff --git a/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/erc20.js b/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/erc20.js
index 8fdedf8..201f1ae 100644
--- a/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/erc20.js
+++ b/node_modules/@ledgerhq/hw-app-eth/lib/services/ledger/erc20.js
diff --git a/lib/services/ledger/erc20.js b/lib/services/ledger/erc20.js
index 8fdedf8037b2684ab6d48fd279a0c014b074b676..201f1ae2d9a2f28ec63e27c839b3c7158fc0320d 100644
--- a/lib/services/ledger/erc20.js
+++ b/lib/services/ledger/erc20.js
@@ -27,7 +27,7 @@ const findERC20SignaturesInfo = (userLoadConfig, chainId) => __awaiter(void 0, v
return null;
const url = `${cryptoassetsBaseURL}/evm/${chainId}/erc20-signatures.json`;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/@ledgerhq/hw-transport/lib-es/Transport.d.ts b/node_modules/@ledgerhq/hw-transport/lib-es/Transport.d.ts
index 9099450..e890e2c 100644
--- a/node_modules/@ledgerhq/hw-transport/lib-es/Transport.d.ts
+++ b/node_modules/@ledgerhq/hw-transport/lib-es/Transport.d.ts
diff --git a/lib/Transport.d.ts b/lib/Transport.d.ts
index 909945008c3cf8b7047b5b14ff105b012b795ee7..dc951adc04bc287b87e04c08c6e55fab0f20d773 100644
--- a/lib/Transport.d.ts
+++ b/lib/Transport.d.ts
@@ -132,7 +132,7 @@ export default class Transport {
* @returns {Promise<void>} A promise that resolves when the transport is closed.
*/
Expand All @@ -11,10 +11,10 @@ index 9099450..e890e2c 100644
/**
* Listen for an event on the transport instance.
* Transport implementations may have specific events. Common events include:
diff --git a/node_modules/@ledgerhq/hw-transport/lib/Transport.d.ts b/node_modules/@ledgerhq/hw-transport/lib/Transport.d.ts
index 9099450..dc951ad 100644
--- a/node_modules/@ledgerhq/hw-transport/lib/Transport.d.ts
+++ b/node_modules/@ledgerhq/hw-transport/lib/Transport.d.ts
diff --git a/lib-es/Transport.d.ts b/lib-es/Transport.d.ts
index 909945008c3cf8b7047b5b14ff105b012b795ee7..dc951adc04bc287b87e04c08c6e55fab0f20d773 100644
--- a/lib-es/Transport.d.ts
+++ b/lib-es/Transport.d.ts
@@ -132,7 +132,7 @@ export default class Transport {
* @returns {Promise<void>} A promise that resolves when the transport is closed.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
diff --git a/node_modules/@metamask/eth-sig-util/dist/index.d.ts b/node_modules/@metamask/eth-sig-util/dist/index.d.ts
index 48ddf59..58c9ae7 100644
--- a/node_modules/@metamask/eth-sig-util/dist/index.d.ts
+++ b/node_modules/@metamask/eth-sig-util/dist/index.d.ts
diff --git a/dist/index.d.ts b/dist/index.d.ts
index 48ddf59be50e021b2c2187ef80dd4d5ca10c5a56..58c9ae7faddc84afe016e98b2ce789076d666545 100644
--- a/dist/index.d.ts
+++ b/dist/index.d.ts
@@ -1,4 +1,5 @@
export * from './personal-sign';
export * from './sign-typed-data';
export * from './encryption';
+export * from './ethereumjs-abi-utils';
export { concatSig, normalize } from './utils';
diff --git a/node_modules/@metamask/eth-sig-util/dist/index.js b/node_modules/@metamask/eth-sig-util/dist/index.js
index 2eaf99f..e395c18 100644
--- a/node_modules/@metamask/eth-sig-util/dist/index.js
+++ b/node_modules/@metamask/eth-sig-util/dist/index.js
diff --git a/dist/index.js b/dist/index.js
index 2eaf99fe658277646309a1df55920dc10db80e39..e395c18b2996331e413f1dc11a7cb23fecaf7421 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -18,6 +18,7 @@ exports.normalize = exports.concatSig = void 0;
__exportStar(require("./personal-sign"), exports);
__exportStar(require("./sign-typed-data"), exports);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
diff --git a/node_modules/@onekeyfe/hd-transport-react-native/dist/BleTransport.d.ts b/node_modules/@onekeyfe/hd-transport-react-native/dist/BleTransport.d.ts
index 4bec2f7..c122b7d 100644
--- a/node_modules/@onekeyfe/hd-transport-react-native/dist/BleTransport.d.ts
+++ b/node_modules/@onekeyfe/hd-transport-react-native/dist/BleTransport.d.ts
diff --git a/dist/BleTransport.d.ts b/dist/BleTransport.d.ts
index 4bec2f7dad1418b7230e6dcd2a5e82d90278867e..c122b7d4bee421537b0312a6e5a7d27f1a42940b 100644
--- a/dist/BleTransport.d.ts
+++ b/dist/BleTransport.d.ts
@@ -1,4 +1,4 @@
-import { Device, Characteristic } from '@onekeyfe/react-native-ble-plx';
+import { Device, Characteristic } from 'react-native-ble-plx';
export default class BleTransport {
id: string;
device: Device;
diff --git a/node_modules/@onekeyfe/hd-transport-react-native/dist/index.d.ts b/node_modules/@onekeyfe/hd-transport-react-native/dist/index.d.ts
index b144d68..12a535d 100644
--- a/node_modules/@onekeyfe/hd-transport-react-native/dist/index.d.ts
+++ b/node_modules/@onekeyfe/hd-transport-react-native/dist/index.d.ts
diff --git a/dist/index.d.ts b/dist/index.d.ts
index b144d68479c852a884a38ca474e7ff12d787f708..12a535d3114ac956ba53a06a47b2c669eff378a0 100644
--- a/dist/index.d.ts
+++ b/dist/index.d.ts
@@ -1,6 +1,6 @@
import * as transport from '@onekeyfe/hd-transport';
import transport__default from '@onekeyfe/hd-transport';
Expand All @@ -20,10 +20,10 @@ index b144d68..12a535d 100644
import { Deferred } from '@onekeyfe/hd-shared';
import EventEmitter from 'events';

diff --git a/node_modules/@onekeyfe/hd-transport-react-native/dist/index.js b/node_modules/@onekeyfe/hd-transport-react-native/dist/index.js
index 84a93ec..db32699 100644
--- a/node_modules/@onekeyfe/hd-transport-react-native/dist/index.js
+++ b/node_modules/@onekeyfe/hd-transport-react-native/dist/index.js
diff --git a/dist/index.js b/dist/index.js
index 84a93ec7a479c56b4bf69ed96d07646da7032e2a..64341f1f0f19660ccbec602dc9e74b7f79f3bff1 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -2,7 +2,7 @@

var reactNative = require('react-native');
Expand All @@ -44,30 +44,30 @@ index 84a93ec..db32699 100644
refreshGatt: 'OnConnected',
};
const tryToGetConfiguration = (device) => {
diff --git a/node_modules/@onekeyfe/hd-transport-react-native/dist/types.d.ts b/node_modules/@onekeyfe/hd-transport-react-native/dist/types.d.ts
index 3dfc80d..cadf426 100644
--- a/node_modules/@onekeyfe/hd-transport-react-native/dist/types.d.ts
+++ b/node_modules/@onekeyfe/hd-transport-react-native/dist/types.d.ts
diff --git a/dist/types.d.ts b/dist/types.d.ts
index 3dfc80d054bde5cf7cbf92260ef8f43dc26453ce..cadf4265aab7532ad06b8b777ae8851e2070b4f9 100644
--- a/dist/types.d.ts
+++ b/dist/types.d.ts
@@ -1,4 +1,4 @@
-export type { BleManager as BlePlxManager } from '@onekeyfe/react-native-ble-plx';
+export type { BleManager as BlePlxManager } from 'react-native-ble-plx';
export type TransportOptions = {
scanTimeout?: number;
};
diff --git a/node_modules/@onekeyfe/hd-transport-react-native/src/BleTransport.ts b/node_modules/@onekeyfe/hd-transport-react-native/src/BleTransport.ts
index 110fcc0..954d5ec 100644
--- a/node_modules/@onekeyfe/hd-transport-react-native/src/BleTransport.ts
+++ b/node_modules/@onekeyfe/hd-transport-react-native/src/BleTransport.ts
diff --git a/src/BleTransport.ts b/src/BleTransport.ts
index 110fcc0fde726802e7b71c8c88109c595a68d309..954d5ec64da5788215ef23225f90633ee3475018 100644
--- a/src/BleTransport.ts
+++ b/src/BleTransport.ts
@@ -1,4 +1,4 @@
-import { Device, Characteristic } from '@onekeyfe/react-native-ble-plx';
+import { Device, Characteristic } from 'react-native-ble-plx';

export default class BleTransport {
id: string;
diff --git a/node_modules/@onekeyfe/hd-transport-react-native/src/index.ts b/node_modules/@onekeyfe/hd-transport-react-native/src/index.ts
index 39a288c..f96b606 100644
--- a/node_modules/@onekeyfe/hd-transport-react-native/src/index.ts
+++ b/node_modules/@onekeyfe/hd-transport-react-native/src/index.ts
diff --git a/src/index.ts b/src/index.ts
index 39a288c3d644f7df12d94544cbed0561c48a2091..f96b606de282f9a41cc12de62d92680390112810 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -6,7 +6,7 @@ import {
BleErrorCode,
Characteristic,
Expand All @@ -88,10 +88,10 @@ index 39a288c..f96b606 100644
refreshGatt: 'OnConnected',
};

diff --git a/node_modules/@onekeyfe/hd-transport-react-native/src/types.ts b/node_modules/@onekeyfe/hd-transport-react-native/src/types.ts
index a9c4d8b..b5a933b 100644
--- a/node_modules/@onekeyfe/hd-transport-react-native/src/types.ts
+++ b/node_modules/@onekeyfe/hd-transport-react-native/src/types.ts
diff --git a/src/types.ts b/src/types.ts
index a9c4d8bfd839401103924bd29736560657702328..b5a933b14ed607678b7d908cab372a8b1018c785 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -1,4 +1,4 @@
-export type { BleManager as BlePlxManager } from '@onekeyfe/react-native-ble-plx';
+export type { BleManager as BlePlxManager } from 'react-native-ble-plx';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/@rabby-wallet/rabby-api/dist/types.d.ts b/node_modules/@rabby-wallet/rabby-api/dist/types.d.ts
index d3b20d0..595005f 100644
--- a/node_modules/@rabby-wallet/rabby-api/dist/types.d.ts
+++ b/node_modules/@rabby-wallet/rabby-api/dist/types.d.ts
diff --git a/dist/types.d.ts b/dist/types.d.ts
index d3b20d052e86809557641d0a43537be3ba249029..595005fdae4c165d9a0ea8dce436393a48bd8023 100644
--- a/dist/types.d.ts
+++ b/dist/types.d.ts
@@ -258,14 +258,14 @@ export interface NFTItem {
id: string;
contract_id: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/@react-native-menu/menu/android/build.gradle b/node_modules/@react-native-menu/menu/android/build.gradle
index 90facf0..30dfdbc 100644
--- a/node_modules/@react-native-menu/menu/android/build.gradle
+++ b/node_modules/@react-native-menu/menu/android/build.gradle
diff --git a/android/build.gradle b/android/build.gradle
index 90facf02ac2e5588c135307d120b8777ad463ed3..30dfdbca568112c51e589b6a94194a4336069a25 100644
--- a/android/build.gradle
+++ b/android/build.gradle
@@ -56,7 +56,7 @@ android {
compileSdkVersion getExtOrIntegerDefault("compileSdkVersion")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/eth-rpc-errors/dist/classes.js b/node_modules/eth-rpc-errors/dist/classes.js
index f71061a..1cdf38d 100644
--- a/node_modules/eth-rpc-errors/dist/classes.js
+++ b/node_modules/eth-rpc-errors/dist/classes.js
diff --git a/dist/classes.js b/dist/classes.js
index f71061a82419ec9db9c08c847a85f55ce1f98274..107485363c1ee29218bb5fde75b40b27ebcab6fc 100644
--- a/dist/classes.js
+++ b/dist/classes.js
@@ -32,9 +32,10 @@ class EthereumRpcError extends Error {
if (this.data !== undefined) {
serialized.data = this.data;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
diff --git a/node_modules/nativewind/dist/expo-snack.d.ts b/node_modules/nativewind/dist/expo-snack.d.ts
index 998a7f5..d1cd658 100644
--- a/node_modules/nativewind/dist/expo-snack.d.ts
+++ b/node_modules/nativewind/dist/expo-snack.d.ts
diff --git a/dist/expo-snack.d.ts b/dist/expo-snack.d.ts
index 998a7f5d35b546d6bf3f8adfb402a23e09778ec6..d1cd65868facf094e46d689966322ea2091c12ed 100644
--- a/dist/expo-snack.d.ts
+++ b/dist/expo-snack.d.ts
@@ -1,3 +1,3 @@
-import { ComponentType } from "react";
+import { ComponentType, ComponentProps } from "react";
import { Config } from "tailwindcss";
-export declare function withExpoSnack(Component: ComponentType, theme?: Config["theme"]): () => JSX.Element;
+export declare function withExpoSnack<T = any>(Component: ComponentType<T>, theme?: Config["theme"]): (props: T) => JSX.Element;
diff --git a/node_modules/nativewind/dist/expo-snack.js b/node_modules/nativewind/dist/expo-snack.js
index 928c4e7..06ddec2 100644
--- a/node_modules/nativewind/dist/expo-snack.js
+++ b/node_modules/nativewind/dist/expo-snack.js
diff --git a/dist/expo-snack.js b/dist/expo-snack.js
index 928c4e7988a660129a8f9279a12134cd64e57da8..06ddec2b66a7da16c2499885bb8a598d2865e124 100644
--- a/dist/expo-snack.js
+++ b/dist/expo-snack.js
@@ -49,6 +49,6 @@ function withExpoSnack(Component, theme = {}) {
default: "native",
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
diff --git a/node_modules/react-native-fs/android/src/main/AndroidManifest.xml b/node_modules/react-native-fs/android/src/main/AndroidManifest.xml
index 6e54f65..71b43e0 100644
--- a/node_modules/react-native-fs/android/src/main/AndroidManifest.xml
+++ b/node_modules/react-native-fs/android/src/main/AndroidManifest.xml
diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml
index 6e54f6595b282c8a1169790b785f03e83c9a2077..71b43e0abb8eee6305b113fa84732e1120cb5295 100644
--- a/android/src/main/AndroidManifest.xml
+++ b/android/src/main/AndroidManifest.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Expand Down
Loading

0 comments on commit 24570d9

Please sign in to comment.