Skip to content

Commit 54c1e53

Browse files
committed
⚡ add pure function annotation to pipe usages
1 parent a6a28fa commit 54c1e53

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "normalize-text",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "Provides a simple API to normalize texts, white-spaces, paragraphs & diacritics.",
55
"sideEffects": false,
66
"cdn": "dist/index.umd.min.js",

src/normalizeParagraph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const addPeriodAtEnd = (text: string) =>
2626
* @param {string} value
2727
* @returns {string}
2828
*/
29-
const normalizeParagraph = pipe(
29+
const normalizeParagraph = /*#__PURE__*/ pipe(
3030
normalizeWhiteSpaces,
3131
addPeriodAtEnd,
3232
capitalizeFirstLetter

src/normalizeText.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const transformToLowerCase = (text: string) => text.toLocaleLowerCase();
3030
* @param {string | string[]} values - A `string` or an array of `string` values.
3131
* @returns {string}
3232
*/
33-
const normalizeText = pipe(
33+
const normalizeText = /*#__PURE__*/ pipe(
3434
resolveToText,
3535
normalizeDiacritics,
3636
normalizeWhiteSpaces,

0 commit comments

Comments
 (0)