@travetto/runtime 5.0.0-rc.10 → 5.0.0-rc.11

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/binary.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/runtime",
3
- "version": "5.0.0-rc.10",
3
+ "version": "5.0.0-rc.11",
4
4
  "description": "Runtime for travetto applications.",
5
5
  "keywords": [
6
6
  "console-manager",
package/src/binary.ts CHANGED
@@ -63,8 +63,8 @@ export class BinaryUtil {
63
63
  * Make a blob, and assign metadata
64
64
  */
65
65
  static readableBlob(input: () => (Readable | Promise<Readable>), metadata: BlobMeta): Blob {
66
- const stream = new PassThrough();
67
66
  const go = (): Readable => {
67
+ const stream = new PassThrough();
68
68
  Promise.resolve(input()).then(v => v.pipe(stream), (err) => stream.destroy(err));
69
69
  return stream;
70
70
  };