@8ms/helpers 1.3.12 → 1.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/string/getClean.d.ts +2 -2
- package/string/getClean.js +2 -2
package/package.json
CHANGED
package/string/getClean.d.ts
CHANGED
|
@@ -14,5 +14,5 @@ type GetClean = {
|
|
|
14
14
|
/**
|
|
15
15
|
* Shorthand function to get a clean version of a string.
|
|
16
16
|
*/
|
|
17
|
-
declare const
|
|
18
|
-
export default
|
|
17
|
+
declare const getClean: ({ accents, decoded, htmlTags, input, lowercase, propercase, punctuation, trim, underscores, uppercase, whitespace }: GetClean) => string;
|
|
18
|
+
export default getClean;
|
package/string/getClean.js
CHANGED
|
@@ -14,7 +14,7 @@ const getDecoded_1 = __importDefault(require("./getDecoded"));
|
|
|
14
14
|
/**
|
|
15
15
|
* Shorthand function to get a clean version of a string.
|
|
16
16
|
*/
|
|
17
|
-
const
|
|
17
|
+
const getClean = ({ accents, decoded, htmlTags, input, lowercase, propercase, punctuation, trim, underscores, uppercase, whitespace }) => {
|
|
18
18
|
let response = (0, getString_1.default)({ input });
|
|
19
19
|
if (decoded) {
|
|
20
20
|
response = (0, getDecoded_1.default)({
|
|
@@ -62,4 +62,4 @@ const getCleanString = ({ accents, decoded, htmlTags, input, lowercase, properca
|
|
|
62
62
|
}
|
|
63
63
|
return response;
|
|
64
64
|
};
|
|
65
|
-
exports.default =
|
|
65
|
+
exports.default = getClean;
|