Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Replace 'superstruct' imports with '@metamask/superstruct'
  • Loading branch information
MajorLift committed Jun 10, 2024
commit 81efe2d2ea73950fa593ccefe2ab8266dda80bdd
2 changes: 1 addition & 1 deletion scripts/verify-snaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import deepEqual from 'fast-deep-equal';
import { imageSize as imageSizeSync } from 'image-size';
import { resolve } from 'path';
import semver from 'semver/preload';
import type { Infer } from 'superstruct';
import type { Infer } from '@metamask/superstruct';
import { promisify } from 'util';

import type { VerifiedSnapStruct } from '../src';
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
VersionRangeStruct,
ChecksumStruct,
} from '@metamask/utils';
import type { Infer } from 'superstruct';
import type { Infer } from '@metamask/superstruct';
import {
pattern,
size,
Expand Down
2 changes: 1 addition & 1 deletion src/registry.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { SemVerRange, SemVerVersion } from '@metamask/utils';
import { assert } from 'superstruct';
import { assert } from '@metamask/superstruct';

import type { SnapsRegistryDatabase } from '.';
import { SnapsRegistryDatabaseStruct } from '.';
Expand Down
4 changes: 2 additions & 2 deletions src/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import {
} from '@metamask/utils';
import { secp256k1 } from '@noble/curves/secp256k1';
import { sha256 } from '@noble/hashes/sha256';
import type { Infer } from 'superstruct';
import { literal, object } from 'superstruct';
import type { Infer } from '@metamask/superstruct';
import { literal, object } from '@metamask/superstruct';

export const SignatureStruct = object({
signature: StrictHexStruct,
Expand Down