7.10.109 • Published 2 years ago

@patrtorg/repudiandae-dolore v7.10.109

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@patrtorg/repudiandae-dolore 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('@patrtorg/repudiandae-dolore');
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('@patrtorg/repudiandae-dolore');
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('@patrtorg/repudiandae-dolore');
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

superagentlrubrowsertrimRighthttpsprocessglacierjson-schema-validatorflagsnegative_.extendasteriskssetterparserinstallerappsidefunctionalMapvalidateenvArray.prototype.filterstylingsqsprotobufismatch.gitignoreyupcallboundansigraphqlstringrangeerrorcolumnsfastcloneargsfind-upfpspackageregexpdayjsmkdirpstringifyconcatcalleventsparentsescapeglobalspackagesReflect.getPrototypeOfIteratoreventEmittersharedES5vestcollectionbyteOffsetspeedsetImmediatedeterministicredux-toolkitargumentinternalbddmatchAllpostcss-pluginroute53poseairbnbelbSystem.globalextratoolsSymbol.toStringTagredactArrayBufferchannelpostcssInt8ArrayBigInt64Arrayjson-schemafull-widthec2StyleSheetprefixgetOwnPropertyDescriptorlintenderdeep-cloneartpyyamlglobalThischromiumcall-bindECMAScript 2015ECMAScript 2016cloudsearchtimebinaryapiindicatorfunctionUnderscoreefficientredirectrmcoverageidreal-timepnpm9symbolquotetransportcloudtrailcolorkeynamescirculartypanionnopekinesistermdependency managerECMAScript 2021typed arraylanguageshrinkwrapreuseenumerabletoolkitsinatracssflagdom-testing-libraryanimationenvironmentsapollogitignoreTypedArray.envYAMLarrayTypeScriptvpcbinariesrgbFloat64ArrayvaluestypedarraystoobjectcolourPushlog256JSON-SchemakarmasimpledbregularhasOwnregular expressionsieReactiveXdeepclonereact-hook-formhasintrinsicstringifierrdswhichfunction.lengthcode pointsexecspinnersforEachoncekoreantypeerrorqsemojinameproxywalkschemaes8clicallbindespreeuninstallformscss-in-jsdeepcopyform-validationshamformreduceflatMapassertioncurriedeslint-pluginInt32Arrayawesomesaucehookformglobal this valuevalidatorUint8ArraytypeoffetchtddbindsyntaxerrorwhatwgObservabledescriptordeletephoneclass-validatorcharactersESnexttslibmanipulationgetintrinsicdynamodbwaitpropertyES8Object.definePropertydataViewgesturescolumndiffstoragegatewayrequirewindowclientfindLastIndexcurlstableRxpicomatchbabel-coreserializeFunction.prototype.namerobustimmutablejsdiffmonorepopoint-freetakeStreamsdebuglinkfastifyecmascriptfast-copyswfdragiamArray.prototype.containses2016Object.assignequalitycallbacksortlibphonenumberstreamsyntaxrequestObject.fromEntriesInt16Arraymake diruser-streamserrorshebangfast-clonefixed-widthroutingArray.prototype.findLastIndexfiltermoduless3cloudformationemrexecfileboundES2020fast-deep-cloneinstallbrowserslistdotenvUint8ClampedArrayvarspopmotionECMAScript 2020structuredClonees2018cloneincludesflatUint32ArraynodejsloggingjoidataidentifierscoreimportexporthelperstouchreduxserializationqueueMicrotaskreact poseECMAScript 3mkdirsfindup-0acornmanagerlockfilea11yprototypepackage manageremitworkerlastdescriptionquerystringlistenerstrimEndrulesmomentpureTypeBoxcoercibleconsoleES2015@@toStringTagtsautoscalingjavascriptrm -rffile systemsetcompilerECMAScript 2019shellbrowserlistobjectjsonfast-deep-copyasyncprotomoduleio-tstoReversedcopyCSSStyleDeclarationprogressinclassnamestoStringTagArrayqueryexpressionhelpereslintconfigArray.prototype.flattentranspileriteratorhooksdescriptorsistanbulsubprocessyamlECMAScript 6uuidWebSocketzodframeworkparentguidperformanceArray.prototype.includesessesoptimizerstyleguideregular-expressionhigher-orderWeakMapreadastES2023assertsRegExp.prototype.flagstoArrayformatmatchesreadablestreamtesting[[Prototype]]unicodetostringtaghasOwnPropertylookjapaneserouterReactiveExtensionsbeanstalk__proto__createrssvalidationflattenES2016valuereducerlocalmaketapcodesrapidfromSymbolspringglobtextpositiveframersymlinksprotocol-buffersaccessibilitychildECMAScript 2023byteES7internal slothttpsortedObservablesFloat32Arraynpmnegative zeroremoveajvregexECMAScript 7elasticacherecursiveUint16Arrayi18ncomputed-typesl10nworkspace:*inputarraybufferelectronenvironmentqueueObject.getPrototypeOfproperties3dbusyeslintECMAScript 2022offsetsetPrototypeOfserializergroupBycolorspackage.jsongetfphtmlfindLastperformantutilspathforkcensorbyteLengthmapreducebabelzeroes7JSONworkflowignoreargvclassnamerestfulinspectpluginsuperstructes-shimsviewsameValueZerobannerES2018randombuffersObjectnpmignoreURLSearchParamscloudfrontharmonyeffect-tsletparsecommandcollection.es6stylesString.prototype.trimRegExp#flagspreprocessorsource mapwaftrimLeftspawnasciiURLPromiseconstamazonutilitiesassignjson-schema-validationxmlinstrumentationupnumberdirstreamsstyled-componentsexpresspinoreact-hookses2017optimistdefinePropertyscheme-validationinferencees-shim APIgenericsfastassertmulti-packagewgetvalidRFC-6455ES2021metadatadropautoprefixerwaapiresolvethreesomeobjhas-ownrmdirloggerjsxES3getPrototypeOfrm -frexecuteoutputstyleES2019varisConcatSpreadable
7.10.108

2 years ago

7.10.107

2 years ago

7.10.109

2 years ago

7.10.106

2 years ago

6.10.106

2 years ago

6.10.105

2 years ago

6.10.104

2 years ago

6.10.103

2 years ago

6.9.103

2 years ago

6.9.102

2 years ago

6.9.101

2 years ago

6.9.100

2 years ago

6.9.99

2 years ago

6.9.98

2 years ago

6.9.97

2 years ago

6.9.96

2 years ago

6.9.95

2 years ago

6.9.94

2 years ago

6.8.94

2 years ago

6.8.93

2 years ago

6.8.92

2 years ago

6.8.91

2 years ago

6.8.90

2 years ago

6.8.89

2 years ago

6.8.88

2 years ago

6.8.87

2 years ago

6.8.86

2 years ago

6.8.85

2 years ago

5.8.85

2 years ago

5.8.84

2 years ago

5.8.83

2 years ago

5.8.82

2 years ago

5.8.81

2 years ago

5.8.80

2 years ago

5.8.79

2 years ago

5.8.78

2 years ago

5.8.77

2 years ago

5.8.76

2 years ago

4.8.76

2 years ago

4.8.75

2 years ago

4.7.75

2 years ago

4.7.74

2 years ago

4.6.74

2 years ago

4.6.73

2 years ago

4.6.72

2 years ago

4.6.71

2 years ago

4.6.70

2 years ago

4.6.69

2 years ago

4.6.68

2 years ago

4.6.67

2 years ago

4.6.66

2 years ago

4.6.65

2 years ago

4.6.64

2 years ago

4.6.63

2 years ago

4.6.62

2 years ago

4.6.61

2 years ago

4.6.60

2 years ago

4.6.59

2 years ago

4.6.58

2 years ago

4.6.57

2 years ago

4.6.56

2 years ago

4.6.55

2 years ago

4.6.54

2 years ago

4.6.53

2 years ago

4.6.52

2 years ago

4.6.51

2 years ago

4.5.51

2 years ago

4.5.50

2 years ago

4.5.49

2 years ago

4.5.48

2 years ago

4.5.47

2 years ago

3.5.47

2 years ago

3.4.47

2 years ago

3.4.46

2 years ago

3.4.45

2 years ago

3.4.44

2 years ago

3.4.43

2 years ago

3.4.42

2 years ago

3.3.42

2 years ago

3.3.41

2 years ago

3.3.40

2 years ago

3.3.39

2 years ago

3.3.38

2 years ago

3.3.37

2 years ago

3.3.36

2 years ago

3.3.35

2 years ago

3.3.34

2 years ago

3.3.33

2 years ago

3.3.32

2 years ago

3.3.31

2 years ago

3.3.30

2 years ago

3.3.29

2 years ago

3.3.28

2 years ago

3.3.27

2 years ago

3.2.27

2 years ago

3.2.26

2 years ago

3.2.25

2 years ago

3.2.24

2 years ago

3.2.23

2 years ago

2.2.23

2 years ago

2.2.22

2 years ago

2.2.21

2 years ago

2.2.20

2 years ago

2.1.20

2 years ago

2.1.19

2 years ago

2.1.18

2 years ago

2.1.17

2 years ago

2.1.16

2 years ago

2.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.1.9

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.4

2 years ago

2.0.4

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