]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix frontend deps' vulnerabilities 44145/head
authorAlfonso Martínez <almartin@redhat.com>
Thu, 2 Dec 2021 14:05:23 +0000 (15:05 +0100)
committerAlfonso Martínez <almartin@redhat.com>
Thu, 2 Dec 2021 14:05:23 +0000 (15:05 +0100)
commitf08c0db689dc6bd29323ac03a91c69e2fe7365a2
tree9f8b5b93660e0c278819ca1eeafcd532744582df
parent64054795deb528090ecfebad9a6b50642f6f021a
mgr/dashboard: fix frontend deps' vulnerabilities

- Remove npm-force-resolutions: no resolution needed anymore and this is modifying package-lock.json every time it is run (striping last empty line).
- Add .npmrc: save exact version by default; do not launch audit report when installing.

Fixes: https://tracker.ceph.com/issues/48005
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
doc/dev/developer_guide/dash-devel.rst
src/pybind/mgr/dashboard/frontend/.npmrc [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/package-lock.json
src/pybind/mgr/dashboard/frontend/package.json
src/pybind/mgr/dashboard/run-frontend-unittests.sh