Update checked-in dependencies
This commit is contained in:
parent
d1d4cc3106
commit
d0e23476a6
154 changed files with 33522 additions and 69 deletions
26
node_modules/jszip/lib/stream/ConvertWorker.js
generated
vendored
Normal file
26
node_modules/jszip/lib/stream/ConvertWorker.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
'use strict';
|
||||
|
||||
var GenericWorker = require('./GenericWorker');
|
||||
var utils = require('../utils');
|
||||
|
||||
/**
|
||||
* A worker which convert chunks to a specified type.
|
||||
* @constructor
|
||||
* @param {String} destType the destination type.
|
||||
*/
|
||||
function ConvertWorker(destType) {
|
||||
GenericWorker.call(this, "ConvertWorker to " + destType);
|
||||
this.destType = destType;
|
||||
}
|
||||
utils.inherits(ConvertWorker, GenericWorker);
|
||||
|
||||
/**
|
||||
* @see GenericWorker.processChunk
|
||||
*/
|
||||
ConvertWorker.prototype.processChunk = function (chunk) {
|
||||
this.push({
|
||||
data : utils.transformTo(this.destType, chunk.data),
|
||||
meta : chunk.meta
|
||||
});
|
||||
};
|
||||
module.exports = ConvertWorker;
|
||||
Loading…
Add table
Add a link
Reference in a new issue