🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

utfstring

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utfstring - npm Package Compare versions

Comparing version

to
3.1.2

3

dist/utf_string.d.ts

@@ -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 @@ },