locale-index-of
Advanced tools
Comparing version 1.0.2 to 1.0.3
{ | ||
"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
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
24031
0
1
- Removedtape@^4.6.2
- Removed@ljharb/resumer@0.0.1(transitive)
- Removed@ljharb/through@2.3.13(transitive)
- Removedarray-buffer-byte-length@1.0.1(transitive)
- Removedarraybuffer.prototype.slice@1.0.3(transitive)
- Removedavailable-typed-arrays@1.0.7(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddata-view-buffer@1.0.1(transitive)
- Removeddata-view-byte-length@1.0.1(transitive)
- Removeddata-view-byte-offset@1.0.0(transitive)
- Removeddeep-equal@1.1.2(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddefine-properties@1.2.1(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddotignore@0.1.2(transitive)
- Removedes-abstract@1.23.5(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedes-set-tostringtag@2.0.3(transitive)
- Removedes-to-primitive@1.3.0(transitive)
- Removedfor-each@0.3.3(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedfunction.prototype.name@1.1.6(transitive)
- Removedfunctions-have-names@1.2.3(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedget-symbol-description@1.0.2(transitive)
- Removedglob@7.2.3(transitive)
- Removedglobalthis@1.0.4(transitive)
- Removedgopd@1.1.0(transitive)
- Removedhas@1.0.4(transitive)
- Removedhas-bigints@1.0.2(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.1.0(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedinternal-slot@1.0.7(transitive)
- Removedis-arguments@1.1.1(transitive)
- Removedis-array-buffer@3.0.4(transitive)
- Removedis-async-function@2.0.0(transitive)
- Removedis-bigint@1.1.0(transitive)
- Removedis-boolean-object@1.2.0(transitive)
- Removedis-callable@1.2.7(transitive)
- Removedis-core-module@2.15.1(transitive)
- Removedis-data-view@1.0.1(transitive)
- Removedis-date-object@1.0.5(transitive)
- Removedis-finalizationregistry@1.1.0(transitive)
- Removedis-generator-function@1.0.10(transitive)
- Removedis-map@2.0.3(transitive)
- Removedis-negative-zero@2.0.3(transitive)
- Removedis-number-object@1.1.0(transitive)
- Removedis-regex@1.1.4(transitive)
- Removedis-set@2.0.3(transitive)
- Removedis-shared-array-buffer@1.0.3(transitive)
- Removedis-string@1.1.0(transitive)
- Removedis-symbol@1.1.0(transitive)
- Removedis-typed-array@1.1.13(transitive)
- Removedis-weakmap@2.0.2(transitive)
- Removedis-weakref@1.0.2(transitive)
- Removedis-weakset@2.0.3(transitive)
- Removedisarray@2.0.5(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmock-property@1.0.3(transitive)
- Removedobject-inspect@1.12.31.13.3(transitive)
- Removedobject-is@1.1.6(transitive)
- Removedobject-keys@1.1.1(transitive)
- Removedobject.assign@4.1.5(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedpossible-typed-array-names@1.0.0(transitive)
- Removedreflect.getprototypeof@1.0.7(transitive)
- Removedregexp.prototype.flags@1.5.3(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsafe-array-concat@1.1.2(transitive)
- Removedsafe-regex-test@1.0.3(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedset-function-name@2.0.2(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedstring.prototype.trim@1.2.9(transitive)
- Removedstring.prototype.trimend@1.0.8(transitive)
- Removedstring.prototype.trimstart@1.0.8(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtape@4.17.0(transitive)
- Removedtyped-array-buffer@1.0.2(transitive)
- Removedtyped-array-byte-length@1.0.1(transitive)
- Removedtyped-array-byte-offset@1.0.3(transitive)
- Removedtyped-array-length@1.0.7(transitive)
- Removedunbox-primitive@1.0.2(transitive)
- Removedwhich-boxed-primitive@1.1.0(transitive)
- Removedwhich-builtin-type@1.2.0(transitive)
- Removedwhich-collection@1.0.2(transitive)
- Removedwhich-typed-array@1.1.16(transitive)
- Removedwrappy@1.0.2(transitive)