Skip to content

Commit

Permalink
fix: add es6 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
@jotadeveloper authored and sergiohgz committed Jul 24, 2019
1 parent 434628f commit 932a22d
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions core/streams/src/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
'use strict';

const Stream = require('stream');
import { PassThrough } from 'stream';

/**
* This stream is used to read tarballs from repository.
* @param {*} options
* @return {Stream}
*/
class ReadTarball extends Stream.PassThrough {
class ReadTarball extends PassThrough {

/**
*
Expand All @@ -25,7 +23,7 @@ class ReadTarball extends Stream.PassThrough {
* @param {*} options
* @return {Stream}
*/
class UploadTarball extends Stream.PassThrough {
class UploadTarball extends PassThrough {

/**
*
Expand Down

0 comments on commit 932a22d

Please # to comment.