pouchdb-md5
Advanced tools
Comparing version 8.0.1 to 9.0.0
@@ -11,13 +11,6 @@ import { btoa, readAsArrayBuffer } from 'pouchdb-binary-utils'; | ||
function sliceBlob(blob, start, end) { | ||
if (blob.webkitSlice) { | ||
return blob.webkitSlice(start, end); | ||
} | ||
return blob.slice(start, end); | ||
} | ||
function appendBlob(buffer, blob, start, end, callback) { | ||
if (start > 0 || end < blob.size) { | ||
// only slice blob if we really need to | ||
blob = sliceBlob(blob, start, end); | ||
blob = blob.slice(start, end); | ||
} | ||
@@ -24,0 +17,0 @@ readAsArrayBuffer(blob, function (arrayBuffer) { |
@@ -17,13 +17,6 @@ 'use strict'; | ||
function sliceBlob(blob, start, end) { | ||
if (blob.webkitSlice) { | ||
return blob.webkitSlice(start, end); | ||
} | ||
return blob.slice(start, end); | ||
} | ||
function appendBlob(buffer, blob, start, end, callback) { | ||
if (start > 0 || end < blob.size) { | ||
// only slice blob if we really need to | ||
blob = sliceBlob(blob, start, end); | ||
blob = blob.slice(start, end); | ||
} | ||
@@ -30,0 +23,0 @@ pouchdbBinaryUtils.readAsArrayBuffer(blob, function (arrayBuffer) { |
{ | ||
"name": "pouchdb-md5", | ||
"version": "8.0.1", | ||
"version": "9.0.0", | ||
"description": "PouchDB utilities for calculating MD5 checksums.", | ||
@@ -14,3 +14,3 @@ "main": "./lib/index.js", | ||
}, | ||
"jsnext:main": "./lib/index.es.js", | ||
"module": "./lib/index.es.js", | ||
"browser": { | ||
@@ -21,11 +21,9 @@ "./lib/index.js": "./lib/index-browser.js", | ||
"dependencies": { | ||
"pouchdb-binary-utils": "8.0.1", | ||
"pouchdb-binary-utils": "9.0.0", | ||
"spark-md5": "3.0.2" | ||
}, | ||
"module": "./lib/index.es.js", | ||
"files": [ | ||
"lib", | ||
"dist", | ||
"tonic-example.js" | ||
"dist" | ||
] | ||
} |
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
17469
142
+ Addedpouchdb-binary-utils@9.0.0(transitive)
- Removedbuffer-from@1.1.2(transitive)
- Removedpouchdb-binary-utils@8.0.1(transitive)
Updatedpouchdb-binary-utils@9.0.0