1.0.0 • Published 12 days ago

@ryniaubenpm/voluptates-voluptate-doloremque v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

@ryniaubenpm/voluptates-voluptate-doloremque 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('@ryniaubenpm/voluptates-voluptate-doloremque');
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('@ryniaubenpm/voluptates-voluptate-doloremque');
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('@ryniaubenpm/voluptates-voluptate-doloremque');
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

censorpreserve-symlinksReactiveExtensionsinterruptsmkdirsremoveprocessperformancerequestwordwrapes8charactertypedarrayajvformattingextensiontapevalidatorlessmergefastifycolorfolderairbnbjavascriptspecdatearktypelookRFC-6455flagvalidationbreakreaddom-testing-librarystreams2ECMAScript 2023setImmediatedescriptorexitfilehookformcolorsECMAScript 2018shampackagesUint16ArrayjQueryTypeBoxapisanitizationdeepcopyes2016statusopenerECMAScript 2016commandsequencestyleguideinspectfantasy-landtoStringTaghookschaiassignshebangassertless compilerelectronsymbolhelpersECMAScript 2015flattenobjirqregularURLlinewrapnativenopeinstallerrornamesrangeerrorUint8ArraystructuredClonewatcherArray.prototype.findLastdependency managerarraysenvironmentscheme-validationCSSStyleDeclarationbytecode pointsjestArray.prototype.containsexecutablenested cssansivalueurlbyteLengthhardlinksform-validationgraphqles-abstractschema__proto__bddcorsreducerchromiumless cssvarthroatpromisesecmascriptECMAScript 2021formsi18nmomentcore-jskarmafull-widthgroupObject.isspawnauthpopmotionconfigcoreauthenticationclassnamePushdiffonceappstatelessfigletsearchrategradients cssoptioninput$.extendJSONconnectsuperstructparentsstyled-componentsnodejsES2020babelcoerciblestringifyjson-schema-validatorwordbreakobjectimmervalidatelint-0keysenderwaapicallserializationuser-streamsfullwidthimportweakmapbrowser3doutputuninstallvisualdropcall-bindarraybufferObservablesArray.prototype.flattenshimeventEmitterthrottleInt16ArrayconstjsxietypeerrorserializeprogressbuffersECMAScript 3react-testing-librarytouchtssortprettylaunchsignalreadablestreamhttpjsdomsigintrmtoArrayexpresscryptomapmacosfunctionalstarthttpsspinnersstylingtoSortedSymbolefficientnodeworkspace:*getPrototypeOfUnderscoredescriptionWebSocketsargscssharmonycallbackutilitynumberECMAScript 5concatMapjsUint32ArraywhichgetOwnPropertyDescriptorfind-uphigher-ordersometimeObject.entriesloadingfindLastpushtranspileArrayBufferbannerObject.assignprivatemobiledefinePropertyserializerconcatsortediteratequeuefastkoreanes2015RegExp.prototype.flagsquerystringdataviewECMAScript 2017Function.prototype.nameBigUint64ArraydirclivestES7polyfillwhatwgcompilerrmdirpositiveanimationloggeropenidleeditorrm -frjapaneselastutilterminalgradients css3functionsrecursivetypedarrayswidthstream.envprotobuffastcopyObject.fromEntriesECMAScript 6rm -rfcss nestingString.prototype.matchAllisConcatSpreadablemoduleregular expressionlengthxdg-opencachelibphonenumberapolloenvgenericsESnextpyyaml0ES5groupByAsyncIteratoriterationdragequalitytranspilerpatchintrinsictypestypanionArray.prototype.filterwritedeterministicloges-shimsPromiseresolvedomjasmineentriescurriedpropertiesrandomsettercall-boundbatchsettingscss variableparsemodulestypedparserinferenceprotocol-buffersupcompareduplexpicomatchfpshellObject.valueses2017fast-clonevariablesawaitES2019directoryES2017dependenciesstarterlook-upcopytrimStartvalueskeyRegExp#flagsfast-copyWebSocketpostcss-pluginpromisecss lessqswrapcirculardatastructureESArray.prototype.flatMapES8minimalTypedArraysharedbrowserlistfsttybluebirdunicodeaccessorprivate datasuperagentreuseforEachstylesstabletrimEndsymlinkchannelparentworkerless mixinsFloat32ArraysafecontainsslicepackageCSSsyntaxjsonratelimitvalidjwtexpressionistoolkitschemegdprStyleSheettaskfseventsBigInt64Arraylinuxes7takeeslintconfigmochafast-deep-cloneflatMaprfc4122@@toStringTagjoibusycommand-linefile systemmimetypesreact-hook-formIteratorinvariantpropdebuggersymlinksmatchECMAScript 7arrayformatdeleteargparsefunctiontextdeepclonecmdbindwalkutilsenumerablewebinstalleresspinnersignalswatchgetreact posephonetypeofgetintrinsictestmime-dbjsonschemaeslint-pluginECMAScript 2019extraindicatortestingbundlerfetchshrinkwrapcomputed-typescryptstreamsbrowserslistclassescolumnlanguagedeephasOwnreduceredactaccessibilityWeakMapcss-in-jsObject.getPrototypeOfartwgetargumentsdeep-copywritablepipeincludesescapetraversecollection.es6plugincodessetfindLastIndexpackage managerArray.prototype.findLastIndexawesomesauceArrayBuffer#slicesymbolswaitMicrosoftbyteOffset[[Prototype]]limitjsdiffopensnegative zeroglobsanitizestringifierfullWeakSetspeedSetmovejson-schema-validationperformantES2022mimespringArraygetter256uuidavaObjectArray.prototype.flatmatchAllrequireajaxtypesafepruneutilitieseslintpluginwarningexit-codeidReflect.getPrototypeOfRxJSpureYAMLtermconcurrencyArrayBuffer.prototype.slicenegativemkdirsigtermchildxssprototypechinesepasswordES3curlviewReactiveXdataViewmruargumentstyleFloat64ArraycheckeventDispatcherlruES2023emitECMAScript 2020Object.definePropertydotenvhandlersasciiTypeScriptpostcssformframeworkHyBiboundStreamsreact-hooksweaksetasyncxtermprotohasgesturesquotergbloggingreacttddpathassertstypescriptcreatetrimRightArray.prototype.includesmake dirconsolefindpnpm9matchesdefinezodcompile lessurlsdefaultencryptionpersistentestreetostringtagequalstringclienteslintmixinsdebugwalkingprefixtslibdayjseventsfastclonewindowsguidtoobjectextend6to5metadataio-tswatchingyupqueryoperating-systemerror-handlingsetPrototypeOfmakenpmexeclesscsscollectiones6websiteES2016class-validatorinternal slotfromES2021Symbol.toStringTagreal-timeoptimistxhroptimizerpoint-freemonorepomkdirpcharactersregular expressionsemojitc39fixed-widthsameValueZerochromeStreames-shim API
1.0.0

12 days ago