5.15.148 • Published 9 months ago

@firanorg/amet-accusantium-dolor v5.15.148

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

@firanorg/amet-accusantium-dolor Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2015 mostly-spec-compliant Reflect.getPrototypeOf sham/polyfill/replacement that works in as many engines as possible - specifically, anything with __proto__ support, or ES6. Built-in types will also work correctly in older engines.

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

Example

var getPrototypeOf = require('@firanorg/amet-accusantium-dolor');
var assert = require('assert');

assert.throws(() => getPrototypeOf(true));
assert.throws(() => getPrototypeOf(42));
assert.throws(() => getPrototypeOf(''));
assert.equal(getPrototypeOf(/a/g), RegExp.prototype);
assert.equal(getPrototypeOf(new Date()), Date.prototype);
assert.equal(getPrototypeOf(function () {}), Function.prototype);
assert.equal(getPrototypeOf([]), Array.prototype);
assert.equal(getPrototypeOf({}), Object.prototype);
var getPrototypeOf = require('@firanorg/amet-accusantium-dolor');
var assert = require('assert');
/* when Reflect or Reflect.getPrototypeOf is not present */
if (typeof Reflect === 'object') { delete Reflect.getPrototypeOf; }
delete globalThis.Reflect;
var shimmed = getPrototypeOf.shim();
assert.equal(shimmed, getPrototypeOf.getPolyfill());

assert.throws(() => Reflect.getPrototypeOf(true));
assert.throws(() => Reflect.getPrototypeOf(42));
assert.throws(() => Reflect.getPrototypeOf(''));
assert.equal(Reflect.getPrototypeOf(/a/g), RegExp.prototype);
assert.equal(Reflect.getPrototypeOf(new Date()), Date.prototype);
assert.equal(Reflect.getPrototypeOf(function () {}), Function.prototype);
assert.equal(Reflect.getPrototypeOf([]), Array.prototype);
assert.equal(Reflect.getPrototypeOf({}), Object.prototype);
var getPrototypeOf = require('@firanorg/amet-accusantium-dolor');
var assert = require('assert');
/* when Reflect.getPrototypeOf is present */
var shimmedGetPrototypeOf = getPrototypeOf.shim();
assert.equal(shimmedGetPrototypeOf, Reflect.getPrototypeOf);
assert.equal(Reflect.getPrototypeOf([]), Array.prototype);

Tests

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

execpredictableslicecomparereplaycloudwatchpostcssmruqueueMicrotaskstyleguidebluebirdajaxequalinspectSymbolconcatfilelesspipeflattenSetwidthintrinsicESnextregulartrimRightreduxperformantvariables in cssterminales8isConcatSpreadablejavascriptlockfilerapidArrayglaciersqsURLSearchParamsreduceidUint16Arraybootstrap csslogging__proto__Observableargves-shim APIES2015WebSocketrestECMAScript 2021file systemrm -rfflaginstalltextmimeArray.prototype.containsrmdirformsrmasciitrimdircheckdatastructureformatimportexporttoArraythrottleduplexwrapiamcontainswordbreaklibphonenumberclassnamesparserESkeyseventsbundlingdiffansiES7momentamazonautoprefixerelmgradients cssObject.definePropertyRegExp.prototype.flagslookprotogradients css3optimistmimetypesspinnerfastifycollection.es6assigncurlpreprocessoropencss variabletypedarraylintES2020route53Object.isdeep-copyInt8Arrayinterruptsrandompromisesquotearraysassertionwebratelimitnpmcall-bindloadbalancingFloat64ArrayBigUint64Arrayarraydeepcloneunicodeutil@@toStringTagserializer_.extendidlewalkinggetoptprefixnamestyled-componentsboundfetchbyteOffsetarktypedatavpclogbuffersArray.prototype.filterclassnametsmime-dbnativedomiterationpyyamlArray.prototype.findLastIndexArrayBuffer.prototype.sliceeast-asian-widthclass-validatorprivatetoSortedparenttoolsless csscorejsonsigtermrm -frwritecharacterJSON-Schematypaniones2018readablestreamsortedminimalmatchesgetPrototypeOfECMAScript 2022getterbrowserslistmergejoifixed-widthvalidredux-toolkitcodesweaksetawesomesauceYAMLjsdomes5fullwidthmonorepovalidatesinatrafindLastdateprototypefindLastIndexdescriptorsRxJSxhrproxyshebangless compilerinmobilenegative zerovalidationUint8Arraysidesimpledbsettercommanderschemafsdeep-cloneObjectcensorInt16ArraychannelbatchWebSocketsairbnbmodulesoutputdeeptelephonecallbindimmutableguidtostringtagmetadatareadeventEmittertrimLeftastlimitcreatesignalphonees7typedarrayscjkstatusgenericsbusyrouteinternalreusefunctionalresolvecode pointspathtouchstylesheetschemeworkflowconcurrencyhardlinkstypeofArray.prototype.flattenerror-handlingcliObject.getPrototypeOfmapreducewatcherregular expressions256ES2023jsxArray.prototype.flatMapHyBiexpresssetavaES2017classes-0Array.prototype.includesagentsymboleventDispatcherurliestdlibmoduleconcatMapasyncjapanesettymakees-abstractexitfullmoveutilitiespositiveyuppushconnectmiddlewareuuidviewdefinePropertyqueryES2022preserve-symlinksgetintrinsicstringifyfastcopyReactiveExtensionsa11yhandlerssharedarraybufferlinewrapenvironmentdirectoryTypeScriptpluginpackagesStreamparsecommand-lineArray.prototype.flatkarmasignalsmatchsetPrototypeOfhasOwnPropertyoptimizerAsyncIteratorUint32ArraycharactersECMAScript 6functionfluxautoscalingcallhttpObject.valuesBigInt64ArrayfunctionsponyfillshrinkwrapparentsredactwafelectronES2019rgbecmascriptelasticachestringlastECMAScript 2020groupcolourreact-hookssearchemitprettylengthutil.inspecthookformchaiECMAScript 2016matchAllvisualdependenciespromisetypedsyntaxerrordebugratenested cssjsonpathobjoffsettypesafelesscssiteratornegativeaccessibilitycall-boundnamesvestTypedArrayyamlECMAScript 7testingstylesenumerable$.extendString.prototype.matchAllwhichstoragegatewaydynamodbencryptionrobustdayjsgetroutingArrayBuffer#slicenopeliveshamqsobjectdropfull-widthsuperagentjestwatchingdotenvless mixinsRxsomejsdiffES8callbackpropertyprotobufstreams2
5.15.148

9 months ago

5.15.147

9 months ago

5.15.146

9 months ago

5.10.133

10 months ago

5.12.145

9 months ago

5.14.146

9 months ago

5.12.144

9 months ago

5.14.145

9 months ago

5.12.143

9 months ago

5.10.136

10 months ago

5.10.135

10 months ago

5.10.134

10 months ago

5.11.136

10 months ago

5.11.141

10 months ago

5.11.140

10 months ago

5.11.143

9 months ago

5.11.142

9 months ago

5.11.138

10 months ago

5.11.137

10 months ago

5.13.145

9 months ago

5.11.139

10 months ago

5.10.132

10 months ago

5.10.131

10 months ago

5.10.129

10 months ago

5.10.130

10 months ago

5.10.128

10 months ago

5.10.122

10 months ago

5.10.126

10 months ago

5.10.125

10 months ago

5.10.124

10 months ago

5.10.123

10 months ago

5.10.127

10 months ago

5.9.122

10 months ago

5.9.121

10 months ago

5.9.120

10 months ago

5.9.119

10 months ago

5.9.117

10 months ago

5.9.116

10 months ago

5.9.118

10 months ago

5.9.115

10 months ago

5.9.113

11 months ago

5.9.114

10 months ago

5.9.112

11 months ago

5.9.111

11 months ago

5.9.110

11 months ago

5.9.109

11 months ago

5.9.108

11 months ago

4.9.108

11 months ago

4.9.107

11 months ago

4.9.106

11 months ago

4.9.105

11 months ago

3.4.47

1 year ago

4.9.103

11 months ago

3.4.48

1 year ago

4.9.104

11 months ago

3.4.49

1 year ago

3.4.40

1 year ago

3.4.41

1 year ago

3.4.42

1 year ago

3.4.43

1 year ago

3.4.44

1 year ago

3.4.45

1 year ago

3.4.46

1 year ago

4.7.98

11 months ago

3.4.50

1 year ago

3.4.51

1 year ago

3.4.52

1 year ago

3.2.32

1 year ago

3.5.79

12 months ago

3.5.78

12 months ago

3.5.77

12 months ago

3.5.76

12 months ago

3.5.75

12 months ago

3.5.74

12 months ago

3.5.73

12 months ago

3.1.30

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

3.5.72

12 months ago

3.5.71

12 months ago

3.5.70

12 months ago

3.4.36

1 year ago

3.4.37

1 year ago

3.4.38

1 year ago

3.4.39

1 year ago

3.4.33

1 year ago

3.4.34

1 year ago

3.4.35

1 year ago

3.5.83

12 months ago

3.5.82

12 months ago

3.5.81

12 months ago

3.5.80

12 months ago

3.5.58

1 year ago

3.5.57

1 year ago

3.5.56

1 year ago

3.5.55

1 year ago

3.5.54

1 year ago

3.5.53

1 year ago

3.5.52

1 year ago

3.1.18

1 year ago

3.1.17

1 year ago

3.3.32

1 year ago

3.3.33

1 year ago

3.5.59

1 year ago

4.8.101

11 months ago

4.8.102

11 months ago

4.8.100

11 months ago

4.8.103

11 months ago

3.5.69

1 year ago

3.1.23

1 year ago

3.5.68

1 year ago

3.1.22

1 year ago

3.5.67

1 year ago

3.1.25

1 year ago

3.5.66

1 year ago

3.1.24

1 year ago

3.5.65

1 year ago

3.1.27

1 year ago

3.5.64

1 year ago

3.1.26

1 year ago

3.5.63

1 year ago

3.1.29

1 year ago

3.5.62

1 year ago

3.1.28

1 year ago

4.8.98

11 months ago

3.1.21

1 year ago

3.1.20

1 year ago

4.8.99

11 months ago

3.5.61

1 year ago

3.5.60

1 year ago

3.1.19

1 year ago

3.6.89

11 months ago

3.6.88

12 months ago

3.6.87

12 months ago

3.6.86

12 months ago

3.6.85

12 months ago

3.6.84

12 months ago

3.6.83

12 months ago

3.6.97

11 months ago

3.6.96

11 months ago

4.6.97

11 months ago

4.6.98

11 months ago

3.6.95

11 months ago

3.6.94

11 months ago

3.6.93

11 months ago

3.6.92

11 months ago

3.6.91

11 months ago

3.6.90

11 months ago

3.1.16

1 year ago

3.1.14

1 year ago

3.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

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