3.8.96 • Published 10 months ago

@patrtorg/iusto-eveniet v3.8.96

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

@patrtorg/iusto-eveniet 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/iusto-eveniet');
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/iusto-eveniet');
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/iusto-eveniet');
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

curriedescapecloudwatchconcatMapvalidationtranspilevardeletefullwidthclassnamesPushownglobalsnumberbyteLengthESnexti18nhttpsfilterphoneirqttyendpointexit-codeFunction.prototype.namehasOwnasterisksimmerStreamsmergeECMAScript 5assigninvariantaccessorprotointrinsicpersistentzxObject.keysbootstrap lessUint8ClampedArraybinflatMapYAMLpipefixed-widtheslint-pluginarraydeep-copystateUint8ArrayUnderscoreprettyform-validationReactiveXestreefile systemtestformsbytejson-schema-validationcompile lessBigInt64ArrayminimalflattenlogdirsameValueZerospringhasnodelinkshebang$.extendmkdirpconsumeshimexpressconfigurablewhatwgchineseglobalchrometransportwhichwgetassertextendflaggraphqlapolloresolvetelephoneutilitiesES2017stringefficienthashelmcoreECMAScript 2023es-shim APIdeterministicdeepclonegetintrinsicredirectpolyfillmobileimmutablecjkwafunicodecallfsstableReactiveExtensionslinuxback-endtestingbundlerroutingTypeBoxinurlauthexeciscommand-linesuperagentWebSocketformattingequalitytc39xhrWeakSetreact posemockingvariablesstatusiterationoncefast-deep-copy6to5Object.valuesbeanstalksidestylesheetes2017ES2015iteratorrandomhookformObject.definePropertyfpscss-in-jsworkerjson-schema-validatorredactbusybabelreal-timefluxless.jsreplayoptiontoSortedgetPrototypeOffast-deep-clonedotenvpostcss-pluginlistenersexecfilepreprocessoruninstallloadbalancingfastcopystringifiersignalsURLbannercallbackclass-validatorjsonlazyreactUint16ArraypluginAsyncIteratormkdirBigUint64Arrayglobal objectsyntaxerrorbrowserlistES2019Object.fromEntriesArray.prototype.flatMapharmonyutiltypesafereact animationless cssaccessibilitynodejslintparser.gitignoredirectorydeepcopyweaksetInt32Arrayespreecoercibleobjredux-toolkitgetterenvironmentmkdirsES8createbootstrap csspinomixinsrequestcommandJSON-SchemaArray.prototype.findLastIndexbinarycsspreserve-symlinksbundlingvalidatorqueueMicrotaskarktypeES7inputhelpersesstructuredCloneES2022css variablemake dirxtermmakeES2020apiRegExp.prototype.flagsReflect.getPrototypeOfeventEmitterwindowECMAScript 2015javascriptprivate datadatastructureenumerabletyped-0WeakMapbinarieselbbrowserslistsignalgetoptacorntslibl10ncontainsinferenceArray.prototype.flattenajvnpmignoreES6groupdependency managerexecutereadablerequirefindLastpopmotionbabel-coreclientmruconstclonequerystringtypetypeerrorcrypteslintplugincloudfrontJSONpasswordeffect-tsformatassertionlesscssECMAScript 2021variables in cssglobthreetacitArray.prototype.includesflagsauthenticationnamereducecolorsquoteopensslboundruntimesqsRxfetchcolumnargvsuperstructsettingschannelSystem.globalcloudformationmatchwritablemetadataoptimizerfastObservableArray.prototype.findLasttoolkitpredictable0swfRxJSsymbolsregexploadingfast-clonevalidatevarsidentifiersObject.isMicrosoftdescriptoryamlshrinkwrapECMAScript 6argumentbufferdom-testing-libraryFloat64Arrayautoscalinghigher-orderPromiserapidqslockfileslotnopeelasticachebyteOffsetECMAScript 3flatschemereadablestreamemitreadchaiglobal this valuedefinePropertySymbol.toStringTagstylesmonorepocompilerspawneschildsequenceassertsdataviewdeep-cloneslicegradients css3yupwidthamazonprotocol-bufferseslintconfigregular expressionserializejsxsubprocessartrangeerrortsdataInt8ArraykoreanCSSincludesgetqueueshamutilsproxystreamroute53viewES3classesES2023omitspinnerscloudtrailsetpromisedomES2018es2016diffperformanceprocessECMAScript 2016StreamjsdomsymlinkcolourautoprefixerECMAScript 2017consolenativepoint-freesymlinkshooksreact-componentpositivejestfront-endfastifystatelessIteratorfunctionallibphonenumberarraysjsonschemaworkspace:*fast-copyhasOwnPropertybddtoobjectservicefantasy-lands3visuallocallesspropertiesFloat32Arrayfunctionsetterschemaes2018dependenciescommanderlocationsyntaxec2weakmapsharedarraybufferterminalfull-widthpackagesMapencryptionpostcsspatchsomefunctionsfindLastIndexpureerrorString.prototype.trimtddtermmacoses5copyairbnbmapreduceagenta11yworkflowparsestylecomputed-types3drulesinspectprivateobjectsigtermInt16ArrayreuseignorebufferswarningprunejsdifffpArray.prototype.flatpathstringifypicomatchWebSocketstimeString.prototype.matchAllenvcryptogesturesgitignorechromiumregular-expressiones6dynamodbtypedarrayscertificatesHyBiregextypescriptoffsettrimStartjoivestkinesiserror-handlingjson-schemajseverycharacterfulles8es-shimsiampropertyES2016tostringtageslintletes-abstractdefineansitoStringTagtrimdescriptionreduxinternalremovevaluesfindshellio-tsArray.prototype.filterObject.entriesimportexportreducercheckfnmatchsafesharedreact-hook-form__proto__asynchttpselfdatefastcloneconfiges2015collectionnamesURLSearchParamsindicatorhelpersObjecttoArraydescriptorssetPrototypeOfstyleguideoutputtrimEndvpcframerECMAScriptregularlogger@@toStringTaginternal slotdragprotobuf[[Prototype]]scheme-validationArraytyped arrayjshintArrayBufferconcatinstallcall-boundtypeofsortedArray.prototype.containssimpledbcallbindcss nestingnpmcallboundUint32ArraytypesdayjscodesawesomesauceObject.getPrototypeOfArrayBuffer#sliceasciitranspilereventscore-js256RFC-6455installergenericsprefixposeiesymboltakeoperating-systemECMAScript 7columnsArrayBuffer.prototype.sliceemrexpressionbcryptfileeventDispatcherTypedArrayzerotextbrowsermomentnested cssclimanagermodulepackage.jsoncircularinterruptsstyled-componentseast-asian-widthoptimistuser-streamssigintnegativereact-testing-librarystylingrgbkeytesterspinnerquerylastSethandlershas-owniterateloggingarraybufferwindowsserializerprototypecolormockstoragegatewayforEach
3.8.96

10 months ago

3.8.95

10 months ago

3.8.94

10 months ago

3.8.93

10 months ago

3.8.92

10 months ago

3.8.91

10 months ago

3.7.91

10 months ago

3.6.91

10 months ago

2.6.91

10 months ago

2.6.90

10 months ago

2.6.89

10 months ago

2.6.88

10 months ago

2.6.87

10 months ago

2.6.86

10 months ago

2.6.85

10 months ago

2.6.84

10 months ago

2.6.83

11 months ago

2.5.83

11 months ago

2.5.82

11 months ago

2.5.81

11 months ago

2.5.80

11 months ago

2.5.79

11 months ago

2.4.79

11 months ago

2.4.78

11 months ago

2.4.77

11 months ago

2.4.76

11 months ago

2.4.75

11 months ago

2.4.74

11 months ago

2.4.73

11 months ago

2.4.72

11 months ago

2.4.71

11 months ago

2.4.70

11 months ago

2.4.69

11 months ago

2.4.68

11 months ago

2.4.67

11 months ago

2.4.66

11 months ago

2.4.65

11 months ago

2.4.64

11 months ago

2.4.63

11 months ago

2.4.62

11 months ago

2.4.61

11 months ago

2.4.60

11 months ago

2.4.59

11 months ago

2.4.58

11 months ago

2.4.57

11 months ago

2.4.56

11 months ago

2.4.55

12 months ago

2.4.54

12 months ago

2.4.53

12 months ago

2.4.52

12 months ago

2.4.51

12 months ago

2.4.50

12 months ago

2.4.49

12 months ago

2.4.48

12 months ago

2.4.47

12 months ago

2.4.46

12 months ago

2.4.45

12 months ago

2.4.44

12 months ago

2.4.43

12 months ago

2.4.42

12 months ago

2.4.41

12 months ago

2.4.40

12 months ago

2.4.39

12 months ago

2.3.39

12 months ago

2.3.38

12 months ago

2.3.37

12 months ago

2.3.36

1 year ago

2.3.35

1 year ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.3.31

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

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.2.19

1 year ago

2.2.18

1 year ago

2.2.17

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.14

1 year ago

2.2.13

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.2.9

1 year ago

2.1.9

1 year ago

1.1.9

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

1.0.0

1 year ago