Closed yensung closed 2 years ago
https://github.com/allenai/scholar/issues/29403
@types/react-pdf
5.7.2
react-pdf
PDFDocumentProxy
pdfjs-dist
--exit
yarn test
yarn audit
lib
pdf-component.js
pdf-component.css
index.d.ts
Description
https://github.com/allenai/scholar/issues/29403
@types/react-pdf
to5.7.2
(same withreact-pdf
)PDFDocumentProxy
is imported fromreact-pdf
instead ofpdfjs-dist
to avoid ts-lint errors--exit
at the end ofyarn test
command to jump out of ts-mocha when finishing running all testsTesting Plan
yarn audit
reports no vulnerable packagelib
and the whole docker container can be successfully builtpdf-component.js
,pdf-component.css
, andindex.d.ts
can be used on S2 without any errors