1.0.6 • Published 11 days ago

@teamteanpm2024/perspiciatis-soluta-ipsam v1.0.6

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

@teamteanpm2024/perspiciatis-soluta-ipsam 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('@teamteanpm2024/perspiciatis-soluta-ipsam');
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('@teamteanpm2024/perspiciatis-soluta-ipsam');
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('@teamteanpm2024/perspiciatis-soluta-ipsam');
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

regulartranspileentriesECMAScript 2017class-validatorduplexhookformecmascriptqueueMicrotaskflatflattenshebangtelephonepolyfillFloat32Arrayoptionreduxdotenvinternaldeep-clonerm -frtaskpackagescallboundPromisestarterparentdependency managerkeymomentformatpackage managerES2020elbbusyworkerenderiamArray.prototype.includeses-abstractloadingclassesbyteOffsetlengthclonechromiumsameValueZeromoveES3react animationconfigprotobufECMAScript 2022trimRighteslintconfigfseventscollectiontypesafeStyleSheetoutputartenvironmentcomputed-typesArray.prototype.flattenrfc4122Object.definePropertyMicrosoftreadablestreamdeterministicinternal slotregular expressionsfoldersignalsinstallhttpbabelbundlingsymbolassertswalkoffsetwindowswatchgroupbrowserlistuninstallexpresscolumncontainsinterruptstakeyupbindschemepushES2023redux-toolkit_.extendplugintypeerrorRFC-6455matchstreamrequireES2022ArrayBufferbyteLengthflatMapremoveprogresshasOwnreact-hookseventEmitterWeakSetstructuredClonefast-copysortedprivate@@toStringTagawsposevalueacornopeneventDispatcherbatchgetOwnPropertyDescriptorcharactersletwraptextspeedcopypackage.jsonjQueryECMAScript 7channelSetincludesrmavaiterationstringauthless csslastlinuxl10nsigintcoerciblenested cssutilitiesstatelessnegativejwtObject.assignnodeArray.prototype.flatMapflagsInt16Arrayawaitassignjson-schemacloudwatchpersistenthooksweakseti18nPushstyled-componentsslotECMAScript 2021Reflect.getPrototypeOfstringifycollection.es6callbacktoSortedchaihandlersfast-deep-cloneurltoolkitjsonpathvariablesthrottleRegExp#flagsflagmkdirsparsingbabel-corepopmotionWebSocketsfulltypanioncore-jsformattingArray.prototype.flatyamlObject.getPrototypeOfsearchjoirm -rfES8JSON-Schemaimmutablees2016mapvaluespathframercssarraylanguageiseslintplugingradients css3hashrobustreal-timeslicemodulesruntimettyconcates8css-in-jsdataviewmulti-packagedropRxregexppostcss-pluginargumentTypeBoxconnectcoreES7syntaxvariables in csseveryparentsStreamtoStringTagtypesarraybuffermake256bcryptjsxECMAScript 3typedarrayReactiveXconstsetterclassnameschemaassertsetPrototypeOfvalidationcurldescriptorscall-bindassertionString.prototype.matchAllObservablesfast-deep-copyES2021getintrinsicUint8ArrayECMAScript 2023purestreamsdeepgetpromisevpces7URLconsolelintdom-testing-libraryHyBitc39sessomeaccessibilityInt8ArraylistenersECMAScript 5autoprefixerobjmruvarnopejsonshrinkwrapuser-streamses-shimscompilersqssequencetouchapimetadataeventsreact-hook-formerrorstringifierserializationhigher-orderformsspecwarninglook-upinferencedeletejsdomfantasy-landworkspace:*es2017css lesskeysnativemake dirjsdiffbalancedlazytrimLeftcloudtrailwatchingcorsbufferfindtypedarraystypeofprocessfastifytranspilerdebuggerextendtermgroupBypiperangeerrorkoreancss variablemiddlewareinspecttslibstatusagentcensorsymlinkes2015ratethreeminimallinewraproute53findLastIndexES2017mimewordbreakastfiletapfunctionsestreegetPrototypeOfregexdatastructurecode pointstype__proto__nameinputhttpslimitedboundTypeScript6to5readSymbol.toStringTagloadbalancingtypescriptwatcherglobshamreuseexecURLSearchParamsmonorepocryptoponyfillwhatwgtypedperformancepreprocessorexpressionbuffersstoragegatewayoncesortharmonytimetostringtagArrayBuffer.prototype.slicefast-cloneES5irqpasswordObject.isstableajvstreams2mixinscall-boundwebutilsReactiveExtensionsforEachFloat64ArraypropertysanitizationwafcallsettingsmacosfunctionalwritesidereduceindicatorpropertiesArray.prototype.findLastIndexscheme-validationBigUint64ArrayjavascriptYAMLterminalfull-widtheslintsnswatchFilefastcopypnpm9styleswritableimmerconcatMapregular expressionemitfile systemtoArrayObject.keysesxtermmochabannercolumnsrandomsignalfinduppreserve-symlinksendpointexit-codequerystringamazonlessarktypejapanesebrowserslistcreaterdstestinggdprencryptiontacitcallbindwordwrappropnpmescapephoneidleArray.prototype.filterqueueanimationspinnersequaldomfpelasticaches3WeakMapiteratecloudformation
1.0.6

11 days ago

1.0.5

12 days ago

1.0.4

13 days ago

1.0.3

14 days ago

1.0.2

15 days ago

1.0.1

16 days ago

1.0.0

16 days ago