This repository was archived by the owner on Mar 25, 2018. It is now read-only.
File tree 4 files changed +10
-9
lines changed
4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 3
3
const assert = require ( 'assert' ) ;
4
4
const path = require ( 'path' ) ;
5
5
const util = require ( 'util' ) ;
6
+ const Readable = require ( 'stream' ) . Readable ;
6
7
7
8
const fs = require ( 'mz/fs' ) ;
8
9
const _eval = require ( 'node-eval' ) ;
9
10
const merge = require ( 'merge2' ) ;
10
11
const gulpBemSrc = require ( 'gulp-bem-src' ) ;
11
12
const thru = require ( 'through2' ) ;
12
- const BemBundle = require ( '@bem/bundle' ) ;
13
+ const BemBundle = require ( '@bem/sdk. bundle' ) ;
13
14
const File = require ( 'vinyl' ) ;
14
15
15
16
/**
@@ -73,7 +74,7 @@ module.exports = function(opts) {
73
74
} )
74
75
] ) ) ;
75
76
76
- const out = thru . obj ( ) ;
77
+ const out = new Readable ( { objectMode : true , read ( ) { } } ) ;
77
78
78
79
buffer
79
80
. then ( chunks => {
@@ -93,7 +94,7 @@ module.exports = function(opts) {
93
94
const stream = tryCatch ( ( ) => streamGenerator ( ctx ) , cb ) ;
94
95
95
96
if ( ! stream ) {
96
- return thru . obj ( ) ;
97
+ return new Readable ( { objectMode : null , read ( ) { } } ) ;
97
98
}
98
99
99
100
targetDataBuffer [ target ] = new Promise ( resolve => {
Original file line number Diff line number Diff line change 28
28
" lib"
29
29
],
30
30
"dependencies" : {
31
- "@bem/bundle" : " ^0.2.0 " ,
32
- "gulp-bem-src" : " 0.0.5 " ,
31
+ "@bem/sdk. bundle" : " ^0.2.6 " ,
32
+ "gulp-bem-src" : " ^0.1.1 " ,
33
33
"merge2" : " ^1.0.2" ,
34
- "mz" : " ^2.4 .0" ,
34
+ "mz" : " ^2.7 .0" ,
35
35
"node-eval" : " ^1.0.3" ,
36
36
"through2" : " ^2.0.1" ,
37
37
"vinyl" : " ^1.1.1"
42
42
"eslint" : " ^3.4.0" ,
43
43
"eslint-config-pedant" : " ^0.8.0" ,
44
44
"gulp-concat" : " ^2.6.0" ,
45
- "mock-fs" : " ^3.11.0 " ,
45
+ "mock-fs" : " ^4.4.2 " ,
46
46
"nyc" : " ^8.1.0" ,
47
47
"stream-from-array" : " ^1.0.0" ,
48
48
"stream-to-array" : " ^2.3.0"
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ const streamFromArray = require('stream-from-array');
7
7
const toArray = require ( 'stream-to-array' ) ;
8
8
const mockfs = require ( 'mock-fs' ) ;
9
9
10
- const BemBundle = require ( 'bem- bundle' ) ;
10
+ const BemBundle = require ( '@ bem/sdk. bundle' ) ;
11
11
const File = require ( 'vinyl' ) ;
12
12
13
13
const Builder = require ( '..' ) ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const streamFromArray = require('stream-from-array');
5
5
const toArray = require ( 'stream-to-array' ) ;
6
6
const mockfs = require ( 'mock-fs' ) ;
7
7
8
- const BemBundle = require ( 'bem- bundle' ) ;
8
+ const BemBundle = require ( '@ bem/sdk. bundle' ) ;
9
9
const File = require ( 'vinyl' ) ;
10
10
11
11
const Builder = require ( '..' ) ;
You can’t perform that action at this time.
0 commit comments