2.6.88 • Published 10 months ago

@erboladaiorg/accusantium-officia-provident v2.6.88

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

2.6.87

10 months ago

2.6.86

10 months ago

2.6.85

10 months ago

2.6.84

11 months ago

2.6.83

11 months ago

2.6.82

11 months ago

2.6.81

11 months ago

2.6.80

11 months ago

2.6.79

11 months ago

2.6.78

11 months ago

2.6.77

11 months ago

2.6.76

11 months ago

2.6.75

11 months ago

2.6.74

11 months ago

2.6.73

11 months ago

2.6.72

11 months ago

2.5.72

11 months ago

2.4.72

11 months ago

2.4.71

11 months ago

2.4.70

11 months ago

2.4.69

11 months ago

2.4.68

11 months ago

2.4.67

11 months ago

1.4.67

11 months ago

1.4.66

11 months ago

1.4.65

11 months ago

1.4.64

11 months ago

1.4.63

11 months ago

1.4.62

11 months ago

1.4.61

11 months ago

1.4.60

11 months ago

1.4.59

11 months ago

1.4.58

11 months ago

1.4.57

12 months ago

1.4.56

12 months ago

1.4.55

12 months ago

1.4.54

12 months ago

1.4.53

12 months ago

1.4.52

12 months ago

1.4.51

12 months ago

1.4.50

12 months ago

1.4.49

12 months ago

1.4.48

12 months ago

1.4.47

12 months ago

1.4.46

12 months ago

1.4.45

12 months ago

1.4.44

12 months ago

1.4.43

12 months ago

1.4.42

12 months ago

1.4.41

12 months ago

1.4.40

12 months ago

1.3.40

12 months ago

1.2.40

12 months 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