2.3.77 • Published 1 year ago

@hishprorg/dolore-dolorem v2.3.77

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

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

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

Tests

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

routingimportpruneenumerableBigInt64ArrayeventDispatcherIteratorreadgdprES6deterministiclengthtraversees2017tacitcall-bindbrowserclassnamehasOwnrobustmake dirlivewgetautoprefixerfromwhatwgequalityreact-componentdefinePropertytypescriptformsserializerObservablesclientsymbolmkdirsnested cssObject.getPrototypeOfpyyamlanimationencryptionRegExp.prototype.flagsjshintdeep-copyrecursivetc39waapipostcssargumentes2018_.extendhasOwnPropertycompareUint8Arrayes7bcryptvestlesscssnegativediruser-streamstesteslintes2016ES5rulesless compilerfpsStreamArray.prototype.flattenefficientes6binsuperstructArray.prototype.includesinstallerflattenbabelvarprocessbinaries@@toStringTagchromiumgenericsendpointqueueMicrotaskjsonschemaarraysrequestinterruptslinuxglobal this valuees8setES2019operating-systemspringclassestransportBigUint64ArraysymlinksArray.prototype.findLastIndexpasswordvarsECMAScript 2019glaciertslibhotURLSearchParamsutilitiestranspilerangeerrorwalkbufferssubprocesslinkl10nArrayBufferfantasy-landxhrSymbolruntimepostcss-pluginsetternodecss nestingsyntaxreactpnpm9route53byteLengthmobileincludesgroupdomgroupBytoobjectnpmignoreESnextuninstalleast-asian-widthstartervariables in csslocationprotologgingcss-in-jscolorloadbalancingpositiveenvironmentstylessyntaxerrorprivate datacloudwatchES2022logvariablestrimStartECMAScript 2021picomatchpurekeyvalueses2015certificatesredactCSSStyleDeclarationArray.prototype.flatMappreserve-symlinksexecObject.keysinvariantttyviewshrinkwrapforEachStyleSheetintrinsicFloat64ArrayimmutablearraybufferfindLastform-validationcloudtrailcore-js0inferencesetPrototypeOfrapidexecuteES7predictablelazymapenvironmentssigtermfilterietyped arrayequalstringreal-timeES2016asserttimechannelrandomReflect.getPrototypeOfmrucoerciblemulti-packageerror-handlingjson-schema-validationfastconsolebyteOffsethelperECMAScriptelmcollection.es6gesturesrdsdependency managerconcatMapselfbabel-coreES8ES2018accessorTypeBoxpropertyhandlerses-shimsAsyncIteratorcolourkeysHyBiFunction.prototype.name
2.3.77

1 year ago

2.3.76

1 year ago

2.3.75

1 year ago

2.3.74

1 year ago

2.3.73

1 year ago

2.3.72

1 year ago

2.3.71

1 year ago

2.3.70

1 year ago

2.3.69

1 year ago

2.3.68

1 year ago

2.3.67

1 year ago

2.3.66

1 year ago

2.3.65

1 year ago

2.3.64

1 year ago

2.3.63

1 year ago

2.3.62

1 year ago

2.3.61

1 year ago

2.3.60

1 year ago

2.3.59

1 year ago

2.3.58

1 year ago

2.3.57

1 year ago

2.3.56

1 year ago

2.3.55

1 year ago

1.3.55

1 year ago

1.2.55

1 year ago

1.2.54

1 year ago

1.2.53

1 year ago

1.2.52

1 year ago

1.2.51

1 year ago

1.2.50

1 year ago

1.2.49

1 year ago

1.1.49

1 year ago

1.1.48

1 year ago

1.1.47

1 year ago

1.1.46

1 year ago

1.1.45

1 year ago

1.1.44

1 year ago

1.1.43

1 year ago

1.1.42

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.39

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

1.1.35

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

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.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

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