Comparing version 0.1.7 to 0.1.8
@@ -8,6 +8,6 @@ "use strict"; | ||
var charBom = "\uFEFF"; | ||
var content = "data:text/" + dataType + ";charset=utf-8," + charBom + data; | ||
var encodedUri = encodeURI(content); | ||
var encodedData = encodeURIComponent(data); | ||
var content = "data:text/" + dataType + ";charset=utf-8," + charBom + encodedData; | ||
var link = document.createElement("a"); | ||
link.setAttribute("href", encodedUri); | ||
link.setAttribute("href", content); | ||
link.setAttribute("download", fileName); | ||
@@ -14,0 +14,0 @@ document.body.appendChild(link); |
{ | ||
"name": "filefy", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "A javascript library to produce downloadable files sucs as in CSV, PDF, XLSX, DOCX formats", | ||
@@ -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
6370