content-entry
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -184,2 +184,21 @@ 'use strict'; | ||
} | ||
async getBuffer(options) { | ||
const stream$$1 = await this.getReadStream(options); | ||
let chunks = []; | ||
for await (const chunk of stream$$1) { | ||
chunks.push(chunk); | ||
} | ||
return Buffer.concat(chunks); | ||
} | ||
async setBuffer(value, options) { | ||
const stream$$1 = await this.getWriteStream(options); | ||
return new Promise((resolve, reject) => | ||
stream$$1.end(value, () => resolve()) | ||
); | ||
} | ||
}; | ||
@@ -186,0 +205,0 @@ } |
{ | ||
"name": "content-entry", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"publishConfig": { | ||
@@ -5,0 +5,0 @@ "access": "public" |
Sorry, the diff of this file is not supported yet
25764
626