getAlby / bitcoin-connect

Connecting lightning wallets to your webapp has never been easier. Enable WebLN in all browsers with a single button
https://bitcoin-connect.com
MIT License
79 stars 26 forks source link

chore: simplify conditional balance display and bitcoin connect store #227

Closed rolznz closed 1 month ago

rolznz commented 1 month ago

Addresses https://github.com/getAlby/bitcoin-connect/pull/226#discussion_r1597574169

socket-security[bot] commented 1 month ago

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

Package New capabilities Transitives Size Publisher
npm/@babel/code-frame@7.22.10 Transitive: environment +8 170 kB nicolo-ribaudo
npm/@babel/helper-compilation-targets@7.22.10 None +3 94.1 kB nicolo-ribaudo
npm/@babel/helper-create-class-features-plugin@7.22.11 Transitive: environment, filesystem, unsafe +18 3.01 MB nicolo-ribaudo
npm/@babel/parser@7.22.11 None 0 1.88 MB nicolo-ribaudo
npm/@babel/plugin-transform-optional-chaining@7.22.12 Transitive: environment, filesystem, unsafe +16 2.79 MB nicolo-ribaudo
npm/@babel/plugin-transform-regenerator@7.22.10 Transitive: environment, filesystem, unsafe +15 2.88 MB nicolo-ribaudo
npm/@babel/runtime@7.22.11 None +1 272 kB nicolo-ribaudo
npm/@babel/types@7.22.11 environment +3 2.48 MB nicolo-ribaudo
npm/@eslint-community/regexpp@4.6.2 None 0 429 kB eslint-community-bot
npm/@getalby/bitcoin-connect-react@3.2.2 Transitive: network +1 889 kB rolznz
npm/@getalby/bitcoin-connect-react@3.3.0-beta.3 Transitive: environment, network +14 6.02 MB rolznz
npm/@getalby/bitcoin-connect@3.4.2 Transitive: environment, network +5 67.4 MB
npm/@getalby/lightning-tools@5.0.0 network 0 134 kB reneaaron
npm/@jridgewell/trace-mapping@0.3.19 None +1 219 kB jridgewell
npm/@types/node@20.10.4 None 0 3.93 MB types
npm/@types/react-dom@18.2.17 None 0 33.1 kB types
npm/@types/react-dom@18.2.7 None 0 30.2 kB types
npm/@types/react@18.2.18 None +3 1.6 MB types
npm/@types/react@18.2.21 None 0 363 kB types
npm/@types/react@18.2.43 None +3 1.63 MB types
npm/@typescript-eslint/eslint-plugin@6.2.1 Transitive: filesystem +28 6.07 MB jameshenry
npm/@typescript-eslint/parser@6.2.1 Transitive: filesystem +21 2.18 MB jameshenry
npm/@vitejs/plugin-react-swc@3.3.2 environment, filesystem, unsafe Transitive: shell +11 390 MB vitebot
npm/@webbtc/webln-types@1.0.13 None 0 10.4 kB rolznz
npm/array-includes@3.1.7 None +7 2.19 MB ljharb
npm/array.prototype.flat@1.3.2 None +8 2.2 MB ljharb
npm/array.prototype.flatmap@1.3.2 None +8 2.2 MB ljharb
npm/autoprefixer@10.4.16 environment Transitive: filesystem +4 646 kB ai
npm/browserslist@4.21.10 environment, filesystem Transitive: shell +4 365 kB ai
npm/call-bind@1.0.5 None 0 21.1 kB ljharb
npm/caniuse-lite@1.0.30001523 None 0 2.07 MB caniuse-lite
npm/caniuse-lite@1.0.30001568 None 0 1.94 MB caniuse-lite
npm/css-tree@1.1.3 None +1 1.55 MB lahmatiy
npm/define-data-property@1.1.1 None +1 39.8 kB ljharb
npm/define-properties@1.2.0 None +2 48.3 kB ljharb
npm/define-properties@1.2.1 None +1 23.4 kB ljharb
npm/es-abstract@1.22.1 None +37 3.77 MB ljharb
npm/es-iterator-helpers@1.0.15 None +9 2.34 MB ljharb
npm/eslint-config-next@14.0.4 unsafe Transitive: environment, filesystem +38 11.8 MB vercel-release-bot
npm/eslint-import-resolver-node@0.3.9 Transitive: environment +1 58.5 kB ljharb
npm/eslint-module-utils@2.8.0 None 0 36.4 kB ljharb
npm/eslint-plugin-react-hooks@4.6.0 environment 0 118 kB gnoff
npm/eslint-plugin-react-refresh@0.4.3 None 0 11.6 kB arnaud-barre
npm/eslint-visitor-keys@3.4.2 None 0 32.2 kB eslintbot
npm/eslint@8.46.0 environment, filesystem Transitive: eval, shell, unsafe +70 8.7 MB eslintbot
npm/eslint@8.55.0 environment, filesystem Transitive: unsafe +12 4.48 MB eslintbot
npm/fast-glob@3.3.2 filesystem 0 96.7 kB mrmlnc
npm/function-bind@1.1.2 None 0 31.4 kB ljharb
npm/function.prototype.name@1.1.6 None +7 2.19 MB ljharb
npm/get-intrinsic@1.2.2 eval +1 50.7 kB ljharb
npm/glob@7.1.7 filesystem 0 55.9 kB isaacs
npm/internal-slot@1.0.5 None +3 61.9 kB ljharb
npm/is-array-buffer@3.0.2 None 0 11.9 kB ljharb
npm/is-core-module@2.13.1 None +1 41.1 kB ljharb
npm/is-typed-array@1.1.12 None 0 17.6 kB ljharb
npm/jsx-ast-utils@3.3.5 None +1 308 kB ljharb
npm/lit@3.0.0 Transitive: environment +5 2.73 MB lit-robot
npm/nanoid@3.3.7 None 0 24.4 kB ai
npm/next@14.0.4 environment, filesystem, network, shell, unsafe +13 1.15 GB vercel-release-bot
npm/object-inspect@1.13.1 None 0 97.2 kB ljharb
npm/object.entries@1.1.7 None +7 2.2 MB ljharb
npm/object.fromentries@2.0.7 None +7 2.18 MB ljharb
npm/object.values@1.1.7 None +7 2.2 MB ljharb
npm/react-dom@18.2.0 environment +3 4.62 MB gnoff
npm/react-hot-toast@2.4.1 None +2 1.51 MB timolins
npm/react@18.2.0 environment +2 337 kB gnoff
npm/regexp.prototype.flags@1.5.0 None 0 38.5 kB ljharb
npm/resolve@1.22.4 environment, filesystem +5 216 kB ljharb
npm/tslib@2.6.2 None 0 84 kB typescript-bot
npm/typescript@5.1.6 None 0 40.1 MB typescript-bot
npm/vite@4.4.8 environment, eval, filesystem, network, shell, unsafe +29 213 MB vitebot
npm/which-typed-array@1.1.11 None +4 79.5 kB ljharb

🚮 Removed packages: npm/@babel/code-frame@7.22.5, npm/@babel/generator@7.22.9, npm/@babel/helper-compilation-targets@7.22.9, npm/@babel/helper-create-class-features-plugin@7.22.9, npm/@babel/parser@7.22.7, npm/@babel/plugin-transform-optional-chaining@7.22.6, npm/@babel/plugin-transform-regenerator@7.22.5, npm/@babel/runtime@7.22.6, npm/@babel/traverse@7.22.8, npm/@babel/types@7.22.5, npm/@jridgewell/trace-mapping@0.3.18, npm/@lit/reactive-element@2.0.2, npm/@open-wc/testing@3.2.2, npm/@twind/core@1.1.3, npm/@twind/preset-tailwind@1.1.4, npm/@twind/with-web-components@1.1.3, npm/@types/chai@4.3.5, npm/@types/istanbul-lib-coverage@2.0.4, npm/@types/koa@2.13.6, npm/@types/mime@1.3.2, npm/@typescript-eslint/eslint-plugin@5.62.0, npm/@typescript-eslint/parser@5.62.0, npm/@web/dev-server-esbuild@0.4.4, npm/@web/parse5-utils@2.1.0, npm/@web/test-runner-core@0.10.29, npm/@web/test-runner-playwright@0.9.0, npm/@web/test-runner@0.15.3, npm/@webbtc/webln-types@2.1.0, npm/@webcomponents/webcomponentsjs@2.8.0, npm/array-back@3.1.0, npm/browserslist@4.21.9, npm/buffer@5.7.1, npm/caniuse-lite@1.0.30001517, npm/command-line-args@5.2.1, npm/command-line-usage@7.0.1, npm/concurrently@8.2.2, npm/depd@2.0.0, npm/end-of-stream@1.4.4, npm/esbuild@0.18.20, npm/eslint-visitor-keys@3.4.1, npm/eslint@8.57.0, npm/extend-shallow@3.0.2, npm/fast-glob@3.3.0, npm/get-value@2.0.6, npm/http-errors@1.8.1, npm/is-descriptor@1.0.2, npm/is-extendable@0.1.1, npm/is-plain-object@2.0.4, npm/isobject@3.0.1, npm/kind-of@6.0.3, npm/koa-send@5.0.1, npm/lit-analyzer@1.2.1, npm/lit-element@4.0.5, npm/lit-html@3.1.0, npm/lit@3.1.3, npm/lodash@4.17.21, npm/mime-types@2.1.35, npm/prettier@2.8.8, npm/readable-stream@3.6.2, npm/regex-not@1.0.2, npm/resolve@1.22.2, npm/split-string@3.1.0, npm/statuses@1.5.0, npm/to-regex@3.0.2, npm/tslib@2.6.1, npm/typescript@4.7.4, npm/vite@4.5.3

View full report↗︎

socket-security[bot] commented 1 month 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
Install scripts npm/@swc/core@1.3.74
  • Install script: postinstall
  • Source: node postinstall.js
Telemetry npm/next@14.0.4
  • Note: Can be disabled by setting the environment variable NEXT_TELEMETRY_DISABLED=1 . See https://nextjs.org/telemetry for more information

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.

What is telemetry?

This package contains telemetry which tracks how it is used.

Most telemetry comes with settings to disable it. Consider disabling telemetry if you do not want to be tracked.

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/@swc/core@1.3.74
  • @SocketSecurity ignore npm/next@14.0.4