Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 3.1.1 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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc