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 1.0.2 to 1.0.3

yarn.lock

6

package.json
{
"name": "locale-index-of",
"version": "1.0.2",
"version": "1.0.3",
"description": "A prollyfill for String.prototype.localeIndexOf - a locale-aware Intl-powered version of indexOf.",

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

"license": "ISC",
"dependencies": {
"tape": "^4.6.2"
"devDependencies": {
"tape": "^4.10.1"
}
}

@@ -8,3 +8,3 @@ # localeIndexOf

A prollyfill for `String.prototype.localeIndexOf` -
a locale-aware Intl-powered version of `indexOf`.
a locale-aware Intl-powered version of `indexOf` with zero dependencies.

@@ -21,3 +21,3 @@ Many texts out there contain accents and other diacritical characters,

`Intl.Comparator` with `sensitivity: base` to the resque!
`Intl.Collator` with `sensitivity: base` to the rescue!
Except that it only has a `compare()` method, not `indexOf()`.

@@ -27,3 +27,3 @@ So you can’t use it to find substrings. Well, now you can.

`String.prototype.localeCompare` and can be used in a similar fashion.
It extends the functionality of `Intl.Comparator.compare()` to search,
It extends the functionality of `Intl.Collator.compare()` to search,
so you can even set `ignorePunctuation: true`.

@@ -53,3 +53,3 @@

The default export of a model is a function. Give it the `Intl` object
The default export of the module is a function. Give it the `Intl` object
and get the `localeIndexOf` function in return:

@@ -80,4 +80,4 @@

The module also exports method `prototypeLocaleIndexOf`. Give it
the `Intl` object and get the `localeIndexOf` function in return,
but suitable for putting on `String.prototype`:
the `Intl` object and get back the `localeIndexOf` function
suitable for putting on `String.prototype`:

@@ -112,3 +112,3 @@ String.prototype.localeIndexOf = require('locale-index-of').prototypeLocaleIndexOf(Intl);

The default behavior of `Intl.Collator` is to consider the whitespace punctiation.
The default behavior of `Intl.Collator` is to consider the whitespace punctuation.

@@ -115,0 +115,0 @@ Since the length of the matched fragment can be different from the length of

Sorry, the diff of this file is not supported yet

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