5.15.148 • Published 11 months ago

@firanorg/amet-accusantium-dolor v5.15.148

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

11 months ago

5.15.147

11 months ago

5.15.146

11 months ago

5.10.133

12 months ago

5.12.145

12 months ago

5.14.146

11 months ago

5.12.144

12 months ago

5.14.145

12 months ago

5.12.143

12 months ago

5.10.136

12 months ago

5.10.135

12 months ago

5.10.134

12 months ago

5.11.136

12 months ago

5.11.141

12 months ago

5.11.140

12 months ago

5.11.143

12 months ago

5.11.142

12 months ago

5.11.138

12 months ago

5.11.137

12 months ago

5.13.145

12 months ago

5.11.139

12 months ago

5.10.132

12 months ago

5.10.131

12 months ago

5.10.129

1 year ago

5.10.130

12 months ago

5.10.128

1 year ago

5.10.122

1 year ago

5.10.126

1 year ago

5.10.125

1 year ago

5.10.124

1 year ago

5.10.123

1 year ago

5.10.127

1 year ago

5.9.122

1 year ago

5.9.121

1 year ago

5.9.120

1 year ago

5.9.119

1 year ago

5.9.117

1 year ago

5.9.116

1 year ago

5.9.118

1 year ago

5.9.115

1 year ago

5.9.113

1 year ago

5.9.114

1 year ago

5.9.112

1 year ago

5.9.111

1 year ago

5.9.110

1 year ago

5.9.109

1 year ago

5.9.108

1 year ago

4.9.108

1 year ago

4.9.107

1 year ago

4.9.106

1 year ago

4.9.105

1 year ago

3.4.47

1 year ago

4.9.103

1 year ago

3.4.48

1 year ago

4.9.104

1 year 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

1 year 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

1 year ago

3.5.78

1 year ago

3.5.77

1 year ago

3.5.76

1 year ago

3.5.75

1 year ago

3.5.74

1 year ago

3.5.73

1 year ago

3.1.30

1 year ago

3.1.32

1 year ago

3.1.31

1 year ago

3.5.72

1 year ago

3.5.71

1 year ago

3.5.70

1 year 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

1 year ago

3.5.82

1 year ago

3.5.81

1 year ago

3.5.80

1 year 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

1 year ago

4.8.102

1 year ago

4.8.100

1 year ago

4.8.103

1 year 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

1 year ago

3.1.21

1 year ago

3.1.20

1 year ago

4.8.99

1 year ago

3.5.61

1 year ago

3.5.60

1 year ago

3.1.19

1 year ago

3.6.89

1 year ago

3.6.88

1 year ago

3.6.87

1 year ago

3.6.86

1 year ago

3.6.85

1 year ago

3.6.84

1 year ago

3.6.83

1 year ago

3.6.97

1 year ago

3.6.96

1 year ago

4.6.97

1 year ago

4.6.98

1 year ago

3.6.95

1 year ago

3.6.94

1 year ago

3.6.93

1 year ago

3.6.92

1 year ago

3.6.91

1 year ago

3.6.90

1 year 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