1.14.91 • Published 1 year ago

@diotoborg/occaecati-consectetur-possimus v1.14.91

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('@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

1 year ago

1.14.90

1 year ago

1.14.89

1 year ago

1.14.88

1 year ago

1.14.87

1 year ago

1.13.87

1 year ago

1.12.87

1 year ago

1.12.86

1 year ago

1.12.85

1 year ago

1.11.85

1 year ago

1.11.84

1 year ago

1.11.83

1 year ago

1.11.82

1 year ago

1.11.81

1 year ago

1.11.80

1 year ago

1.11.79

1 year ago

1.11.78

1 year ago

1.11.77

1 year ago

1.11.76

1 year ago

1.11.75

1 year ago

1.11.74

1 year ago

1.11.73

1 year ago

1.10.73

1 year ago

1.10.72

1 year ago

1.10.71

1 year ago

1.10.70

1 year ago

1.10.69

1 year ago

1.10.68

1 year ago

1.10.67

1 year ago

1.10.66

1 year ago

1.10.65

1 year ago

1.10.64

1 year ago

1.10.63

1 year ago

1.10.62

1 year ago

1.10.61

1 year ago

1.10.60

1 year ago

1.10.59

1 year ago

1.10.58

1 year ago

1.9.58

1 year ago

1.9.57

1 year ago

1.9.56

1 year ago

1.8.56

1 year ago

1.8.55

1 year ago

1.8.54

1 year ago

1.8.53

1 year ago

1.8.52

1 year ago

1.8.51

1 year ago

1.8.50

1 year ago

1.8.49

1 year ago

1.8.48

1 year ago

1.8.47

1 year ago

1.8.46

1 year ago

1.8.45

1 year ago

1.8.44

1 year ago

1.7.44

1 year ago

1.7.43

1 year ago

1.7.42

1 year ago

1.7.41

1 year ago

1.7.40

1 year ago

1.7.39

1 year ago

1.7.38

1 year ago

1.7.37

1 year ago

1.7.36

1 year ago

1.7.35

1 year ago

1.7.34

1 year 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