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');