1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00
metamask-extension/lavamoat/browserify/policy-override.json
Mark Stacey 929a1a0d52
Update eth-json-rpc-infura (#15845)
* Update `eth-json-rpc-infura`

The package `eth-json-rpc-infura@5` has been updated to
`@metamask/eth-json-rpc-infura@7`. This update includes TypeScript
support, and it drops support for older node.js versions. The exports
have also been changed from default to named exports.

See here for a full list of changes: https://github.com/MetaMask/eth-json-rpc-infura/blob/main/CHANGELOG.md#700

* Fix LavaMoat policy issue

The `web3` package used by `@metamask/controllers` unintentionally
overwrites the `XMLHttpRequest` global, which breaks things. This was
fixed by revoking `web3`'s write access to that global using a policy
override.

Previously this policy override was applied to `web3`, but for some
unknown reason, this update caused that override to no longer apply.
2022-09-15 14:41:18 -02:30

122 lines
2.6 KiB
JSON

{
"resources": {
"browserify>browser-resolve": {
"packages": {
"ethjs-query>babel-runtime>core-js": true
}
},
"ethjs-query>babel-runtime": {
"packages": {
"@babel/runtime": true
}
},
"@metamask/controllers>web3-provider-engine>eth-json-rpc-middleware>node-fetch": {
"globals": {
"fetch": true
}
},
"@metamask/controllers>web3-provider-engine>cross-fetch>node-fetch": {
"globals": {
"fetch": true
}
},
"3box>graphql-request>cross-fetch>node-fetch": {
"globals": {
"fetch": true
}
},
"lodash": {
"globals": {
"setTimeout": true,
"clearTimeout": true
}
},
"react-dnd-html5-backend": {
"globals": {
"clearTimeout": true,
"addEventListener": true,
"removeEventListener": true
}
},
"ethers>@ethersproject/random": {
"globals": {
"crypto.getRandomValues": true
}
},
"eth-keyring-controller>browser-passworder": {
"globals": {
"crypto": true
}
},
"ethereumjs-wallet>randombytes": {
"globals": {
"crypto.getRandomValues": true
}
},
"web3": {
"globals": {
"XMLHttpRequest": true
}
},
"@metamask/controllers>web3": {
"globals": {
"XMLHttpRequest": true
}
},
"react-dom": {
"globals": {
"HTMLIFrameElement": true
}
},
"react-devtools": {
"packages": {
"react-devtools>react-devtools-core": true
}
},
"react-devtools>react-devtools-core": {
"globals": {
"setTimeout": true,
"WebSocket": true
}
},
"node-fetch": {
"globals": {
"fetch": true,
"Headers": true,
"Request": true,
"Response": true
}
},
"nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/snap-controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"@metamask/smart-transactions-controller>@metamask/controllers>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"depcheck>@vue/compiler-sfc>postcss>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
},
"dependency-tree>precinct>detective-postcss>postcss>nanoid": {
"globals": {
"crypto.getRandomValues": true
}
}
}
}