@metamask/snaps-registry
Advanced tools
Comparing version 3.1.0 to 3.2.0
@@ -9,2 +9,10 @@ # Changelog | ||
## [3.2.0] | ||
### Changed | ||
- Bump `@metamask/utils` from `^8.3.0` to `^8.5.0` ([#613](https://github.com/MetaMask/snaps-registry/pull/613)) | ||
### Fixed | ||
- Replace `superstruct` with ESM-compatible `@metamask/superstruct` `^3.0.0` ([#613](https://github.com/MetaMask/snaps-registry/pull/613)) | ||
- This fixes the issue of this package being unusable by any TypeScript project that uses `Node16` or `NodeNext` as its `moduleResolution` option. | ||
## [3.1.0] | ||
@@ -77,3 +85,4 @@ ### Added | ||
[Unreleased]: https://github.com/MetaMask/snaps-registry/compare/v3.1.0...HEAD | ||
[Unreleased]: https://github.com/MetaMask/snaps-registry/compare/v3.2.0...HEAD | ||
[3.2.0]: https://github.com/MetaMask/snaps-registry/compare/v3.1.0...v3.2.0 | ||
[3.1.0]: https://github.com/MetaMask/snaps-registry/compare/v3.0.1...v3.1.0 | ||
@@ -80,0 +89,0 @@ [3.0.1]: https://github.com/MetaMask/snaps-registry/compare/v3.0.0...v3.0.1 |
@@ -1,19 +0,19 @@ | ||
import type { Infer } from 'superstruct'; | ||
export declare const AuthorStruct: import("superstruct").Struct<{ | ||
import type { Infer } from '@metamask/superstruct'; | ||
export declare const AuthorStruct: import("@metamask/superstruct").Struct<{ | ||
name: string; | ||
website: string; | ||
}, { | ||
name: import("superstruct").Struct<string, null>; | ||
website: import("superstruct").Struct<string, null>; | ||
name: import("@metamask/superstruct").Struct<string, null>; | ||
website: import("@metamask/superstruct").Struct<string, null>; | ||
}>; | ||
export declare type Author = Infer<typeof AuthorStruct>; | ||
export declare const AuditStruct: import("superstruct").Struct<{ | ||
export declare const AuditStruct: import("@metamask/superstruct").Struct<{ | ||
report: string; | ||
auditor: string; | ||
}, { | ||
auditor: import("superstruct").Struct<string, null>; | ||
report: import("superstruct").Struct<string, null>; | ||
auditor: import("@metamask/superstruct").Struct<string, null>; | ||
report: import("@metamask/superstruct").Struct<string, null>; | ||
}>; | ||
export declare type Audit = Infer<typeof AuditStruct>; | ||
export declare const SupportStruct: import("superstruct").Struct<{ | ||
export declare const SupportStruct: import("@metamask/superstruct").Struct<{ | ||
knowledgeBase?: string | undefined; | ||
@@ -24,17 +24,17 @@ faq?: string | undefined; | ||
}, { | ||
knowledgeBase: import("superstruct").Struct<string | undefined, null>; | ||
faq: import("superstruct").Struct<string | undefined, null>; | ||
contact: import("superstruct").Struct<string | undefined, null>; | ||
keyRecovery: import("superstruct").Struct<string | undefined, null>; | ||
knowledgeBase: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
faq: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
contact: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
keyRecovery: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
}>; | ||
export declare type Support = Infer<typeof SupportStruct>; | ||
export declare const AdditionalSourceCodeStruct: import("superstruct").Struct<{ | ||
export declare const AdditionalSourceCodeStruct: import("@metamask/superstruct").Struct<{ | ||
url: string; | ||
name: string; | ||
}, { | ||
name: import("superstruct").Struct<string, null>; | ||
url: import("superstruct").Struct<string, null>; | ||
name: import("@metamask/superstruct").Struct<string, null>; | ||
url: import("@metamask/superstruct").Struct<string, null>; | ||
}>; | ||
export declare const ImagePathStruct: import("superstruct").Struct<string, null>; | ||
export declare const VerifiedSnapStruct: import("superstruct").Struct<{ | ||
export declare const ImagePathStruct: import("@metamask/superstruct").Struct<string, null>; | ||
export declare const VerifiedSnapStruct: import("@metamask/superstruct").Struct<{ | ||
id: string; | ||
@@ -79,4 +79,4 @@ metadata: { | ||
}, { | ||
id: import("superstruct").Struct<string, null>; | ||
metadata: import("superstruct").Struct<{ | ||
id: import("@metamask/superstruct").Struct<string, null>; | ||
metadata: import("@metamask/superstruct").Struct<{ | ||
name: string; | ||
@@ -115,28 +115,28 @@ type?: "account" | undefined; | ||
}, { | ||
name: import("superstruct").Struct<string, null>; | ||
type: import("superstruct").Struct<"account" | undefined, { | ||
name: import("@metamask/superstruct").Struct<string, null>; | ||
type: import("@metamask/superstruct").Struct<"account" | undefined, { | ||
account: "account"; | ||
}>; | ||
author: import("superstruct").Struct<{ | ||
author: import("@metamask/superstruct").Struct<{ | ||
name: string; | ||
website: string; | ||
} | undefined, { | ||
name: import("superstruct").Struct<string, null>; | ||
website: import("superstruct").Struct<string, null>; | ||
name: import("@metamask/superstruct").Struct<string, null>; | ||
website: import("@metamask/superstruct").Struct<string, null>; | ||
}>; | ||
website: import("superstruct").Struct<string | undefined, null>; | ||
onboard: import("superstruct").Struct<boolean | undefined, null>; | ||
summary: import("superstruct").Struct<string | undefined, null>; | ||
description: import("superstruct").Struct<string | undefined, null>; | ||
audits: import("superstruct").Struct<{ | ||
website: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
onboard: import("@metamask/superstruct").Struct<boolean | undefined, null>; | ||
summary: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
description: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
audits: import("@metamask/superstruct").Struct<{ | ||
report: string; | ||
auditor: string; | ||
}[] | undefined, import("superstruct").Struct<{ | ||
}[] | undefined, import("@metamask/superstruct").Struct<{ | ||
report: string; | ||
auditor: string; | ||
}, { | ||
auditor: import("superstruct").Struct<string, null>; | ||
report: import("superstruct").Struct<string, null>; | ||
auditor: import("@metamask/superstruct").Struct<string, null>; | ||
report: import("@metamask/superstruct").Struct<string, null>; | ||
}>>; | ||
category: import("superstruct").Struct<"notifications" | "interoperability" | "transaction insights" | "account management" | undefined, { | ||
category: import("@metamask/superstruct").Struct<"notifications" | "interoperability" | "transaction insights" | "account management" | undefined, { | ||
notifications: "notifications"; | ||
@@ -147,4 +147,4 @@ interoperability: "interoperability"; | ||
}>; | ||
tags: import("superstruct").Struct<string[] | undefined, import("superstruct").Struct<string, null>>; | ||
support: import("superstruct").Struct<{ | ||
tags: import("@metamask/superstruct").Struct<string[] | undefined, import("@metamask/superstruct").Struct<string, null>>; | ||
support: import("@metamask/superstruct").Struct<{ | ||
knowledgeBase?: string | undefined; | ||
@@ -155,25 +155,25 @@ faq?: string | undefined; | ||
} | undefined, { | ||
knowledgeBase: import("superstruct").Struct<string | undefined, null>; | ||
faq: import("superstruct").Struct<string | undefined, null>; | ||
contact: import("superstruct").Struct<string | undefined, null>; | ||
keyRecovery: import("superstruct").Struct<string | undefined, null>; | ||
knowledgeBase: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
faq: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
contact: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
keyRecovery: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
}>; | ||
sourceCode: import("superstruct").Struct<string | undefined, null>; | ||
hidden: import("superstruct").Struct<boolean | undefined, null>; | ||
privateCode: import("superstruct").Struct<boolean | undefined, null>; | ||
privacyPolicy: import("superstruct").Struct<string | undefined, null>; | ||
termsOfUse: import("superstruct").Struct<string | undefined, null>; | ||
additionalSourceCode: import("superstruct").Struct<{ | ||
sourceCode: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
hidden: import("@metamask/superstruct").Struct<boolean | undefined, null>; | ||
privateCode: import("@metamask/superstruct").Struct<boolean | undefined, null>; | ||
privacyPolicy: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
termsOfUse: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
additionalSourceCode: import("@metamask/superstruct").Struct<{ | ||
url: string; | ||
name: string; | ||
}[] | undefined, import("superstruct").Struct<{ | ||
}[] | undefined, import("@metamask/superstruct").Struct<{ | ||
url: string; | ||
name: string; | ||
}, { | ||
name: import("superstruct").Struct<string, null>; | ||
url: import("superstruct").Struct<string, null>; | ||
name: import("@metamask/superstruct").Struct<string, null>; | ||
url: import("@metamask/superstruct").Struct<string, null>; | ||
}>>; | ||
screenshots: import("superstruct").Struct<string[] | undefined, import("superstruct").Struct<string, null>>; | ||
screenshots: import("@metamask/superstruct").Struct<string[] | undefined, import("@metamask/superstruct").Struct<string, null>>; | ||
}>; | ||
versions: import("superstruct").Struct<Record<import("@metamask/utils").SemVerVersion, { | ||
versions: import("@metamask/superstruct").Struct<Record<import("@metamask/utils").SemVerVersion, { | ||
checksum: string; | ||
@@ -183,11 +183,11 @@ }>, null>; | ||
export declare type VerifiedSnap = Infer<typeof VerifiedSnapStruct>; | ||
export declare const BlockReasonStruct: import("superstruct").Struct<{ | ||
export declare const BlockReasonStruct: import("@metamask/superstruct").Struct<{ | ||
url?: string | undefined; | ||
explanation?: string | undefined; | ||
}, { | ||
explanation: import("superstruct").Struct<string | undefined, null>; | ||
url: import("superstruct").Struct<string | undefined, null>; | ||
explanation: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
url: import("@metamask/superstruct").Struct<string | undefined, null>; | ||
}>; | ||
export declare type BlockReason = Infer<typeof BlockReasonStruct>; | ||
export declare const BlockedSnapStruct: import("superstruct").Struct<{ | ||
export declare const BlockedSnapStruct: import("@metamask/superstruct").Struct<{ | ||
id: string; | ||
@@ -206,3 +206,3 @@ versionRange: import("@metamask/utils").SemVerRange; | ||
}, null>; | ||
export declare const SnapsRegistryDatabaseStruct: import("superstruct").Struct<{ | ||
export declare const SnapsRegistryDatabaseStruct: import("@metamask/superstruct").Struct<{ | ||
verifiedSnaps: Record<string, { | ||
@@ -263,3 +263,3 @@ id: string; | ||
}, { | ||
verifiedSnaps: import("superstruct").Struct<Record<string, { | ||
verifiedSnaps: import("@metamask/superstruct").Struct<Record<string, { | ||
id: string; | ||
@@ -304,3 +304,3 @@ metadata: { | ||
}>, null>; | ||
blockedSnaps: import("superstruct").Struct<({ | ||
blockedSnaps: import("@metamask/superstruct").Struct<({ | ||
id: string; | ||
@@ -318,3 +318,3 @@ versionRange: import("@metamask/utils").SemVerRange; | ||
} | undefined; | ||
})[], import("superstruct").Struct<{ | ||
})[], import("@metamask/superstruct").Struct<{ | ||
id: string; | ||
@@ -321,0 +321,0 @@ versionRange: import("@metamask/utils").SemVerRange; |
@@ -18,4 +18,4 @@ "use strict"; | ||
exports.SnapsRegistryDatabaseStruct = exports.BlockedSnapStruct = exports.BlockReasonStruct = exports.VerifiedSnapStruct = exports.ImagePathStruct = exports.AdditionalSourceCodeStruct = exports.SupportStruct = exports.AuditStruct = exports.AuthorStruct = void 0; | ||
const superstruct_1 = require("@metamask/superstruct"); | ||
const utils_1 = require("@metamask/utils"); | ||
const superstruct_1 = require("superstruct"); | ||
// For now, validate that each snap is using an NPM id. | ||
@@ -22,0 +22,0 @@ const NpmIdStruct = (0, superstruct_1.refine)((0, superstruct_1.string)(), 'Npm ID', (value) => value.startsWith('npm:')); |
@@ -0,4 +1,4 @@ | ||
import type { Infer } from '@metamask/superstruct'; | ||
import type { Hex } from '@metamask/utils'; | ||
import type { Infer } from 'superstruct'; | ||
export declare const SignatureStruct: import("superstruct").Struct<{ | ||
export declare const SignatureStruct: import("@metamask/superstruct").Struct<{ | ||
curve: "secp256k1"; | ||
@@ -8,5 +8,5 @@ format: "DER"; | ||
}, { | ||
signature: import("superstruct").Struct<`0x${string}`, null>; | ||
curve: import("superstruct").Struct<"secp256k1", "secp256k1">; | ||
format: import("superstruct").Struct<"DER", "DER">; | ||
signature: import("@metamask/superstruct").Struct<`0x${string}`, null>; | ||
curve: import("@metamask/superstruct").Struct<"secp256k1", "secp256k1">; | ||
format: import("@metamask/superstruct").Struct<"DER", "DER">; | ||
}>; | ||
@@ -13,0 +13,0 @@ declare type Signature = Infer<typeof SignatureStruct>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.verify = exports.SignatureStruct = void 0; | ||
const superstruct_1 = require("@metamask/superstruct"); | ||
const utils_1 = require("@metamask/utils"); | ||
const secp256k1_1 = require("@noble/curves/secp256k1"); | ||
const sha256_1 = require("@noble/hashes/sha256"); | ||
const superstruct_1 = require("superstruct"); | ||
exports.SignatureStruct = (0, superstruct_1.object)({ | ||
@@ -9,0 +9,0 @@ signature: utils_1.StrictHexStruct, |
{ | ||
"name": "@metamask/snaps-registry", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"description": "A registry containing metadata about verified and blocked Snaps.", | ||
@@ -25,2 +25,3 @@ "repository": { | ||
"prepack": "./scripts/prepack.sh", | ||
"query-snaps": "ts-node scripts/query/query.ts", | ||
"sign": "ts-node scripts/sign-registry.ts", | ||
@@ -33,6 +34,6 @@ "test": "jest && jest-it-up", | ||
"dependencies": { | ||
"@metamask/utils": "^8.3.0", | ||
"@metamask/superstruct": "^3.0.0", | ||
"@metamask/utils": "^8.5.0", | ||
"@noble/curves": "^1.2.0", | ||
"@noble/hashes": "^1.3.2", | ||
"superstruct": "^1.0.3" | ||
"@noble/hashes": "^1.3.2" | ||
}, | ||
@@ -46,5 +47,5 @@ "devDependencies": { | ||
"@metamask/eslint-config-typescript": "^12.1.0", | ||
"@metamask/snaps-controllers": "^6.0.2", | ||
"@metamask/snaps-sdk": "^3.1.0", | ||
"@metamask/snaps-utils": "^7.0.2", | ||
"@metamask/snaps-controllers": "^8.2.0", | ||
"@metamask/snaps-sdk": "^4.3.0", | ||
"@metamask/snaps-utils": "^7.4.0", | ||
"@noble/curves": "^1.2.0", | ||
@@ -51,0 +52,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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53806
+ Added@metamask/superstruct@^3.0.0
- Removedsuperstruct@^1.0.3
- Removedsuperstruct@1.0.4(transitive)
Updated@metamask/utils@^8.5.0