3.15.108 • Published 1 year ago

@devtea2026/aut-non-quae-eius v3.15.108

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@devtea2026/aut-non-quae-eius Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES5 mostly-spec-compliant Object.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/aut-non-quae-eius');
var assert = require('assert');

assert.equal(getPrototypeOf(true), Boolean.prototype);
assert.equal(getPrototypeOf(42), Number.prototype);
assert.equal(getPrototypeOf(''), String.prototype);
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/aut-non-quae-eius');
var assert = require('assert');
/* when Object.getPrototypeOf is not present */
delete Object.getPrototypeOf;
var shimmed = getPrototypeOf.shim();
assert.equal(shimmed, getPrototypeOf.getPolyfill());

assert.equal(Object.getPrototypeOf(true), Boolean.prototype);
assert.equal(Object.getPrototypeOf(42), Number.prototype);
assert.equal(Object.getPrototypeOf(''), String.prototype);
assert.equal(Object.getPrototypeOf(/a/g), RegExp.prototype);
assert.equal(Object.getPrototypeOf(new Date()), Date.prototype);
assert.equal(Object.getPrototypeOf(function () {}), Function.prototype);
assert.equal(Object.getPrototypeOf([]), Array.prototype);
assert.equal(Object.getPrototypeOf({}), Object.prototype);
var getPrototypeOf = require('@devtea2026/aut-non-quae-eius');
var assert = require('assert');
/* when Object.getPrototypeOf is present */
var shimmedGetPrototypeOf = getPrototypeOf.shim();
assert.equal(shimmedGetPrototypeOf, Object.getPrototypeOf);
assert.equal(Object.getPrototypeOf([]), Array.prototype);

Tests

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

opens__proto__replaywalkswffast-deep-copylinkdescriptorseschairatelimittrimStartbreakexesliceemrstringifybrowserlistObject.getPrototypeOfArray.prototype.findLastIndexmime-dbpredictablesymbolskeysmrureal-timefindLastIndextsObject.keyseslint-plugin-0stylesheetfast-deep-cloneUint32Arrayrestfile systemaccessibilityutiljwtoptioncloudsearchhookformtraverseequalarraybufferargumentbusyES7ReactiveXhasOwnmoveserializationglobalseslintfullrgbcss nestingglobFloat64ArrayspeedcommanderidentifierstestbyteArray.prototype.containslookwritableroute53specURLJSON-SchematypedarrayssymlinkeventEmitterfsjstoobjecttestingendpointcomputed-typesiteratetextArraybundlerconfigurableutil.inspectviewcmddiffnodejsenumerableArray.prototype.includesArrayBufferes-abstractchromiumparentsrecursiveless mixinscopylivesimpledblengthRegExp.prototype.flagscolumnssymlinkscontainsTypeScriptTypedArrayproxylook-upshrinkwrapminimalecmascriptprotocol-buffersquerychannelhashES2017reducerwordwrapflatMapauthenticationperformanceUint8ClampedArrayloadingcolouryamlhooksPushgroupByECMAScript 2022somehttpexecutableECMAScript 2016typesafebrowserslistchilddebugcharactersvaluesUnderscoreSetcode pointshasxhrtrimLefttoolkitmixinsObservablemulti-packageECMAScript 2015serializees7libphonenumberoffsetduplexenderprotobufprotoshamtypedarrayObject.definePropertycodesreduxECMAScript 2020eslintpluginzeroString.prototype.trimSymbolES5outputCSSdateUint16ArrayelbjapaneseECMAScript 2017assertionwebsitescheme-validationasyncpostcssuuidbluebirdauthnodeArrayBuffer.prototype.slicefixed-widthRxECMAScript 2019encryptionsequencereadable.envrm -frdeepcopytoolsdomwrapdeep-cloneirqwafbindpackage.jsontoSortedconcurrencysidetoStringTagworkflowBigUint64ArrayloggingrandomurlseventDispatcherlinuxnameboundemitcompilerECMAScript 2021logphonepluginobjectec2inputconsumeinstallerdescriptionkoreanes5tapenumberuninstalltakehardlinkscollectionclassesES6autoscalingidlejshintisConcatSpreadablecloudtrailfastcloneES2023syntaxerrorlanguagefinduppackage managerfindes8BigInt64ArraysinatraECMAScript 2023ES2021spinnerassertoptimizerasciies-shim APIjsonpathiterationworkercomparesettingsarrayidmapreducethrottleflatserializerES2018expresselmfpsintrinsicpropertiesweaksetagenttoArrayawesomesaucenpmconfigreadsuperstructsetterfilterregexless csswalking@@toStringTagmetadatarapidES2022immutablewatchFileis0class-validatortyped arraycircularpnpm9ECMAScript 7Function.prototype.namenamesshellrmWebSocketstatelessSymbol.toStringTagcloudfrontES8MicrosoftrequiredropinternalsharedarraybufferfigletObject.fromEntriesmkdirdataVieweslintconfigsearchcharacterenvcorscoerciblees2015elasticachequoteregular expressionString.prototype.matchAllwordbreakArray.prototype.findLastJSONfseventsObject.valuesvarsInt16ArraymodulesrouterguidHyBigetterpicomatchl10nrequestio-tsstructuredCloneurlqueuecommandenvironmentsflagscloudwatchimportexportYAMLapifromvalidationexectslibspawnquerystringbannerassignObject.entriescallbindemojiargparsepreserve-symlinksfast-copyArrayBuffer#slicetypeslaunchimporteditorprototypestreams2ES2020es2016WeakSetstdlibamazonhandlerstimesuperagentyupbundlingIteratorrm -rfredactfindLastsigintloggerchromecollection.es6deterministicObject.assignmobilecsslockfileTypeBoxfastifystabledom-testing-libraryredux-toolkitWebSocketsiejasmineeventsjavascriptes-shimsartclassnamesinvarianttypanionjoistylesstateexpressionflattenshimjsxs3sortedzodjQuerytostringtagworkspace:*trimformscall-boundECMAScript 3styled-componentshotwgetaccessorglacierebsextendlazyreadablestreaminspectStreamrobustxtermeveryastregularawscurlpromisesprefix$.extendvalidateprivatethroatownfunctionalcore-jspathtypedirjestbootstrap lessdependenciescolumnstylingfullwidthclinegativeES3safeArray.prototype.flattennested cssform-validationdotenvoncewatcherpreprocessorprogresspatchmiddlewarepipeslotspinnerswebestreestreamsES2016variablesgradients css3sharedvestmergedefaultlimitcolorskeypackagelimitedtrimRightwarningextraenvironmentcheckcoresnshelpersInt8Arrayframeworkespolyfillindicatorpyyamleast-asian-widthdebuggervaluevariables in cssglobalavafind-upReactiveExtensionsgetnativetypeofmimetypesjsonutilitiesInt32Arrayextensionpropertytty[[Prototype]]lintsignalsmomentArray.prototype.flatcompile lesstrimEndcjkURLSearchParamsconcatgetintrinsicparentappbufferscss lesselectronconcatMapECMAScript 6internal slotvisualpushautoprefixerdefinePropertypositivecreateregular expressionsreact-testing-libraryargvstringPromisetouchprunebrowserxdg-openflagstringifierprettymatchesbeanstalkclassnamermdirjsdiffarktypefull-widthforEachexit-codexdglistenersparsingexitwidthreduceopensameValueZeroresolvereact-hookssymbolFloat32ArrayremovemimetaprestfulESreuseawaithas-ownpackagesES2015sortuptddinterruptsRFC-6455directorylastcallboundnopewhatwgcensordeep-copylinewrapes6less.jsargumentsoptimistchineseloadbalancingreactfluxutilitytermomitgrouptaskUint8ArraystyleguidewaitregexptypescriptrangeerroriammatchArray.prototype.flatMaptelephone
3.15.108

1 year ago

3.15.107

1 year ago

3.15.106

1 year ago

3.15.105

1 year ago

3.15.104

1 year ago

3.15.103

1 year ago

3.15.102

1 year ago

3.15.101

1 year ago

2.9.80

1 year ago

2.5.47

1 year ago

2.5.48

1 year ago

2.5.49

1 year ago

2.7.66

1 year ago

2.7.65

1 year ago

2.7.64

1 year ago

2.5.45

1 year ago

2.5.46

1 year ago

2.3.38

1 year ago

3.13.92

1 year ago

3.13.93

1 year ago

3.13.94

1 year ago

2.3.37

1 year ago

2.5.54

1 year ago

2.5.50

1 year ago

2.5.51

1 year ago

2.5.52

1 year ago

2.5.53

1 year ago

2.1.19

1 year ago

3.12.90

1 year ago

3.12.92

1 year ago

2.1.25

1 year ago

3.12.91

1 year ago

2.1.26

1 year ago

2.1.23

1 year ago

2.1.24

1 year ago

2.1.21

1 year ago

2.1.22

1 year ago

2.1.20

1 year ago

3.10.84

1 year ago

3.10.83

1 year ago

2.8.67

1 year ago

2.8.66

1 year ago

2.8.69

1 year ago

2.8.68

1 year ago

2.8.70

1 year ago

2.8.74

1 year ago

2.8.73

1 year ago

2.8.72

1 year ago

2.8.71

1 year ago

3.14.99

1 year ago

2.4.39

1 year ago

3.14.94

1 year ago

3.14.95

1 year ago

2.6.59

1 year ago

3.14.96

1 year ago

3.14.97

1 year ago

2.4.38

1 year ago

3.14.98

1 year ago

2.8.78

1 year ago

2.6.55

1 year ago

2.8.77

1 year ago

2.6.56

1 year ago

2.8.76

1 year ago

2.6.57

1 year ago

2.8.75

1 year ago

2.6.58

1 year ago

2.8.79

1 year ago

2.6.54

1 year ago

2.6.60

1 year ago

2.6.61

1 year ago

3.12.87

1 year ago

3.12.86

1 year ago

3.12.89

1 year ago

3.12.88

1 year ago

2.10.80

1 year ago

2.10.81

1 year ago

2.10.82

1 year ago

2.10.83

1 year ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

2.4.43

1 year ago

2.4.42

1 year ago

2.4.45

1 year ago

2.4.44

1 year ago

2.6.62

1 year ago

2.6.63

1 year ago

2.6.64

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

3.11.86

1 year ago

3.11.85

1 year ago

2.2.37

1 year ago

2.2.35

1 year ago

2.2.36

1 year ago

3.11.84

1 year ago

2.2.33

1 year ago

2.2.34

1 year ago

2.2.31

1 year ago

2.2.32

1 year ago

2.2.30

1 year ago

3.14.100

1 year ago

3.14.101

1 year ago

2.9.79

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

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