iso-random-stream
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -1,3 +0,2 @@ | ||
<a name="1.0.0"></a> | ||
# 1.0.0 (2018-09-18) | ||
# [1.1.0](https://github.com/hugomrdias/iso-random-stream/compare/v1.0.0...v1.1.0) (2018-12-17) | ||
@@ -7,2 +6,11 @@ | ||
* return buffer in the browseer ([214efca](https://github.com/hugomrdias/iso-random-stream/commit/214efca)) | ||
# [1.0.0](https://github.com/hugomrdias/iso-random-stream/compare/45860a1...v1.0.0) (2018-09-18) | ||
### Features | ||
* add random bytes stream node and browser ([45860a1](https://github.com/hugomrdias/iso-random-stream/commit/45860a1)) | ||
@@ -9,0 +17,0 @@ |
{ | ||
"name": "iso-random-stream", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Random bytes stream for node and browser", | ||
@@ -21,4 +21,4 @@ "repository": "hugomrdias/iso-random-stream", | ||
"precommit": "yarn validate", | ||
"version": "yarn changelog && git add CHANGELOG.md", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", | ||
"version": "yarn changelog && git add changelog.md", | ||
"changelog": "conventional-changelog -p angular -i changelog.md -s -r 0", | ||
"cov": "yarn test && nyc report --reporter=html && hs coverage -s -o -c-1", | ||
@@ -25,0 +25,0 @@ "cov:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov" |
@@ -1,4 +0,4 @@ | ||
# iso-random-stream [![NPM Version](https://img.shields.io/npm/v/random-bytes-stream-iso.svg)](https://www.npmjs.com/package/random-bytes-stream-iso) [![NPM Downloads](https://img.shields.io/npm/dt/random-bytes-stream-iso.svg)](https://www.npmjs.com/package/random-bytes-stream-iso) [![NPM License](https://img.shields.io/npm/l/random-bytes-stream-iso.svg)](https://www.npmjs.com/package/random-bytes-stream-iso) [![Build Status](https://travis-ci.org/hugomrdias/random-bytes-stream-iso.svg?branch=master)](https://travis-ci.org/hugomrdias/random-bytes-stream-iso) [![codecov](https://codecov.io/gh/hugomrdias/random-bytes-stream-iso/badge.svg?branch=master)](https://codecov.io/gh/hugomrdias/random-bytes-stream-iso?branch=master) | ||
# iso-random-stream [![NPM Version](https://img.shields.io/npm/v/iso-random-stream.svg)](https://www.npmjs.com/package/iso-random-stream) [![NPM Downloads](https://img.shields.io/npm/dt/iso-random-stream.svg)](https://www.npmjs.com/package/iso-random-stream) [![NPM License](https://img.shields.io/npm/l/iso-random-stream.svg)](https://www.npmjs.com/package/iso-random-stream) [![Build Status](https://travis-ci.org/hugomrdias/iso-random-stream.svg?branch=master)](https://travis-ci.org/hugomrdias/iso-random-stream) [![codecov](https://codecov.io/gh/hugomrdias/iso-random-stream/badge.svg?branch=master)](https://codecov.io/gh/hugomrdias/iso-random-stream?branch=master) | ||
> Random bytes stream for node and browser. Uses [crypto.randomBytes(size[, callback])](https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback) in node and [Crypto.getRandomValues()](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) in the browser. | ||
> Random bytes stream for node and browser. Uses [crypto.randomBytes(size[, callback])](https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback) in node and [Crypto.getRandomValues()](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) in the browser. We use Buffer to keep the interfaces and returns values consistent, so make sure your bundler includes `buffer` in the browser. | ||
@@ -21,3 +21,3 @@ ## Install | ||
### randomBytesStreamIso(size) | ||
### randomStream(size) | ||
@@ -24,0 +24,0 @@ Returns a [`stream.Readable`](https://nodejs.org/api/stream.html#stream_readable_streams). By default, it produces infinite data. |
@@ -45,3 +45,3 @@ 'use strict'; | ||
return bytes; | ||
return Buffer.from(bytes); | ||
} |
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
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
6754