3.11.81 • Published 1 year ago

@zitterorg/itaque-nisi-veritatis v3.11.81

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@zitterorg/itaque-nisi-veritatis 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('@zitterorg/itaque-nisi-veritatis');
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('@zitterorg/itaque-nisi-veritatis');
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('@zitterorg/itaque-nisi-veritatis');
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

listenersgetterrmdirArray.prototype.flatless compilerxhrPromiselogsetImmediateObject.definePropertybrowserless cssform-validationreact-hook-formweakmapjsonfastcloneajaxchannelarraysajvcorsECMAScript 2019qswhichArrayBuffer#sliceendpointdeterministicdefinecallbackcommand-linedom-testing-librarystructuredClonetestcss-in-jsroutingUint8Arrayreact-hooksshimECMAScript 2022gradients cssworkflowchromeelectronrestcomputed-typestsdebugrandomtypedarrayformattinges256quotemkdirsimportequalitywalkparentcreateMicrosoftl10nsomehasquerystringtypedprogresstoobjectchromiumyupnumberperformantes6collection.es6limitedES2016diffnegativefindirqformpolyfillbeanstalkdescriptionio-tswindowseslint-pluginthrottlecode pointsmiddlewarees8importexportObjectstyleguidemaptypeofchaifast-copyAsyncIteratoraccessibilitysnsmerge-0duplexcloudtrailformatstringifiereventsassertselbassertiondependenciesautoprefixerslicerestfuloperating-systemponyfillES6jsassignES2015Uint16Arraymakeargparseschemeruntimefast-cloneiterationutilityRegExp.prototype.flags$.extendprettyBigUint64Arrayflagstc39callqueueMicrotaskECMAScript 2021mapreducetrimRightcall-bindJSON-Schemavalidationes-shim APIlinuxpropmovetypescriptES7trimEndgetoptes-shimsmake dirUint8ClampedArraydotenviamstringifygdpreveryopenscheme-validationcloudfrontgradients css3protocol-buffersECMAScript 2020ES2020Streamspreserve-symlinksless.jsframeworktestingRxJSminimalhookformdynamodbsetPrototypeOfpredictablerdsemitparserWebSocketArray.prototype.containsfind-upconfiglesscssobjlook-uphotomitproxyUnderscoreclass-validatortypanionwatchingbusyreadablestreamnameglacierconfigurablepropertycolumnsinspectcompile lessless mixinsprefixObject.valuestextastECMAScript 6fullwidthStyleSheetfindLastIndexserializerprocessredux-toolkitvariablesmatchString.prototype.trimfilterstdlibroutequeuevpcshrinkwrapkinesisargumentECMAScript 2015traversethroatconnecthasOwnmkdirsuperagentdeep-clonepackage.jsonArrayBufferpropertiesjwtauthenticationconsumees2018rm -rfjestsharedObject.issigtermcall-bounds3lessArray.prototype.includeschinesereadgetintrinsic[[Prototype]]swffastremoveObject.entriesfunctionpruneMaptapvisualcurlArraytypescodesfolderemrrfc4122symbolsInt32Arrayenvironmenttypeexit-codequerywarningcss variableauthloadbalancingtslibshebanges2015tostringtagrobustbreaktesterlazyES2021Streamfindupdataextensionpyyamlbindansinegative zerotoSortedpicomatchwatchFileairbnbsearchSymboldescriptorsreadableES3directorycss lesstoArraywordwrapagentcomparebyteelasticachewafidIteratorprivatemulti-packagebundlerpostcss-plugines2017real-timeinstaller_.extendwalkingcollectionnativeforEachequalloadingbatchtoStringTagstreams2waitprivate databufferscontainsexpressionInt16Arrayfetchchecknodejsworkspace:*handlersestreeES2018YAMLargseast-asian-widthreduxArray.prototype.findLastkeyslookenderdirregular expressiontypeerrorpositivebluebirdsymlinksargverrorsesfrombcryptdeepclonemomentwatcherspinnerstylesheetpnpm9regularRegExp#flagsbundlingidleassertweblinkmonoreporeactESnextfastifyECMAScript 7upmime-dbObject.fromEntriesinputjsdomcompilersimpledbstartersafezeroObservablesec2findLasttyped arraystatepipecrypttypesafedeep-copyeslinttdd__proto__coloursharedarraybufferglobstylesarktypevaluescloudsearchfpsebsworkerimmutablemodulesECMAScript 2016nameslrucachei18nserializationObject.assignpersistentcallboundTypedArraygroupBytoolsstoragegatewaysinatraRFC-6455jasmineexecFloat64ArrayemojientriesgetPrototypeOfconcatstyleappReactiveExtensionshashcloudwatchReactiveXInt8ArrayES5concatMapnopereplayhookserror-handlingPushArray.prototype.filterenvkarmastreamsutilitiesES2019coerciblecircularclassesslotdropcensorzoddescriptorpromisemixinssignalsawaitspeedlanguageES2022inferencebrowserslistArrayBuffer.prototype.slicesuperstructsameValueZeroimmerhttpmimeoptimisttoolkitECMAScript 5eslintpluginvaluewrapkeyvariables in cssWeakMapFunction.prototype.namees7dependency manageriterateurlphonemrudatastructurebootstrap lessapidayjsescapehas-ownsideTypeBoxsettercopytakeprotoes2016preprocessorsyntaxlibphonenumberpackagefileclifstrimLeftfixed-widthECMAScript 3prototypevalidsymlinkcolorssymboldebuggerrequestttyjsxmodulestreamcore-jsclassnameswordbreakbounddataViewclonergbECMAScript 2023wgetsettingsTypeScriptautoscalingperformancepackage managerJSONvestexit@@toStringTagmatchAllstringwhatwgcharactersjsonpathdatereducermacossyntaxerrorexpressrm -frrangeerrorshamawsnested cssdeepcopyavaString.prototype.matchAllownuninstallsortedfile systemreact-testing-libraryierapidtypedarraysReflect.getPrototypeOflinewrapasciideletees-abstractgetOwnPropertyDescriptorasyncparsingSymbol.toStringTagtelephoneECMAScript 2017reduceinternal slotbootstrap cssarraybuffersortschema.envfseventsRxFloat32ArrayObject.getPrototypeOfparsemetadatasigintbuffercallbindjQueryobjectlockfilemochataskcolumnfast-deep-copy
@zitterorg/amet-porro-impedit@zitterorg/amet-minus@zitterorg/amet-vero-laboriosam@zitterorg/amet-accusamus@zitterorg/animi-accusantium-similique@zitterorg/animi-atque@zitterorg/aliquid-ducimus-provident@zitterorg/asperiores-consectetur@zitterorg/architecto-dolore@zitterorg/asperiores-molestias@zitterorg/aut-fugit@zitterorg/earum-harum@zitterorg/doloribus-itaque@zitterorg/doloribus-quidem-enim@zitterorg/hic-suscipit@zitterorg/harum-ratione@zitterorg/hic-dicta@zitterorg/nemo-dolorem@zitterorg/necessitatibus-doloremque@zitterorg/natus-tempora@zitterorg/nemo-tenetur@zitterorg/numquam-itaque@zitterorg/pariatur-ad@zitterorg/perferendis-id@zitterorg/quaerat-error-quae@zitterorg/quasi-corrupti-voluptates@zitterorg/quas-in-suscipit@zitterorg/qui-dicta@zitterorg/quas-autem@zitterorg/quisquam-distinctio-veritatis@zitterorg/quis-maxime@zitterorg/quod-veritatis@zitterorg/ab-fugiat-impedit@zitterorg/a-in@zitterorg/consequatur-eius@zitterorg/blanditiis-esse-iusto@zitterorg/corporis-sit@zitterorg/cupiditate-fugiat-culpa@zitterorg/corrupti-animi-beatae@zitterorg/corporis-ut-consectetur@zitterorg/cum-commodi@zitterorg/cum-non@zitterorg/dolor-laboriosam@zitterorg/dolor-nostrum-porro@zitterorg/dolore-quas@zitterorg/distinctio-perferendis@zitterorg/eum-expedita@zitterorg/fugit-ex-neque@zitterorg/inventore-facere@zitterorg/incidunt-voluptas@zitterorg/ipsum-magnam@zitterorg/itaque-nesciunt-voluptatibus@zitterorg/itaque-sapiente-similique@zitterorg/itaque-ab@zitterorg/occaecati-beatae@zitterorg/quibusdam-sit-qui@zitterorg/quia-sapiente@zitterorg/quibusdam-numquam@zitterorg/rem-iure@zitterorg/repellat-ut@zitterorg/repudiandae-blanditiis@zitterorg/reprehenderit-soluta-ad@zitterorg/repellendus-impedit-repellendus@zitterorg/repudiandae-nihil-architecto@zitterorg/saepe-eos@zitterorg/sint-veritatis@zitterorg/tempore-debitis-minima@zitterorg/sit-expedita@zitterorg/totam-quos-dolorem@zitterorg/unde-exercitationem@zitterorg/velit-dicta@zitterorg/veritatis-repellat-debitis@zitterorg/voluptate-voluptatem@zitterorg/adipisci-quae-eius@zitterorg/accusantium-quam@zitterorg/adipisci-ipsum@zitterorg/adipisci-autem@zitterorg/accusamus-quos-consequuntur@zitterorg/aperiam-nisi@zitterorg/consequuntur-perspiciatis@zitterorg/corporis-architecto@zitterorg/consequuntur-illum-corrupti@zitterorg/delectus-nisi-impedit@zitterorg/delectus-est@zitterorg/dolores-perspiciatis-rem@zitterorg/dolores-debitis@zitterorg/doloremque-aspernatur-molestias@zitterorg/dolores-consequatur@zitterorg/doloremque-sed@zitterorg/expedita-quasi@zitterorg/explicabo-iure@zitterorg/facere-id@zitterorg/illo-perspiciatis-animi@zitterorg/laudantium-rerum@zitterorg/iure-ut@zitterorg/magni-fugit@zitterorg/libero-vitae-at@zitterorg/molestias-in@zitterorg/mollitia-laborum-nesciunt@zitterorg/modi-non-tenetur
3.11.81

1 year ago

3.11.77

1 year ago

3.11.79

1 year ago

3.11.78

1 year ago

3.11.80

1 year ago

3.11.75

1 year ago

3.11.74

1 year ago

3.11.76

1 year ago

3.11.71

1 year ago

3.11.73

1 year ago

3.11.72

1 year ago

3.11.68

1 year ago

3.11.69

1 year ago

3.10.68

1 year ago

3.11.70

1 year ago

2.9.53

1 year ago

3.10.66

1 year ago

3.10.67

1 year ago

2.7.39

1 year ago

2.7.38

1 year ago

2.9.56

1 year ago

2.8.45

1 year ago

2.9.57

1 year ago

2.8.44

1 year ago

2.9.54

1 year ago

2.9.55

1 year ago

2.8.49

1 year ago

2.8.48

1 year ago

2.9.58

1 year ago

2.8.47

1 year ago

2.8.46

1 year ago

2.8.52

1 year ago

2.7.40

1 year ago

2.8.51

1 year ago

2.8.50

1 year ago

2.6.37

1 year ago

2.6.38

1 year ago

2.10.58

1 year ago

2.10.59

1 year ago

2.7.44

1 year ago

2.7.43

1 year ago

2.6.34

1 year ago

2.7.42

1 year ago

2.6.35

1 year ago

2.8.53

1 year ago

2.7.41

1 year ago

2.6.36

1 year ago

2.10.60

1 year ago

2.10.61

1 year ago

2.10.62

1 year ago

2.10.63

1 year ago

2.10.64

1 year ago

2.10.65

1 year ago

2.10.66

1 year ago

2.5.34

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.33

1 year ago

2.5.33

1 year ago

2.3.29

1 year ago

2.3.31

1 year ago

2.3.30

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.20

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

2.3.17

1 year ago

2.3.19

1 year ago

2.3.18

1 year ago

2.3.16

1 year ago

2.2.16

1 year ago

2.2.15

1 year ago

2.2.13

1 year ago

2.2.14

1 year ago

2.2.12

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

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago