Skip to content

Commit

Permalink
Merge pull request #7 from forinda/development
Browse files Browse the repository at this point in the history
Update build
  • Loading branch information
forinda authored Jun 2, 2022
2 parents a0a28ca + a7542af commit 29b0020
Show file tree
Hide file tree
Showing 27 changed files with 236 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ bower_components
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# build/Release

# Dependency directories
node_modules/
jspm_packages/
build/
# build/
dist/

# Snowpack dependency directory (https://snowpack.dev/)
Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.git
.github
node_modules
src
12 changes: 12 additions & 0 deletions build/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import * as shuffle from './utils';
export default shuffle;
export declare const alphabets: typeof shuffle.alphabets, capitalize: typeof shuffle.capitalize, generateRandomString: typeof shuffle.generateRandomString, lowerCaseLetters: string[], shuffleString: typeof shuffle.shuffleString, symbols: string[], upperCaseLetters: string[];
export declare type AlphabetType = typeof alphabets;
export declare type CapitalizeType = typeof capitalize;
export declare type LowerCaseLetterType = typeof lowerCaseLetters;
export declare type UpperCaseLetterType = typeof upperCaseLetters;
export declare type NumberType = typeof symbols;
export declare type SymbolType = typeof symbols;
export declare type GenerateRandomstringType = typeof generateRandomString;
export declare type ShuffleStringType = typeof shuffleString;
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions build/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions build/utils/alphabet.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
*
* A function that generates alphabet characters and symbols
*
*/
declare function alphabets(): {
alphabet: string[];
lowerCaseLetters: string[];
upperCaseLetters: string[];
numbers: string[];
symbols: string[];
};
export declare const lowerCaseLetters: string[], alphabet: string[], upperCaseLetters: string[], numbers: string[], symbols: string[];
export { alphabets };
export default alphabets;
export declare type LowerCaseLetterType = typeof lowerCaseLetters;
export declare type UpperCaseLetterType = typeof upperCaseLetters;
export declare type NumberType = typeof numbers;
export declare type SymbolType = typeof symbols;
export declare type AlphabetType = typeof alphabet;
export declare type AlphabetTypeWithLowerCase = LowerCaseLetterType & UpperCaseLetterType & NumberType & SymbolType;
//# sourceMappingURL=alphabet.d.ts.map
1 change: 1 addition & 0 deletions build/utils/alphabet.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions build/utils/alphabet.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/utils/alphabet.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions build/utils/capitalize.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/**
*
* A function that capitalizes the first letter of a string
* @param {string} text
* @returns {string} text
*
*/
declare function capitalize(text: string): string;
export { capitalize };
export default capitalize;
export declare type CapitalizeType = typeof capitalize;
//# sourceMappingURL=capitalize.d.ts.map
1 change: 1 addition & 0 deletions build/utils/capitalize.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions build/utils/capitalize.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/utils/capitalize.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions build/utils/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { alphabets } from './alphabet';
import { capitalize } from './capitalize';
import { generateRandomString } from './string-random';
import { lowerCaseLetters } from './alphabet';
import { shuffleString } from './shuffle-string';
import { symbols } from './alphabet';
import { upperCaseLetters } from './alphabet';
export { alphabets, capitalize, generateRandomString, lowerCaseLetters, upperCaseLetters, shuffleString, symbols, };
export declare type AlphabetType = typeof alphabets;
export declare type CapitalizeType = typeof capitalize;
export declare type LowerCaseLetterType = typeof lowerCaseLetters;
export declare type UpperCaseLetterType = typeof upperCaseLetters;
export declare type NumberType = typeof symbols;
export declare type SymbolType = typeof symbols;
//# sourceMappingURL=index.d.ts.map
1 change: 1 addition & 0 deletions build/utils/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions build/utils/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/utils/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions build/utils/shuffle-string.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/**
*A function to shuffle a string passed as an argument
* @param {string} word
* @returns
*/
declare function shuffleString(word: string): string;
export { shuffleString };
export declare type ShuffleStringType = typeof shuffleString;
//# sourceMappingURL=shuffle-string.d.ts.map
1 change: 1 addition & 0 deletions build/utils/shuffle-string.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions build/utils/shuffle-string.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/utils/shuffle-string.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions build/utils/string-random.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
*A function that generates alphabet characters and symbols on a given length
* @param {number} numberOfCharacters
* @returns
*/
declare function generateRandomString(numberOfCharacters: number): string;
export { generateRandomString };
export declare type GenerateRandomStringType = typeof generateRandomString;
export default generateRandomString;
//# sourceMappingURL=string-random.d.ts.map
1 change: 1 addition & 0 deletions build/utils/string-random.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions build/utils/string-random.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/utils/string-random.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "string-shuffle",
"version": "1.2.1",
"version": "1.2.2",
"description": "A JS module for shuffling strings and other helper methods like alhpabet generation",
"main": "./build/index.js",
"scripts": {
Expand Down

0 comments on commit 29b0020

Please sign in to comment.