From 3729e15c0c8a70deaa6b8bf2364f9a3e81e6e953 Mon Sep 17 00:00:00 2001 From: kumavis Date: Fri, 28 Jan 2022 10:02:49 -1000 Subject: [PATCH] lavamoat - @lavamoat/allow-scripts v2 (#13428) --- package.json | 71 ++++++++++++++++++++++++++++++++++------------------ yarn.lock | 22 +++------------- 2 files changed, 51 insertions(+), 42 deletions(-) diff --git a/package.json b/package.json index 9cb43e831..a2f4165c4 100644 --- a/package.json +++ b/package.json @@ -230,7 +230,7 @@ "@babel/preset-env": "^7.5.5", "@babel/preset-react": "^7.0.0", "@babel/register": "^7.5.5", - "@lavamoat/allow-scripts": "^1.0.6", + "@lavamoat/allow-scripts": "^2.0.0", "@lavamoat/lavapack": "^2.0.4", "@metamask/auto-changelog": "^2.1.0", "@metamask/eslint-config": "^9.0.0", @@ -361,31 +361,54 @@ }, "lavamoat": { "allowScripts": { - "gridplus-sdk": false, + "3box>3box-orbitdb-plugins>ipfs-log>orbit-db-identity-provider>orbit-db-keystore>leveldown": false, + "3box>3box-orbitdb-plugins>ipfs-log>orbit-db-identity-provider>orbit-db-keystore>libp2p-crypto-secp256k1>secp256k1": false, + "3box>3box-orbitdb-plugins>ipfs-log>orbit-db-identity-provider>orbit-db-keystore>libp2p-crypto>libp2p-crypto-secp256k1>secp256k1": false, + "3box>3box-orbitdb-plugins>ipfs-log>orbit-db-identity-provider>orbit-db-keystore>libp2p-crypto>ursa-optional": false, + "3box>ipfs-postmsg-proxy>peer-id>libp2p-crypto>libp2p-crypto-secp256k1>secp256k1": false, + "3box>ipfs>ipfs-mfs>ipfs-unixfs-exporter>ipfs-unixfs-importer>rabin-wasm>assemblyscript": false, + "3box>ipfs>ipfs-repo>datastore-level>leveldown": false, + "3box>ipfs>ipld-bitcoin>bitcoinjs-lib>bip32>tiny-secp256k1": false, + "3box>ipfs>ipld-ethereum>ethereumjs-account>ethereumjs-util>keccak": false, + "3box>ipfs>ipld-ethereum>ethereumjs-account>ethereumjs-util>secp256k1": false, + "3box>ipfs>ipld-ethereum>ethereumjs-block>ethereumjs-tx>ethereumjs-util>ethereum-cryptography>keccak": false, + "3box>ipfs>ipld-ethereum>ethereumjs-block>ethereumjs-tx>ethereumjs-util>ethereum-cryptography>secp256k1": false, + "3box>ipfs>ipld-ethereum>ethereumjs-block>ethereumjs-util>keccak": false, + "3box>ipfs>ipld-ethereum>ethereumjs-block>ethereumjs-util>secp256k1": false, + "3box>ipfs>ipld-ethereum>ethereumjs-block>merkle-patricia-tree>ethereumjs-util>keccak": false, + "3box>ipfs>ipld-ethereum>ethereumjs-block>merkle-patricia-tree>ethereumjs-util>secp256k1": false, + "3box>ipfs>ipld-ethereum>ethereumjs-tx>ethereumjs-util>keccak": false, + "3box>ipfs>ipld-ethereum>ethereumjs-tx>ethereumjs-util>secp256k1": false, + "3box>ipfs>ipld-ethereum>merkle-patricia-tree>ethereumjs-util>keccak": false, + "3box>ipfs>ipld-ethereum>merkle-patricia-tree>ethereumjs-util>secp256k1": false, + "3box>orbit-db>orbit-db-cache>leveldown": false, + "@lavamoat/allow-scripts>@lavamoat/preinstall-always-fail": false, + "@metamask/controllers>babel-runtime>core-js": false, + "@metamask/controllers>eth-json-rpc-infura>eth-json-rpc-middleware>eth-sig-util>ethereumjs-util>keccak": false, + "@metamask/controllers>eth-json-rpc-infura>eth-json-rpc-middleware>eth-sig-util>ethereumjs-util>secp256k1": false, + "@metamask/controllers>eth-keyring-controller>eth-hd-keyring>eth-sig-util>ethereumjs-util>keccak": false, + "@metamask/controllers>eth-keyring-controller>eth-hd-keyring>eth-sig-util>ethereumjs-util>secp256k1": false, + "@metamask/controllers>web3-provider-engine>eth-json-rpc-filters>eth-json-rpc-middleware>eth-sig-util>ethereumjs-util>keccak": false, + "@metamask/controllers>web3-provider-engine>eth-json-rpc-filters>eth-json-rpc-middleware>eth-sig-util>ethereumjs-util>secp256k1": false, + "@metamask/controllers>web3-provider-engine>eth-json-rpc-middleware>eth-sig-util>ethereumjs-util>keccak": false, + "@metamask/controllers>web3-provider-engine>eth-json-rpc-middleware>eth-sig-util>ethereumjs-util>secp256k1": false, + "@metamask/eth-ledger-bridge-keyring>eth-sig-util>ethereumjs-util>keccak": false, + "@metamask/eth-ledger-bridge-keyring>eth-sig-util>ethereumjs-util>secp256k1": false, + "@sentry/cli": true, + "@storybook/addon-a11y>@storybook/addons>@storybook/api>@storybook/channels>core-js": false, + "@storybook/addon-essentials>@storybook/addon-docs>@storybook/builder-webpack4>@storybook/ui>core-js-pure": false, "chromedriver": true, + "eth-json-rpc-middleware>eth-sig-util>ethereumjs-util>keccak": false, + "eth-json-rpc-middleware>eth-sig-util>ethereumjs-util>secp256k1": false, + "eth-lattice-keyring>gridplus-sdk": false, + "eth-trezor-keyring>hdkey>secp256k1": false, + "eth-trezor-keyring>trezor-connect>@trezor/utxo-lib>blake-hash": false, + "eth-trezor-keyring>trezor-connect>trezor-link>protobufjs": false, + "ganache>@trufflesuite/bigint-buffer": false, + "ganache>keccak": false, + "ganache>leveldown": false, "geckodriver": true, - "@sentry/cli": true, - "electron": true, - "core-js": false, - "core-js-pure": false, - "keccak": false, - "secp256k1": false, - "web3": false, - "sha3": false, - "bufferutil": false, - "utf-8-validate": false, - "leveldown": false, - "ursa-optional": false, - "gc-stats": false, - "github:assemblyscript/assemblyscript": false, - "tiny-secp256k1": false, - "@lavamoat/preinstall-always-fail": false, - "fsevents": false, - "node-hid": false, - "usb": false, - "blake-hash": false, - "protobufjs": false, - "@trufflesuite/bigint-buffer": false + "react-devtools>electron": true } } } diff --git a/yarn.lock b/yarn.lock index e45a72e68..247b3c7dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2355,17 +2355,13 @@ rlp "^2.2.6" uuid "^8.3.2" -"@lavamoat/allow-scripts@^1.0.6": - version "1.0.6" - resolved "https://registry.yarnpkg.com/@lavamoat/allow-scripts/-/allow-scripts-1.0.6.tgz#fbdf7c35a5c2c2cff05ba002b7bc8f3355bda22c" - integrity sha512-bBUN2xuQEXWmWTJrfkwaM8Ige7TNfTTRodyW353VYnzX7kW866Tm/Ag0hdbukFvJfNjRHabVmLKxYYL8l/uyZQ== +"@lavamoat/allow-scripts@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@lavamoat/allow-scripts/-/allow-scripts-2.0.0.tgz#d2b84491961c8b2b80281112e19654beae9eb584" + integrity sha512-WC8cvStg5/MZ0JwccYsLNhtFSiK4tGEfv4kdlMoWfji4sB053HB1xCLDMlhFSMM6m0ecKA18CmzhI6J6iyCc0w== dependencies: - "@lavamoat/preinstall-always-fail" "^1.0.0" "@npmcli/run-script" "^1.8.1" - "@yarnpkg/lockfile" "^1.1.0" - npm-logical-tree "^1.2.1" resolve "^1.20.0" - semver "^7.3.4" yargs "^16.2.0" "@lavamoat/lavapack@^2.0.3", "@lavamoat/lavapack@^2.0.4": @@ -2381,11 +2377,6 @@ through2 "^4.0.2" umd "^3.0.3" -"@lavamoat/preinstall-always-fail@^1.0.0": - version "1.0.0" - resolved "https://registry.yarnpkg.com/@lavamoat/preinstall-always-fail/-/preinstall-always-fail-1.0.0.tgz#e78a6e3d9e212a4fef869ec37d4f5fb498dea373" - integrity sha512-vD2DcC0ffJj1w2y1Lu0OU39wHmlPEd2tCDW04Bm6Kf4LyRnCHCezTsS8yzeSJ+4so7XP+TITuR5FGJRWxPb+GA== - "@ledgerhq/cryptoassets@^5.27.2": version "5.53.0" resolved "https://registry.yarnpkg.com/@ledgerhq/cryptoassets/-/cryptoassets-5.53.0.tgz#11dcc93211960c6fd6620392e4dd91896aaabe58" @@ -19590,11 +19581,6 @@ npm-conf@^1.1.3: config-chain "^1.1.11" pify "^3.0.0" -npm-logical-tree@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/npm-logical-tree/-/npm-logical-tree-1.2.1.tgz#44610141ca24664cad35d1e607176193fd8f5b88" - integrity sha512-AJI/qxDB2PWI4LG1CYN579AY1vCiNyWfkiquCsJWqntRu/WwimVrC8yXeILBFHDwxfOejxewlmnvW9XXjMlYIg== - npm-normalize-package-bin@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-1.0.1.tgz#6e79a41f23fd235c0623218228da7d9c23b8f6e2"