vue-json-to-csv-async
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "vue-json-to-csv-async", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A Vue.js 2 component to transform and download a json in csv format. It also accepts promises as value.", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-json-to-csv.js", |
@@ -60,8 +60,8 @@ module.exports = { | ||
try { | ||
let uri = 'data:text/csv;charset=utf-8,' + '\uFEFF' + encodeURIComponent(csv) | ||
let csvData = new Blob([csv], { type: 'text/csv;charset=utf-8' }); | ||
let csvUrl = URL.createObjectURL(csvData); | ||
let link = document.createElement('a') | ||
link.id = 'csv-' + uid | ||
link.href = uri | ||
link.href = csvUrl | ||
@@ -68,0 +68,0 @@ document.body.appendChild(link) |
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
14304
186