docx-to-pdf-axios
Advanced tools
Comparing version 1.1.3 to 1.1.4
/// <reference types="node" /> | ||
export default function docxToPdfAxios(docx: Blob | Buffer): Promise<ArrayBuffer>; |
@@ -48,3 +48,3 @@ "use strict"; | ||
let options = { responseType: 'json' }; | ||
if (browser_or_node_1.isNode) | ||
if (browser_or_node_1.isNode && typeof formData.getHeaders === 'function') | ||
options.headers = formData.getHeaders(); | ||
@@ -51,0 +51,0 @@ let files = (yield axios_1.default.post('https://filetools2.pdf24.org/client.php?action=upload', formData, options)).data; |
{ | ||
"name": "docx-to-pdf-axios", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Convert docx files to pdf using https://tools.pdf24.org. This fork uses axios so it is compatible with both the browser and node.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6513