Skip to content

Commit

Permalink
lint:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Sep 4, 2023
1 parent 3645570 commit 06d432d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import {
VersionRangeStruct,
ChecksumStruct,
} from '@metamask/utils';
import type { Infer } from 'superstruct';
import {
object,
array,
record,
string,
union,
optional,
Infer,
enums,
} from 'superstruct';

Expand Down
5 changes: 3 additions & 2 deletions src/verify.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { Hex } from '@metamask/utils';
import {
remove0x,
stringToBytes,
Hex,
assertStruct,
hexToBytes,
} from '@metamask/utils';
Expand All @@ -10,7 +10,8 @@ import {
utils,
Signature as NobleSignature,
} from '@noble/secp256k1';
import { Infer, literal, object, pattern, string } from 'superstruct';
import type { Infer } from 'superstruct';
import { literal, object, pattern, string } from 'superstruct';

export const SignatureStruct = object({
signature: pattern(string(), /0x[0-9a-f]{140}/u),
Expand Down
12 changes: 1 addition & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2337,17 +2337,7 @@ __metadata:
languageName: node
linkType: hard

"define-properties@npm:^1.1.3, define-properties@npm:^1.1.4":
version: 1.1.4
resolution: "define-properties@npm:1.1.4"
dependencies:
has-property-descriptors: ^1.0.0
object-keys: ^1.1.1
checksum: ce0aef3f9eb193562b5cfb79b2d2c86b6a109dfc9fdcb5f45d680631a1a908c06824ddcdb72b7573b54e26ace07f0a23420aaba0d5c627b34d2c1de8ef527e2b
languageName: node
linkType: hard

"define-properties@npm:^1.2.0":
"define-properties@npm:^1.1.3, define-properties@npm:^1.1.4, define-properties@npm:^1.2.0":
version: 1.2.0
resolution: "define-properties@npm:1.2.0"
dependencies:
Expand Down

0 comments on commit 06d432d

Please sign in to comment.