@metamask/snaps-registry
Advanced tools
+9
-1
@@ -9,2 +9,9 @@ # Changelog | ||
| ## [3.0.1] | ||
| ### Changed | ||
| - Bump `@metamask/utils` from `8.2.1` to `8.3.0` ([#374](https://github.com/MetaMask/snaps-registry/pull/374)) | ||
| ### Fixed | ||
| - Fix registry signature validation ([#471](https://github.com/MetaMask/snaps-registry/pull/471)) | ||
| ## [3.0.0] | ||
@@ -59,3 +66,4 @@ ### Changed | ||
| [Unreleased]: https://github.com/MetaMask/snaps-registry/compare/v3.0.0...HEAD | ||
| [Unreleased]: https://github.com/MetaMask/snaps-registry/compare/v3.0.1...HEAD | ||
| [3.0.1]: https://github.com/MetaMask/snaps-registry/compare/v3.0.0...v3.0.1 | ||
| [3.0.0]: https://github.com/MetaMask/snaps-registry/compare/v2.1.1...v3.0.0 | ||
@@ -62,0 +70,0 @@ [2.1.1]: https://github.com/MetaMask/snaps-registry/compare/v2.1.0...v2.1.1 |
+46
-0
@@ -22,2 +22,3 @@ import type { Infer } from 'superstruct'; | ||
| contact?: string | undefined; | ||
| keyRecovery?: string | undefined; | ||
| }, { | ||
@@ -27,4 +28,12 @@ knowledgeBase: import("superstruct").Struct<string | undefined, null>; | ||
| contact: import("superstruct").Struct<string | undefined, null>; | ||
| keyRecovery: import("superstruct").Struct<string | undefined, null>; | ||
| }>; | ||
| export declare type Support = Infer<typeof SupportStruct>; | ||
| export declare const AdditionalSourceCodeStruct: import("superstruct").Struct<{ | ||
| url: string; | ||
| name: string; | ||
| }, { | ||
| name: import("superstruct").Struct<string, null>; | ||
| url: import("superstruct").Struct<string, null>; | ||
| }>; | ||
| export declare const VerifiedSnapStruct: import("superstruct").Struct<{ | ||
@@ -54,2 +63,3 @@ id: string; | ||
| contact?: string | undefined; | ||
| keyRecovery?: string | undefined; | ||
| } | undefined; | ||
@@ -59,2 +69,7 @@ sourceCode?: string | undefined; | ||
| privacyPolicy?: string | undefined; | ||
| termsOfUse?: string | undefined; | ||
| additionalSourceCode?: { | ||
| url: string; | ||
| name: string; | ||
| }[] | undefined; | ||
| }; | ||
@@ -88,2 +103,3 @@ versions: Record<import("@metamask/utils").SemVerVersion, { | ||
| contact?: string | undefined; | ||
| keyRecovery?: string | undefined; | ||
| } | undefined; | ||
@@ -93,2 +109,7 @@ sourceCode?: string | undefined; | ||
| privacyPolicy?: string | undefined; | ||
| termsOfUse?: string | undefined; | ||
| additionalSourceCode?: { | ||
| url: string; | ||
| name: string; | ||
| }[] | undefined; | ||
| }, { | ||
@@ -131,2 +152,3 @@ name: import("superstruct").Struct<string, null>; | ||
| contact?: string | undefined; | ||
| keyRecovery?: string | undefined; | ||
| } | undefined, { | ||
@@ -136,2 +158,3 @@ knowledgeBase: import("superstruct").Struct<string | undefined, null>; | ||
| contact: import("superstruct").Struct<string | undefined, null>; | ||
| keyRecovery: import("superstruct").Struct<string | undefined, null>; | ||
| }>; | ||
@@ -142,2 +165,13 @@ sourceCode: import("superstruct").Struct<string | undefined, null>; | ||
| privacyPolicy: import("superstruct").Struct<string | undefined, null>; | ||
| termsOfUse: import("superstruct").Struct<string | undefined, null>; | ||
| additionalSourceCode: import("superstruct").Struct<{ | ||
| url: string; | ||
| name: string; | ||
| }[] | undefined, import("superstruct").Struct<{ | ||
| url: string; | ||
| name: string; | ||
| }, { | ||
| name: import("superstruct").Struct<string, null>; | ||
| url: import("superstruct").Struct<string, null>; | ||
| }>>; | ||
| }>; | ||
@@ -196,2 +230,3 @@ versions: import("superstruct").Struct<Record<import("@metamask/utils").SemVerVersion, { | ||
| contact?: string | undefined; | ||
| keyRecovery?: string | undefined; | ||
| } | undefined; | ||
@@ -201,2 +236,7 @@ sourceCode?: string | undefined; | ||
| privacyPolicy?: string | undefined; | ||
| termsOfUse?: string | undefined; | ||
| additionalSourceCode?: { | ||
| url: string; | ||
| name: string; | ||
| }[] | undefined; | ||
| }; | ||
@@ -246,2 +286,3 @@ versions: Record<import("@metamask/utils").SemVerVersion, { | ||
| contact?: string | undefined; | ||
| keyRecovery?: string | undefined; | ||
| } | undefined; | ||
@@ -251,2 +292,7 @@ sourceCode?: string | undefined; | ||
| privacyPolicy?: string | undefined; | ||
| termsOfUse?: string | undefined; | ||
| additionalSourceCode?: { | ||
| url: string; | ||
| name: string; | ||
| }[] | undefined; | ||
| }; | ||
@@ -253,0 +299,0 @@ versions: Record<import("@metamask/utils").SemVerVersion, { |
+8
-1
@@ -17,3 +17,3 @@ "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.SnapsRegistryDatabaseStruct = exports.BlockedSnapStruct = exports.BlockReasonStruct = exports.VerifiedSnapStruct = exports.SupportStruct = exports.AuditStruct = exports.AuthorStruct = void 0; | ||
| exports.SnapsRegistryDatabaseStruct = exports.BlockedSnapStruct = exports.BlockReasonStruct = exports.VerifiedSnapStruct = exports.AdditionalSourceCodeStruct = exports.SupportStruct = exports.AuditStruct = exports.AuthorStruct = void 0; | ||
| const utils_1 = require("@metamask/utils"); | ||
@@ -38,3 +38,8 @@ const superstruct_1 = require("superstruct"); | ||
| contact: (0, superstruct_1.optional)((0, superstruct_1.string)()), | ||
| keyRecovery: (0, superstruct_1.optional)((0, superstruct_1.string)()), | ||
| }); | ||
| exports.AdditionalSourceCodeStruct = (0, superstruct_1.object)({ | ||
| name: (0, superstruct_1.string)(), | ||
| url: (0, superstruct_1.string)(), | ||
| }); | ||
| exports.VerifiedSnapStruct = (0, superstruct_1.object)({ | ||
@@ -63,2 +68,4 @@ id: NpmIdStruct, | ||
| privacyPolicy: (0, superstruct_1.optional)((0, superstruct_1.string)()), | ||
| termsOfUse: (0, superstruct_1.optional)((0, superstruct_1.string)()), | ||
| additionalSourceCode: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.AdditionalSourceCodeStruct)), | ||
| }), | ||
@@ -65,0 +72,0 @@ versions: (0, superstruct_1.record)(utils_1.VersionStruct, VerifiedSnapVersionStruct), |
+2
-2
@@ -6,5 +6,5 @@ import type { Hex } from '@metamask/utils'; | ||
| format: "DER"; | ||
| signature: string; | ||
| signature: `0x${string}`; | ||
| }, { | ||
| signature: import("superstruct").Struct<string, null>; | ||
| signature: import("superstruct").Struct<`0x${string}`, null>; | ||
| curve: import("superstruct").Struct<"secp256k1", "secp256k1">; | ||
@@ -11,0 +11,0 @@ format: import("superstruct").Struct<"DER", "DER">; |
+1
-1
@@ -9,3 +9,3 @@ "use strict"; | ||
| exports.SignatureStruct = (0, superstruct_1.object)({ | ||
| signature: (0, superstruct_1.pattern)((0, superstruct_1.string)(), /0x[0-9a-f]{140}/u), | ||
| signature: utils_1.StrictHexStruct, | ||
| curve: (0, superstruct_1.literal)('secp256k1'), | ||
@@ -12,0 +12,0 @@ format: (0, superstruct_1.literal)('DER'), |
+5
-4
| { | ||
| "name": "@metamask/snaps-registry", | ||
| "version": "3.0.0", | ||
| "version": "3.0.1", | ||
| "description": "A registry containing metadata about verified and blocked Snaps.", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
| "dependencies": { | ||
| "@metamask/utils": "^8.1.0", | ||
| "@metamask/utils": "^8.3.0", | ||
| "@noble/curves": "^1.2.0", | ||
@@ -45,4 +45,5 @@ "@noble/hashes": "^1.3.2", | ||
| "@metamask/eslint-config-typescript": "^12.1.0", | ||
| "@metamask/snaps-controllers": "^3.4.0", | ||
| "@metamask/snaps-utils": "^5.0.0", | ||
| "@metamask/snaps-controllers": "^6.0.2", | ||
| "@metamask/snaps-sdk": "^3.1.0", | ||
| "@metamask/snaps-utils": "^7.0.2", | ||
| "@noble/curves": "^1.2.0", | ||
@@ -49,0 +50,0 @@ "@types/jest": "^28.1.6", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
50697
6.27%463
12.93%33
3.13%Updated