7.10.109 • Published 12 months ago

@patrtorg/repudiandae-dolore v7.10.109

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

12 months ago

7.10.107

12 months ago

7.10.109

12 months ago

7.10.106

1 year ago

6.10.106

1 year ago

6.10.105

1 year ago

6.10.104

1 year ago

6.10.103

1 year ago

6.9.103

1 year ago

6.9.102

1 year ago

6.9.101

1 year ago

6.9.100

1 year ago

6.9.99

1 year ago

6.9.98

1 year ago

6.9.97

1 year ago

6.9.96

1 year ago

6.9.95

1 year ago

6.9.94

1 year ago

6.8.94

1 year ago

6.8.93

1 year ago

6.8.92

1 year ago

6.8.91

1 year ago

6.8.90

1 year ago

6.8.89

1 year ago

6.8.88

1 year ago

6.8.87

1 year ago

6.8.86

1 year ago

6.8.85

1 year ago

5.8.85

1 year ago

5.8.84

1 year ago

5.8.83

1 year ago

5.8.82

1 year ago

5.8.81

1 year ago

5.8.80

1 year ago

5.8.79

1 year ago

5.8.78

1 year ago

5.8.77

1 year ago

5.8.76

1 year ago

4.8.76

1 year ago

4.8.75

1 year ago

4.7.75

1 year ago

4.7.74

1 year ago

4.6.74

1 year ago

4.6.73

1 year ago

4.6.72

1 year ago

4.6.71

1 year ago

4.6.70

1 year ago

4.6.69

1 year ago

4.6.68

1 year ago

4.6.67

1 year ago

4.6.66

1 year ago

4.6.65

1 year ago

4.6.64

1 year ago

4.6.63

1 year ago

4.6.62

1 year ago

4.6.61

1 year ago

4.6.60

1 year ago

4.6.59

1 year ago

4.6.58

1 year ago

4.6.57

1 year ago

4.6.56

1 year ago

4.6.55

1 year ago

4.6.54

1 year ago

4.6.53

1 year ago

4.6.52

1 year ago

4.6.51

1 year ago

4.5.51

1 year ago

4.5.50

1 year ago

4.5.49

1 year ago

4.5.48

1 year 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