Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

brando

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brando - npm Package Compare versions

Comparing version 0.0.35 to 0.0.36

bench/parse-fp-emt-simple-bench.js

2

example/brando-stream-example.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc