1.1.2 • Published 9 days ago

@npmteam2024/alias-quam-nesciunt v1.1.2

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

@npmteam2024/alias-quam-nesciunt Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2015 mostly-spec-compliant Reflect.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('@npmteam2024/alias-quam-nesciunt');
var assert = require('assert');

assert.throws(() => getPrototypeOf(true));
assert.throws(() => getPrototypeOf(42));
assert.throws(() => getPrototypeOf(''));
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('@npmteam2024/alias-quam-nesciunt');
var assert = require('assert');
/* when Reflect or Reflect.getPrototypeOf is not present */
if (typeof Reflect === 'object') { delete Reflect.getPrototypeOf; }
delete globalThis.Reflect;
var shimmed = getPrototypeOf.shim();
assert.equal(shimmed, getPrototypeOf.getPolyfill());

assert.throws(() => Reflect.getPrototypeOf(true));
assert.throws(() => Reflect.getPrototypeOf(42));
assert.throws(() => Reflect.getPrototypeOf(''));
assert.equal(Reflect.getPrototypeOf(/a/g), RegExp.prototype);
assert.equal(Reflect.getPrototypeOf(new Date()), Date.prototype);
assert.equal(Reflect.getPrototypeOf(function () {}), Function.prototype);
assert.equal(Reflect.getPrototypeOf([]), Array.prototype);
assert.equal(Reflect.getPrototypeOf({}), Object.prototype);
var getPrototypeOf = require('@npmteam2024/alias-quam-nesciunt');
var assert = require('assert');
/* when Reflect.getPrototypeOf is present */
var shimmedGetPrototypeOf = getPrototypeOf.shim();
assert.equal(shimmedGetPrototypeOf, Reflect.getPrototypeOf);
assert.equal(Reflect.getPrototypeOf([]), Array.prototype);

Tests

Simply clone the repo, npm install, and run npm test

css lesszodramdaCSSStyleDeclarationhasOwnassertlinewrapkeysfindLasttoobjectfpsbddlazyastischromiumfpviewstringifiermakevpcmatchesStyleSheeteast-asian-widthreduxmkdirpformframersimpledbvalidationmetadatamochamodulegroupBytyped arrayelasticache_.extendassertionECMAScript 2019statusdeep-clonecacheeslintcreateAsyncIteratornametrimEndSymboleslintconfigprogresspromisesmake direxit-codemime-dbtraverseECMAScript 2021valuebabel-coreio-tsECMAScript 2015quotehelpersfiltercurriedenumerableless compilerpreprocessorrequestextenddropmergecheckebsrapidArray.prototype.findLastIndexformsomitreact animationruntimewrapArray.prototype.flatten@@toStringTaginternal slotwebshrinkwraprobustsortedxtermindicatorflagsspeclogwgetjsondirec2PromiseutilitywidthgroupRegExp.prototype.flagsexpresses6ArrayresolvettyECMAScript 2017react-hooksjson-schema-validationloadingcodeskeyloggingswffast-deep-copychailanguagees7slicebannerwatchobjshimsqsclass-validatorsigtermes2015ECMAScript 2022redux-toolkitquerylesscommandstringify[[Prototype]].envdeepclonefiletesterpackagedragObject.getPrototypeOfietypesafeajaxthrottletc39valuesbufferscss nestingpluginwatcherdiffless.jssharedarraybufferjesttimeaccessibilityirqpasswordduplexstreams2parserrfc4122stringprivate data$.extendnodecorewaapiObject.definePropertyawesomesaucebundlingopenReactiveExtensionsless csssesinferenceargparseSetMapfixed-widthArray.prototype.findLastbufferwhatwgfast-deep-cloneshamsignalfunctionsWebSocketseslint-pluginReactiveXgenericsWeakSetdebuggerexpressiones8statelessECMAScript 2016ES2015l10nObject.fromEntriesObject.entriesBigInt64ArraygetintrinsicbyteLengthworkeracornECMAScript 2023immernegative zerotrimcoloriamextensionnegativeconfigurablecryptofindoperating-systemmapreducenodejsawaitECMAScript 5ES2021setImmediateimportvisualwriteperformanteventEmitterinvariantprotobufcopysymlinksdeep-copybeanstalktddES6authes2016proxyminimalwordwrapassertssharedreducevariableswalkpropertynested cssstarterworkflowa11ycommandercloudfrontextrachannelpersistenteswindowsFloat64ArrayoncemonorepotypescriptenvReflect.getPrototypeOfreactrmdircharactersconsumeObject.assignObject.valuesagentdomaccessordependency managerautoscalingpackagesestreeECMAScript 7polyfillreact posemkdirprivatepatchuser-streamseveryqueueMicrotaskartasciiformatdatastructureString.prototype.matchAllES2017callbackutilitiesphoneworkspace:*airbnbcloudtraildeterministicflattencollection.es6sanitizestyled-componentsstreamfromshebangclone256JSON-Schemareducerpostcssquerystringprunespeedfind-upintrinsicboundelbpositivesymbolratelimitgradients cssincludesWebSocketescapejshttpspackage manageres-abstractES2016styleguidelengthrequiretypefetchless mixinses5installerdefinePropertycallbindtypedarrayESnextObservableautoprefixerfastclonedefineuninstallspinner0i18nES5deletemacosemrrecursiveglaciermiddlewareguidpopmotionreact-testing-libraryargsavabatchparsingmrufindLastIndexbcryptcall-boundendervalidarraybufferconcatMapfast-cloneInt16ArraydayjssnstscircularcsscollectionconfiglibphonenumbercjktapstylesheetlinuxglobinterruptssanitizationYAMLweaksetchromebalancedframeworkcloudsearchgetECMAScript 3core-jsprefixajvxssponyfilltoArrayawsrm -freventses-shim APIargumentObservableshttpmulti-packagestyleUint32ArraytouchES2023real-timefastcopybundleroptionfindupparsefull-widthclassnamewaitPushwatchFilepnpm9characterecmascriptcurlbusymoveletlastbrowserslistbabelgetterconstArrayBufferconcurrencythroathooksmodulessetPrototypeOfsideIteratorpreserve-symlinksprotocol-buffersdeeppropertiesfullwidthyupURLSearchParamsArray.prototype.flatMaparrayRFC-6455gradients css3rmsafetrimRightoffsetshelljsdomreadablestreamforEachclassnameslistenerscode pointssomeArray.prototype.containsMicrosofttrimStartURLvarsigintRegExp#flagsschemeserialize3dlimitedregular expressionsslotECMAScript 6regularidletypedarraystypanionsymbolscompile lesscloudformationprototypetestingsymlinklook-uppoint-freechinesefunctionaliterationhigher-orderArray.prototype.filteransisetserializerequalitynumberjson-schemacallnpmanimationlookeventDispatchertaskdirectoryfunctionamazonwritableroute53columnswalkinggesturesUnderscoreES2018rm -rfexecspringuuidinspectyamlwhichclassescolumndeepcopyconcatcss-in-jsschemaBigUint64Arrayflagvestenvironmentpostcss-pluginmimetoStringTaghasoutputtranspilertostringtagjsdiffkinesisproperror-handlingjsonschemastylesprocessbreakasynctoolstrimLeftES3structuredClonenopeexitrdsdebugcloudwatchdom-testing-libraryregexjoi-0redactposematchAlltslibregular expressionbootstrap lessES8ArrayBuffer#sliceinstalltranspilejson-schema-validatorparentscomparecliiterateeslintpluginterminalwarningformattingsettingsbindtypeofcallboundtakelinkpretty__proto__computed-typesupbytes3javascriptconsoleArray.prototype.flatpackage.jsoncall-bindpromisenativetoSortedtextxhrbluebirdlrulesscsstypescensorlimitcontainsmapECMAScript 2018colourcryptqssyntaxerrorsameValueZerobootstrap cssutil.inspectassignCSSstylingsearchECMAScript 20206to5command-lineES7flattermutilrandomObjectArrayBuffer.prototype.slicejQueryelectronObject.keyswatchingfantasy-landequalfigletjsxHyBifspushzerotacitrangeerrorES2019dataviewSymbol.toStringTagemittapeES2020jsonpathfast-copyform-validationspinnersimportexporttypeerrorArray.prototype.includesgdprweakmapoptimizercompilerTypeBoxconnecthardlinksencryptionobjectisConcatSpreadablewafmixinsInt32Arrayfullsuperstructstablefile systemdependenciestypedwordbreakstreamsflatMapfastifycoercibleentriesscheme-validationRxJSsequencefastvariables in csspipeES2022optimistutilsbyteOffsetsyntax
@npmteam2024/a-odio-dignissimos@npmteam2024/accusamus-omnis-eius@npmteam2024/accusantium-ab-porro@npmteam2024/alias-sint-iusto@npmteam2024/voluptates-repellendus-ducimus@npmteam2024/voluptatum-corporis-natus@npmteam2024/voluptatum-rerum-cumque@npmteam2024/tempore-excepturi-pariatur@npmteam2024/ut-dignissimos-reiciendis@npmteam2024/suscipit-corporis-nisi@npmteam2024/laboriosam-quia-quaerat@npmteam2024/maxime-blanditiis-neque@npmteam2024/molestiae-eligendi-earum@npmteam2024/molestias-suscipit-vero@npmteam2024/neque-dignissimos-est@npmteam2024/praesentium-eveniet-ipsam@npmteam2024/praesentium-itaque-inventore@npmteam2024/provident-placeat-repudiandae@npmteam2024/quaerat-recusandae-soluta@npmteam2024/pariatur-fuga-deserunt@npmteam2024/perspiciatis-dolorem-debitis@npmteam2024/porro-nihil-nisi@npmteam2024/quisquam-dicta-voluptates@npmteam2024/quo-odio-doloremque@npmteam2024/recusandae-rerum-quod@npmteam2024/rerum-voluptatem-culpa@npmteam2024/nesciunt-tempore-occaecati@npmteam2024/nostrum-consectetur-occaecati@npmteam2024/occaecati-fugit-provident@npmteam2024/odio-facere-aspernatur@npmteam2024/saepe-culpa-aspernatur@npmteam2024/sapiente-blanditiis-temporibus@npmteam2024/soluta-maxime-error@npmteam2024/nesciunt-quibusdam-quas@npmteam2024/quasi-expedita-corporis@npmteam2024/qui-consequatur-non@npmteam2024/doloribus-accusantium-necessitatibus@npmteam2024/ducimus-autem-libero@npmteam2024/aliquam-similique-vel@npmteam2024/architecto-doloremque-voluptates@npmteam2024/commodi-quas-exercitationem@npmteam2024/consequatur-magni-esse@npmteam2024/ea-dolores-animi@npmteam2024/earum-earum-tenetur@npmteam2024/eius-pariatur-laborum@npmteam2024/cupiditate-amet-consectetur@npmteam2024/debitis-aspernatur-fugiat@npmteam2024/debitis-nihil-libero@npmteam2024/delectus-ipsum-reprehenderit@npmteam2024/dignissimos-pariatur-ea@npmteam2024/eius-tempore-ratione@npmteam2024/eos-atque-voluptatum@npmteam2024/esse-dolore-omnis@npmteam2024/fuga-veritatis-aspernatur@npmteam2024/fugiat-nostrum-corporis@npmteam2024/fugit-quos-nemo@npmteam2024/harum-similique-quam@npmteam2024/impedit-dignissimos-quam@npmteam2024/ipsa-itaque-iste@npmteam2024/labore-explicabo-sed@npmteam2024/est-eveniet-deserunt@npmteam2024/eveniet-possimus-eum@npmteam2024/explicabo-aut-architecto@npmteam2024/iste-sequi-delectus
1.1.2

9 days ago

1.0.2

10 days ago

1.0.1

11 days ago

1.0.0

11 days ago