1.9.85 • Published 1 year ago

@taktikorg/a-laborum-cum v1.9.85

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/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

1 year ago

1.9.84

1 year ago

1.9.83

1 year ago

1.9.82

1 year ago

1.8.82

1 year ago

1.8.81

1 year ago

1.8.80

1 year ago

1.8.79

1 year ago

1.8.78

1 year ago

1.8.77

1 year ago

1.8.76

1 year ago

1.8.75

1 year ago

1.8.74

1 year ago

1.8.73

1 year ago

1.8.72

1 year ago

1.8.71

1 year ago

1.8.70

1 year ago

1.8.69

1 year ago

1.8.68

1 year ago

1.8.67

1 year ago

1.8.66

1 year ago

1.8.65

1 year ago

1.7.65

1 year ago

1.7.64

1 year ago

1.7.63

1 year ago

1.7.62

1 year ago

1.7.61

1 year ago

1.7.60

1 year ago

1.7.59

1 year ago

1.7.58

1 year ago

1.7.57

1 year ago

1.7.56

1 year ago

1.7.55

1 year ago

1.7.54

1 year ago

1.7.53

1 year ago

1.7.52

1 year ago

1.7.51

1 year ago

1.7.50

1 year ago

1.7.49

1 year ago

1.7.48

1 year ago

1.7.47

1 year ago

1.7.46

1 year ago

1.7.45

1 year ago

1.7.44

1 year ago

1.7.43

1 year ago

1.7.42

1 year ago

1.6.42

1 year ago

1.6.41

1 year ago

1.6.40

1 year ago

1.6.39

1 year ago

1.6.38

1 year ago

1.6.37

1 year ago

1.6.36

1 year ago

1.6.35

1 year ago

1.6.34

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