@metamask-previews/keyring-internal-api 4.0.2-d9aa015 → 6.0.0-528bbfb

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,30 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [6.0.0]
11
+
12
+ ### Changed
13
+
14
+ - **BREAKING:** The method `signTransaction` can now returns various type of transactions ([#209](https://github.com/MetaMask/accounts/pull/209)), ([#235](https://github.com/MetaMask/accounts/pull/235))
15
+ - Initially was supporting: `Transaction | AccessListEIP2930Transaction | FeeMarketEIP1559Transaction` (types from `@ethereumjs/tx`).
16
+ - Now also supports `BlobEIP4844Transaction | EOACodeEIP7702Transaction` (types from `@ethereumjs/tx`).
17
+ - This new method signature is inherited by `Keyring` which is provided `@metamask/keyring-utils`.
18
+ - Bump `@metamask/keyring-utils` from `^2.3.1` to `^3.0.0` ([#235](https://github.com/MetaMask/accounts/pull/235))
19
+
20
+ ## [5.0.0]
21
+
22
+ ### Changed
23
+
24
+ - **BREAKING:** `EthKeyring` now extends the `Keyring` type from `@metamask/keyring-utils` instead of `Keyring<Json>` from `@metamask/utils` ([#226](https://github.com/MetaMask/accounts/pull/226))
25
+
26
+ ## [4.0.3]
27
+
28
+ ### Changed
29
+
30
+ - Bump `@metamask/keyring-api` from `^17.0.0` to `^17.2.0` ([#212](https://github.com/MetaMask/accounts/pull/212)), ([#220](https://github.com/MetaMask/accounts/pull/220))
31
+ - Use `ts-bridge/cli@0.6.3` ([#214](https://github.com/MetaMask/accounts/pull/214))
32
+ - This new version fixes a bug regarding some missing exports.
33
+
10
34
  ## [4.0.2]
11
35
 
12
36
  ### Changed
@@ -62,7 +86,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
62
86
  - This new version fixes a bug with CJS re-exports.
63
87
  - Initial release ([#24](https://github.com/MetaMask/accounts/pull/24))
64
88
 
65
- [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@4.0.2...HEAD
89
+ [Unreleased]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@6.0.0...HEAD
90
+ [6.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@5.0.0...@metamask/keyring-internal-api@6.0.0
91
+ [5.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@4.0.3...@metamask/keyring-internal-api@5.0.0
92
+ [4.0.3]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@4.0.2...@metamask/keyring-internal-api@4.0.3
66
93
  [4.0.2]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@4.0.1...@metamask/keyring-internal-api@4.0.2
67
94
  [4.0.1]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@4.0.0...@metamask/keyring-internal-api@4.0.1
68
95
  [4.0.0]: https://github.com/MetaMask/accounts/compare/@metamask/keyring-internal-api@3.0.0...@metamask/keyring-internal-api@4.0.0
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
+ /* eslint-disable @typescript-eslint/no-redundant-type-constituents */
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  //# sourceMappingURL=EthKeyring.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"EthKeyring.cjs","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyringExecutionContext,\n EthBaseTransaction,\n EthBaseUserOperation,\n EthUserOperation,\n EthUserOperationPatch,\n} from '@metamask/keyring-api';\nimport type { Json, Keyring } from '@metamask/utils';\n\nexport type EthKeyring<State extends Json> = Keyring<State> & {\n /**\n * Convert a base transaction to a base UserOperation.\n *\n * @param address - Address of the sender.\n * @param transactions - Base transactions to include in the UserOperation.\n * @param context - Keyring execution context.\n * @returns A pseudo-UserOperation that can be used to construct a real.\n */\n prepareUserOperation?(\n address: string,\n transactions: EthBaseTransaction[],\n context: KeyringExecutionContext,\n ): Promise<EthBaseUserOperation>;\n\n /**\n * Patches properties of a UserOperation. Currently, only the\n * `paymasterAndData` can be patched.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to patch.\n * @param context - Keyring execution context.\n * @returns A patch to apply to the UserOperation.\n */\n patchUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<EthUserOperationPatch>;\n\n /**\n * Signs an UserOperation.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to sign.\n * @param context - Keyring execution context.\n * @returns The signature of the UserOperation.\n */\n signUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<string>;\n};\n"]}
1
+ {"version":3,"file":"EthKeyring.cjs","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":";AAAA,sEAAsE","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n\nimport type {\n KeyringExecutionContext,\n EthBaseTransaction,\n EthBaseUserOperation,\n EthUserOperation,\n EthUserOperationPatch,\n} from '@metamask/keyring-api';\nimport type { Keyring } from '@metamask/keyring-utils';\n\nexport type EthKeyring = Keyring & {\n /**\n * Convert a base transaction to a base UserOperation.\n *\n * @param address - Address of the sender.\n * @param transactions - Base transactions to include in the UserOperation.\n * @param context - Keyring execution context.\n * @returns A pseudo-UserOperation that can be used to construct a real.\n */\n prepareUserOperation?(\n address: string,\n transactions: EthBaseTransaction[],\n context: KeyringExecutionContext,\n ): Promise<EthBaseUserOperation>;\n\n /**\n * Patches properties of a UserOperation. Currently, only the\n * `paymasterAndData` can be patched.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to patch.\n * @param context - Keyring execution context.\n * @returns A patch to apply to the UserOperation.\n */\n patchUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<EthUserOperationPatch>;\n\n /**\n * Signs an UserOperation.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to sign.\n * @param context - Keyring execution context.\n * @returns The signature of the UserOperation.\n */\n signUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<string>;\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { KeyringExecutionContext, EthBaseTransaction, EthBaseUserOperation, EthUserOperation, EthUserOperationPatch } from "@metamask/keyring-api";
2
- import type { Json, Keyring } from "@metamask/utils";
3
- export type EthKeyring<State extends Json> = Keyring<State> & {
2
+ import type { Keyring } from "@metamask/keyring-utils";
3
+ export type EthKeyring = Keyring & {
4
4
  /**
5
5
  * Convert a base transaction to a base UserOperation.
6
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"EthKeyring.d.cts","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACtB,8BAA8B;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,wBAAwB;AAErD,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,IAAI,IAAI,OAAO,CAAC,KAAK,CAAC,GAAG;IAC5D;;;;;;;OAOG;IACH,oBAAoB,CAAC,CACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,kBAAkB,EAAE,EAClC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC;;;;;;;;OAQG;IACH,kBAAkB,CAAC,CACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,iBAAiB,CAAC,CAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC"}
1
+ {"version":3,"file":"EthKeyring.d.cts","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACtB,8BAA8B;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,gCAAgC;AAEvD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG;IACjC;;;;;;;OAOG;IACH,oBAAoB,CAAC,CACnB,OAAO,EAAE,MAAM,EACf,YAAY,EAAE,kBAAkB,EAAE,EAClC,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,oBAAoB,CAAC,CAAC;IAEjC;;;;;;;;OAQG;IACH,kBAAkB,CAAC,CACjB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,qBAAqB,CAAC,CAAC;IAElC;;;;;;;OAOG;IACH,iBAAiB,CAAC,CAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { KeyringExecutionContext, EthBaseTransaction, EthBaseUserOperation, EthUserOperation, EthUserOperationPatch } from "@metamask/keyring-api";
2
- import type { Json, Keyring } from "@metamask/utils";
3
- export type EthKeyring<State extends Json> = Keyring<State> & {
2
+ import type { Keyring } from "@metamask/keyring-utils";
3
+ export type EthKeyring = Keyring & {
4
4
  /**
5
5
  * Convert a base transaction to a base UserOperation.
6
6
  *
@@ -1 +1 @@
1
- {"version":3,"file":"EthKeyring.d.mts","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,uBAAuB,EACvB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB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C,CAAC;IAElC;;;;;;;OAOG;IACH,iBAAiB,CAAC,CAChB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,OAAO,CAAC,MAAM,CAAC,CAAC;CACpB,CAAC"}
@@ -1,2 +1,3 @@
1
+ /* eslint-disable @typescript-eslint/no-redundant-type-constituents */
1
2
  export {};
2
3
  //# sourceMappingURL=EthKeyring.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"EthKeyring.mjs","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n KeyringExecutionContext,\n EthBaseTransaction,\n EthBaseUserOperation,\n EthUserOperation,\n EthUserOperationPatch,\n} from '@metamask/keyring-api';\nimport type { Json, Keyring } from '@metamask/utils';\n\nexport type EthKeyring<State extends Json> = Keyring<State> & {\n /**\n * Convert a base transaction to a base UserOperation.\n *\n * @param address - Address of the sender.\n * @param transactions - Base transactions to include in the UserOperation.\n * @param context - Keyring execution context.\n * @returns A pseudo-UserOperation that can be used to construct a real.\n */\n prepareUserOperation?(\n address: string,\n transactions: EthBaseTransaction[],\n context: KeyringExecutionContext,\n ): Promise<EthBaseUserOperation>;\n\n /**\n * Patches properties of a UserOperation. Currently, only the\n * `paymasterAndData` can be patched.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to patch.\n * @param context - Keyring execution context.\n * @returns A patch to apply to the UserOperation.\n */\n patchUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<EthUserOperationPatch>;\n\n /**\n * Signs an UserOperation.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to sign.\n * @param context - Keyring execution context.\n * @returns The signature of the UserOperation.\n */\n signUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<string>;\n};\n"]}
1
+ {"version":3,"file":"EthKeyring.mjs","sourceRoot":"","sources":["../../src/eth/EthKeyring.ts"],"names":[],"mappings":"AAAA,sEAAsE","sourcesContent":["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\n\nimport type {\n KeyringExecutionContext,\n EthBaseTransaction,\n EthBaseUserOperation,\n EthUserOperation,\n EthUserOperationPatch,\n} from '@metamask/keyring-api';\nimport type { Keyring } from '@metamask/keyring-utils';\n\nexport type EthKeyring = Keyring & {\n /**\n * Convert a base transaction to a base UserOperation.\n *\n * @param address - Address of the sender.\n * @param transactions - Base transactions to include in the UserOperation.\n * @param context - Keyring execution context.\n * @returns A pseudo-UserOperation that can be used to construct a real.\n */\n prepareUserOperation?(\n address: string,\n transactions: EthBaseTransaction[],\n context: KeyringExecutionContext,\n ): Promise<EthBaseUserOperation>;\n\n /**\n * Patches properties of a UserOperation. Currently, only the\n * `paymasterAndData` can be patched.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to patch.\n * @param context - Keyring execution context.\n * @returns A patch to apply to the UserOperation.\n */\n patchUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<EthUserOperationPatch>;\n\n /**\n * Signs an UserOperation.\n *\n * @param address - Address of the sender.\n * @param userOp - UserOperation to sign.\n * @param context - Keyring execution context.\n * @returns The signature of the UserOperation.\n */\n signUserOperation?(\n address: string,\n userOp: EthUserOperation,\n context: KeyringExecutionContext,\n ): Promise<string>;\n};\n"]}
package/dist/types.d.cts CHANGED
@@ -275,7 +275,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
275
275
  };
276
276
  address: string;
277
277
  scopes: `${string}:${string}`[];
278
- methods: "sendAndConfirmTransaction"[];
278
+ methods: import("@metamask/keyring-api").SolMethod[];
279
279
  }, {
280
280
  metadata: Struct<{
281
281
  name: string;
@@ -313,8 +313,12 @@ export declare const InternalSolDataAccountStruct: Struct<{
313
313
  address: import("@metamask/superstruct").Struct<string, null>;
314
314
  type: import("@metamask/superstruct").Struct<"solana:data-account", "solana:data-account">;
315
315
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
316
- methods: import("@metamask/superstruct").Struct<"sendAndConfirmTransaction"[], import("@metamask/superstruct").Struct<"sendAndConfirmTransaction", {
317
- sendAndConfirmTransaction: "sendAndConfirmTransaction";
316
+ methods: import("@metamask/superstruct").Struct<import("@metamask/keyring-api").SolMethod[], import("@metamask/superstruct").Struct<import("@metamask/keyring-api").SolMethod, {
317
+ sendAndConfirmTransaction: import("@metamask/keyring-api").SolMethod.SendAndConfirmTransaction;
318
+ signAndSendTransaction: import("@metamask/keyring-api").SolMethod.SignAndSendTransaction;
319
+ signTransaction: import("@metamask/keyring-api").SolMethod.SignTransaction;
320
+ signMessage: import("@metamask/keyring-api").SolMethod.SignMessage;
321
+ signIn: import("@metamask/keyring-api").SolMethod.SignIn;
318
322
  }>>;
319
323
  id: import("@metamask/superstruct").Struct<string, null>;
320
324
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.cts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EACd,cAAc,EAEd,cAAc,EAKf,8BAA8B;AAE/B,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAG3D,MAAM,MAAM,mBAAmB,GAC3B,cAAc,GACd,cAAc,GACd,cAAc,CAAC;AAEnB,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBxC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGtC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1C,CAAC;AAEH,eAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
package/dist/types.d.mts CHANGED
@@ -275,7 +275,7 @@ export declare const InternalSolDataAccountStruct: Struct<{
275
275
  };
276
276
  address: string;
277
277
  scopes: `${string}:${string}`[];
278
- methods: "sendAndConfirmTransaction"[];
278
+ methods: import("@metamask/keyring-api").SolMethod[];
279
279
  }, {
280
280
  metadata: Struct<{
281
281
  name: string;
@@ -313,8 +313,12 @@ export declare const InternalSolDataAccountStruct: Struct<{
313
313
  address: import("@metamask/superstruct").Struct<string, null>;
314
314
  type: import("@metamask/superstruct").Struct<"solana:data-account", "solana:data-account">;
315
315
  scopes: import("@metamask/superstruct").Struct<`${string}:${string}`[], import("@metamask/superstruct").Struct<`${string}:${string}`, null>>;
316
- methods: import("@metamask/superstruct").Struct<"sendAndConfirmTransaction"[], import("@metamask/superstruct").Struct<"sendAndConfirmTransaction", {
317
- sendAndConfirmTransaction: "sendAndConfirmTransaction";
316
+ methods: import("@metamask/superstruct").Struct<import("@metamask/keyring-api").SolMethod[], import("@metamask/superstruct").Struct<import("@metamask/keyring-api").SolMethod, {
317
+ sendAndConfirmTransaction: import("@metamask/keyring-api").SolMethod.SendAndConfirmTransaction;
318
+ signAndSendTransaction: import("@metamask/keyring-api").SolMethod.SignAndSendTransaction;
319
+ signTransaction: import("@metamask/keyring-api").SolMethod.SignTransaction;
320
+ signMessage: import("@metamask/keyring-api").SolMethod.SignMessage;
321
+ signIn: import("@metamask/keyring-api").SolMethod.SignIn;
318
322
  }>>;
319
323
  id: import("@metamask/superstruct").Struct<string, null>;
320
324
  options: import("@metamask/superstruct").Struct<Record<string, import("@metamask/utils").Json>, null>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.mts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,cA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,OAAO,+BAA+B,CACvC,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAC1C,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAEhF,eAAO,MAAM,sBAAsB,EAAE,MAAM,CACzC,MAAM,EACJ,MAAM,CAAC,qBAAqB,CAAC,GAC7B,MAAM,CAAC,yBAAyB,CAAC,GACjC,MAAM,CAAC,wBAAwB,CAAC,GAChC,MAAM,CAAC,sBAAsB,CAAC,CAMjC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAC5B,qBAAqB,GACrB,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,CAAC;AAE3B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH;;;;;GAKG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/keyring-internal-api",
3
- "version": "4.0.2-d9aa015",
3
+ "version": "6.0.0-528bbfb",
4
4
  "description": "MetaMask Keyring Internal API",
5
5
  "keywords": [
6
6
  "metamask",
@@ -45,16 +45,15 @@
45
45
  "test:watch": "jest --watch"
46
46
  },
47
47
  "dependencies": {
48
- "@metamask/keyring-api": "17.0.0",
49
- "@metamask/keyring-utils": "2.0.0",
50
- "@metamask/superstruct": "^3.1.0",
51
- "@metamask/utils": "^11.1.0"
48
+ "@metamask/keyring-api": "17.2.1",
49
+ "@metamask/keyring-utils": "3.0.0",
50
+ "@metamask/superstruct": "^3.1.0"
52
51
  },
53
52
  "devDependencies": {
54
53
  "@lavamoat/allow-scripts": "^3.2.1",
55
54
  "@lavamoat/preinstall-always-fail": "^2.1.0",
56
55
  "@metamask/auto-changelog": "^3.4.4",
57
- "@ts-bridge/cli": "^0.6.1",
56
+ "@ts-bridge/cli": "^0.6.3",
58
57
  "@types/jest": "^29.5.12",
59
58
  "@types/node": "^20.12.12",
60
59
  "deepmerge": "^4.2.2",