1.0.4 • Published 10 days ago

@teamteanpm2024/facere-libero-quibusdam v1.0.4

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

@teamteanpm2024/facere-libero-quibusdam 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('@teamteanpm2024/facere-libero-quibusdam');
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('@teamteanpm2024/facere-libero-quibusdam');
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('@teamteanpm2024/facere-libero-quibusdam');
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

CSS6to5formssameValueZerotranspileclassesstyled-componentsObservablesreducerjson-schemaes2016passwordwaapiwhichbddcopyECMAScript 2022guidreact-hooksequalplugincomputed-typesautoprefixerlintregexmatchAllECMAScript 7whatwgworkspace:*URLupserializerextraextensionxdgdom-testing-libraryJSONcss lessstylesheetstartermoment$.extendsetterfullbyteOffsetUint8ClampedArraywatchrfc4122lastexecutableunicodedefineemojies6functionanimationsequencenopeinstallerwindowsreadablestreamparsegdprjsonpaththroatschemeObject.fromEntriesfindjQueryfunctionalbrowserlistURLSearchParamsObjectes2015airbnbkeyapitappropertysymlinksoutputmkdirsReactiveExtensionscloneentriesdefaultformattingdatesettingsjsonschemawatchingless mixinseveryfseventschromiumquerystringqueuemimetypesdeterministicnegative zeroconsoleFunction.prototype.namecommanderHyBifromastreadablereact-hook-formgesturesUint16Arraynodejsrgbtostringtagwritefullwidthcompareprototypesignalshascompile lessshimdayjsio-tscheckredux-toolkitgetoptdeepspawnjsbabelmrusyntaxerrorObject.valuescss variableirqes5concurrency0Float64ArrayuninstallprocesspatchspecObject.getPrototypeOfpromisedeletedefinePropertyjestmobileES8valuedotenvforEachshellfigletcircularutilityprotopositivestringifierArray.prototype.findLastreadpicomatchasciitrimStartbrowserslistECMAScript 3getterjsdomeventDispatcherECMAScript 2020japanesesanitizebufferTypeScriptlessredactmergestylingformatReactiveXremovefilelanguageTypedArraygetintrinsicmulti-packageObservableinspectjsxgetintrinsicloggingpackagesargumentschemamake dirpopmotionfilterfindupexitargvcolorsBigUint64Arraystatelesscollection.es6hasheslintutilitiesArray.prototype.filterMapvisualtrimEndwebsitenpmgroupByxtermES2017browserfsxhrpreserve-symlinkslinewrapvalidinterruptsObject.isrequestopenerregular expressionsconcatMapsetImmediatevalueses-abstractlook-upreact animationInt8ArrayexeyamlES2020ECMAScript 2016mime-dbhttpRxJSES7rapidES2018avatdd@@toStringTagspinnersa11yimportsuperagenttypescriptjasmineESthreefastrateECMAScript 2015fastcopyconnectsymbolPromisebluebirdtoStringTagfastifyconsumexdg-openwaitauthenticationtoSortedgrouplinux-0escapereact-testing-libraryloggerutils_.extendjson-schema-validationbusyargparselogfastclonerecursivelazylesscssglobopensbootstrap lessencryptiondescriptorsviewnegativereactECMAScript 2019trimcall-bindboundargumentsharmonypurehttpsesFloat32ArrayObject.definePropertyapolloeslint-pluginECMAScript 6configurablemkdirpemitpackage managerframertextECMAScript 2017css-in-jsponyfilldirArrayBuffer#slicevestvalidationserializationsanitizationcodesttyflaginferenceless compilerprefixscheme-validationarraysspeedlruregular expression
1.0.4

10 days ago

1.0.3

11 days ago

1.0.2

12 days ago

1.0.1

13 days ago

1.0.0

13 days ago