XRPLF / xrpl-dev-portal

Source code for xrpl.org including developer documentation
https://xrpl.org
Other
528 stars 1.02k forks source link

Migration to the new version of Realm #2643

Closed nzicko closed 3 months ago

nzicko commented 3 months ago

Update Realm to the version 0.86.0

socket-security[bot] commented 3 months ago

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

Package New capabilities Transitives Size Publisher
npm/@codemirror/state@6.4.1 None 0 436 kB marijn
npm/@codemirror/view@6.26.3 None 0 1.1 MB marijn
npm/@noble/curves@1.4.0 None 0 1.39 MB paulmillr
npm/@noble/hashes@1.4.0 None 0 773 kB paulmillr
npm/@redocly/realm@0.86.0 Transitive: environment, eval, filesystem, network, shell, unsafe +150 71.5 MB marshevskyy
npm/@scure/base@1.1.7 None 0 122 kB paulmillr
npm/@types/node@20.14.9 None +1 2.16 MB types
npm/@xrplf/isomorphic@1.0.1 None 0 55.3 kB khancode_
npm/async@3.2.5 None 0 808 kB aearly
npm/bignumber.js@9.0.2 None 0 349 kB mikemcl
npm/electron@22.3.25 environment, filesystem, shell Transitive: eval, network +69 4.69 MB electron-nightly
npm/fernet@0.4.0 None +2 741 kB csquared
npm/five-bells-condition@5.0.1 Transitive: environment, filesystem, unsafe +5 1.25 MB interledger
npm/fs@0.0.1-security None 0 794 B ehsalazar
npm/open@8.4.2 environment, filesystem, shell +3 57.5 kB sindresorhus
npm/prompt@1.3.0 Transitive: environment, filesystem +12 1.93 MB caub
npm/qrcode@1.5.3 filesystem Transitive: environment +19 1.6 MB soldair
npm/ripple-lib@0.17.9 network Transitive: environment, eval, filesystem +29 29.9 MB intelliot
npm/ripple-lib@1.10.1 network Transitive: environment, eval +31 9.49 MB intelliot
npm/secp256k1@5.0.0 Transitive: environment, filesystem +2 2.53 MB fanatid
npm/toml@3.0.0 None 0 144 kB binarymuse
npm/xrpl@3.1.0 None +3 10.4 MB khancode_

🚮 Removed packages: npm/@codemirror/state@6.3.3, npm/@codemirror/view@6.22.3, npm/@redocly/realm@0.82.4, npm/lottie-react@2.4.0, npm/moment@2.29.4, npm/react-alert@7.0.3, npm/react18-json-view@0.2.6, npm/react@18.2.0, npm/sass@1.26.10

View full report↗︎

socket-security[bot] commented 3 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 NoteSourceCI
Install scripts npm/electron@22.3.25 🚫

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

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/electron@22.3.25
tequdev commented 3 months ago

Rather than using two Hooks to use translate(), how about creating useTranslate as a custom Hook?

export const useTranslate = () =>{
  const { useTranslate } = useThemeHooks();
  return useTranslate
}

and use this

  import { useTranslate } from './some/thing'
  ...
  const { translate } = useTranslate();