Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

locale-index-of

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

locale-index-of - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

7

index.js

@@ -59,7 +59,6 @@ export default function exported(Intl) {

*segment(string) {
const { length } = string;
// have to use that instead of `for segment of string` because we need index of chars, not code points
for (let index = 0; index < length; index += 1) {
const segment = string[index];
let index = 0;
for (const segment of string) {
yield { segment, index };
index += segment.length;
}

@@ -66,0 +65,0 @@ }

{
"name": "locale-index-of",
"version": "3.0.0",
"version": "3.1.0",
"description": "A prollyfill for String.prototype.localeIndexOf - a locale-aware Intl-powered version of indexOf.",

@@ -5,0 +5,0 @@ "main": "index.js",

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