Comparing version 0.0.35 to 0.0.36
@@ -5,3 +5,3 @@ var log = console.log | ||
, input = fs.createReadStream( './example/test-data.txt' ) | ||
, sts = new require( '../lib/streams/sequence-transform' )( 16, 10, {} ) | ||
, sts = new require( '../lib/filters/streams/sequence-transform' )( 16, 10, {} ) | ||
, dstream = input.pipe( sts ) | ||
@@ -8,0 +8,0 @@ , onRead = function () { |
@@ -17,4 +17,4 @@ /* | ||
, log2 = dlog( 2 ) | ||
, random = require( './filters/' ) | ||
, transform = require( './streams/' ) | ||
, emitters = require( './filters/emitters' ) | ||
, streams = require( './filters/streams/' ) | ||
; | ||
@@ -30,5 +30,5 @@ return { | ||
// with no repetition, items should be always <= range | ||
return seq ? new random.sequence( i, r ) : | ||
( i < r ? new random.partperm( i, r ) : | ||
( i > r ? null : new random.fullperm( i ) ) ) | ||
return seq ? new emitters.sequence( i, r ) : | ||
( i < r ? new emitters.partperm( i, r ) : | ||
( i > r ? null : new emitters.fullperm( i ) ) ) | ||
; | ||
@@ -44,5 +44,5 @@ } | ||
// with no repetition, items should be always <= range | ||
return seq ? new transform.sequence( i, r, stream_opt ) : | ||
( i < r ? new transform.partperm( i, r, stream_opt ) : | ||
( i > r ? null : new transform.fullperm( i, stream_opt ) ) ) | ||
return seq ? new streams.sequence( i, r, stream_opt ) : | ||
( i < r ? new streams.partperm( i, r, stream_opt ) : | ||
( i > r ? null : new streams.fullperm( i, stream_opt ) ) ) | ||
; | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "brando" | ||
, "version": "0.0.35" | ||
, "version": "0.0.36" | ||
, "description": "Brando." | ||
@@ -5,0 +5,0 @@ , "homepage": "https://github.com/rootslab/brando" |
@@ -77,3 +77,3 @@ ### Brando | ||
/* | ||
* Like #get, but it returns a Transform stream. | ||
* Like #get, but it returns a Transform stream, see examples. | ||
*/ | ||
@@ -80,0 +80,0 @@ Brando#stream : function ( Number items, Number range [, Number repeat [, Object stream_opt ] ] ) : SeqTransStream |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46996
917
1