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

2 years ago

1.1.41

2 years ago

1.1.40

2 years ago

1.1.39

2 years ago

1.1.38

2 years ago

1.1.37

2 years ago

1.1.36

2 years ago

1.1.35

2 years ago

1.1.34

2 years ago

1.1.33

2 years ago

1.1.32

2 years ago

1.1.31

2 years ago

1.1.30

2 years ago

1.1.29

2 years ago

1.1.28

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.19

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago