5.15.148 • Published 1 year ago

@firanorg/amet-accusantium-dolor v5.15.148

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

1 year ago

5.15.147

1 year ago

5.15.146

1 year ago

5.10.133

2 years ago

5.12.145

1 year ago

5.14.146

1 year ago

5.12.144

1 year ago

5.14.145

1 year ago

5.12.143

1 year ago

5.10.136

2 years ago

5.10.135

2 years ago

5.10.134

2 years ago

5.11.136

2 years ago

5.11.141

1 year ago

5.11.140

1 year ago

5.11.143

1 year ago

5.11.142

1 year ago

5.11.138

2 years ago

5.11.137

2 years ago

5.13.145

1 year ago

5.11.139

1 year ago

5.10.132

2 years ago

5.10.131

2 years ago

5.10.129

2 years ago

5.10.130

2 years ago

5.10.128

2 years ago

5.10.122

2 years ago

5.10.126

2 years ago

5.10.125

2 years ago

5.10.124

2 years ago

5.10.123

2 years ago

5.10.127

2 years ago

5.9.122

2 years ago

5.9.121

2 years ago

5.9.120

2 years ago

5.9.119

2 years ago

5.9.117

2 years ago

5.9.116

2 years ago

5.9.118

2 years ago

5.9.115

2 years ago

5.9.113

2 years ago

5.9.114

2 years ago

5.9.112

2 years ago

5.9.111

2 years ago

5.9.110

2 years ago

5.9.109

2 years ago

5.9.108

2 years ago

4.9.108

2 years ago

4.9.107

2 years ago

4.9.106

2 years ago

4.9.105

2 years ago

3.4.47

2 years ago

4.9.103

2 years ago

3.4.48

2 years ago

4.9.104

2 years ago

3.4.49

2 years ago

3.4.40

2 years ago

3.4.41

2 years ago

3.4.42

2 years ago

3.4.43

2 years ago

3.4.44

2 years ago

3.4.45

2 years ago

3.4.46

2 years ago

4.7.98

2 years ago

3.4.50

2 years ago

3.4.51

2 years ago

3.4.52

2 years ago

3.2.32

2 years ago

3.5.79

2 years ago

3.5.78

2 years ago

3.5.77

2 years ago

3.5.76

2 years ago

3.5.75

2 years ago

3.5.74

2 years ago

3.5.73

2 years ago

3.1.30

2 years ago

3.1.32

2 years ago

3.1.31

2 years ago

3.5.72

2 years ago

3.5.71

2 years ago

3.5.70

2 years ago

3.4.36

2 years ago

3.4.37

2 years ago

3.4.38

2 years ago

3.4.39

2 years ago

3.4.33

2 years ago

3.4.34

2 years ago

3.4.35

2 years ago

3.5.83

2 years ago

3.5.82

2 years ago

3.5.81

2 years ago

3.5.80

2 years ago

3.5.58

2 years ago

3.5.57

2 years ago

3.5.56

2 years ago

3.5.55

2 years ago

3.5.54

2 years ago

3.5.53

2 years ago

3.5.52

2 years ago

3.1.18

2 years ago

3.1.17

2 years ago

3.3.32

2 years ago

3.3.33

2 years ago

3.5.59

2 years ago

4.8.101

2 years ago

4.8.102

2 years ago

4.8.100

2 years ago

4.8.103

2 years ago

3.5.69

2 years ago

3.1.23

2 years ago

3.5.68

2 years ago

3.1.22

2 years ago

3.5.67

2 years ago

3.1.25

2 years ago

3.5.66

2 years ago

3.1.24

2 years ago

3.5.65

2 years ago

3.1.27

2 years ago

3.5.64

2 years ago

3.1.26

2 years ago

3.5.63

2 years ago

3.1.29

2 years ago

3.5.62

2 years ago

3.1.28

2 years ago

4.8.98

2 years ago

3.1.21

2 years ago

3.1.20

2 years ago

4.8.99

2 years ago

3.5.61

2 years ago

3.5.60

2 years ago

3.1.19

2 years ago

3.6.89

2 years ago

3.6.88

2 years ago

3.6.87

2 years ago

3.6.86

2 years ago

3.6.85

2 years ago

3.6.84

2 years ago

3.6.83

2 years ago

3.6.97

2 years ago

3.6.96

2 years ago

4.6.97

2 years ago

4.6.98

2 years ago

3.6.95

2 years ago

3.6.94

2 years ago

3.6.93

2 years ago

3.6.92

2 years ago

3.6.91

2 years ago

3.6.90

2 years ago

3.1.16

2 years ago

3.1.14

2 years ago

3.1.15

2 years ago

2.1.14

2 years ago

2.1.13

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.10

2 years ago

2.0.10

2 years ago

2.0.9

2 years ago

2.0.8

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago