Comparing version 3.1.1 to 3.1.2
@@ -79,5 +79,6 @@ /** Regular expression for matching surrogate pairs. */ | ||
* @param searchValue The value to search. | ||
* @param start Optional start offset for the search. | ||
* @returns True if the search value was found in the string, false otherwise. | ||
*/ | ||
includes(searchValue: string | UtfString): boolean; | ||
includes(searchValue: string | UtfString, start?: number): boolean; | ||
/** | ||
@@ -84,0 +85,0 @@ * Finds the first instance of the search value within the string. Starts at an optional offset. |
@@ -136,6 +136,7 @@ "use strict"; | ||
* @param searchValue The value to search. | ||
* @param start Optional start offset for the search. | ||
* @returns True if the search value was found in the string, false otherwise. | ||
*/ | ||
includes(searchValue) { | ||
return this.indexOf(searchValue) !== -1; | ||
includes(searchValue, start = 0) { | ||
return this.indexOf(searchValue, start) !== -1; | ||
} | ||
@@ -142,0 +143,0 @@ /** |
{ | ||
"name": "utfstring", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "UTF-safe string operations", | ||
@@ -35,3 +35,3 @@ "repository": { | ||
"typescript": "4.9.3", | ||
"webpack": "5.75.0", | ||
"webpack": "5.76.0", | ||
"webpack-cli": "5.0.0" | ||
@@ -38,0 +38,0 @@ }, |
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
75509
1383