Skip to content

Commit 932a22d

Browse files
@jotadevelopersergiohgz
authored andcommitted
fix: add es6 imports
1 parent 434628f commit 932a22d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

core/streams/src/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
'use strict';
2-
3-
const Stream = require('stream');
1+
import { PassThrough } from 'stream';
42

53
/**
64
* This stream is used to read tarballs from repository.
75
* @param {*} options
86
* @return {Stream}
97
*/
10-
class ReadTarball extends Stream.PassThrough {
8+
class ReadTarball extends PassThrough {
119

1210
/**
1311
*
@@ -25,7 +23,7 @@ class ReadTarball extends Stream.PassThrough {
2523
* @param {*} options
2624
* @return {Stream}
2725
*/
28-
class UploadTarball extends Stream.PassThrough {
26+
class UploadTarball extends PassThrough {
2927

3028
/**
3129
*

0 commit comments

Comments
 (0)