2.6.88 • Published 1 year ago

@erboladaiorg/accusantium-officia-provident v2.6.88

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

globalThis Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ECMAScript spec-compliant polyfill/shim for globalThis. Invoke its "shim" method to shim globalThis if it is unavailable.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec proposal.

Most common usage:

var globalThis = require('@erboladaiorg/accusantium-officia-provident')(); // returns native globalThis if compliant
	/* or */
var globalThis = require('@erboladaiorg/accusantium-officia-provident/polyfill')(); // returns native globalThis if compliant

Example

var assert = require('assert');

// the below function is not CSP-compliant, but reliably gets the
// global object in sloppy mode in every engine.
var getGlobal = Function('return this');

assert.equal(globalThis, getGlobal());
/* when `globalThis` is not present */
var shimmedGlobal = require('@erboladaiorg/accusantium-officia-provident').shim();
	/* or */
var shimmedGlobal = require('@erboladaiorg/accusantium-officia-provident/shim')();

assert.equal(shimmedGlobal, globalThis);
assert.equal(shimmedGlobal, getGlobal());
/* when `globalThis` is present */
var shimmedGlobal = require('@erboladaiorg/accusantium-officia-provident').shim();

assert.equal(shimmedGlobal, globalThis);
assert.equal(shimmedGlobal, getGlobal());

Tests

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

trimEndremovebuffers_.extendmodulesextraObject.entriesawesomesauceispnpm9viewpushlanguageairbnbvalidationconsolereact posephonenumberclass-validatorlettouchjoiregular expressionObject.valuesnodejsObject.keyseslint-plugincolourasciixhrbabelemrinputcryptlinuxeventEmitterponyfillcallbindindicatoreffect-tsdeep-cloneObject.isString.prototype.matchAllcloudwatchtranspileobjectforEachglobal this valuedependency managerarktypesesprivate datadatapinocall-bindwindowsendpointrdshttp[[Prototype]]threecryptoescapecssmergeECMAScript 2022lazycertificatesenderfilterrouterulessetserializerutilityvpclinkfindLastIndexless cssObservablestyped arrayzeroglobal objectFloat64ArrayinspectdiffInt8Arraytrimloadingfast-deep-copyglobalThissubprocessfixed-widthdatastructurefsec2file systemmake dirinternalprotocol-buffershasrandomjsdomhelperscontainsjapanesenativelesssequenceobjJSONinstallredux-toolkitutilitiesvestcommanderpyyamlchineselocalbinbannergraphqllogwhichrequestcommandReactiveExtensionstypesframeridlereadableterminalslicehigher-orderomitfast-cloneflagpersistentexpressionajaxvaluesdescriptordataViewesloggingUint16Arrayaccessor256iteratorsetImmediategetterignoreroutingbabel-corestreamsrapidincludesstylingformsbundlercss-in-jsloadbalancingJSON-SchemabufferastelbWeakSetECMAScript 3writeFloat32Arraypostcsscircularautoscalingvisualharmonyoffsetpreprocessorencryptionreact-hooksmkdirpiterationpropertyTypedArray3dchildES2017stringifykoreandayjsanimationvaluearraybufferspinneriterateimportexporthashtextbeanstalktacitgetOwnPropertyDescriptorassertses6Arraysymlinks__proto__functionsreal-timeexit-codeparsingform-validationsideshimnegative zerocloudsearchserializeformjshintInt32ArraychromiumeslintweaksetttyenumerablesymlinkfromECMAScript 7tsRegExp#flags.envconstjsonpackagesdeep-copysomeArrayBuffer#slicerfc4122ReactiveXexecfilesignalvarnodeSymbol.toStringTagi18nwindowoperating-systemtoobjectreact-testing-libraryenvmoduleSymboltoArraylibphonenumberes7negativeoptionjson-schema-validationfantasy-landstyled-componentsgradients css3chromeArrayBufferrobustcollection.es6optimisthttpsjavascriptreadablestreamutil.inspectsigtermautoprefixerio-tsconfigurablemrusignalsuploadagentexpresssnstypeofes2015environmentES2018ESnextcore-jsqueueES2020jQuerypostcss-plugin.gitignoretypaniontslibdescriptiongetintrinsicBigInt64Arraygetbddutilstoragegatewaysortwaapireversedtransportminimalglobbindcss lessdynamodbECMAScript 2017speedes-abstractregexpArray.prototype.flattenintrinsicECMAScript 5gesturesmomentreusees5browserelmUnderscore0callnested cssecmascriptclassnamesECMAScriptgroupSystem.globalcreateposeshrinkwrappreserve-symlinkstrimLeftcharactersameValueZeroparsertimespawnlockfileinstallertesterstyleECMAScript 6$.extendpromisesettingsES2019StreamflatMapinternal slotlintauthenticationeverysuperstructhasOwntostringtagmulti-packageAsyncIteratoreventserror-handlingObject.definePropertyfileObject.assignprocessloggerapollolistenersfunction.lengtharrayURLoptimizerfunctionefficientpurecolorkeyses2017react animationurljsdiffserializationdatequeueMicrotaskshareddropregularpoint-freeinferencematchbyteworkflowObject.fromEntriesstringrfc9562StyleSheetlastassignargumentvalidatoraccessibilityentriesperformantcheckboundmapreducetypeemitansiperformancetraversecompilerwalkpicomatchgetoptcloudformationpositivepluginspinnerses2018es8pipepredictablenpmgradients cssbusystructuredClonetrimStartutilsdom-testing-librarytoSortedcopyowntestingECMAScript 2023concatMapES2015fetchCSSStyleDeclarationgenericsuuidRFC-6455jwtArray.prototype.flatMapmonorepobyteOffsetcommand-lineECMAScript 2020lru-0yamlshamqueryECMAScript 2018helpersignedRegExp.prototype.flagscensorbinaryprotobufUint8ClampedArrayconsume@@toStringTagArray.prototype.containsshebangES6interruptsArrayBuffer.prototype.slicenpmignorefull-widthextendglobalsbrowserslistcloneHyBiCSSmkdirformattingObservableObject.getPrototypeOfprunesiginthooksreplayswffluxdefineclientArray.prototype.flatreactmakematchAllYAMLruntimeoutputtddeventDispatcherless compilerpropertiesprogressArray.prototype.includesparsebcryptdragpropeslintconfigcolumnsfnmatchbyteLengthprefixtc39dependenciesfunctionalIteratorpolyfillvariables in csswgetcompile lessexecutesymbolreact-hook-formcjkwaitmkdirsawsObjectbootstrap csschannelschemeguidhas-ownasyncclassesES2023Uint32ArrayPushoncefast-deep-cloneuninstallhasOwnPropertyless.jsdotenvjestrangeerrorproxyexitscheme-validationresolveworkercss nestingargsweakmapkinesispackage.jsonramdaregexWebSocketcolumnflatdefinePropertyfpsUint8Arrayeast-asian-widthnamegitignoreslotMapprivatelivetypescriptbootstrap lesscomputed-typesstatelesstranspilertoStringTagvarsglobaljshardlinksshellfast-copyreadbrowserlistECMAScript 2019coerciblea11yprettytypedarraygroupBypackage managercacheimportcallbackTypeBoxrgbcoreunicodevalidacornxtermimmerwaffastdeletematchesstateajvargvfastcloneassertioninvariantfigletfastcopyES7quotel10nasterisksreduceclicolorsdatavieweslintplugines-shim APIjsxtake
2.6.88

1 year ago

2.6.87

1 year ago

2.6.86

1 year ago

2.6.85

1 year ago

2.6.84

1 year ago

2.6.83

1 year ago

2.6.82

1 year ago

2.6.81

1 year ago

2.6.80

1 year ago

2.6.79

1 year ago

2.6.78

1 year ago

2.6.77

1 year ago

2.6.76

1 year ago

2.6.75

1 year ago

2.6.74

1 year ago

2.6.73

1 year ago

2.6.72

1 year ago

2.5.72

1 year ago

2.4.72

1 year ago

2.4.71

1 year ago

2.4.70

1 year ago

2.4.69

1 year ago

2.4.68

1 year ago

2.4.67

1 year ago

1.4.67

1 year ago

1.4.66

1 year ago

1.4.65

1 year ago

1.4.64

1 year ago

1.4.63

1 year ago

1.4.62

1 year ago

1.4.61

1 year ago

1.4.60

1 year ago

1.4.59

1 year ago

1.4.58

1 year ago

1.4.57

1 year ago

1.4.56

1 year ago

1.4.55

1 year ago

1.4.54

1 year ago

1.4.53

1 year ago

1.4.52

1 year ago

1.4.51

1 year ago

1.4.50

1 year ago

1.4.49

1 year ago

1.4.48

1 year ago

1.4.47

1 year ago

1.4.46

1 year ago

1.4.45

1 year ago

1.4.44

1 year ago

1.4.43

1 year ago

1.4.42

1 year ago

1.4.41

1 year ago

1.4.40

1 year ago

1.3.40

1 year ago

1.2.40

1 year ago

1.2.39

1 year ago

1.2.38

1 year ago

1.2.37

1 year ago

1.2.36

1 year ago

1.2.35

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.2.32

1 year ago

1.2.31

1 year ago

1.2.30

1 year ago

1.2.29

1 year ago

1.2.28

1 year ago

1.2.27

1 year ago

1.2.26

1 year ago

1.2.25

1 year ago

1.2.24

1 year ago

1.2.23

1 year ago

1.2.22

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago