1.5.106 • Published 10 months ago

@patrtorg/dolorum-blanditiis v1.5.106

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

@patrtorg/dolorum-blanditiis 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('@patrtorg/dolorum-blanditiis');
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.

superstructmkdirsoffsetzxajaxslicevpcdotenvES2017makecolorspopmotionECMAScript 3prefixwritemockECMAScript 2021nameiterateIteratorObservablelazytypescriptSetes2015wgethasOwnassertionstoragegatewayES2023escoerciblegetintrinsices2018regular-expressionfile systemRFC-6455ReactiveXproperty-0pureBigUint64Arraysignalssafetslibglobal objectdeterministicgradients css3serializationweakmapcolumnsvariables in cssnopecloudfrontsymlinksmkdirprequestStreamserrorconcatcore-jslocationi18nES2016Uint8ClampedArrayzerofastclonefptypesafeprotocol-buffersawscallboundhttpsjwtbuffersbyteOffsetES6swfmockinges-shimsprivate dataopensslbabelfunctionalextenddependency managercommandersyntaxpruneimmutabledeepcopyArrayBuffersortedapijapaneseECMAScript 2015joiemitarraystatehardlinksa11yObjectcloudformationCSSrouterangeerrorremoverapidurlprivateECMAScriptcallchromecloneconsoleES3groupxhrfindLastIndexInt16ArrayYAMLsymbolsdataviewinspectvares-abstractregularES7util.inspecteslintes6class-validatordayjsWeakMapebscallbackutilitiesSymbolvisualArray.prototype.filters3espreestartercallbindsharedarraybuffertyped arraytypeerrorpositivecontainspropertiesUnderscoreelmviewless csscolourflagsUint8ArraybundlingmetadatapromiseajvAsyncIteratorbindponyfillcurriedreal-timeRxJSObject.isspecchineseglacierresolveforkmodulehelperphonehooksgetopt0genericsnpmignoredatastructureURLsyntaxerrorclassessomeURLSearchParamsObject.assignstyleguideESnextpasswordvalidatorio-tsindicatorcensorObject.fromEntriesTypedArrayminimalmkdiraccessoroutputmixinshandlertypeforEachtsECMAScript 2020routing6to5jestasciiimportStreamfront-endeventEmitterless.jsObject.definePropertyrulesspinnerextrawarningpathRegExp#flagspyyamlencryptionmulti-packageansibddmapreducebufferformsReactiveExtensionsenvObservablesserializecliautoscalingfastifynegative zeroequalvalidatesetieregexpless compilertypedarrayglobaldirtelephonecommand-linelesscssdragfastcopypostcss-pluginvalidationsubprocessinputpipearktypeisConcatSpreadableflattendefinePropertywafTypeScriptrequireanimationgetPrototypeOfinstallernpmString.prototype.trimEScollectionestreecurlemrtestmake dirbinglobalThisqueueMicrotaskfunctionreduxArray.prototype.findLastInt32ArraystableObject.getPrototypeOffull-widthairbnbnodejs@@toStringTagtrimEnduser-streamstakepoint-freesuperagentstringifyomitcompile lessbootstrap cssamazoncall-boundexecutespeedconsumesortchanneltoArrayperformanceruntimejsdiffsignalArrayBuffer#sliceBigInt64ArrayautoprefixerquotegettermobilegraphqlhandlersjseveryArray.prototype.containsisfsES2020jsdomargumentrgbequalityECMAScript 2016csstrim256movechromiumstringifierweaksetsequencesimpledbcharacter$.extendlettoolkitinlesstoolsECMAScript 2022react-hook-formentriesparseoperating-systemimportexportnativereadenumerableclientWebSocketselasticacheArrayBuffer.prototype.sliceeslint-pluginpicomatchObject.valuesbrowserasserteventDispatcherlogutilityes-shim APIbeanstalkdirectorylastsesreact animationfunction.lengthroute53cryptcss-in-jses2016computed-typeshasOwnPropertytextignoreTypeBoxtoobjectloadbalancingkeyloggergetwidthsetImmediateES5diffrobuststylingspinnerssymlinkinvariantfilterredux-toolkitnodeECMAScript 2018__proto__Array.prototype.flatMapchaimatchtostringtagvaluestouchES8descriptorsECMAScript 2023gdproptimizerstreamdependenciesdescriptorredirectthreevalid[[Prototype]]ES2015pluginhottypeofgroupByargvutilsES2019less mixinsbootstrap less.envdomposeagentCSSStyleDeclarationservicemapdynamodbshrinkwrapsetPrototypeOfwhatwgglobal this valueStyleSheetform-validationfast-deep-cloneincludestoSortedartReflect.getPrototypeOfkeysfnmatchtimecirculararraybuffersigintuploadeslintpluginObject.keysfiglettoStringTageslintconfigArray.prototype.findLastIndexdataViewhttpregular expressionPushtrimLeftvestjsonschemastreamslibphonenumberSymbol.toStringTagglobalsstatelesslocalhas-ownnegativeaccessibilityidlespawnsettingsmatchescss variablepolyfilllinkbyteLengthzodpreprocessorsetterhookformtrimStartwritablereplayownECMAScript 6typesworkflowsideasynclintcloudsearchJSONschemeECMAScript 2019typedarraysinstallelectronregexworkspace:*3dworkerproxygitignoremanagermatchAlltranspilenamesfixed-widthcss nestingcacheES2022filestatusharmonyhaskinesisreact-hookspersistentconfigurableclassnamequeuetermdeleteendpointwhichenvironmentsoptionMapObject.entriesfindlanguageparsergradients cssefficientassertsfast-cloneFloat32Arraydeep-clonedom-testing-librarycheckPromisenumberlistenersString.prototype.matchAllliveacornpackagesmacosdeepslotjavascriptastmergewindowstesterconfigconstpropfunctionsback-endfetchexites5identifiersiteratorargsRxscheme-validationtrimRightasterisksprogresscertificatesobjectprocessloading.gitignorebinarydeep-copyspringdatacreatel10ncloudtrailutilshamWeakSetbannerprototyperecursivees7cryptoescape
1.5.106

10 months ago

1.5.105

10 months ago

1.5.104

10 months ago

1.5.103

10 months ago

1.5.102

10 months ago

1.5.101

10 months ago

1.5.100

10 months ago

1.5.99

10 months ago

1.5.98

10 months ago

1.5.97

10 months ago

1.5.96

10 months ago

1.5.95

10 months ago

1.5.94

10 months ago

1.5.93

10 months ago

1.5.92

10 months ago

1.5.91

10 months ago

1.5.90

10 months ago

1.5.89

10 months ago

1.5.88

10 months ago

1.5.87

10 months ago

1.5.86

10 months ago

1.5.85

11 months ago

1.5.84

11 months ago

1.5.83

11 months ago

1.5.82

11 months ago

1.5.81

11 months ago

1.5.80

11 months ago

1.5.79

11 months ago

1.5.78

11 months ago

1.5.77

11 months ago

1.5.76

11 months ago

1.5.75

11 months ago

1.5.74

11 months ago

1.5.73

11 months ago

1.5.72

11 months ago

1.4.72

11 months ago

1.3.72

11 months ago

1.3.71

11 months ago

1.3.70

11 months ago

1.3.69

11 months ago

1.3.68

11 months ago

1.3.67

11 months ago

1.3.66

11 months ago

1.3.65

11 months ago

1.3.64

11 months ago

1.3.63

11 months ago

1.3.62

11 months ago

1.3.61

11 months ago

1.3.60

11 months ago

1.2.60

11 months ago

1.2.59

11 months ago

1.2.58

12 months ago

1.2.57

12 months ago

1.2.56

12 months ago

1.2.55

12 months ago

1.2.54

12 months ago

1.2.53

12 months ago

1.2.52

12 months ago

1.2.51

12 months ago

1.2.50

12 months ago

1.2.49

12 months ago

1.2.48

12 months ago

1.2.47

12 months ago

1.2.46

12 months ago

1.2.45

12 months ago

1.2.44

12 months ago

1.2.43

12 months ago

1.2.42

12 months ago

1.2.41

12 months ago

1.2.40

12 months ago

1.2.39

12 months ago

1.2.38

1 year ago

1.2.37

1 year ago

1.2.36

1 year ago

1.2.35

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.2.32

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

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