You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							19 lines
						
					
					
						
							543 B
						
					
					
				
			
		
		
	
	
							19 lines
						
					
					
						
							543 B
						
					
					
				| "use strict";
 | |
| Object.defineProperty(exports, "__esModule", { value: true });
 | |
| const concat = require("concat-stream");
 | |
| class MemoryStorage {
 | |
|     _handleFile(_req, file, cb) {
 | |
|         file.stream.pipe(concat({ encoding: 'buffer' }, function (data) {
 | |
|             cb(null, {
 | |
|                 buffer: data,
 | |
|                 size: data.length,
 | |
|             });
 | |
|         }));
 | |
|     }
 | |
|     _removeFile(_req, file, cb) {
 | |
|         delete file.buffer;
 | |
|         cb(undefined);
 | |
|     }
 | |
| }
 | |
| exports.default = () => new MemoryStorage();
 | |
| //# sourceMappingURL=memory.js.map
 |