Skip to content

Commit

Permalink
Add lavamoat policy allowlisting @metamask/superstruct for `@metama…
Browse files Browse the repository at this point in the history
…sk/utils`
  • Loading branch information
MajorLift committed Jun 7, 2024
1 parent 11a910a commit 0fd099d
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk>fast-xml-parser": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-sdk>fast-xml-parser": {
Expand All @@ -115,8 +115,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/utils": {
Expand All @@ -125,12 +125,12 @@
"TextEncoder": true
},
"packages": {
"@metamask/superstruct": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"browserify>buffer": true,
"depcheck>semver": true,
"superstruct": true,
"tsup>debug": true
}
},
Expand Down Expand Up @@ -208,12 +208,6 @@
"localStorage": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"globals": {
"console": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk>fast-xml-parser": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-sdk>fast-xml-parser": {
Expand All @@ -125,8 +125,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/utils": {
Expand All @@ -138,12 +138,12 @@
"TextEncoder": true
},
"packages": {
"@metamask/superstruct": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"buffer": true,
"depcheck>semver": true,
"superstruct": true,
"tsup>debug": true
}
},
Expand Down Expand Up @@ -245,12 +245,6 @@
"util": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"builtin": {
"tty.isatty": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk>fast-xml-parser": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-sdk>fast-xml-parser": {
Expand All @@ -125,8 +125,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/utils": {
Expand All @@ -138,12 +138,12 @@
"TextEncoder": true
},
"packages": {
"@metamask/superstruct": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"buffer": true,
"depcheck>semver": true,
"superstruct": true,
"tsup>debug": true
}
},
Expand Down Expand Up @@ -245,12 +245,6 @@
"util": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"builtin": {
"tty.isatty": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk>fast-xml-parser": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-sdk>fast-xml-parser": {
Expand All @@ -54,8 +54,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/utils": {
Expand All @@ -64,12 +64,12 @@
"TextEncoder": true
},
"packages": {
"@metamask/superstruct": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"browserify>buffer": true,
"depcheck>semver": true,
"superstruct": true,
"tsup>debug": true
}
},
Expand Down Expand Up @@ -147,12 +147,6 @@
"localStorage": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"globals": {
"console": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk>fast-xml-parser": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-sdk>fast-xml-parser": {
Expand All @@ -115,8 +115,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/utils": {
Expand All @@ -125,12 +125,12 @@
"TextEncoder": true
},
"packages": {
"@metamask/superstruct": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"browserify>buffer": true,
"depcheck>semver": true,
"superstruct": true,
"tsup>debug": true
}
},
Expand Down Expand Up @@ -208,12 +208,6 @@
"localStorage": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"globals": {
"console": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk>fast-xml-parser": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-sdk>fast-xml-parser": {
Expand All @@ -54,8 +54,8 @@
"packages": {
"@metamask/rpc-errors": true,
"@metamask/snaps-sdk": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/utils": {
Expand All @@ -64,12 +64,12 @@
"TextEncoder": true
},
"packages": {
"@metamask/superstruct": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"browserify>buffer": true,
"depcheck>semver": true,
"superstruct": true,
"tsup>debug": true
}
},
Expand Down Expand Up @@ -147,12 +147,6 @@
"localStorage": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"globals": {
"console": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1014,11 +1014,11 @@
"TextEncoder": true
},
"packages": {
"@metamask/superstruct": true,
"@metamask/utils>@noble/hashes": true,
"@metamask/utils>@scure/base": true,
"@metamask/utils>pony-cause": true,
"depcheck>semver": true,
"superstruct": true,
"tsup>debug": true
}
},
Expand Down Expand Up @@ -2341,12 +2341,6 @@
"util.deprecate": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"terser": {
"globals": {
"Buffer": true,
Expand Down
19 changes: 1 addition & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6247,24 +6247,7 @@ __metadata:
languageName: unknown
linkType: soft

"@metamask/utils@npm:^8.0.0, @metamask/utils@npm:^8.1.0, @metamask/utils@npm:^8.2.0, @metamask/utils@npm:^8.2.1, @metamask/utils@npm:^8.3.0":
version: 8.4.0
resolution: "@metamask/utils@npm:8.4.0"
dependencies:
"@ethereumjs/tx": ^4.2.0
"@noble/hashes": ^1.3.1
"@scure/base": ^1.1.3
"@types/debug": ^4.1.7
debug: ^4.3.4
pony-cause: ^2.1.10
semver: ^7.5.4
superstruct: ^1.0.3
uuid: ^9.0.1
checksum: b0397e97bac7192f6189a8625a2dfcb56d3c2cf4dd2cb3d4e012a7e9786f04f59f6917805544bc131a6dacd2c8344e237ae43ad47429bb5eb35c6cf1248440b4
languageName: node
linkType: hard

"@metamask/utils@npm:^8.5.0":
"@metamask/utils@npm:^8.0.0, @metamask/utils@npm:^8.1.0, @metamask/utils@npm:^8.2.0, @metamask/utils@npm:^8.2.1, @metamask/utils@npm:^8.3.0, @metamask/utils@npm:^8.5.0":
version: 8.5.0
resolution: "@metamask/utils@npm:8.5.0"
dependencies:
Expand Down

0 comments on commit 0fd099d

Please sign in to comment.