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 14, 2024
1 parent cd999ce commit d4bea81
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 97 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
},
"packages": {
"@metamask/rpc-errors": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils": {
Expand All @@ -105,8 +105,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 @@ -115,12 +115,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 @@ -198,12 +198,6 @@
"localStorage": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"globals": {
"console": true,
Expand All @@ -218,4 +212,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
},
"packages": {
"@metamask/rpc-errors": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils": {
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 @@ -128,12 +128,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 @@ -235,12 +235,6 @@
"util": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"builtin": {
"tty.isatty": true,
Expand All @@ -263,4 +257,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
},
"packages": {
"@metamask/rpc-errors": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils": {
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 @@ -128,12 +128,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 @@ -235,12 +235,6 @@
"util": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"builtin": {
"tty.isatty": true,
Expand All @@ -263,4 +257,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"packages": {
"@metamask/rpc-errors": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils": {
Expand All @@ -44,8 +44,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 @@ -54,12 +54,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 @@ -137,12 +137,6 @@
"localStorage": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"globals": {
"console": true,
Expand All @@ -157,4 +151,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@
},
"packages": {
"@metamask/rpc-errors": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils": {
Expand All @@ -105,8 +105,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 @@ -115,12 +115,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 @@ -198,12 +198,6 @@
"localStorage": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"globals": {
"console": true,
Expand All @@ -218,4 +212,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
},
"packages": {
"@metamask/rpc-errors": true,
"@metamask/utils": true,
"superstruct": true
"@metamask/superstruct": true,
"@metamask/utils": true
}
},
"@metamask/snaps-utils": {
Expand All @@ -44,8 +44,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 @@ -54,12 +54,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 @@ -137,12 +137,6 @@
"localStorage": true
}
},
"superstruct": {
"globals": {
"console.warn": true,
"define": true
}
},
"tsup>debug": {
"globals": {
"console": true,
Expand All @@ -157,4 +151,4 @@
}
}
}
}
}
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 @@ -6264,24 +6264,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 d4bea81

Please sign in to comment.