From 894993527999972a36992b8301e019523a44cc32 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 27 Sep 2018 20:20:27 +0200 Subject: [PATCH] FileSaver.js 2.0.0-rc.2 --- package.json | 2 +- src/components/atoms/Vcard.jsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c4026e0..ebb9c4b 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "new": "babel-node ./scripts/new.js" }, "dependencies": { - "file-saver": "^1.3.8", + "file-saver": "^2.0.0-rc.2", "gatsby": "^2.0.11", "gatsby-image": "^2.0.10", "gatsby-plugin-favicon": "^3.1.4", diff --git a/src/components/atoms/Vcard.jsx b/src/components/atoms/Vcard.jsx index e430685..1ce4a5d 100644 --- a/src/components/atoms/Vcard.jsx +++ b/src/components/atoms/Vcard.jsx @@ -1,6 +1,6 @@ import React from 'react' import { StaticQuery, graphql } from 'gatsby' -import FileSaver from 'file-saver' +import saveAs from 'file-saver' import vCard from 'vcf' const query = graphql` @@ -61,7 +61,7 @@ const Vcard = () => ( const downloadVcard = (vcard, meta) => { const name = meta.addressbook.split('/').join('') const blob = new Blob([vcard], { type: 'text/x-vcard' }) - FileSaver.saveAs(blob, name) + saveAs(blob, name) } const constructVcard = meta => {