1.9.85 • Published 10 months ago

@taktikorg/a-laborum-cum v1.9.85

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

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

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

Tests

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

animationECMAScript 3classnamesES2019findLastpromiseregular-expressiondragsymlinksURLbusyFloat32ArrayformattingmkdirstypedarraySymbollocalshebang0compilerutilstypeerrorES2016fastclonespinnerECMAScript 2017TypeBoxvestlesscssextendtostringtagsequenceflagsinstallertoolsjestdiffes6acornawesomesaucesesmatchfinddataViewglobal objectbinaryvarseast-asian-width256jsdiffajvmoduleswritablefpsbabel-coretoReversedvarmonorepoassertxtermairbnbcollection.es6timelistenersparseES2020ES2021transportoptimizerglobaleslintReactiveExtensionsfile systemenderreverseglobtrimRightbannercolorstestObservableless mixinsnpmSetiteratereadablestreamuuidrulesclassesfunctionalwidtheveryletexpressionSystem.globalperformant@@toStringTagtelephoneArray.prototype.containsforEachwhicharktypevpcvisualhookformjsoncensorcolumntypeArrayBufferprivate datavalueoutputsuperstructcloudformationTypedArrayponyfillES2023macostextcheckwarningtraversedatastructureUint16ArraycacheJSON-SchemaglobalsschememrudeepcopyUint8ClampedArrayslotexecutetypeofeventEmitteraccessibilitytranspileform-validationsortednegative zerouploadviewinstallclassnamebootstrap csssetjavascriptURLSearchParamspropastsnsowntakebootstrap lesss3postcssidlees2015configurablepackage managerinternaldynamodbPushflagpluginonceObservablespostcss-pluginenumerablesuperagentschemainhashJSONECMAScript 7css nesting__proto__managerfunctionsmake dircirculargroupByfastgetOwnPropertyDescriptorTypeScriptObject.assignMicrosoftproxylockfilespringlanguageparserhttpreplaystylesheetargvforkhasOwnPropertyObject.fromEntriesglobalThisCSSprocessinspectdeepclonequerystringinferencegetzerojshinti18nshellspawnprototypegradients cssECMAScript 2015unicodetypedarraysECMAScript 2022copybyteOffsetwindowconfigidentifiersdependency managerlintwalkweaksetStreamscurriedcurlflatlengthirqmergeajaxworkflowsigtermECMAScript 2016ebsinterruptsES7phonetypanionmapreduceworkspace:*beanstalktypescriptsidedeterministicwhatwgfnmatchbrowserpropertiesbindbddtrimLeftconsoleimmersignalsqueryreact-componentjson-schema-validatoransiminimalArray.prototype.flatECMAScript 2023deep-copyperformancewindowsassertionsortlinkregexpweakmappurestringifierstylingassignexecfilelinuxgraphqljson-schema-validationarraysgetintrinsicgradients css3fast-deep-cloneMaphelperspyyamlpreserve-symlinksArray.prototype.findLastruntimereactwafasterisksexpressrapidreduxio-tscore-jstestingloggingdirectorykoreanInt8Arrayeffect-tsloggertrimautoscalingstatecallcall-bindcloudwatchvalidhandlerscharactercompareprefixnodejschannelstreamexit-codees-shimswaitinputiamcall-boundspeedstreamsgetPrototypeOfsyntaxtouchstatelesspicomatchmatchescommanda11yconcatemrUint8Arrayrangeerrorjwtes-shim APIArray.prototype.includesregexstringifytranspilerartBigInt64ArraycloudsearchcolorcommanderWebSocketfigletbcryptroutinginternal slotpasswordeslint-pluginresolveroute53clirequestInt16ArrayhttpsflatMapdateObject.entriesfull-widthArray.prototype.flatMapes2017args.envreusepnpm9nativeString.prototype.matchAllreact poseimportexportnopestyled-componentsarrayStreamtesterrfc4122sharedarraybufferlibphonenumberESnextArray.prototype.flattenmomentclientequalityArray.prototype.filtermkdirnested cssES8ECMAScript 2021pipeRFC-6455ReactiveXrdsdeepconcatMapdependencieshas-ownmovehardlinksloadbalancingswfECMAScript 2018WeakSetenvsomeUnderscorees8ECMAScriptcreatedeep-clonefunctionrecursiveawscommand-lineemitgetoptmakelruexecshimcodesdataviewequalclass-validatoresparsingstatusformsenvironmentloadingispino.gitignoreutilliveregular expressionkinesises7byteLengthPromiseremovequotedayjsdescriptionestreequeueUint32Arrayes2016glacierObject.keysdescriptordatareadgenericssettingsES2015extrahelperpropertyflattenisConcatSpreadableWebSocketspackage.json[[Prototype]]function.lengthjsxES2018agentfetchsettercloudfrontrfc9562point-freetermcss variableiteratornamestylesvalidationterminalobjectttybundlererror-handlingrequiretrimEndvaluesES3escapebinasciivariables in cssamazonless cssArray.prototype.findLastIndexfromCSSStyleDeclarationzxtsObject.valuestoSortedtoArraysimpledboptimistencryptionprotobuffilterfastifydefineoperating-systemrandomshamendpointchineseconstglobal this valueasyncES2017sharedscheme-validationapollomodulenodegroupec2fullwidtheslintplugineslintconfigsyntaxerrorpatchtypedmatchAllmobilefantasy-landArrayBuffer#slicetc39coerciblecontainsredux-toolkitreversedString.prototype.trimutil.inspectsymbolssameValueZeroBigUint64ArrayyamlignoretacitECMAScript 6typesObjectentriesbrowserslistprotologObject.isarraybufferprotocol-buffersprettycallbinddropdom-testing-libraryiterationerrorsignalredacthasOwnstartermulti-packageprogresstoobjectsetPrototypeOfRegExp#flagsspinnerskeyschaifluxcjkjoispecapizodIteratorES6reduceECMAScript 5tddqsauthenticationtoStringTages2018react-testing-libraryguidjapanesecss lessprivateES2022Object.definePropertynegativeelasticachestyleguidecss-in-jsstoragegatewaylesswgetHyBifindLastIndexautoprefixerpathdeleteformatcallboundstringselftypesafecollectionharmonyserializerassertsworkersqsstablecoremkdirphookscrypto_.extendReflect.getPrototypeOfsetImmediatefsthreehotsymbolcallbackelmAsyncIteratorbuffersstylereducerpersistentbrowserlistargumentpopmotionpruneintrinsicreact-hook-formuser-streamsfilechildiedirjsdomcloneimportenvironmentshigher-ordermapcertificatesindicatormixinsregulares-abstractECMAScript 2019definePropertychromefast-clonecomputed-typesjson-schemacryptaccessorroutepackagessubprocesschromiumdoml10necmascripthastslibwriteincludesvalidate
1.9.85

10 months ago

1.9.84

10 months ago

1.9.83

10 months ago

1.9.82

10 months ago

1.8.82

10 months ago

1.8.81

11 months ago

1.8.80

11 months ago

1.8.79

11 months ago

1.8.78

11 months ago

1.8.77

11 months ago

1.8.76

11 months ago

1.8.75

11 months ago

1.8.74

11 months ago

1.8.73

11 months ago

1.8.72

11 months ago

1.8.71

11 months ago

1.8.70

11 months ago

1.8.69

11 months ago

1.8.68

11 months ago

1.8.67

11 months ago

1.8.66

11 months ago

1.8.65

11 months ago

1.7.65

11 months ago

1.7.64

11 months ago

1.7.63

11 months ago

1.7.62

11 months ago

1.7.61

11 months ago

1.7.60

11 months ago

1.7.59

11 months ago

1.7.58

11 months ago

1.7.57

11 months ago

1.7.56

11 months ago

1.7.55

11 months ago

1.7.54

11 months ago

1.7.53

11 months ago

1.7.52

12 months ago

1.7.51

12 months ago

1.7.50

12 months ago

1.7.49

12 months ago

1.7.48

12 months ago

1.7.47

12 months ago

1.7.46

12 months ago

1.7.45

12 months ago

1.7.44

12 months ago

1.7.43

12 months ago

1.7.42

12 months ago

1.6.42

12 months ago

1.6.41

12 months ago

1.6.40

12 months ago

1.6.39

12 months ago

1.6.38

12 months ago

1.6.37

12 months ago

1.6.36

12 months ago

1.6.35

12 months ago

1.6.34

12 months ago

1.6.33

1 year ago

1.6.32

1 year ago

1.6.31

1 year ago

1.6.30

1 year ago

1.6.29

1 year ago

1.6.28

1 year ago

1.6.27

1 year ago

1.6.26

1 year ago

1.6.25

1 year ago

1.6.24

1 year ago

1.6.23

1 year ago

1.5.23

1 year ago

1.5.22

1 year ago

1.5.21

1 year ago

1.5.20

1 year ago

1.5.19

1 year ago

1.5.18

1 year ago

1.5.17

1 year ago

1.5.16

1 year ago

1.4.16

1 year ago

1.4.15

1 year ago

1.4.14

1 year ago

1.3.14

1 year ago

1.3.13

1 year ago

1.3.12

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

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago