Skip to content

Commit 7e60962

Browse files
committed
TEST: bump @metamask/rpc-errors to 5.1.1 patched with github.com/MetaMask/rpc-errors/pull/102
1 parent 465455d commit 7e60962

File tree

3 files changed

+327
-6
lines changed

3 files changed

+327
-6
lines changed
Lines changed: 308 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,308 @@
1+
diff --git a/dist/classes.d.ts b/dist/classes.d.ts
2+
index 46c2ef8eb999c0063594277974b29c8f239a6dcb..89b916c2c466ec4500a3c7c8f600fff28f9db2e5 100644
3+
--- a/dist/classes.d.ts
4+
+++ b/dist/classes.d.ts
5+
@@ -1,5 +1,5 @@
6+
-import { JsonRpcError as SerializedJsonRpcError } from '@metamask/utils';
7+
-import { DataWithOptionalCause } from './utils';
8+
+import type { JsonRpcError as SerializedJsonRpcError } from '@metamask/utils';
9+
+import type { DataWithOptionalCause, OptionalDataWithOptionalCause } from './utils';
10+
export type { SerializedJsonRpcError };
11+
/**
12+
* Error subclass implementing JSON RPC 2.0 errors and Ethereum RPC errors
13+
@@ -7,10 +7,10 @@ export type { SerializedJsonRpcError };
14+
*
15+
* Permits any integer error code.
16+
*/
17+
-export declare class JsonRpcError<T extends DataWithOptionalCause> extends Error {
18+
+export declare class JsonRpcError<Data extends OptionalDataWithOptionalCause> extends Error {
19+
code: number;
20+
- data?: T;
21+
- constructor(code: number, message: string, data?: T);
22+
+ data?: Data;
23+
+ constructor(code: number, message: string, data?: Data);
24+
/**
25+
* Get the error as JSON-serializable object.
26+
*
27+
@@ -29,7 +29,7 @@ export declare class JsonRpcError<T extends DataWithOptionalCause> extends Error
28+
* Error subclass implementing Ethereum Provider errors per EIP-1193.
29+
* Permits integer error codes in the [ 1000 <= 4999 ] range.
30+
*/
31+
-export declare class EthereumProviderError<T extends DataWithOptionalCause> extends JsonRpcError<T> {
32+
+export declare class EthereumProviderError<Data extends DataWithOptionalCause> extends JsonRpcError<Data> {
33+
/**
34+
* Create an Ethereum Provider JSON-RPC error.
35+
*
36+
@@ -38,5 +38,6 @@ export declare class EthereumProviderError<T extends DataWithOptionalCause> exte
37+
* @param message - The JSON-RPC error message.
38+
* @param data - Optional data to include in the error.
39+
*/
40+
- constructor(code: number, message: string, data?: T);
41+
+ constructor(code: number, message: string, data?: Data);
42+
}
43+
+//# sourceMappingURL=classes.d.ts.map
44+
\ No newline at end of file
45+
diff --git a/dist/classes.d.ts.map b/dist/classes.d.ts.map
46+
new file mode 100644
47+
index 0000000000000000000000000000000000000000..c91ccfbd734c92b1a40af2a5603dabc93b060330
48+
--- /dev/null
49+
+++ b/dist/classes.d.ts.map
50+
@@ -0,0 +1 @@
51+
+{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../src/classes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,IAAI,sBAAsB,EACvC,MAAM,iBAAiB,CAAC;AAIzB,OAAO,KAAK,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,SAAS,CAAC;AAGpF,YAAY,EAAE,sBAAsB,EAAE,CAAC;AAEvC;;;;;GAKG;AACH,qBAAa,YAAY,CAAC,IAAI,SAAS,6BAA6B,CAAE,SAAQ,KAAK;IAC1E,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,CAAC,EAAE,IAAI,CAAC;gBAEP,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI;IAgBtD;;;;OAIG;IACH,SAAS,IAAI,sBAAsB;IAwBnC;;;;;OAKG;IACH,QAAQ,IAAI,MAAM;CAGnB;AAED;;;GAGG;AACH,qBAAa,qBAAqB,CAChC,IAAI,SAAS,qBAAqB,CAClC,SAAQ,YAAY,CAAC,IAAI,CAAC;IAC1B;;;;;;;OAOG;gBACS,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI;CASvD"}
52+
\ No newline at end of file
53+
diff --git a/dist/error-constants.d.ts b/dist/error-constants.d.ts
54+
index 848a90179761b64ffda108768bd96d4e5d2c7a76..89f65a67f39d727d43fcc72a7c591533c42e08dc 100644
55+
--- a/dist/error-constants.d.ts
56+
+++ b/dist/error-constants.d.ts
57+
@@ -86,3 +86,4 @@ export declare const errorValues: {
58+
message: string;
59+
};
60+
};
61+
+//# sourceMappingURL=error-constants.d.ts.map
62+
\ No newline at end of file
63+
diff --git a/dist/error-constants.d.ts.map b/dist/error-constants.d.ts.map
64+
new file mode 100644
65+
index 0000000000000000000000000000000000000000..8181d55d6612a9e172bd3c044da8f31ce7f6240b
66+
--- /dev/null
67+
+++ b/dist/error-constants.d.ts.map
68+
@@ -0,0 +1 @@
69+
+{"version":3,"file":"error-constants.d.ts","sourceRoot":"","sources":["../../src/error-constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAqBtB,CAAC;AAGF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEvB,CAAC"}
70+
\ No newline at end of file
71+
diff --git a/dist/errors.d.ts b/dist/errors.d.ts
72+
index b4653125ce748f7da32ced278cc60f726c3cb6ee..81595b915480a92c1fdfa429f161e07b788cae8b 100644
73+
--- a/dist/errors.d.ts
74+
+++ b/dist/errors.d.ts
75+
@@ -1,14 +1,14 @@
76+
import { JsonRpcError, EthereumProviderError } from './classes';
77+
-import { DataWithOptionalCause } from './utils';
78+
-type EthereumErrorOptions<T extends DataWithOptionalCause> = {
79+
+import type { DataWithOptionalCause } from './utils';
80+
+type EthereumErrorOptions<Data extends DataWithOptionalCause> = {
81+
message?: string;
82+
- data?: T;
83+
+ data?: Data;
84+
};
85+
-type ServerErrorOptions<T extends DataWithOptionalCause> = {
86+
+type ServerErrorOptions<Data extends DataWithOptionalCause> = {
87+
code: number;
88+
-} & EthereumErrorOptions<T>;
89+
-type CustomErrorArg<T extends DataWithOptionalCause> = ServerErrorOptions<T>;
90+
-type JsonRpcErrorsArg<T extends DataWithOptionalCause> = EthereumErrorOptions<T> | string;
91+
+} & EthereumErrorOptions<Data>;
92+
+type CustomErrorArg<Data extends DataWithOptionalCause> = ServerErrorOptions<Data>;
93+
+type JsonRpcErrorsArg<Data extends DataWithOptionalCause> = EthereumErrorOptions<Data> | string;
94+
export declare const rpcErrors: {
95+
/**
96+
* Get a JSON RPC 2.0 Parse (-32700) error.
97+
@@ -16,35 +16,35 @@ export declare const rpcErrors: {
98+
* @param arg - The error message or options bag.
99+
* @returns An instance of the {@link JsonRpcError} class.
100+
*/
101+
- parse: <T extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T> | undefined) => JsonRpcError<T>;
102+
+ parse: <Data extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data> | undefined) => JsonRpcError<Data>;
103+
/**
104+
* Get a JSON RPC 2.0 Invalid Request (-32600) error.
105+
*
106+
* @param arg - The error message or options bag.
107+
* @returns An instance of the {@link JsonRpcError} class.
108+
*/
109+
- invalidRequest: <T_1 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_1> | undefined) => JsonRpcError<T_1>;
110+
+ invalidRequest: <Data_1 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_1> | undefined) => JsonRpcError<Data_1>;
111+
/**
112+
* Get a JSON RPC 2.0 Invalid Params (-32602) error.
113+
*
114+
* @param arg - The error message or options bag.
115+
* @returns An instance of the {@link JsonRpcError} class.
116+
*/
117+
- invalidParams: <T_2 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_2> | undefined) => JsonRpcError<T_2>;
118+
+ invalidParams: <Data_2 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_2> | undefined) => JsonRpcError<Data_2>;
119+
/**
120+
* Get a JSON RPC 2.0 Method Not Found (-32601) error.
121+
*
122+
* @param arg - The error message or options bag.
123+
* @returns An instance of the {@link JsonRpcError} class.
124+
*/
125+
- methodNotFound: <T_3 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_3> | undefined) => JsonRpcError<T_3>;
126+
+ methodNotFound: <Data_3 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_3> | undefined) => JsonRpcError<Data_3>;
127+
/**
128+
* Get a JSON RPC 2.0 Internal (-32603) error.
129+
*
130+
* @param arg - The error message or options bag.
131+
* @returns An instance of the {@link JsonRpcError} class.
132+
*/
133+
- internal: <T_4 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_4> | undefined) => JsonRpcError<T_4>;
134+
+ internal: <Data_4 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_4> | undefined) => JsonRpcError<Data_4>;
135+
/**
136+
* Get a JSON RPC 2.0 Server error.
137+
* Permits integer error codes in the [ -32099 <= -32005 ] range.
138+
@@ -53,49 +53,49 @@ export declare const rpcErrors: {
139+
* @param opts - The error options bag.
140+
* @returns An instance of the {@link JsonRpcError} class.
141+
*/
142+
- server: <T_5 extends DataWithOptionalCause>(opts: ServerErrorOptions<T_5>) => JsonRpcError<T_5>;
143+
+ server: <Data_5 extends DataWithOptionalCause>(opts: ServerErrorOptions<Data_5>) => JsonRpcError<Data_5>;
144+
/**
145+
* Get an Ethereum JSON RPC Invalid Input (-32000) error.
146+
*
147+
* @param arg - The error message or options bag.
148+
* @returns An instance of the {@link JsonRpcError} class.
149+
*/
150+
- invalidInput: <T_6 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_6> | undefined) => JsonRpcError<T_6>;
151+
+ invalidInput: <Data_6 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_6> | undefined) => JsonRpcError<Data_6>;
152+
/**
153+
* Get an Ethereum JSON RPC Resource Not Found (-32001) error.
154+
*
155+
* @param arg - The error message or options bag.
156+
* @returns An instance of the {@link JsonRpcError} class.
157+
*/
158+
- resourceNotFound: <T_7 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_7> | undefined) => JsonRpcError<T_7>;
159+
+ resourceNotFound: <Data_7 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_7> | undefined) => JsonRpcError<Data_7>;
160+
/**
161+
* Get an Ethereum JSON RPC Resource Unavailable (-32002) error.
162+
*
163+
* @param arg - The error message or options bag.
164+
* @returns An instance of the {@link JsonRpcError} class.
165+
*/
166+
- resourceUnavailable: <T_8 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_8> | undefined) => JsonRpcError<T_8>;
167+
+ resourceUnavailable: <Data_8 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_8> | undefined) => JsonRpcError<Data_8>;
168+
/**
169+
* Get an Ethereum JSON RPC Transaction Rejected (-32003) error.
170+
*
171+
* @param arg - The error message or options bag.
172+
* @returns An instance of the {@link JsonRpcError} class.
173+
*/
174+
- transactionRejected: <T_9 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_9> | undefined) => JsonRpcError<T_9>;
175+
+ transactionRejected: <Data_9 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_9> | undefined) => JsonRpcError<Data_9>;
176+
/**
177+
* Get an Ethereum JSON RPC Method Not Supported (-32004) error.
178+
*
179+
* @param arg - The error message or options bag.
180+
* @returns An instance of the {@link JsonRpcError} class.
181+
*/
182+
- methodNotSupported: <T_10 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_10> | undefined) => JsonRpcError<T_10>;
183+
+ methodNotSupported: <Data_10 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_10> | undefined) => JsonRpcError<Data_10>;
184+
/**
185+
* Get an Ethereum JSON RPC Limit Exceeded (-32005) error.
186+
*
187+
* @param arg - The error message or options bag.
188+
* @returns An instance of the {@link JsonRpcError} class.
189+
*/
190+
- limitExceeded: <T_11 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_11> | undefined) => JsonRpcError<T_11>;
191+
+ limitExceeded: <Data_11 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_11> | undefined) => JsonRpcError<Data_11>;
192+
};
193+
export declare const providerErrors: {
194+
/**
195+
@@ -104,41 +104,42 @@ export declare const providerErrors: {
196+
* @param arg - The error message or options bag.
197+
* @returns An instance of the {@link EthereumProviderError} class.
198+
*/
199+
- userRejectedRequest: <T extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T> | undefined) => EthereumProviderError<T>;
200+
+ userRejectedRequest: <Data extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data> | undefined) => EthereumProviderError<Data>;
201+
/**
202+
* Get an Ethereum Provider Unauthorized (4100) error.
203+
*
204+
* @param arg - The error message or options bag.
205+
* @returns An instance of the {@link EthereumProviderError} class.
206+
*/
207+
- unauthorized: <T_1 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_1> | undefined) => EthereumProviderError<T_1>;
208+
+ unauthorized: <Data_1 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_1> | undefined) => EthereumProviderError<Data_1>;
209+
/**
210+
* Get an Ethereum Provider Unsupported Method (4200) error.
211+
*
212+
* @param arg - The error message or options bag.
213+
* @returns An instance of the {@link EthereumProviderError} class.
214+
*/
215+
- unsupportedMethod: <T_2 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_2> | undefined) => EthereumProviderError<T_2>;
216+
+ unsupportedMethod: <Data_2 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_2> | undefined) => EthereumProviderError<Data_2>;
217+
/**
218+
* Get an Ethereum Provider Not Connected (4900) error.
219+
*
220+
* @param arg - The error message or options bag.
221+
* @returns An instance of the {@link EthereumProviderError} class.
222+
*/
223+
- disconnected: <T_3 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_3> | undefined) => EthereumProviderError<T_3>;
224+
+ disconnected: <Data_3 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_3> | undefined) => EthereumProviderError<Data_3>;
225+
/**
226+
* Get an Ethereum Provider Chain Not Connected (4901) error.
227+
*
228+
* @param arg - The error message or options bag.
229+
* @returns An instance of the {@link EthereumProviderError} class.
230+
*/
231+
- chainDisconnected: <T_4 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<T_4> | undefined) => EthereumProviderError<T_4>;
232+
+ chainDisconnected: <Data_4 extends DataWithOptionalCause>(arg?: JsonRpcErrorsArg<Data_4> | undefined) => EthereumProviderError<Data_4>;
233+
/**
234+
* Get a custom Ethereum Provider error.
235+
*
236+
* @param opts - The error options bag.
237+
* @returns An instance of the {@link EthereumProviderError} class.
238+
*/
239+
- custom: <T_5 extends DataWithOptionalCause>(opts: CustomErrorArg<T_5>) => EthereumProviderError<T_5>;
240+
+ custom: <Data_5 extends DataWithOptionalCause>(opts: CustomErrorArg<Data_5>) => EthereumProviderError<Data_5>;
241+
};
242+
export {};
243+
+//# sourceMappingURL=errors.d.ts.map
244+
\ No newline at end of file
245+
diff --git a/dist/errors.d.ts.map b/dist/errors.d.ts.map
246+
new file mode 100644
247+
index 0000000000000000000000000000000000000000..7956323634014653a48bc48ce4406c7a2db2689d
248+
--- /dev/null
249+
+++ b/dist/errors.d.ts.map
250+
@@ -0,0 +1 @@
251+
+{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAEhE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAGrD,KAAK,oBAAoB,CAAC,IAAI,SAAS,qBAAqB,IAAI;IAC9D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;AAEF,KAAK,kBAAkB,CAAC,IAAI,SAAS,qBAAqB,IAAI;IAC5D,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,oBAAoB,CAAC,IAAI,CAAC,CAAC;AAE/B,KAAK,cAAc,CAAC,IAAI,SAAS,qBAAqB,IACpD,kBAAkB,CAAC,IAAI,CAAC,CAAC;AAE3B,KAAK,gBAAgB,CAAC,IAAI,SAAS,qBAAqB,IACpD,oBAAoB,CAAC,IAAI,CAAC,GAC1B,MAAM,CAAC;AAEX,eAAO,MAAM,SAAS;IACpB;;;;;OAKG;;IAIH;;;;;OAKG;;IAKH;;;;;OAKG;;IAKH;;;;;OAKG;;IAKH;;;;;OAKG;;IAKH;;;;;;;OAOG;;IAkBH;;;;;OAKG;;IAKH;;;;;OAKG;;IAKH;;;;;OAKG;;IAKH;;;;;OAKG;;IAKH;;;;;OAKG;;IAKH;;;;;OAKG;;CAIJ,CAAC;AAEF,eAAO,MAAM,cAAc;IACzB;;;;;OAKG;;IAOH;;;;;OAKG;;IAOH;;;;;OAKG;;IAOH;;;;;OAKG;;IAOH;;;;;OAKG;;IAOH;;;;;OAKG;;CAeJ,CAAC"}
252+
\ No newline at end of file
253+
diff --git a/dist/index.d.ts b/dist/index.d.ts
254+
index 9a28c4a55898eb20b2bde225eb5ddb61f767faf1..aeec7abf5aa8efdc4bdc42f33a62585dbe85f755 100644
255+
--- a/dist/index.d.ts
256+
+++ b/dist/index.d.ts
257+
@@ -3,3 +3,4 @@ export { serializeCause, serializeError, getMessageFromCode } from './utils';
258+
export type { DataWithOptionalCause } from './utils';
259+
export { rpcErrors, providerErrors } from './errors';
260+
export { errorCodes } from './error-constants';
261+
+//# sourceMappingURL=index.d.ts.map
262+
\ No newline at end of file
263+
diff --git a/dist/index.d.ts.map b/dist/index.d.ts.map
264+
new file mode 100644
265+
index 0000000000000000000000000000000000000000..de9a76f95d32507790e23214b6aac52a0ba8c36d
266+
--- /dev/null
267+
+++ b/dist/index.d.ts.map
268+
@@ -0,0 +1 @@
269+
+{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAC7E,YAAY,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC"}
270+
\ No newline at end of file
271+
diff --git a/dist/utils.d.ts b/dist/utils.d.ts
272+
index f2b6a97b759c7b451c7310813efe92c75a9a9552..708c96206646881a6a4e2ab8e4afec18af592135 100644
273+
--- a/dist/utils.d.ts
274+
+++ b/dist/utils.d.ts
275+
@@ -1,4 +1,4 @@
276+
-import { Json, JsonRpcError as SerializedJsonRpcError } from '@metamask/utils';
277+
+import type { Json, JsonRpcError as SerializedJsonRpcError } from '@metamask/utils';
278+
/**
279+
* A data object, that must be either:
280+
*
281+
@@ -10,6 +10,13 @@ export type DataWithOptionalCause = Json | {
282+
[key: string]: Json | unknown;
283+
cause: unknown;
284+
};
285+
+/**
286+
+ * A data object, that must be either:
287+
+ *
288+
+ * - A valid DataWithOptionalCause value.
289+
+ * - undefined.
290+
+ */
291+
+export type OptionalDataWithOptionalCause = undefined | DataWithOptionalCause;
292+
export declare const JSON_RPC_SERVER_ERROR_MESSAGE = "Unspecified server error.";
293+
/**
294+
* Gets the message for a given code, or a fallback message if the code has
295+
@@ -54,3 +61,4 @@ export declare function serializeError(error: unknown, { fallbackError, shouldIn
296+
* @returns A JSON-serializable object containing as much information about the original error as possible.
297+
*/
298+
export declare function serializeCause(error: unknown): Json;
299+
+//# sourceMappingURL=utils.d.ts.map
300+
\ No newline at end of file
301+
diff --git a/dist/utils.d.ts.map b/dist/utils.d.ts.map
302+
new file mode 100644
303+
index 0000000000000000000000000000000000000000..70229c6acfa5e992648e4976de461e13c2b7de52
304+
--- /dev/null
305+
+++ b/dist/utils.d.ts.map
306+
@@ -0,0 +1 @@
307+
+{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACJ,YAAY,IAAI,sBAAsB,EAEvC,MAAM,iBAAiB,CAAC;AAUzB;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAC7B,IAAI,GACJ;IAIE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC;IAC9B,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;AAEN;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,GACrC,SAAS,GACT,qBAAqB,CAAC;AAU1B,eAAO,MAAM,6BAA6B,8BAA8B,CAAC;AAIzE;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,OAAO,EACb,eAAe,GAAE,MAAyB,GACzC,MAAM,CAaR;AAED;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,MAAM,CAEzD;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,OAAO,EACd,EAAE,aAA8B,EAAE,kBAAyB,EAAE;;;CAAK,GACjE,sBAAsB,CAcxB;AA+CD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAmBnD"}
308+
\ No newline at end of file

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"test:watch": "jest --watch"
3535
},
3636
"dependencies": {
37-
"@metamask/rpc-errors": "^5.0.0",
37+
"@metamask/rpc-errors": "^5.1.1",
3838
"@metamask/safe-event-emitter": "^3.0.0",
3939
"@metamask/utils": "^5.0.2"
4040
},
@@ -79,5 +79,8 @@
7979
"allowScripts": {
8080
"@lavamoat/preinstall-always-fail": false
8181
}
82+
},
83+
"resolutions": {
84+
"@metamask/rpc-errors@^5.1.1": "patch:@metamask/rpc-errors@npm%3A5.1.1#./.yarn/patches/@metamask-rpc-errors-npm-5.1.1-dc76c26803.patch"
8285
}
8386
}

0 commit comments

Comments
 (0)