@google-cloud/nodejs-common 2.0.2-alpha → 2.0.3-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/nodejs-common",
3
- "version": "2.0.2-alpha",
3
+ "version": "2.0.3-alpha",
4
4
  "description": "A NodeJs common library for solutions based on Cloud Functions",
5
5
  "author": "Google Inc.",
6
6
  "license": "Apache-2.0",
@@ -98,7 +98,7 @@ class StorageFile {
98
98
  stream.on('data', (chunk) => void chunks.push(chunk));
99
99
  stream.on('end', () => {
100
100
  console.log(`Get [${this.fileName}] from ${start} to ${end}`);
101
- resolve(chunks.join(''));
101
+ resolve(Buffer.concat(chunks).toString());
102
102
  });
103
103
  stream.on('error', (error) => void reject(error));
104
104
  });