3.8.96 • Published 12 months ago

@patrtorg/iusto-eveniet v3.8.96

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

12 months ago

3.8.95

1 year ago

3.8.94

1 year ago

3.8.93

1 year ago

3.8.92

1 year ago

3.8.91

1 year ago

3.7.91

1 year ago

3.6.91

1 year ago

2.6.91

1 year ago

2.6.90

1 year ago

2.6.89

1 year ago

2.6.88

1 year ago

2.6.87

1 year ago

2.6.86

1 year ago

2.6.85

1 year ago

2.6.84

1 year ago

2.6.83

1 year ago

2.5.83

1 year ago

2.5.82

1 year ago

2.5.81

1 year ago

2.5.80

1 year ago

2.5.79

1 year ago

2.4.79

1 year ago

2.4.78

1 year ago

2.4.77

1 year ago

2.4.76

1 year ago

2.4.75

1 year ago

2.4.74

1 year ago

2.4.73

1 year ago

2.4.72

1 year ago

2.4.71

1 year ago

2.4.70

1 year ago

2.4.69

1 year ago

2.4.68

1 year ago

2.4.67

1 year ago

2.4.66

1 year ago

2.4.65

1 year ago

2.4.64

1 year ago

2.4.63

1 year ago

2.4.62

1 year ago

2.4.61

1 year ago

2.4.60

1 year ago

2.4.59

1 year ago

2.4.58

1 year ago

2.4.57

1 year ago

2.4.56

1 year ago

2.4.55

1 year ago

2.4.54

1 year ago

2.4.53

1 year ago

2.4.52

1 year ago

2.4.51

1 year ago

2.4.50

1 year ago

2.4.49

1 year ago

2.4.48

1 year ago

2.4.47

1 year ago

2.4.46

1 year ago

2.4.45

1 year ago

2.4.44

1 year ago

2.4.43

1 year ago

2.4.42

1 year ago

2.4.41

1 year ago

2.4.40

1 year ago

2.4.39

1 year ago

2.3.39

1 year ago

2.3.38

1 year ago

2.3.37

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