7.8.111 • Published 12 months ago

@devtea2026/cum-esse-expedita-similique v7.8.111

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

@devtea2026/cum-esse-expedita-similique 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('@devtea2026/cum-esse-expedita-similique');
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('@devtea2026/cum-esse-expedita-similique');
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('@devtea2026/cum-esse-expedita-similique');
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

mobiletrimLeftlistenersformatshellargparsefindloggerwordwrapdom-testing-libraryprotobuffsRegExp#flagses8ECMAScript 7artpolyfillsyntaxdescriptioncollectionspinnercheckRxjwtArray.prototype.flatperformanceelbcollection.es6sortedtypaniontyped arrayshimescapeECMAScript 5toolsES6cloudfrontasciihigher-orderECMAScript 6slotReactiveExtensionses7waitwritel10nObservablesmapglobalstartprocessiamargsduplexparsefunctionalopenES5cryptolrustyleguideirqincludesapiArraychannelarraywindowsresolveprefixsharedarraybufferlaunchamazonremoveUnderscorecolumnsreusejasminesignalsES2017react-hooksdependency managerpasswordes6outputexitidprogressebsglobtypesreadablesomeUint8ClampedArrayswfless mixinsweaksetboundurlfixed-width[[Prototype]]flattenWeakSetworkflowfull-widthbundlerlanguageestreerestfulrandomoptionpushhotcloudtrailcachepipeextraES8frameworkexpresspreprocessorhandlers@@toStringTagtimegetintrinsicjapaneseindicatorutilityeventDispatcherajaxsignalmatchAlldirectorytrimcore-jspropertiesxdg-openreact-hook-formfast-copyfindLastagentECMAScript 3datastructuretc39vpccommanderArrayBufferstreamenvencryptionpropertyinterruptslazypyyamlxhrkarmacomputed-typeshookformdeep-clonefrom256proxyoperating-systemreact-testing-libraryArray.prototype.flattenbuffersbatchflathooksforEachwidthWeakMapObject.assignidentifiersES2021circularconfiglockfilewritableInt16Arraywhatwgnested csselmbyteLengthstdlibes2018authenticationECMAScript 2015modulehashponyfillbytetddfastclonebddbuffersettingslimitedserializersequencecolumnvaluesymlinkshasOwntostringtagwatchingstablesidematchesflagsdeletetypedarraysrmmonoreponodejspreserve-symlinksmakeJSON-SchemaAsyncIteratorstreams2isConcatSpreadablemixinssharedArrayBuffer.prototype.slicesuperstructquerydebuggerschemaES3compilerreducertrimRightchromerequirebrowsertsmkdirsmimeArray.prototype.includesvariablessafenpmredactspawnObject.getPrototypeOfintrinsicnamesmochalessformsECMAScript 2021iteratorchromiumperformantvestArrayBuffer#sliceObject.keysownStreamscode pointsbindcreatefind-upmime-dbcorshardlinksglaciernamesymlinkwalkclassesSetunicodeinstallaccessibilitygradients css3Uint32ArrayautoprefixerCSSscheme-validationspinnerssimpledbtypedarrayassignnegative zerocss variableexecutabletraverseReflect.getPrototypeOfbootstrap cssexpressionpersistentstatelessdatethroatserializeBigInt64Arrayimmerstarterdayjsassertionwgetextensioninputredux-toolkitdeepclonejsdombcryptbannerstreamslinuxvisualrm -frtaskcopyutilitieseventssetajvstoragegatewaycallbindnodetextarrayscensori18nhasdiffoncewebeventEmittertypereplaydependenciestypedStreamlogESECMAScript 2020defaultrdsless csswatcherparsingidleregular expressionprototypecss-in-jsmruArray.prototype.findLastsetterfluxeslintconfigstylesheetcurlcallboundregularWebSocketdotenvgetOwnPropertyDescriptorxtermurlsES2020gradients cssutilrequesttoArrayString.prototype.matchAllupwebsiteloadingcall-bindrm -rfxdgimportECMAScript 2016has-ownkinesisdescriptorrouterpostcssless compilerwafObject.valuesfile systemsinatrasuperagentgenericsfseventsexeregexArray.prototype.findLastIndexES2016tapsesimportexportcoerciblemodulessnsstructuredClonecloudformationcharactersfast-deep-clonemergees-shim APIfolderObject.definePropertyeditorstringifyes5Mapquotecloudwatchfastcopyconsolees-shimsjs-0argvconsumedeepcopysetImmediatereadablestreamgroupfigletgetairbnbterminalECMAScript 2017symbolefficientrobustcmdcharacter_.extendqueuelesscsselectronCSSStyleDeclarationchinesespeedexecomitpathformmulti-packagearktypehasOwnPropertypackagesRegExp.prototype.flagsmacosprivate dataPromisepatchwalkingIteratorwordbreakoptimistSymbolES7rmdirintsliboffsetgdprpluginsymbolsvaluesvarsguidinstallerTypeBoxawesomesauceiterateawaitinvariantTypeScriptlinewraptapeequalitytouchWebSocketscjkObservableerrorsearchquerystringformattingavaiterationgroupByregular expressionsprettyttyextendnopebrowsersliststringifierkeysopensutil.inspectfindupstylingjavascriptsetPrototypeOfbusyObject.fromEntriesconfigurableparsergetPrototypeOfs3typescriptaccessorcomparebluebirdstringphonereducechaifilterstyled-componentspackagesqsECMAScript 2019jshintArray.prototype.containsRxJSfpsgetoptsyntaxerrorinferenceFloat64ArrayawsslicetypeofratecolorsshamESnextURLSearchParamsviewvalidstylesnumberclipostcss-plugincss lesslivefindLastIndexauthcodesenumerablebreakhttpspnpm9lastloggingcommand-lineio-tsjsxreal-timeURLendpointcss nestingweakmapmiddlewareobjectclassnameprivatewhiches2016ES2015Microsoftmkdirrfc4122deep-copylengthlookec2rapidfunctionlintdatareactinternal sloteslint-plugintypesafeObjectES2019colortoobject0StyleSheetparentsmake dirUint8ArraycssconcatobjconnectcryptthrottlewatchFileruntimeObject.entriestesterglobalsstyleInt8ArrayObject.isreadexit-codeenvironmentpruneES2022package.jsonrecursivejsdiffvalidationconcatMapeslintpluginreduxgetterdebugzeroargumentsemrcall-boundoptimizermetadataJSONPushassertdynamodbcompile less
7.8.111

12 months ago

7.8.110

12 months ago

7.8.109

12 months ago

7.8.108

12 months ago

7.8.107

12 months ago

7.8.106

12 months ago

7.8.105

12 months ago

7.8.104

12 months ago

3.7.37

1 year ago

3.7.38

1 year ago

3.7.35

1 year ago

3.7.36

1 year ago

5.7.61

1 year ago

5.7.60

1 year ago

3.7.39

1 year ago

7.8.103

12 months ago

6.8.89

1 year ago

2.3.20

1 year ago

7.8.102

12 months ago

6.8.88

1 year ago

7.8.101

12 months ago

6.8.87

1 year ago

7.8.100

1 year ago

6.8.86

1 year ago

2.3.21

1 year ago

6.8.85

1 year ago

6.8.84

1 year ago

5.7.52

1 year ago

5.7.51

1 year ago

5.7.54

1 year ago

5.7.53

1 year ago

3.7.44

1 year ago

3.7.45

1 year ago

5.7.50

1 year ago

3.7.42

1 year ago

3.7.43

1 year ago

3.7.40

1 year ago

5.7.59

1 year ago

3.7.41

1 year ago

5.7.56

1 year ago

5.7.55

1 year ago

5.7.58

1 year ago

5.7.57

1 year ago

5.7.49

1 year ago

2.6.34

1 year ago

7.8.93

1 year ago

7.8.92

1 year ago

7.8.97

1 year ago

7.8.96

1 year ago

7.8.95

1 year ago

7.8.94

1 year ago

7.8.99

1 year ago

7.8.98

1 year ago

6.8.92

1 year ago

6.8.91

1 year ago

6.8.90

1 year ago

2.4.25

1 year ago

2.4.24

1 year ago

2.4.21

1 year ago

2.4.23

1 year ago

2.4.22

1 year ago

6.7.78

1 year ago

6.7.79

1 year ago

6.7.70

1 year ago

6.7.71

1 year ago

2.2.18

1 year ago

6.7.72

1 year ago

6.7.73

1 year ago

6.7.74

1 year ago

6.7.75

1 year ago

6.7.76

1 year ago

6.7.77

1 year ago

6.7.67

1 year ago

6.7.68

1 year ago

6.7.69

1 year ago

2.2.19

1 year ago

4.7.45

1 year ago

4.7.46

1 year ago

6.7.61

1 year ago

6.7.62

1 year ago

6.7.63

1 year ago

4.7.49

1 year ago

6.7.64

1 year ago

6.7.65

1 year ago

4.7.47

1 year ago

6.7.66

1 year ago

4.7.48

1 year ago

2.2.20

1 year ago

2.7.35

1 year ago

2.7.34

1 year ago

2.5.29

1 year ago

2.5.25

1 year ago

2.5.26

1 year ago

2.5.27

1 year ago

2.5.28

1 year ago

6.7.81

1 year ago

6.7.82

1 year ago

6.7.83

1 year ago

6.7.84

1 year ago

2.5.32

1 year ago

2.5.33

1 year ago

2.5.34

1 year ago

2.5.30

1 year ago

6.7.80

1 year ago

2.5.31

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.1.16

1 year ago

2.0.15

1 year ago

2.1.15

1 year ago

2.0.14

1 year ago

2.0.13

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago