7.10.109 • Published 10 months ago

@patrtorg/repudiandae-dolore v7.10.109

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

10 months ago

7.10.107

10 months ago

7.10.109

10 months ago

7.10.106

10 months ago

6.10.106

10 months ago

6.10.105

10 months ago

6.10.104

10 months ago

6.10.103

10 months ago

6.9.103

10 months ago

6.9.102

10 months ago

6.9.101

10 months ago

6.9.100

10 months ago

6.9.99

10 months ago

6.9.98

10 months ago

6.9.97

10 months ago

6.9.96

10 months ago

6.9.95

10 months ago

6.9.94

10 months ago

6.8.94

10 months ago

6.8.93

10 months ago

6.8.92

11 months ago

6.8.91

11 months ago

6.8.90

11 months ago

6.8.89

11 months ago

6.8.88

11 months ago

6.8.87

11 months ago

6.8.86

11 months ago

6.8.85

11 months ago

5.8.85

11 months ago

5.8.84

11 months ago

5.8.83

11 months ago

5.8.82

11 months ago

5.8.81

11 months ago

5.8.80

11 months ago

5.8.79

11 months ago

5.8.78

11 months ago

5.8.77

11 months ago

5.8.76

11 months ago

4.8.76

11 months ago

4.8.75

11 months ago

4.7.75

11 months ago

4.7.74

11 months ago

4.6.74

11 months ago

4.6.73

11 months ago

4.6.72

11 months ago

4.6.71

11 months ago

4.6.70

11 months ago

4.6.69

11 months ago

4.6.68

11 months ago

4.6.67

11 months ago

4.6.66

12 months ago

4.6.65

12 months ago

4.6.64

12 months ago

4.6.63

12 months ago

4.6.62

12 months ago

4.6.61

12 months ago

4.6.60

12 months ago

4.6.59

12 months ago

4.6.58

12 months ago

4.6.57

12 months ago

4.6.56

12 months ago

4.6.55

12 months ago

4.6.54

12 months ago

4.6.53

12 months ago

4.6.52

12 months ago

4.6.51

12 months ago

4.5.51

12 months ago

4.5.50

12 months ago

4.5.49

12 months ago

4.5.48

12 months ago

4.5.47

1 year ago

3.5.47

1 year ago

3.4.47

1 year ago

3.4.46

1 year ago

3.4.45

1 year ago

3.4.44

1 year ago

3.4.43

1 year ago

3.4.42

1 year ago

3.3.42

1 year ago

3.3.41

1 year ago

3.3.40

1 year ago

3.3.39

1 year ago

3.3.38

1 year ago

3.3.37

1 year ago

3.3.36

1 year ago

3.3.35

1 year ago

3.3.34

1 year ago

3.3.33

1 year ago

3.3.32

1 year ago

3.3.31

1 year ago

3.3.30

1 year ago

3.3.29

1 year ago

3.3.28

1 year ago

3.3.27

1 year ago

3.2.27

1 year ago

3.2.26

1 year ago

3.2.25

1 year ago

3.2.24

1 year ago

3.2.23

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.2.21

1 year ago

2.2.20

1 year ago

2.1.20

1 year ago

2.1.19

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

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

2.0.4

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