File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " react-pdf-html" ,
3- "version" : " 2.0.1 " ,
3+ "version" : " 2.0.2 " ,
44 "author" : " Dan Blaisdell dan@manifestwebdesign.com" ,
55 "description" : " Html component for react-pdf with CSS support" ,
66 "keywords" : [
Original file line number Diff line number Diff line change 11export { default , default as Html } from './Html.js' ;
22export { default as renderHtml } from './render.js' ;
33export { HtmlStyle , HtmlStyles } from './styles.js' ;
4- export { fetchStylesheets } from './remoteCss.js' ;
4+ export { fetchStylesheets , fetchStylesheet } from './remoteCss.js' ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { createCache } from './cache.js';
55
66export const CSS_CACHE = createCache ( { limit : 30 } ) ;
77
8- export const resolveCssFile = async (
8+ export const fetchStylesheet = async (
99 src : string ,
1010 fetchOptions ?: RequestInit ,
1111 cache = true
@@ -41,7 +41,7 @@ export const fetchStylesheets = async (
4141 . querySelectorAll ( 'link[rel="stylesheet"][href]' )
4242 . map ( async ( styleNode ) => {
4343 try {
44- const styleText = await resolveCssFile (
44+ const styleText = await fetchStylesheet (
4545 styleNode . getAttribute ( 'href' ) as string ,
4646 fetchOptions
4747 ) ;
You can’t perform that action at this time.
0 commit comments