1.8.72 • Published 11 months ago

@dramaorg/temporibus-ratione v1.8.72

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

@dramaorg/temporibus-ratione Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Get and robustly cache all JS language-level intrinsics at first require time.

See the syntax described in the JS spec for reference.

Example

var GetIntrinsic = require('@dramaorg/temporibus-ratione');
var assert = require('assert');

// static methods
assert.equal(GetIntrinsic('%Math.pow%'), Math.pow);
assert.equal(Math.pow(2, 3), 8);
assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);
delete Math.pow;
assert.equal(GetIntrinsic('%Math.pow%')(2, 3), 8);

// instance methods
var arr = [1];
assert.equal(GetIntrinsic('%Array.prototype.push%'), Array.prototype.push);
assert.deepEqual(arr, [1]);

arr.push(2);
assert.deepEqual(arr, [1, 2]);

GetIntrinsic('%Array.prototype.push%').call(arr, 3);
assert.deepEqual(arr, [1, 2, 3]);

delete Array.prototype.push;
GetIntrinsic('%Array.prototype.push%').call(arr, 4);
assert.deepEqual(arr, [1, 2, 3, 4]);

// missing features
delete JSON.parse; // to simulate a real intrinsic that is missing in the environment
assert.throws(() => GetIntrinsic('%JSON.parse%'));
assert.equal(undefined, GetIntrinsic('%JSON.parse%', true));

Tests

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

Security

Please email @ljharb or see https://tidelift.com/security if you have a potential security vulnerability to report.

redirectdependency managerbuffernpmignorebytearraysdeletelettrimLeftphoneglobalsArrayBuffereslintconfigquerystringenvironmentform-validationinputreactfast-cloneECMAScript 7sharedcallcensordeepcopytsindicatorECMAScript 2022sqsendpointECMAScript 2023ESnextcacheiteraterm -rfbabel-core_.extend.envloggerconcatMapclassesRFC-6455arrayweakmapomitprefixquerystyleguidefpsdirbrowserslistkeysArray.prototype.findLastlanguagetoolkitfast-deep-copytranspile.gitignorecommandpopmotiones2015utilitiesObservableamazondiffObject.valuesescapehasSymbolrm -frbeanstalkcollection.es6Object.entriesES2023optionstylingmapfolderfunctionalcsspushArray.prototype.flattenoffsetdomfigletsideasyncregexSetTypeScriptObject.isforEachconsumebinReactiveXrestfulcharacterstapefullwidthkoreancompilerBigUint64Arrayfile systemstablenamesjshintflatMapRxJSargsreadspinnerfantasy-landreact animationtermFloat32Arrayhelpercall-boundeventssafeaccessibilitytoStringTagrapidSymbol.toStringTagsyntaxpiperandomhigher-orderurllengtharktypeimportexportinstallerhookformsameValueZeroWebSocketdebuggerES3framerwaitcoreremoveawesomesauceoptimizerbrowserlistAsyncIteratorconfigwalkjsdommanagerregular expressionmetadataeast-asian-widthreal-timethreeschemeuuidnodejsObject.definePropertykinesisruntimePromisegroupsource mapwgetprotocryptogetterfilepostcss-pluginelasticacheassertionUint32Arraypatchprocessharmonyobjectcolumnses5findLastIndexmovesesgenericswhichTypedArrayemojifpdefinepositivetransportbufferstrimEndmkdirpcollectiondeepcloneES2018tacitsymbolspringi18nreact-testing-libraryponyfillfilterkarmaes-shim APIcallbackfeedtrimRightassignwhatwgasciiperformantback-endArray.prototype.includeschromiumtelephonesuperagentparsershebangreversedtextincore-jsjapanesevarsdefinePropertycomputed-typesimmutablegetintrinsicnameobjrestwritees2017mergelruArraysearchtypedarraysglobalextraprogresspluginformattingString.prototype.matchAllmomenthas-ownformsassertsreact poseboundawsmockingstylesextendWebSocketsbabelparentcontainspropIteratorpicomatchfile cachehasOwnPropertytyped arraypnpm9weaksetrobust__proto__warningbannersomestringifierenumerabledataViewStreamgdprqueueMicrotaskrulesES2016invariantemitjoiURLtc39storagegatewayserializerclass-validatorwafargumentdotenvsortworkerkey valueexecinspectjasminebyteOffsetwritableArrayBuffer.prototype.sliceES2021reworkArray.prototype.flatchanneltransform$.extendstreamsapolloreversecurlsymbolsclonegitignoreObject.fromEntriesregular-expressiontostringtagWeakSetacorneventDispatcherRxtestingzerojsagentquoteregular expressionsroutingstyleget-0variablesECMAScript 6ES2017xhrajvinternalyupArray.prototype.containstestdataviewvalidcolorJSONinternal slotmrupoint-freeignoresortedcreatestructuredCloneappenvtypesafedropguidoptimistprettymochamatchcjklogsinatraRegExp.prototype.flagsestreeflagBigInt64ArraycallbinddescriptiontypedimmerES8libphonenumberidleFloat64Arraytypeoftypanionzodinferenceunicode3dmatchesdragxtermutils256tddroutetslibentriesexecuteutil.inspectchrometakeajaxviewmobile@@toStringTagshelldeepclioutputprototypeMicrosoftnpmECMAScript 5varcurriedserializationfast-deep-clonejsxvestdependenciesFunction.prototype.nameInt16Array6to5fullproxycolumnintrinsicaval10nObject.getPrototypeOfeveryconcatdeep-cloneCSSStyleDeclarationrequireio-tsredux-toolkitECMAScript 2016ownjsdiffequalityspecincludeshttpECMAScript 2021bundlerrdsECMAScript 2017eslintpluginnopermdirminimalbddreact-hookslintenvironmentsES5UnderscoretraverseiteratorlookjestbinaryECMAScript 2015superstructreducerInt32Arrayschemapureprunees-shimsECMAScript 2020TypeBoxfunctionpropertyfixed-widthwebflattenlistenersregexpspawnprotocol-buffersprivatesimple cachepackage.jsonequalvalueposehttpsterminalcircularecmascriptttymonorepocallboundelbpinobyteLengthstarterkey pargetopteslint-plugintesterchecknegative zerotrimStartartfindup
1.8.72

11 months ago

1.8.71

11 months ago

1.7.71

11 months ago

1.7.70

11 months ago

1.7.69

11 months ago

1.7.68

12 months ago

1.7.67

12 months ago

1.7.66

12 months ago

1.7.65

12 months ago

1.7.64

12 months ago

1.7.63

12 months ago

1.7.62

12 months ago

1.7.61

12 months ago

1.7.60

12 months ago

1.7.59

12 months ago

1.7.58

12 months ago

1.6.58

12 months ago

1.6.57

12 months ago

1.6.56

12 months ago

1.6.55

12 months ago

1.6.54

12 months ago

1.6.53

12 months ago

1.6.52

12 months ago

1.5.52

12 months ago

1.5.51

12 months ago

1.5.50

1 year ago

1.5.49

1 year ago

1.4.49

1 year ago

1.4.48

1 year ago

1.4.47

1 year ago

1.4.46

1 year ago

1.4.45

1 year ago

1.4.44

1 year ago

1.4.43

1 year ago

1.4.42

1 year ago

1.4.41

1 year ago

1.4.40

1 year ago

1.4.39

1 year ago

1.3.39

1 year ago

1.3.38

1 year ago

1.3.37

1 year ago

1.3.36

1 year ago

1.3.35

1 year ago

1.3.34

1 year ago

1.3.33

1 year ago

1.3.32

1 year ago

1.3.31

1 year ago

1.3.30

1 year ago

1.3.29

1 year ago

1.3.28

1 year ago

1.3.27

1 year ago

1.3.26

1 year ago

1.3.25

1 year ago

1.3.24

1 year ago

1.3.23

1 year ago

1.3.22

1 year ago

1.3.21

1 year ago

1.3.20

1 year ago

1.3.19

1 year ago

1.3.18

1 year ago

1.3.17

1 year ago

1.3.16

1 year ago

1.3.15

1 year ago

1.3.14

1 year ago

1.3.13

1 year ago

1.3.12

1 year ago

1.3.11

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.7

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.1.6

1 year ago

1.1.5

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