Comparing version 1.5.0 to 1.5.1
@@ -246,6 +246,6 @@ let fs = require('fs'); | ||
let limitter = self.limit, | ||
proGender = gender, | ||
joiner = NVRNG.getJoiner(noJoin), | ||
out, tstr, p, arr, index; | ||
do { | ||
let proGender = gender; | ||
p = []; | ||
@@ -292,5 +292,5 @@ for (let space of self.spaces) { | ||
joiner = NVRNG.getJoiner(noJoin), | ||
proGender = gender, | ||
tstr, tmp, p, arr; | ||
do { | ||
let proGender = gender; | ||
p = []; | ||
@@ -297,0 +297,0 @@ for (let space of self.spaces) { |
{ | ||
"name": "nvrng", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Not very random temporary name generator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -197,3 +197,20 @@ [![Codecov Coverage](https://img.shields.io/codecov/c/github/ssypachev/nvrng/master.svg?style=flat-square)](https://codecov.io/gh/ssypachev/nvrng/) | ||
Generate sets with yield | ||
```js | ||
let yGen = (function* () { | ||
let exSet = new Set(); | ||
for (;;) { | ||
let [err, next] = gen.getOne({ exclude: exSet }); | ||
exSet.add(next); | ||
yield next; | ||
} | ||
})(); | ||
for (let i = 0; i < 10; i++) { | ||
console.log(yGen.next().value); | ||
} | ||
``` | ||
## Testing | ||
@@ -200,0 +217,0 @@ Clone repository and run |
Sorry, the diff of this file is not supported yet
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
30421
242