4.9.82 • Published 1 year ago

@erboladaiorg/accusantium-dolorem-nesciunt v4.9.82

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-dolorem-nesciunt')(); // returns native globalThis if compliant
	/* or */
var globalThis = require('@erboladaiorg/accusantium-dolorem-nesciunt/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-dolorem-nesciunt').shim();
	/* or */
var shimmedGlobal = require('@erboladaiorg/accusantium-dolorem-nesciunt/shim')();

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

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

Tests

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

transpilephoneECMAScript 2016windowsCSSparserimmutablestylinglistenershigher-ordernumberfindtoArrayprogressrecursivefast-deep-clonedataViewcryptoclientgetPrototypeOfnodejscloudformationFunction.prototype.nameObject.fromEntriesInt16ArraydragforEachslotposesettercreatelocalclonepipefrombinariesquoteviewES8reactiterateexecutevestwgetagentcommand-linefpsrequireidentifiersES2020iteratorconsumeshamformattinghelperstacitgradients css3typeerrorobjjestconfigreducebabelpostcssdeleteendpointcommandersetreadES2022findLastIndexcss nestingmomentlengthbinaryidlehasio-tscommandnpmignoreRegExp.prototype.flagstestpasswordfantasy-landtostringtagmovesettingsrobustmacoscircularmulti-packagecloudfrontES2015inspecttrimStartconfigurableIteratorcss lesscurlmobileES3deterministicselfmixinsES2019internalexecfileflagStyleSheetless.jsObject.isindicatorspeedes-shimsgetoptUnderscorefastcopyhasOwnPropertysetPrototypeOfnamesenderjson-schemaschemeemitapiObject.entriesargumentfast-clonecall-bounddom-testing-librarytoolkitglobalsstringifierpicomatchpositivecryptutilWeakMapboundmkdirincludesclireduxECMAScript 2023.envjsisConcatSpreadablejavascriptRegExp#flagsglobal objectgenericsprivateUint8ClampedArraysqsclassnamesprefixfluxlivehandlersqses7filecurriedtypedarrayomitinferencekinesisECMAScript 2017scheme-validationtoReversedvariablesfunctionschemagetterchinesetypeofnegative zeromatchAllPromisesimpledbvalidationcallFloat64ArrayuninstallserializerqueueMicrotaskprocessdeep-clonecolumnsreact animationrouteglobalshimterminaldescriptionObject.valuesremoveoptimistregular expressioniamtoobjectpoint-freei18nbrowserlistsignedhelperhotcallbacktimelibphonenumberYAMLsymbolsfastclonepatch_.extenddirES2018coerciblebcryptstreamoutputswfcolumnString.prototype.trimhookformES2021pluginbuffersmake6to5zxMapspringqueuediffartObjectvaluedeepgroupproxyworkerstreamsietypedarraysECMAScript 2015JSONTypeBoxECMAScript 5fstestingchromiumzodjsdomES5arraycore-jsfetchcloudsearchirqlazystylesmkdirses-shim APIoffsetpinoescapecsseslint-plugincollection.es6rangeerrorStreams3statelessdeepcloneECMAScript 7256loadingcheckes2015animationnopeeslintconfigresolveregexp$.extendArray.prototype.flattenmerge[[Prototype]]preserve-symlinksquerystringcodesexit-codeerrordependenciesgradients csstypedhasOwncallboundairbnbstringifyspecspawnReactiveExtensionsconcatlastenvfunctionaltoolsmatchObject.keysdateloggingvalidjsdiffsuperagentdescriptorrgbstarterregularbrowserslistelbstyleexitmapreducejson-schema-validationspinnersextendwaapitoStringTagfilterstoragegatewaymoduleglobal this valueoptimizerwhatwgbootstrap lessflatMapES2017flatCSSStyleDeclarationinvariantSymbol.toStringTaghardlinksuuidtypesafewindowebsinterruptsfpserializesymlinkeventDispatcherfunctionsperformanceeveryauthvalueswritablemanagerutilitiesemrequalenumerablefastdependency managerArray.prototype.filtercolorsfullwidthregular-expressionsigtermflagsawesomesauceJSON-SchemaSetglobalThises6trimRightArray.prototype.includesjsonschemafindLastfile systemperformantsuperstructsidecensorfnmatchcachetranspilervariables in cssframerfast-copyarktypettywidthpersistentforkmatchesReactiveXreact posebinaccessortelephoneautoprefixeres2018testershrinkwraptypesworkspace:*Int8Arraythreetypescriptinutilsfunction.lengtharraybufferwritecallbindtslibsubprocessharmonyfigletdataviewredactapollojapanesedayjskeycloudwatchObject.getPrototypeOfelasticachetexterror-handlinglockfileansijshintsharedarraybuffercolourmetadataextraargvArray.prototype.findLastobjectdatatyped arrayestreelint.gitignoresortedsharedwhichtrimLeftwaitprotokoreanreverseObject.assignfull-width3dloggerastesyamlArrayBuffer#sliceeslintpluginiterationnativezeroyupintrinsicparsingassignECMAScript 3deepcopydotenvreducerexpressionhas-ownchildimmerURLECMAScript 2022oncedatastructureStreamsArray.prototype.containssafeelectrongdprfastifyutilitybeanstalkrfc4122certificatessymboluploadlinkinstallvarsnested cssfixed-widthvpcreadableECMAScriptequalityeffect-tsconsolereact-componentweakmapES7replayhttpspreprocessorECMAScript 6environmentcall-bindless mixinsInt32Arrayformatprotocol-bufferstypees5protobufUint16Arrayhooks__proto__Observablesletdeep-copybootstrap cssspinneramazonpredictable
4.9.82

1 year ago

4.9.81

1 year ago

4.8.81

1 year ago

4.8.80

1 year ago

4.8.79

1 year ago

4.8.78

1 year ago

4.8.77

1 year ago

4.8.76

1 year ago

4.8.75

1 year ago

3.8.75

1 year ago

3.8.74

1 year ago

3.8.73

1 year ago

3.8.72

1 year ago

3.7.72

1 year ago

3.7.71

1 year ago

3.7.70

1 year ago

3.7.69

1 year ago

3.7.68

1 year ago

3.7.67

1 year ago

3.7.66

1 year ago

3.7.65

1 year ago

3.7.64

1 year ago

3.7.63

1 year ago

3.7.62

1 year ago

3.7.61

1 year ago

3.7.60

1 year ago

3.7.59

1 year ago

3.7.58

1 year ago

3.7.57

1 year ago

3.7.56

1 year ago

3.7.55

1 year ago

3.7.54

1 year ago

3.7.53

1 year ago

3.7.52

1 year ago

3.7.51

1 year ago

3.7.50

1 year ago

3.7.49

1 year ago

3.7.48

1 year ago

3.7.47

1 year ago

3.7.46

1 year ago

3.7.45

1 year ago

3.7.44

1 year ago

3.7.43

1 year ago

3.7.42

1 year ago

3.7.41

1 year ago

3.7.40

1 year ago

3.7.39

1 year ago

3.7.38

1 year ago

3.7.37

1 year ago

3.7.36

1 year ago

3.7.35

1 year ago

3.6.35

1 year ago

3.6.34

1 year ago

3.6.33

1 year ago

3.6.32

1 year ago

3.6.31

1 year ago

3.5.31

1 year ago

3.5.30

1 year ago

3.4.30

1 year ago

3.4.29

1 year ago

3.4.28

1 year ago

3.4.27

1 year ago

3.3.27

1 year ago

3.3.26

1 year ago

3.2.26

1 year ago

3.2.25

1 year ago

3.2.24

1 year ago

3.2.23

1 year ago

3.2.22

1 year ago

3.2.21

1 year ago

3.2.20

1 year ago

3.2.19

1 year ago

3.2.18

1 year ago

3.2.17

1 year ago

3.2.16

1 year ago

3.2.15

1 year ago

3.2.14

1 year ago

3.2.13

1 year ago

3.2.12

1 year ago

3.2.11

1 year ago

3.2.10

1 year ago

3.2.9

1 year ago

3.2.8

1 year ago

2.2.8

1 year ago

2.2.7

1 year ago

2.2.6

1 year ago

2.2.5

1 year ago

2.2.4

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

1.1.3

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