1.5.106 • Published 12 months ago

@patrtorg/dolorum-blanditiis v1.5.106

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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

12 months ago

1.5.105

12 months ago

1.5.104

12 months ago

1.5.103

12 months ago

1.5.102

1 year ago

1.5.101

1 year ago

1.5.100

1 year ago

1.5.99

1 year ago

1.5.98

1 year ago

1.5.97

1 year ago

1.5.96

1 year ago

1.5.95

1 year ago

1.5.94

1 year ago

1.5.93

1 year ago

1.5.92

1 year ago

1.5.91

1 year ago

1.5.90

1 year ago

1.5.89

1 year ago

1.5.88

1 year ago

1.5.87

1 year ago

1.5.86

1 year ago

1.5.85

1 year ago

1.5.84

1 year ago

1.5.83

1 year ago

1.5.82

1 year ago

1.5.81

1 year ago

1.5.80

1 year ago

1.5.79

1 year ago

1.5.78

1 year ago

1.5.77

1 year ago

1.5.76

1 year ago

1.5.75

1 year ago

1.5.74

1 year ago

1.5.73

1 year ago

1.5.72

1 year ago

1.4.72

1 year ago

1.3.72

1 year ago

1.3.71

1 year ago

1.3.70

1 year ago

1.3.69

1 year ago

1.3.68

1 year ago

1.3.67

1 year ago

1.3.66

1 year ago

1.3.65

1 year ago

1.3.64

1 year ago

1.3.63

1 year ago

1.3.62

1 year ago

1.3.61

1 year ago

1.3.60

1 year ago

1.2.60

1 year ago

1.2.59

1 year ago

1.2.58

1 year ago

1.2.57

1 year ago

1.2.56

1 year ago

1.2.55

1 year ago

1.2.54

1 year ago

1.2.53

1 year ago

1.2.52

1 year ago

1.2.51

1 year ago

1.2.50

1 year ago

1.2.49

1 year ago

1.2.48

1 year ago

1.2.47

1 year ago

1.2.46

1 year ago

1.2.45

1 year ago

1.2.44

1 year ago

1.2.43

1 year ago

1.2.42

1 year ago

1.2.41

1 year ago

1.2.40

1 year ago

1.2.39

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