3.5.87 • Published 10 months ago

@taktikorg/dolorem-iure-hic v3.5.87

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

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

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

Tests

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

equalityIteratorcorejsxes5takeObject.definePropertytypanionworkspace:*minimalcreateObject.assignpyyamlwritableargvES3awesomesaucereduxswf6to5childless csslasttesterruleshttpasserttypedarraysprivatereact-hook-formsetterObservableelmflatMapconsumeforEachrfc9562tostringtagtoStringTagCSSpackage managerjson-schemaECMAScript 6isConcatSpreadablerecursiveArray.prototype.findLastIndexdeepclonelockfileregexpform-validationcolournamebddliveconfigpropreact animationreversesharedarraybufferUint16ArraysigtermutilrgbdirrequestdataViewsyntaxwarningbindescriptoropensslrapidArray.prototype.flatMapECMAScript 2017styles0CSSStyleDeclarationES2023gitignoreexecfilecjkapolloreact-hookssignedansiES7babel-corecloneecmascriptcurriedformsURLSearchParamsio-tsjsdifftrimStartassertsprettysortedECMAScript 2019optimistregular-expressionwaapinumbershrinkwraptoobjectconstutilitygraphqlES2019includes.envkoreanloadbalancingmake dirECMAScript 2016joidataoffsetfullqueryparseprotobufbundlingenvironmentStreamsfantasy-landsymlinkserializerlogginguuidmatchAllboundsequenceObject.keysstreamsserializeString.prototype.matchAllownpipeReactiveExtensionsquoteencryptionspinnerlocalInt32Arrayregular expressiontimespinnersbootstrap lessObject.issigintposeutilitiesconsolegradients css3internalthreeSymbolttyhasOwnPropertyObservableses7class-validatorArray.prototype.includesmkdirslotdataviewfunctionfast-deep-clonenegative zeromulti-packageramdadeepcopyJSONpositivelazyglobalvarwriteformtypesafestreamESnextRFC-6455react-componentshimglobdeterministiclibphonenumberbrowserlistES2020package.jsoneventEmittermoduleschai256uploadtranspilerenvironmentsbootstrap cssmkdirsa11ysignalponyfillstyleguideStreamjavascriptspeedkinesisdatestatuspersistentroutereactebsvariablescloudfrontexpressioncompareWeakMapmapcontainsfigletpathutilsReflect.getPrototypeOfcall-bindreades2017equalcallbackloggeromitec2extendeslintpluginimportparsingpnpm9TypedArrayviewfilerobustastpushdeep-clonescheme-validationframerperformantfindzeroRegExp#flagstoucheverybindArray.prototype.flattenPushAsyncIteratorshelljsgroupcolumnsloadingtrimRighteast-asian-widthFunction.prototype.nametrimLeftcomputed-typeslengthbytecompilerstoragegatewaywindowshandlersinclassesES2015flagtestvariables in cssvisualjestTypeBoxdeepstringifiergetintrinsictoSortedhardlinksquerystringsignalsfast-copyrandomBigInt64ArrayfluxESjshintgetPrototypeOfendpointmacosfetchvaluezodamazonpropertiestextsuperstructECMAScript 2023cloudsearchexittacitasteriskscss lessbyteOffsetspringidlefastflagsshamexecarraybufferdynamodbes2015arrayUnderscoreflattenshebangcommand-linecall-boundeslintconfigfile systemhasOwnObject.fromEntriesglaciersettingsmovedefinePropertyhotcss nestingpreserve-symlinkstrimtsspecaccessorcheckcoerciblecommanderfunctionalreadablestreaminferencejapanesepropertyperformancetoolspluginHyBislicehttpsvaluesindicatorcsssuperagentsymlinksbcryptprototypestringifycolorsenvpatches2018WeakSetnodejsES2021logiterationES2018binariesbufferapilinkWebSocketawsWebSocketssqstestinges-shim APIconfigurablepackagesformatiamtoArrayObject.getPrototypeOftypeerrortranspileimmutablechrometypedarraycodespruneinterruptsworkerArrayBuffer#sliceless.jsinspectpuremobilekeysRxJSsortwhatwgintrinsicclientvalidationassertiondefineiscircularmetadataroute53typescriptglobalsvestescapeBigUint64Arrayes-abstractcurlmonoreporuntimeconcatlrubrowserobjectmrureact poseES2016String.prototype.trimschemetermlistenersless compilerless mixinsclassnamesoptionzxresolvewidthfpdragsetImmediategesturesglobal this valuenopeECMAScriptasynctelephonegenericsmatchesauthenticationtypeArrayBuffer.prototype.sliceprotocol-buffersmixinscloudformationnativefast-deep-copy@@toStringTagrequireInt8ArraystylesheetnpmignoreirqObject.valuescolumnvalidatoranimationweakmapsetPrototypeOfnodechinesefunction.lengthes2016dropxhrwgetreadabletypedyamlassignobjECMAScript 2021flatserializationUint8Arraydayjsreusecollection.es6css-in-jsemitinputairbnbfromgetteroutputhelperimportexportstatelesssesglobal objectmoduletraverseregexES2022negativepreprocessorMapstylegetoptqueueforkmergecss variablesameValueZerohashinternal slotclassnameECMAScript 3setgetOwnPropertyDescriptorpredictablerdsguidselfdependency managerlesscssECMAScript 2015vpccachecloudtrailgradients css3deslint.gitignoreECMAScript 7protopolyfillsnscopynpms3workflowvalidgdprreplaydomajax$.extendunicodeFloat32Arrayfast-cloneArray.prototype.findLastregularArray.prototype.containsbusycommandelbjson-schema-validationjsdomdeep-copymomentES6PromiseUint8ClampedArray-0eslint-pluginmanagerqsiteratechannelfindLaststarterpostcsscallbindtypeofproxyECMAScript 2022password[[Prototype]]ECMAScript 2018buffersreal-timecloudwatchmkdirpwafYAMLSymbol.toStringTagietoReversedinstalleruser-streamsextrafastclonelanguagejsonhas-ownautoprefixerReactiveXlintbrowserslistterminalsomedescriptorsSystem.globalurlnested cssSetsyntaxerrorObject.entriestypesdescriptionschemaacornfpsbeanstalkcompile lessinstallimmerhooksdeletewindowlinuxcolorfilterfullwidthgroupBysymboldatastructurerangeerrorUint32ArrayroutingArrayBuffervarsfastcopycollectionuninstalleventDispatcherwalkTypeScriptemrbyteLengthharmonyglobalThispopmotionfindLastIndexstyled-componentssymbolsestreewaitbinarytransportautoscalingES8hookformrfc4122weaksetaccessibilitybabelelectrontrimEndprocessreducerhasbundlerstablefull-widthprivate datasharedconcatMappicomatchefficientartECMAScript 5subprocessphoneES5helperscensorletkeyentriespromiseremoveES2017redactArray.prototype.filtertc39operating-systemes-shimscallboundjQuerychromiumlessexit-codeargsargumentes8stringreversedcryptol10ndiffcallpoint-freedom-testing-libraryvalidatemakecrypteventsJSON-SchemaarktypearrayscertificatesFloat64Arrayagentsafe__proto__dependenciesyupMicrosoftignoreelasticachetoolkitprefixidentifiersexecuteerror-handlingprogresstslibenumerableutil.inspectxtermECMAScript 2020getfixed-widthajvcharacterqueueMicrotaskoncesidefunctionsspawnstylingsimpledbinvariantdirectoryformattingpinostructuredCloneexpresses6authstateasciijwtiteratoreffect-tserroroptimizerRegExp.prototype.flagsRx_.extendwhichdotenvStyleSheetredux-toolkitfastifynames
3.5.87

10 months ago

3.5.86

10 months ago

3.5.85

10 months ago

3.5.84

10 months ago

3.5.83

10 months ago

3.5.82

10 months ago

3.5.81

10 months ago

3.5.80

10 months ago

3.5.79

11 months ago

3.5.78

11 months ago

3.5.77

11 months ago

3.5.76

11 months ago

3.5.75

11 months ago

3.5.74

11 months ago

3.5.73

11 months ago

3.5.72

11 months ago

3.5.71

11 months ago

3.5.70

11 months ago

3.5.69

11 months ago

3.5.68

11 months ago

3.4.68

11 months ago

3.4.67

11 months ago

3.4.66

11 months ago

2.4.66

11 months ago

2.4.65

11 months ago

2.3.65

11 months ago

2.3.64

11 months ago

2.3.63

11 months ago

2.3.62

11 months ago

2.3.61

11 months ago

2.3.60

11 months ago

2.3.59

11 months ago

2.3.58

11 months ago

2.3.57

11 months ago

2.3.56

11 months ago

2.3.55

11 months ago

2.3.54

11 months ago

2.3.53

11 months ago

2.3.52

12 months ago

2.3.51

12 months ago

2.3.50

12 months ago

2.3.49

12 months ago

2.3.48

12 months ago

2.3.47

12 months ago

2.3.46

12 months ago

2.3.45

12 months ago

2.3.44

12 months ago

2.3.43

12 months ago

2.3.42

12 months ago

2.3.41

12 months ago

2.3.40

12 months ago

2.3.39

12 months ago

2.3.38

12 months ago

2.2.38

12 months ago

2.2.37

12 months ago

2.2.36

12 months ago

2.2.35

12 months ago

2.2.34

12 months ago

2.2.33

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.1.29

1 year ago

2.1.28

1 year ago

2.1.27

1 year ago

2.1.26

1 year ago

2.1.25

1 year ago

2.1.24

1 year ago

2.1.23

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.1.19

1 year ago

2.1.18

1 year ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

2.1.14

1 year ago

2.1.13

1 year ago

2.1.12

1 year ago

2.1.11

1 year ago

2.1.10

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

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