From 8e02cbe98bbe81f3a0cae31fb7856551fcbe7194 Mon Sep 17 00:00:00 2001 From: Mauro Bartolomeoli Date: Tue, 17 Jan 2017 15:40:00 +0100 Subject: [PATCH] Upgraded browser-filesaver to file-saver (the official version) --- package.json | 2 +- web/client/actions/__tests__/snapshot-test.js | 2 +- web/client/utils/FileUtils.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 757b9b468a..9fe5d20b26 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "babel-polyfill": "6.8.0", "babel-standalone": "6.7.7", "bootstrap": "3.3.6", - "browser-filesaver": "1.1.1", + "file-saver": "1.3.3", "canvas-to-blob": "0.0.0", "classnames": "2.2.5", "colorbrewer": "1.0.0", diff --git a/web/client/actions/__tests__/snapshot-test.js b/web/client/actions/__tests__/snapshot-test.js index 1439e309f9..26db67713c 100644 --- a/web/client/actions/__tests__/snapshot-test.js +++ b/web/client/actions/__tests__/snapshot-test.js @@ -16,7 +16,7 @@ var { onSnapshotReady, saveImage } = require('../snapshot'); -var FileSaver = require('browser-filesaver'); +var FileSaver = require('file-saver'); var originalSaveAs = FileSaver.saveAs; var testImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AMLEC8BMwzneAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAMSURBVAjXY/j//z8ABf4C/tzMWecAAAAASUVORK5CYII="; describe('Test correctness of the snapshot actions', () => { diff --git a/web/client/utils/FileUtils.js b/web/client/utils/FileUtils.js index b1e7cce87f..aa0163dc3a 100644 --- a/web/client/utils/FileUtils.js +++ b/web/client/utils/FileUtils.js @@ -6,7 +6,7 @@ * LICENSE file in the root directory of this source tree. */ -const FileSaver = require('browser-filesaver'); +const FileSaver = require('file-saver'); const toBlob = require('canvas-to-blob'); const shp = require('shpjs');