Replace blueimp-canvas-to-blob with blob-util

This commit is contained in:
Daniel Gasienica
2018-02-13 11:12:58 -05:00
parent 47a5f2bfd8
commit 7a0ba6fed6
4 changed files with 2 additions and 8 deletions

View File

@@ -1,8 +1,7 @@
/* eslint-env browser */ /* eslint-env browser */
const dataURLToBlob = require('blueimp-canvas-to-blob');
const MIME = require('./mime'); const MIME = require('./mime');
const { arrayBufferToBlob, blobToArrayBuffer } = require('blob-util'); const { arrayBufferToBlob, blobToArrayBuffer, dataURLToBlob } = require('blob-util');
const { autoOrientImage } = require('../auto_orient_image'); const { autoOrientImage } = require('../auto_orient_image');
// Increment this everytime we change how attachments are processed. This allows us to // Increment this everytime we change how attachments are processed. This allows us to

View File

@@ -42,7 +42,6 @@
}, },
"dependencies": { "dependencies": {
"blob-util": "^1.3.0", "blob-util": "^1.3.0",
"blueimp-canvas-to-blob": "^3.14.0",
"blueimp-load-image": "^2.18.0", "blueimp-load-image": "^2.18.0",
"bunyan": "^1.8.12", "bunyan": "^1.8.12",
"config": "^1.28.1", "config": "^1.28.1",

View File

@@ -60,7 +60,7 @@
window.nodeSetImmediate(function() {}); window.nodeSetImmediate(function() {});
}, 1000); }, 1000);
window.dataURLToBlob = require('blueimp-canvas-to-blob'); window.dataURLToBlob = require('blob-util').dataURLToBlob;
window.loadImage = require('blueimp-load-image'); window.loadImage = require('blueimp-load-image');
window.ProxyAgent = require('proxy-agent'); window.ProxyAgent = require('proxy-agent');
window.EmojiConvertor = require('emoji-js'); window.EmojiConvertor = require('emoji-js');

View File

@@ -468,10 +468,6 @@ bluebird@^3.5.1:
version "3.5.1" version "3.5.1"
resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9"
blueimp-canvas-to-blob@^3.14.0:
version "3.14.0"
resolved "https://registry.yarnpkg.com/blueimp-canvas-to-blob/-/blueimp-canvas-to-blob-3.14.0.tgz#ea075ffbfb1436607b0c75e951fb1ceb3ca0288e"
blueimp-load-image@^2.18.0: blueimp-load-image@^2.18.0:
version "2.18.0" version "2.18.0"
resolved "https://registry.yarnpkg.com/blueimp-load-image/-/blueimp-load-image-2.18.0.tgz#03b93687eb382a7136cfbcbd4f0e936b6763fc0e" resolved "https://registry.yarnpkg.com/blueimp-load-image/-/blueimp-load-image-2.18.0.tgz#03b93687eb382a7136cfbcbd4f0e936b6763fc0e"