5.20.143 • Published 9 months ago

@firanorg/totam-excepturi-voluptas v5.20.143

Weekly downloads
-
License
MIT
Repository
github
Last release
9 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

9 months ago

5.20.142

9 months ago

5.20.140

9 months ago

5.20.141

9 months ago

5.19.126

10 months ago

5.19.127

10 months ago

5.19.128

10 months ago

5.19.124

10 months ago

5.19.125

10 months ago

5.20.139

9 months ago

5.20.130

10 months ago

5.20.137

9 months ago

5.20.138

9 months ago

5.20.135

9 months ago

5.20.136

9 months ago

5.20.133

9 months ago

5.20.134

9 months ago

5.20.131

10 months ago

5.20.132

10 months ago

5.20.128

10 months ago

5.20.129

10 months ago

5.19.122

10 months ago

5.19.123

10 months ago

5.19.121

10 months ago

5.18.121

10 months ago

5.18.120

10 months ago

5.18.118

10 months ago

5.18.119

10 months ago

5.18.116

10 months ago

5.18.117

10 months ago

5.18.114

10 months ago

5.18.115

10 months ago

5.18.113

10 months ago

5.18.112

10 months ago

5.18.111

10 months ago

5.18.110

10 months ago

5.17.108

10 months ago

5.17.109

10 months ago

5.17.110

10 months ago

5.16.108

10 months ago

5.15.107

11 months ago

5.16.107

10 months ago

5.15.106

11 months ago

5.15.105

11 months ago

4.15.105

11 months ago

4.15.104

11 months ago

4.15.103

11 months ago

4.15.102

11 months ago

4.15.101

11 months ago

4.15.100

11 months ago

4.15.99

11 months 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

12 months ago

3.6.40

1 year ago

4.10.60

1 year ago

4.12.81

12 months ago

4.12.77

12 months ago

4.12.76

12 months ago

4.14.98

11 months ago

4.12.75

12 months ago

4.14.99

11 months ago

4.12.74

12 months ago

4.12.79

12 months ago

4.12.78

12 months ago

4.14.92

11 months ago

4.14.93

11 months ago

4.14.96

11 months ago

4.12.73

12 months ago

4.14.97

11 months ago

4.12.72

12 months ago

4.14.94

11 months ago

4.14.95

11 months 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

11 months ago

2.5.21

1 year ago

4.13.92

11 months ago

2.5.22

1 year ago

4.13.90

11 months ago

4.11.72

12 months ago

4.11.71

12 months ago

4.11.70

12 months ago

2.5.20

1 year ago

4.13.88

11 months ago

4.11.65

12 months ago

4.13.89

11 months ago

4.11.64

12 months ago

4.13.86

11 months ago

4.11.63

12 months ago

4.13.87

11 months ago

4.11.62

1 year ago

4.11.69

12 months ago

4.11.68

12 months ago

4.11.67

12 months ago

4.11.66

12 months ago

4.13.81

11 months ago

4.13.84

11 months ago

4.11.61

1 year ago

4.13.85

11 months ago

4.11.60

1 year ago

4.13.82

11 months ago

4.13.83

11 months 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