5.6.83 • Published 12 months ago

@erboladaiorg/iusto-minus-doloribus v5.6.83

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

@erboladaiorg/iusto-minus-doloribus 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('@erboladaiorg/iusto-minus-doloribus');
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('@erboladaiorg/iusto-minus-doloribus');
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('@erboladaiorg/iusto-minus-doloribus');
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

regexpdefinebinaryfull-widthURLSearchParamsworkercollectionwindowsgetoptArray.prototype.flatreal-timesuperstructvariables in cssIteratora11yregextsexit-codegetPrototypeOfcolorseslint-plugintrimRightasteriskstddTypeScriptargvextraarttoolsObject.valuesJSONformatnopeeverydeterministicless mixinsconfigurable@@toStringTagSystem.globaltrimLefthandlersECMAScript 2018multi-packagedirimmutablequerystringjsdomArrayBuffer#slicepersistenttoSortedrangeerrorreducerlockfilelistenerses-shimsbabelWeakSetfpsArray.prototype.containsconfigECMAScript 2017callbackawstransporteffect-tsYAMLInt32Arrayprotocol-buffersasyncdayjsforEachsignalsworkflowownES2015circularfunctionES2023equalitynpmcore-jsArray.prototype.flatMaptrimEndES8typedarraychildrobustjestslotcertificatescss variable256Array.prototype.findLastIndexes5queryESajaxminimalroutesharedcloudformationwhatwges2016tostringtagconcatMapcreatecensorsomeenderdirectorypatchflagqueueMicrotaskmakeFloat64Arraycommandprocessexpressionvestsettingscloudtrailnodejsstarterpinoremoveoperating-systemacornpromiseObject.getPrototypeOfstyleInt8Arrayfast-copyyupcorezx6to5exites-abstractassertioncryptcodessymlinksoptimizerchromegroupvaluesstatelessspawnzodgitignorecss lessschemadateRxJSRegExp.prototype.flagsleteast-asian-widthaccessorvalidationsimpledbmergeECMAScript 2022typeiteratordependenciesexecutefantasy-landtoArraysafeObject.keyscontainssortfastcopycharacterreversedsymlinksetPrototypeOfquoteStreamscallbindgetterReflect.getPrototypeOffindLastObjectkeyform-validationMicrosoftinweaksetreact-hookssetImmediate3dgraphqltc39jshintstreamfunctionaltrimStartauthsortedrequireiterationlibphonenumbertesterjavascriptfast-deep-copyroute53package managertoReversedgradients css3equalieutilInt16ArrayrulessigtermuninstallmacoslivedataoffsetauthenticationtranspilerargsparserTypedArrayamazonimportWebSocketdomObject.assignreact-hook-formenumerableflattenendpointreverseec2columnsruntimeidentifiersqsglobalfileintrinsicscheme-validationreadPushtypedasciimixinsArray.prototype.findLastrfc9562compareStreamfetchES2017BigInt64Arrayless csswaapibddglobal this valuesideutilityuuidutilses-shim APIbrowserslistredactphonejwthttpscall-boundstringifybabel-corerecursiveecmascriptcall-bindutilitiesES2018performantlengthenvironmentSymbol.toStringTagloggingchromiumpropertybufferES3kinesisnameeventDispatchergroupByisConcatSpreadablepackage.jsontypanionjson-schemaapollo
5.6.83

12 months ago

5.6.82

12 months ago

5.6.81

12 months ago

5.6.80

12 months ago

5.6.79

12 months ago

5.6.78

12 months ago

5.6.77

1 year ago

5.6.76

1 year ago

5.5.76

1 year ago

5.5.75

1 year ago

5.5.74

1 year ago

5.5.73

1 year ago

5.5.72

1 year ago

5.4.72

1 year ago

5.4.71

1 year ago

5.4.70

1 year ago

5.4.69

1 year ago

5.4.68

1 year ago

5.4.67

1 year ago

5.3.67

1 year ago

5.3.66

1 year ago

5.3.65

1 year ago

5.3.64

1 year ago

4.3.64

1 year ago

4.3.63

1 year ago

3.3.63

1 year ago

3.3.62

1 year ago

3.3.61

1 year ago

3.3.60

1 year ago

3.3.59

1 year ago

3.3.58

1 year ago

3.3.57

1 year ago

3.3.56

1 year ago

3.3.55

1 year ago

3.3.54

1 year ago

3.3.53

1 year ago

3.3.52

1 year ago

3.3.51

1 year ago

3.3.50

1 year ago

3.3.49

1 year ago

3.3.48

1 year ago

3.3.47

1 year ago

3.3.46

1 year ago

3.3.45

1 year ago

3.2.45

1 year ago

3.2.44

1 year ago

3.2.43

1 year ago

3.2.42

1 year ago

2.2.42

1 year ago

2.1.42

1 year ago

2.1.41

1 year ago

2.1.40

1 year ago

2.1.39

1 year ago

2.1.38

1 year ago

2.1.37

1 year ago

2.1.36

1 year ago

2.1.35

1 year ago

2.1.34

1 year ago

2.1.33

1 year ago

2.1.32

1 year ago

2.1.31

1 year ago

2.1.30

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.0.22

1 year ago

2.0.21

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

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