capacitor-assets icon indicating copy to clipboard operation
capacitor-assets copied to clipboard

high severity vulnerabilities after install @capacitor/assets 3.0.5

Open erwinpalma opened this issue 1 year ago • 3 comments

I have installed "@capacitor/assets": "^3.0.5" from my ionic project, but after the installation I got the following warnings

npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other.
npm warn deprecated
npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp)
npm warn deprecated @xmldom/[email protected]: this version is no longer supported, please update to at least 0.8.*
npm warn deprecated @xmldom/[email protected]: this version is no longer supported, please update to at least 0.8.*

and the high severity vulnerabilities message

3 high severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

Environment

Ionic:

   Ionic CLI                     : 7.2.0 (/opt/homebrew/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 8.4.0
   @angular-devkit/build-angular : 17.3.11
   @angular-devkit/schematics    : 17.3.11
   @angular/cli                  : 17.3.11
   @ionic/angular-toolkit        : 12.1.1

Capacitor:

   Capacitor CLI      : 6.1.2
   @capacitor/android : not installed
   @capacitor/core    : 6.1.2
   @capacitor/ios     : not installed

Utility:

   cordova-res : not installed globally
   native-run  : 2.0.1

System:

   NodeJS : v20.16.0 (/usr/local/bin/node)
   npm    : 10.8.1
   OS     : macOS Unknown

Steps to reproduce the issue.

  1. Start a new ionic aplication ionic start myApp blank --capacitor --typeangular-standalone
  2. Move to the project directory cd myApp
  3. Install it npm i @capacitor/assets
  4. See the error.

erwinpalma avatar Nov 12 '24 15:11 erwinpalma

Same here. Looks like these are coming from deps of deps.

% npm ls q
[email protected] /Users/home/Projects/myapp
└─┬ @myapp/[email protected] -> ./apps/app
  └─┬ @capacitor/[email protected]
    └─┬ @trapezedev/[email protected]
      └─┬ [email protected]
        ├─┬ [email protected]
        │ └── [email protected]
        ├─┬ [email protected]
        │ └── [email protected] deduped
        ├─┬ [email protected]
        │ └── [email protected] deduped
        ├─┬ [email protected]
        │ └── [email protected] deduped
        ├─┬ [email protected]
        │ └── [email protected] deduped
        ├─┬ [email protected]
        │ └── [email protected] deduped
        ├─┬ [email protected]
        │ └── [email protected] deduped
        ├─┬ [email protected]
        │ └── [email protected] deduped
        ├─┬ [email protected]
        │ └── [email protected] deduped
        └─┬ [email protected]
          └── [email protected] deduped

prtcl avatar Nov 16 '24 02:11 prtcl

O mesmo aconteceu comigo, sera concertado em breve?

sebastianjnuwu avatar Dec 23 '24 19:12 sebastianjnuwu

The README suggests using npx @capacitor/assets rather than installing this to your project with npm. Installing this project and its deps just add cruft to your project; you should run it with npx as suggested in the docs.

ptmkenny avatar May 10 '25 13:05 ptmkenny