MetaMask / eth-token-tracker

A JS module for tracking Ethereum token balances over block changes
ISC License
76 stars 44 forks source link

Upgrade to Yarn v3 #119

Closed mcmire closed 7 months ago

mcmire commented 8 months ago
socket-security[bot] commented 8 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/cli@7.23.9 Transitive: environment, eval, filesystem, network, shell, unsafe +70 12 MB nicolo-ribaudo
npm/@babel/code-frame@7.23.5 Transitive: environment +10 191 kB nicolo-ribaudo
npm/@babel/compat-data@7.23.5 None 0 64.6 kB nicolo-ribaudo
npm/@babel/core@7.23.9 environment, filesystem, unsafe Transitive: shell +52 10.8 MB nicolo-ribaudo
npm/@babel/generator@7.23.6 Transitive: environment +10 3.38 MB nicolo-ribaudo
npm/@babel/helper-annotate-as-pure@7.22.5 Transitive: environment +4 2.5 MB nicolo-ribaudo
npm/@babel/helper-builder-binary-assignment-operator-visitor@7.22.15 Transitive: environment +4 2.51 MB nicolo-ribaudo
npm/@babel/helper-compilation-targets@7.23.6 Transitive: environment, filesystem, shell +12 2.59 MB nicolo-ribaudo
npm/@babel/helper-create-regexp-features-plugin@7.22.15 Transitive: environment, filesystem, shell, unsafe +64 11.6 MB nicolo-ribaudo
npm/@babel/helper-define-polyfill-provider@0.5.0 unsafe Transitive: environment, filesystem, shell +61 11.2 MB nicolo-ribaudo
npm/@babel/helper-member-expression-to-functions@7.23.0 Transitive: environment +4 2.55 MB nicolo-ribaudo
npm/@babel/helper-module-imports@7.22.15 Transitive: environment +4 2.55 MB nicolo-ribaudo
npm/@babel/helper-module-transforms@7.23.3 Transitive: environment, filesystem, shell, unsafe +52 10.8 MB nicolo-ribaudo
npm/@babel/helper-optimise-call-expression@7.22.5 Transitive: environment +4 2.5 MB nicolo-ribaudo
npm/@babel/helper-plugin-utils@7.22.5 None 0 11.9 kB nicolo-ribaudo
npm/@babel/helper-remap-async-to-generator@7.22.20 Transitive: environment, filesystem, shell, unsafe +55 10.8 MB nicolo-ribaudo
npm/@babel/helper-replace-supers@7.22.20 Transitive: environment, filesystem, shell, unsafe +55 10.9 MB nicolo-ribaudo
npm/@babel/helper-simple-access@7.22.5 Transitive: environment +4 2.51 MB nicolo-ribaudo
npm/@babel/helper-skip-transparent-expression-wrappers@7.22.5 Transitive: environment +4 2.5 MB nicolo-ribaudo
npm/@babel/helper-string-parser@7.23.4 None 0 31.6 kB nicolo-ribaudo
npm/@babel/helper-validator-option@7.23.5 None 0 11.7 kB nicolo-ribaudo
npm/@babel/helper-wrap-function@7.22.20 Transitive: environment +17 4.62 MB nicolo-ribaudo
npm/@babel/helpers@7.23.9 Transitive: environment +31 6.81 MB nicolo-ribaudo
npm/@babel/highlight@7.23.4 Transitive: environment +9 168 kB nicolo-ribaudo
npm/@babel/parser@7.23.9 None 0 1.88 MB nicolo-ribaudo
npm/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.23.3 Transitive: environment, filesystem, shell, unsafe +55 10.8 MB nicolo-ribaudo
npm/@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2 Transitive: environment, filesystem, shell, unsafe +53 10.8 MB nicolo-ribaudo
npm/@babel/plugin-syntax-import-assertions@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-arrow-functions@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-async-to-generator@7.23.3 Transitive: environment, filesystem, shell, unsafe +57 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-block-scoped-functions@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-block-scoping@7.23.4 Transitive: environment, filesystem, shell, unsafe +54 10.9 MB nicolo-ribaudo
npm/@babel/plugin-transform-classes@7.23.8 Transitive: environment, filesystem, shell, unsafe +58 11 MB nicolo-ribaudo
npm/@babel/plugin-transform-computed-properties@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-destructuring@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.9 MB nicolo-ribaudo
npm/@babel/plugin-transform-dotall-regex@7.23.3 Transitive: environment, filesystem, shell, unsafe +66 11.6 MB nicolo-ribaudo
npm/@babel/plugin-transform-duplicate-keys@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-exponentiation-operator@7.23.3 Transitive: environment, filesystem, shell, unsafe +55 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-for-of@7.23.6 Transitive: environment, filesystem, shell, unsafe +55 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-function-name@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-literals@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-member-expression-literals@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-modules-amd@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-modules-commonjs@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-modules-systemjs@7.23.9 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-modules-umd@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-named-capturing-groups-regex@7.22.5 Transitive: environment, filesystem, shell, unsafe +66 11.6 MB nicolo-ribaudo
npm/@babel/plugin-transform-new-target@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-object-super@7.23.3 Transitive: environment, filesystem, shell, unsafe +57 10.9 MB nicolo-ribaudo
npm/@babel/plugin-transform-parameters@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-property-literals@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-regenerator@7.23.3 Transitive: environment, filesystem, shell, unsafe +57 11.2 MB nicolo-ribaudo
npm/@babel/plugin-transform-reserved-words@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-runtime@7.23.9 unsafe Transitive: environment, filesystem, shell +66 12.3 MB nicolo-ribaudo
npm/@babel/plugin-transform-shorthand-properties@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-spread@7.23.3 Transitive: environment, filesystem, shell, unsafe +55 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-sticky-regex@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-template-literals@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-typeof-symbol@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-unicode-escapes@7.23.3 Transitive: environment, filesystem, shell, unsafe +54 10.8 MB nicolo-ribaudo
npm/@babel/plugin-transform-unicode-regex@7.23.3 Transitive: environment, filesystem, shell, unsafe +66 11.6 MB nicolo-ribaudo
npm/@babel/preset-env@7.23.9 environment Transitive: filesystem, shell, unsafe +140 14.7 MB nicolo-ribaudo
npm/@babel/preset-modules@0.1.6-no-external-plugins Transitive: environment, filesystem, shell, unsafe +55 10.9 MB nicolo-ribaudo
npm/@babel/runtime@7.23.9 None +1 277 kB nicolo-ribaudo
npm/@babel/template@7.23.9 Transitive: environment +15 4.59 MB nicolo-ribaudo
npm/@babel/traverse@7.23.9 Transitive: environment +30 6.22 MB nicolo-ribaudo
npm/@babel/types@7.23.9 environment +3 2.49 MB nicolo-ribaudo
npm/@isaacs/cliui@8.0.2 None +13 259 kB isaacs
npm/@jridgewell/resolve-uri@3.1.1 None 0 55.2 kB jridgewell
npm/@jridgewell/trace-mapping@0.3.22 None +2 265 kB jridgewell
npm/@metamask/eth-json-rpc-provider@2.3.2 Transitive: environment, network +24 4.74 MB brad.decker, danfinlay, gudahtt, ...9 more
npm/@metamask/json-rpc-engine@7.3.2 Transitive: environment, network +23 4.71 MB brad.decker, danfinlay, gudahtt, ...9 more
npm/@metamask/rpc-errors@6.1.0 Transitive: environment, network +21 4.61 MB metamaskbot
npm/@metamask/utils@8.3.0 Transitive: environment, network +19 4.48 MB metamaskbot
npm/@noble/curves@1.3.0 None +1 2.15 MB paulmillr
npm/@noble/hashes@1.3.3 None 0 761 kB paulmillr
npm/@npmcli/agent@2.2.1 Transitive: environment, network +9 478 kB fritzy, gar, lukekarrys, ...2 more
npm/@pkgjs/parseargs@0.11.0 None 0 74.2 kB oss-bot
npm/@scure/base@1.1.5 None 0 79.4 kB paulmillr
npm/@scure/bip32@1.3.3 None +3 2.29 MB paulmillr
npm/@scure/bip39@1.2.2 None +2 1.21 MB paulmillr
npm/@types/debug@4.1.12 None +1 9.65 kB types
npm/@types/ms@0.7.34 None 0 3.2 kB types
npm/@types/node@20.11.16 None 0 3.99 MB types
npm/agent-base@6.0.2 Transitive: environment +2 49.2 kB tootallnate
npm/array.prototype.every@1.1.5 Transitive: eval +43 3.06 MB ljharb
npm/available-typed-arrays@1.0.6 None 0 20.4 kB ljharb
npm/babel-plugin-polyfill-corejs2@0.4.8 Transitive: environment, filesystem, shell, unsafe +62 11.3 MB nicolo-ribaudo
npm/babel-plugin-polyfill-corejs3@0.9.0 Transitive: environment, filesystem, shell, unsafe +63 12.1 MB nicolo-ribaudo
npm/babel-plugin-polyfill-regenerator@0.5.5 Transitive: environment, filesystem, shell, unsafe +62 11.2 MB nicolo-ribaudo
npm/browserslist@4.22.3 environment, filesystem Transitive: shell +6 2.36 MB ai
npm/call-bind@1.0.5 Transitive: eval +4 125 kB ljharb
npm/caniuse-lite@1.0.30001584 None 0 1.96 MB caniuse-lite
npm/convert-source-map@2.0.0 None 0 15.9 kB phated
npm/core-js-compat@3.35.1 Transitive: environment, filesystem, shell +7 3.06 MB zloirock
npm/cross-spawn@7.0.3 environment, filesystem, shell +5 52.1 kB satazor
npm/deep-equal@2.2.3 Transitive: eval +38 975 kB ljharb
npm/define-properties@1.2.1 Transitive: eval +6 154 kB ljharb
npm/eastasianwidth@0.2.0 None 0 13.6 kB komagata
npm/electron-to-chromium@1.4.657 None 0 272 kB kilianvalkhof
npm/es-abstract@1.22.3 Transitive: eval +42 3.03 MB ljharb
npm/es-get-iterator@1.1.3 Transitive: eval +11 251 kB ljharb
npm/escalade@3.1.2 filesystem 0 11.6 kB lukeed
npm/eth-block-tracker@8.1.0 Transitive: environment, network +27 4.81 MB lgbot
npm/ethereum-cryptography@2.1.3 None +5 2.74 MB alcuadrado, paulmillr
npm/foreground-child@3.1.1 shell Transitive: environment, filesystem +7 189 kB isaacs
npm/function.prototype.name@1.1.6 Transitive: eval +42 3.03 MB ljharb
npm/get-intrinsic@1.2.3 eval +3 104 kB ljharb
npm/has-dynamic-import@2.1.0 Transitive: eval +5 148 kB ljharb
npm/has-property-descriptors@1.0.1 Transitive: eval +4 115 kB ljharb
npm/has-tostringtag@1.0.2 None +1 38.2 kB ljharb
npm/internal-slot@1.0.6 Transitive: eval +7 257 kB ljharb
npm/is-array-buffer@3.0.4 Transitive: eval +5 143 kB ljharb
npm/is-typed-array@1.1.13 Transitive: eval +11 278 kB ljharb
npm/jackspeak@2.3.6 environment +15 586 kB isaacs
npm/js-sha3@0.9.3 None 0 53.1 kB emn178
npm/node-gyp-build@4.8.0 environment, filesystem 0 13.4 kB mafintosh
npm/node-releases@2.0.14 None 0 34 kB chicoxyzzy
npm/object-inspect@1.13.1 None 0 97.2 kB ljharb
npm/object.assign@4.1.5 Transitive: eval +8 248 kB ljharb
npm/path-key@3.1.1 None 0 4.55 kB sindresorhus
npm/path-scurry@1.10.1 filesystem +2 1.27 MB isaacs
npm/proc-log@3.0.0 None 0 5.21 kB lukekarrys
npm/regenerator-runtime@0.14.1 None 0 27.9 kB benjamn
npm/regenerator-transform@0.15.2 None +2 412 kB benjamn
npm/regexp.prototype.flags@1.5.1 Transitive: eval +8 214 kB ljharb
npm/safe-regex-test@1.0.2 Transitive: eval +7 183 kB ljharb
npm/shebang-command@2.0.0 None +1 5.38 kB kevva
npm/shebang-regex@3.0.0 None 0 2.83 kB sindresorhus
npm/spdx-correct@3.2.0 None +3 50.5 kB kemitchell
npm/spdx-exceptions@2.4.0 None 0 3.37 kB kemitchell
npm/spdx-expression-parse@3.0.1 None +2 27 kB kemitchell
npm/spdx-license-ids@3.0.16 None 0 11.8 kB kemitchell
npm/string.prototype.trim@1.2.8 Transitive: eval +42 3.03 MB ljharb
npm/string.prototype.trimend@1.0.7 Transitive: eval +42 3.03 MB ljharb
npm/string.prototype.trimstart@1.0.7 Transitive: eval +42 3.03 MB ljharb
npm/tape@5.7.4 Transitive: environment, eval, filesystem +74 4.14 MB domenic, ljharb, raynos
npm/update-browserslist-db@1.0.13 filesystem, shell Transitive: environment +6 2.36 MB ai
npm/which-typed-array@1.1.14 Transitive: eval +10 254 kB ljharb

🚮 Removed packages: npm/@babel/cli@7.21.0, npm/@babel/code-frame@7.22.13, npm/@babel/compat-data@7.21.4, npm/@babel/core@7.21.4, npm/@babel/generator@7.23.0, npm/@babel/helper-compilation-targets@7.21.4, npm/@babel/helper-create-regexp-features-plugin@7.21.4, npm/@babel/helper-member-expression-to-functions@7.21.0, npm/@babel/helper-module-imports@7.21.4, npm/@babel/helper-module-transforms@7.21.2, npm/@babel/helper-plugin-utils@7.20.2, npm/@babel/helper-replace-supers@7.20.7, npm/@babel/parser@7.23.0, npm/@babel/plugin-transform-dotall-regex@7.18.6, npm/@babel/plugin-transform-parameters@7.21.3, npm/@babel/plugin-transform-runtime@7.21.4, npm/@babel/preset-env@7.21.4, npm/@babel/runtime@7.21.0, npm/@babel/template@7.22.15, npm/@babel/traverse@7.23.2, npm/@babel/types@7.23.0, npm/@jridgewell/trace-mapping@0.3.18, npm/@noble/curves@1.1.0, npm/@noble/hashes@1.3.2, npm/browserslist@4.21.5, npm/call-bind@1.0.2, npm/convert-source-map@1.9.0, npm/deep-equal@2.2.0, npm/define-properties@1.1.4, npm/es-abstract@1.20.5, npm/eth-block-tracker@8.0.0, npm/get-intrinsic@1.2.0, npm/node-gyp-build@4.6.0, npm/object-inspect@1.12.3, npm/tape@5.6.1

View full report↗︎

socket-security[bot] commented 8 months ago

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
New author npm/convert-source-map@2.0.0
Shell access npm/cross-spawn@7.0.3
Network access npm/agent-base@7.1.0
Network access npm/agent-base@7.1.0
Shell access npm/foreground-child@3.1.1
Shell access npm/foreground-child@3.1.1
New author npm/eth-block-tracker@8.1.0
Network access npm/socks-proxy-agent@8.0.2

View full report↗︎

Next steps

What is new author?

A new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.

Scrutinize new collaborator additions to packages because they now have the ability to publish code into your dependency tree. Packages should avoid frequent or unnecessary additions or changes to publishing rights.

What is shell access?

This module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.

Packages should avoid accessing the shell which can reduce portability, and make it easier for malicious shell access to be introduced.

What is network access?

This module accesses the network.

Packages should remove all network access that is functionally unnecessary. Consumers should audit network access to ensure legitimate use.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/foo@1.0.0 or ignore all packages with @SocketSecurity ignore-all

  • @SocketSecurity ignore npm/convert-source-map@2.0.0
  • @SocketSecurity ignore npm/cross-spawn@7.0.3
  • @SocketSecurity ignore npm/agent-base@7.1.0
  • @SocketSecurity ignore npm/foreground-child@3.1.1
  • @SocketSecurity ignore npm/eth-block-tracker@8.1.0
  • @SocketSecurity ignore npm/socks-proxy-agent@8.0.2
mcmire commented 8 months ago

yarn dedupe currently fails with:

➤ YN0001: │ Error: @metamask/ethjs-rpc@^0.3.0 !0.3.1 isn't supported by any available resolver

This should be resolved in #117.

mcmire commented 7 months ago

Double-checked that this doesn't affect dist/.