5.20.143 • Published 11 months ago

@firanorg/totam-excepturi-voluptas v5.20.143

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@firanorg/totam-excepturi-voluptas Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

ES2020 spec-compliant shim for String.prototype.matchAll. Invoke its "shim" method to shim String.prototype.matchAll if it is unavailable or noncompliant.

This package implements the es-shim API interface. It works in an ES3-supported environment, and complies with the spec.

Most common usage:

const assert = require('assert');
const matchAll = require('@firanorg/totam-excepturi-voluptas');

const str = 'aabc';
const nonRegexStr = 'ab';
const globalRegex = /[ac]/g;
const nonGlobalRegex = /[bc]/i;

// non-regex arguments are coerced into a global regex
assert.deepEqual(
	[...matchAll(str, nonRegexStr)],
	[...matchAll(str, new RegExp(nonRegexStr, 'g'))]
);

assert.deepEqual([...matchAll(str, globalRegex)], [
	Object.assign(['a'], { index: 0, input: str, groups: undefined }),
	Object.assign(['a'], { index: 1, input: str, groups: undefined }),
	Object.assign(['c'], { index: 3, input: str, groups: undefined }),
]);

assert.throws(() => matchAll(str, nonGlobalRegex)); // non-global regexes throw

matchAll.shim(); // will be a no-op if not needed

// non-regex arguments are coerced into a global regex
assert.deepEqual(
	[...str.matchAll(nonRegexStr)],
	[...str.matchAll(new RegExp(nonRegexStr, 'g'))]
);

assert.deepEqual([...str.matchAll(globalRegex)], [
	Object.assign(['a'], { index: 0, input: str, groups: undefined }),
	Object.assign(['a'], { index: 1, input: str, groups: undefined }),
	Object.assign(['c'], { index: 3, input: str, groups: undefined }),
]);

assert.throws(() => matchAll(str, nonGlobalRegex)); // non-global regexes throw

Tests

Simply clone the repo, npm install, and run npm test

picomatchrapidinputelmlengthlrustringArray.prototype.flatbrowserslistloadingrequirerdspositiverateforEachtyped arrayecmascriptpostcss-pluginloggingwalkfigletextensioninternal slotmodulesECMAScript 7writablefast-deep-copydatasyntaxasciiparsertypeofECMAScript 2019class-validatorbrowserponyfillstdliblogtestingstyledependenciessymlinkthroatlintlanguagetypesviewES6tc39Object.assigntesteslintjasmineauthenticationless csswaitdependency managerpreprocessorsyntaxerrorObject.getPrototypeOfpreserve-symlinkszerowritesidenpmdataviewstylesheetunicodecorescheme-validationwidthES8trimUint8Arrayweaksetmovepackage.jsonECMAScript 2021mapclonewgetestreeslotlinuxwaffast-clonejestcloudwatchshamES2015fast-deep-cloneArrayBuffer#sliceistoolkithasES2018Array.prototype.includesieString.prototype.trimdom-testing-librarymulti-packageroutingargument@@toStringTagObject.isWeakSetprunestreams2es7errorinstallersuperagenttoSortedgradients css3signalexpressionreadhasOwnPropertyes8statushardlinksshelllessStreamsshebangflattenintrinsicRegExp#flagsboundcharactershookformObject.definePropertyweakmapspinnerhasOwnefficientES2021ArrayBufferreusebinddirES2020ES3windowscompile lessparsingsetImmediatecss-in-jsoutputWebSocketgroupByobjCSSInt8Arrayincludeswrapsequencereact-testing-librarySymbolstringifyfullcoercibleexecless.jsECMAScript 2015css nestinglesscssserializerassignxtermprivateartuuidajvJSON-Schemafind-uplookextratoArraygroupInt16ArrayformcallconcatMapchromeenderairbnbObject.fromEntrieslook-upttycollection.es6channelInt32ArrayAsyncIteratorschemechineselastobjectfileprefixObservablesnamesnegative zeroworkflowmodulereadableUint32ArrayfindLastrangeerrorenumerableinvarianttelephoneparsenodejswhatwgnopepredictabletdddebugregexpbytetypedtaketoStringTaggradients cssbundlingsharedfromtrimStartwatchingfunctionsvariables in cssclassesRxmatchAllsomestringifiermixinsless mixinsinternalObject.entriesaccessoryamlconcates2015openbeanstalkdataViewkinesissignalsexit-codefpsyupcloudformationURLqsparentiterationmruserializetrimEndutil.inspectreplayPusheslintpluginstateSetpackage manager
5.20.143

11 months ago

5.20.142

11 months ago

5.20.140

11 months ago

5.20.141

11 months ago

5.19.126

11 months ago

5.19.127

11 months ago

5.19.128

11 months ago

5.19.124

11 months ago

5.19.125

11 months ago

5.20.139

11 months ago

5.20.130

11 months ago

5.20.137

11 months ago

5.20.138

11 months ago

5.20.135

11 months ago

5.20.136

11 months ago

5.20.133

11 months ago

5.20.134

11 months ago

5.20.131

11 months ago

5.20.132

11 months ago

5.20.128

11 months ago

5.20.129

11 months ago

5.19.122

11 months ago

5.19.123

11 months ago

5.19.121

11 months ago

5.18.121

12 months ago

5.18.120

12 months ago

5.18.118

12 months ago

5.18.119

12 months ago

5.18.116

12 months ago

5.18.117

12 months ago

5.18.114

12 months ago

5.18.115

12 months ago

5.18.113

12 months ago

5.18.112

12 months ago

5.18.111

12 months ago

5.18.110

12 months ago

5.17.108

12 months ago

5.17.109

12 months ago

5.17.110

12 months ago

5.16.108

12 months ago

5.15.107

12 months ago

5.16.107

12 months ago

5.15.106

12 months ago

5.15.105

12 months ago

4.15.105

1 year ago

4.15.104

1 year ago

4.15.103

1 year ago

4.15.102

1 year ago

4.15.101

1 year ago

4.15.100

1 year ago

4.15.99

1 year ago

3.9.57

1 year ago

3.9.58

1 year ago

3.9.55

1 year ago

3.9.56

1 year ago

3.9.53

1 year ago

3.9.54

1 year ago

3.7.48

1 year ago

3.5.25

1 year ago

3.7.49

1 year ago

3.5.24

1 year ago

3.7.46

1 year ago

3.5.23

1 year ago

3.7.47

1 year ago

3.5.22

1 year ago

3.7.44

1 year ago

3.7.45

1 year ago

3.7.42

1 year ago

3.7.43

1 year ago

3.5.27

1 year ago

3.5.26

1 year ago

3.7.40

1 year ago

3.7.41

1 year ago

4.9.59

1 year ago

4.9.58

1 year ago

4.12.80

1 year ago

3.6.40

1 year ago

4.10.60

1 year ago

4.12.81

1 year ago

4.12.77

1 year ago

4.12.76

1 year ago

4.14.98

1 year ago

4.12.75

1 year ago

4.14.99

1 year ago

4.12.74

1 year ago

4.12.79

1 year ago

4.12.78

1 year ago

4.14.92

1 year ago

4.14.93

1 year ago

4.14.96

1 year ago

4.12.73

1 year ago

4.14.97

1 year ago

4.12.72

1 year ago

4.14.94

1 year ago

4.14.95

1 year ago

3.8.49

1 year ago

3.6.29

1 year ago

3.6.28

1 year ago

3.6.27

1 year ago

3.6.37

1 year ago

3.6.36

1 year ago

3.6.35

1 year ago

3.6.34

1 year ago

3.6.33

1 year ago

3.6.32

1 year ago

3.6.31

1 year ago

3.6.30

1 year ago

4.9.60

1 year ago

3.6.39

1 year ago

3.6.38

1 year ago

2.5.18

1 year ago

2.5.19

1 year ago

2.5.14

1 year ago

2.5.15

1 year ago

2.5.16

1 year ago

2.5.17

1 year ago

3.8.52

1 year ago

3.8.53

1 year ago

3.8.50

1 year ago

3.8.51

1 year ago

4.13.91

1 year ago

2.5.21

1 year ago

4.13.92

1 year ago

2.5.22

1 year ago

4.13.90

1 year ago

4.11.72

1 year ago

4.11.71

1 year ago

4.11.70

1 year ago

2.5.20

1 year ago

4.13.88

1 year ago

4.11.65

1 year ago

4.13.89

1 year ago

4.11.64

1 year ago

4.13.86

1 year ago

4.11.63

1 year ago

4.13.87

1 year ago

4.11.62

1 year ago

4.11.69

1 year ago

4.11.68

1 year ago

4.11.67

1 year ago

4.11.66

1 year ago

4.13.81

1 year ago

4.13.84

1 year ago

4.11.61

1 year ago

4.13.85

1 year ago

4.11.60

1 year ago

4.13.82

1 year ago

4.13.83

1 year ago

2.5.13

1 year ago

2.3.12

1 year ago

2.5.12

1 year ago

2.4.12

1 year ago

2.3.11

1 year ago

2.3.10

1 year ago

2.3.9

1 year ago

2.2.9

1 year ago

1.2.9

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago