From 359935bba386193dc4d11df15ae053cfdf2b7c57 Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Thu, 7 Sep 2023 14:14:34 +0000 Subject: [PATCH] deps(snaps-controllers,snaps-utils): @metamask/snaps-registry@^1.2.2->^2.0.0 --- packages/snaps-controllers/package.json | 2 +- .../src/snaps/registry/json.ts | 1 + packages/snaps-utils/package.json | 2 +- yarn.lock | 28 +++++-------------- 4 files changed, 10 insertions(+), 23 deletions(-) diff --git a/packages/snaps-controllers/package.json b/packages/snaps-controllers/package.json index 51523e231f..5c8e7e125d 100644 --- a/packages/snaps-controllers/package.json +++ b/packages/snaps-controllers/package.json @@ -51,7 +51,7 @@ "@metamask/rpc-errors": "^6.0.0", "@metamask/rpc-methods": "workspace:^", "@metamask/snaps-execution-environments": "workspace:^", - "@metamask/snaps-registry": "^1.2.2", + "@metamask/snaps-registry": "^2.0.0", "@metamask/snaps-utils": "workspace:^", "@metamask/utils": "^8.1.0", "@xstate/fsm": "^2.0.0", diff --git a/packages/snaps-controllers/src/snaps/registry/json.ts b/packages/snaps-controllers/src/snaps/registry/json.ts index dc3cea2d2f..f5754b19bb 100644 --- a/packages/snaps-controllers/src/snaps/registry/json.ts +++ b/packages/snaps-controllers/src/snaps/registry/json.ts @@ -228,6 +228,7 @@ export class JsonSnapsRegistry extends BaseController< blocked.id === snapId && satisfiesVersionRange( snapInfo.version, + // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion blocked.versionRange as SemVerRange, ) ); diff --git a/packages/snaps-utils/package.json b/packages/snaps-utils/package.json index cd05189a55..f168408e23 100644 --- a/packages/snaps-utils/package.json +++ b/packages/snaps-utils/package.json @@ -72,7 +72,7 @@ "@metamask/key-tree": "^9.0.0", "@metamask/permission-controller": "^4.1.0", "@metamask/rpc-errors": "^6.0.0", - "@metamask/snaps-registry": "^1.2.2", + "@metamask/snaps-registry": "^2.0.0", "@metamask/snaps-ui": "workspace:^", "@metamask/utils": "^8.1.0", "@noble/hashes": "^1.3.1", diff --git a/yarn.lock b/yarn.lock index 91e0d2a99e..cc273e7c85 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5045,7 +5045,7 @@ __metadata: "@metamask/rpc-errors": ^6.0.0 "@metamask/rpc-methods": "workspace:^" "@metamask/snaps-execution-environments": "workspace:^" - "@metamask/snaps-registry": ^1.2.2 + "@metamask/snaps-registry": ^2.0.0 "@metamask/snaps-utils": "workspace:^" "@metamask/template-snap": ^0.7.0 "@metamask/utils": ^8.1.0 @@ -5245,14 +5245,14 @@ __metadata: languageName: unknown linkType: soft -"@metamask/snaps-registry@npm:^1.2.2": - version: 1.2.2 - resolution: "@metamask/snaps-registry@npm:1.2.2" +"@metamask/snaps-registry@npm:^2.0.0": + version: 2.0.0 + resolution: "@metamask/snaps-registry@npm:2.0.0" dependencies: - "@metamask/utils": ^7.1.0 + "@metamask/utils": ^8.1.0 "@noble/secp256k1": ^1.7.1 superstruct: ^1.0.3 - checksum: 02289b349390466158c4842c6398b56c0a6352258657eb186331636774a894782607aa0c4e4c772689c89248856c325d914a0d8c8f4b739e9324d60b0fb92da1 + checksum: 621baf98c53c490d4bf8bf784910943e3c147cc2abdbcf5ea56ae6fcd45a1a412da79b0ef778b8f9d8c46b9272068d3dd5909be6691579590d2632c6baee8992 languageName: node linkType: hard @@ -5493,7 +5493,7 @@ __metadata: "@metamask/permission-controller": ^4.1.0 "@metamask/post-message-stream": ^7.0.0 "@metamask/rpc-errors": ^6.0.0 - "@metamask/snaps-registry": ^1.2.2 + "@metamask/snaps-registry": ^2.0.0 "@metamask/snaps-ui": "workspace:^" "@metamask/utils": ^8.1.0 "@noble/hashes": ^1.3.1 @@ -5714,20 +5714,6 @@ __metadata: languageName: node linkType: hard -"@metamask/utils@npm:^7.1.0": - version: 7.1.0 - resolution: "@metamask/utils@npm:7.1.0" - dependencies: - "@ethereumjs/tx": ^4.1.2 - "@noble/hashes": ^1.3.1 - "@types/debug": ^4.1.7 - debug: ^4.3.4 - semver: ^7.5.4 - superstruct: ^1.0.3 - checksum: 165ed378f4ac5ca42c241d32154e15b609f9e772a9dc069b870613c005dc0e7e4fa92204c30e98ec2317f1e38c77747057671a26fd0a5ba36a288e3c9ef03790 - languageName: node - linkType: hard - "@metamask/utils@npm:^8.0.0, @metamask/utils@npm:^8.1.0": version: 8.1.0 resolution: "@metamask/utils@npm:8.1.0"