Skip to content

Commit eb33b92

Browse files
committed
fix: replace console.warning with console.warn
1 parent a54eb9d commit eb33b92

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/helpers/render-document-file.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const buildImage = async (docxDocumentInstance, vNode: VNodeType, maximum
3535
if (isValidUrl(imageSource)) {
3636
const base64String = await imageToBase64(imageSource).catch((error) => {
3737
// eslint-disable-next-line no-console
38-
console.warning(`skipping image download and conversion due to ${error}`);
38+
console.warn(`skipping image download and conversion due to ${error}`);
3939
});
4040

4141
if (base64String) {

src/helpers/xml-builder.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ const buildParagraph = async (vNode: VNode, attributes, docxDocumentInstance) =>
994994
if (isValidUrl(imageSource)) {
995995
base64String = await imageToBase64(imageSource).catch((error) => {
996996
// eslint-disable-next-line no-console
997-
console.warning(`skipping image download and conversion due to ${error}`);
997+
console.warn(`skipping image download and conversion due to ${error}`);
998998
});
999999

10001000
if (base64String && mimeTypes.lookup(imageSource)) {
@@ -1049,7 +1049,7 @@ const buildParagraph = async (vNode: VNode, attributes, docxDocumentInstance) =>
10491049
if (isValidUrl(imageSource)) {
10501050
base64String = await imageToBase64(imageSource).catch((error) => {
10511051
// eslint-disable-next-line no-console
1052-
console.warning(`skipping image download and conversion due to ${error}`);
1052+
console.warn(`skipping image download and conversion due to ${error}`);
10531053
});
10541054

10551055
if (base64String && mimeTypes.lookup(imageSource)) {

0 commit comments

Comments
 (0)