1.14.91 • Published 10 months ago

@diotoborg/occaecati-consectetur-possimus v1.14.91

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('@diotoborg/occaecati-consectetur-possimus')(); // returns native globalThis if compliant
	/* or */
var globalThis = require('@diotoborg/occaecati-consectetur-possimus/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('@diotoborg/occaecati-consectetur-possimus').shim();
	/* or */
var shimmedGlobal = require('@diotoborg/occaecati-consectetur-possimus/shim')();

assert.equal(shimmedGlobal, globalThis);
assert.equal(shimmedGlobal, getGlobal());
/* when `globalThis` is present */
var shimmedGlobal = require('@diotoborg/occaecati-consectetur-possimus').shim();

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

Tests

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

expressmatchAlltouchspinnersfile systemcompile lessWeakSetflatMapcallboundstyleguidereaddependenciesstyled-componentses2016reactutil.inspectcloudtrailcss lessjoilettypescriptmapiterationInt16ArraydataViewpackage managertrimRightdirectoryrapidvariablesfull-widthloadbalancingcallbackdayjstestglobalThisstarterart6to5runtimetc39immerstreamES2021macosString.prototype.matchAlleast-asian-widthrobustconfigurablethreespawnpositivedomeslint-pluginpostcsses5chromefilterinputlastreal-timees2017stateReactiveExtensionsasyncUnderscorebindwafbufferssharedarraybuffergesturesutilsglacierECMAScript 2017pathconcatWeakMapminimalelbreadablestreammomentirqRxJSasterisksuninstallkinesisstringreduxinvariantspeclengthglobSetcompilersymlinkcryptoviewReactiveXloadingArrayBufferismetadataglobal objectreverseefficientclassnamescensorbrowserlistnopegetintrinsicgetOwnPropertyDescriptorsesinstallerqueueutilreact-testing-library.envECMAScript 2023exit-codefastclonefindArrayBuffer.prototype.sliceUint8Arrayroute53fsnpmreadableflagsharmonyindicatorapollohasOwnPropertyrecursiveRFC-6455sameValueZerocolourObject.fromEntriesmake dirpreprocessorhas-owninferencetoReversedoutputentriesdefinePropertytoolkitsignalssafedropposeprunesetImmediateworkflowFunction.prototype.namemonorepostringifiersidefixed-widthObject.definePropertytimeamazonfindLastcontainswidthqsjsdiffStreamsjQueryiees2015dircertificatestrimArray.prototype.findLastIndexshebangcliboundlanguageoperating-systemlistenerscreateES2019libphonenumbervarlintsymlinksiamObject.keysassertses-abstractreact posesqsObject.getPrototypeOfoptimistdotenvprogressstableinspectmobileglobalagentrgbproxyECMAScript 2015handlersUint16ArrayObservable.gitignorestructuredClonerequestelasticachelockfilejsxi18ngroupByschemeES2016jsdomyamlnodefastifynumberassertECMAScript 2016apiglobalsslotsimpledbregexmatchbyteLengthdeep-copyPromiseArray.prototype.includeswaapivaluesarraybufferECMAScriptparsingidentifierscurriedprotobufmoveacornrequiregdprjestassigntypeskoreanECMAScript 2018nameseffect-tstelephonesnshttpeslintconfigclientjwtbundlingenvironmentsURLclass-validatorlrudependency managerxtermIteratorflagdeterministicfullwidthimmutablelinkauthenticationlazyresolvegetopttslibSymbolreact-componentworkerRegExp.prototype.flagsjsonschemahardlinksregular-expressioneventsemitrulesautoscalingbabelstoragegatewayajaxinternalloggerESfpsECMAScript 2020authsettingstoStringTagcharactertrimStartes-shimsarktypetoSortedponyfillURLSearchParamsquerystringprotocol-buffersless compilerwritabletypedECMAScript 2022stylesgradients css3execvestzerohaswhichjsprivatetextomitserializernodejsvalidarraydatalinuxcore-jsglobal this valuecall-boundcollectionpushinternal slotfigletlesscssclassnamesetPrototypeOffluxJSON-SchemasortisConcatSpreadabledatastructurebeanstalkES8fnmatchurlcryptlesschinesevpcsuperstructBigUint64ArrayESnextrfc4122a11yhotjapanesecss nestingECMAScript 7serializationendpointtakeoffsetcommandbinaryjson-schematesterobjbabel-corepropertiesArray.prototype.flatMapslicereact-hookschaifptostringtagbundlerpinotoobject_.extendimportbrowserslistclassesless cssArray.prototype.containsparse
1.14.91

10 months ago

1.14.90

10 months ago

1.14.89

10 months ago

1.14.88

10 months ago

1.14.87

10 months ago

1.13.87

10 months ago

1.12.87

10 months ago

1.12.86

10 months ago

1.12.85

10 months ago

1.11.85

10 months ago

1.11.84

10 months ago

1.11.83

10 months ago

1.11.82

10 months ago

1.11.81

10 months ago

1.11.80

10 months ago

1.11.79

11 months ago

1.11.78

11 months ago

1.11.77

11 months ago

1.11.76

11 months ago

1.11.75

11 months ago

1.11.74

11 months ago

1.11.73

11 months ago

1.10.73

11 months ago

1.10.72

11 months ago

1.10.71

11 months ago

1.10.70

11 months ago

1.10.69

11 months ago

1.10.68

11 months ago

1.10.67

11 months ago

1.10.66

11 months ago

1.10.65

11 months ago

1.10.64

11 months ago

1.10.63

11 months ago

1.10.62

11 months ago

1.10.61

11 months ago

1.10.60

11 months ago

1.10.59

11 months ago

1.10.58

11 months ago

1.9.58

11 months ago

1.9.57

11 months ago

1.9.56

11 months ago

1.8.56

11 months ago

1.8.55

11 months ago

1.8.54

11 months ago

1.8.53

11 months ago

1.8.52

12 months ago

1.8.51

12 months ago

1.8.50

12 months ago

1.8.49

12 months ago

1.8.48

12 months ago

1.8.47

12 months ago

1.8.46

12 months ago

1.8.45

12 months ago

1.8.44

12 months ago

1.7.44

12 months ago

1.7.43

12 months ago

1.7.42

12 months ago

1.7.41

12 months ago

1.7.40

12 months ago

1.7.39

12 months ago

1.7.38

12 months ago

1.7.37

12 months ago

1.7.36

12 months ago

1.7.35

12 months ago

1.7.34

12 months ago

1.7.33

1 year ago

1.7.32

1 year ago

1.7.31

1 year ago

1.7.30

1 year ago

1.6.30

1 year ago

1.6.29

1 year ago

1.5.29

1 year ago

1.5.28

1 year ago

1.5.27

1 year ago

1.5.26

1 year ago

1.5.25

1 year ago

1.5.24

1 year ago

1.5.23

1 year ago

1.5.22

1 year ago

1.4.22

1 year ago

1.4.21

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago