3.5.87 • Published 1 year ago

@taktikorg/dolorem-iure-hic v3.5.87

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

1 year ago

3.5.86

1 year ago

3.5.85

1 year ago

3.5.84

1 year ago

3.5.83

1 year ago

3.5.82

1 year ago

3.5.81

1 year ago

3.5.80

1 year ago

3.5.79

1 year ago

3.5.78

1 year ago

3.5.77

1 year ago

3.5.76

1 year ago

3.5.75

1 year ago

3.5.74

1 year ago

3.5.73

1 year ago

3.5.72

1 year ago

3.5.71

1 year ago

3.5.70

1 year ago

3.5.69

1 year ago

3.5.68

1 year ago

3.4.68

1 year ago

3.4.67

1 year ago

3.4.66

1 year ago

2.4.66

1 year ago

2.4.65

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

2.3.54

1 year ago

2.3.53

1 year ago

2.3.52

1 year ago

2.3.51

1 year ago

2.3.50

1 year ago

2.3.49

1 year ago

2.3.48

1 year ago

2.3.47

1 year ago

2.3.46

1 year ago

2.3.45

1 year ago

2.3.44

1 year ago

2.3.43

1 year ago

2.3.42

1 year ago

2.3.41

1 year ago

2.3.40

1 year ago

2.3.39

1 year ago

2.3.38

1 year ago

2.2.38

1 year ago

2.2.37

1 year ago

2.2.36

1 year ago

2.2.35

1 year ago

2.2.34

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