Skip to content

Commit

Permalink
forgot to make randomCaseString() mode optional
Browse files Browse the repository at this point in the history
  • Loading branch information
karnthis committed Jun 1, 2022
1 parent bc608ec commit 540b5cb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,15 @@ Skipped by accident
- Initial Release

## Minor Releases:
### [v3.0.1] - 2022 05 v31
### [v3.0.2] - 2022 06 01
#### Changed
- `randomCaseString()` Updated 'mode' to be optional

### [v3.0.1] - 2022 05 31
#### Changed
- `randomCaseString()` Added support for generating random values from a full 62 options instead of randomizing letters
- Flagged internal functions so they should no longer appear in typescript intellisense


### [v1.3.0] - 2022 01 29
#### Added
- `flipCoin()` Generates a random boolean value
Expand Down Expand Up @@ -98,7 +101,8 @@ Skipped by accident

<!-- LINKS -->
<!-- RELEASES -->
[Unreleased]: https://github.com/karnthis/make-random/compare/v3.0.1...dev
[Unreleased]: https://github.com/karnthis/make-random/compare/v3.0.2...dev
[v3.0.2]: https://github.com/karnthis/make-random/compare/v3.0.1...v3.0.2
[v3.0.1]: https://github.com/karnthis/make-random/compare/v3.0.0...v3.0.1
[v3.0.0]: https://github.com/karnthis/make-random/compare/v1.3.0...3.0.0
[v1.3.0]: https://github.com/karnthis/make-random/compare/v1.2.2...v1.3.0
Expand Down
2 changes: 1 addition & 1 deletion src/libs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function randomString(len: number | string = 10): Promise<string> {
return stringFoundation(len)
.then(hex => hex.slice(0, len as number))
}
function randomCaseString(len: number | string = 10, mode: string): Promise<string> {
function randomCaseString(len: number | string = 10, mode?: string): Promise<string> {
len = cleanInteger(len, 10)
if (mode === 'mixed') {
return stringFoundation(len)
Expand Down

0 comments on commit 540b5cb

Please sign in to comment.