update electron to v43
This commit is contained in:
parent
68ac0beedf
commit
fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions
19
electron/node_modules/unzipper/lib/BufferStream.js
generated
vendored
Normal file
19
electron/node_modules/unzipper/lib/BufferStream.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const Stream = require('stream');
|
||||
|
||||
module.exports = function(entry) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
const chunks = [];
|
||||
const bufferStream = Stream.Transform()
|
||||
.on('finish', function() {
|
||||
resolve(Buffer.concat(chunks));
|
||||
})
|
||||
.on('error', reject);
|
||||
|
||||
bufferStream._transform = function(d, e, cb) {
|
||||
chunks.push(d);
|
||||
cb();
|
||||
};
|
||||
entry.on('error', reject)
|
||||
.pipe(bufferStream);
|
||||
});
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue