2.6.118 • Published 2 years ago

@patrtorg/totam-error v2.6.118

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@patrtorg/totam-error Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Robustly .call.bind() a function.

Getting started

npm install --save @patrtorg/totam-error

Usage/Examples

const assert = require('assert');
const callBind = require('@patrtorg/totam-error');
const callBound = require('@patrtorg/totam-error/callBound');

function f(a, b) {
	assert.equal(this, 1);
	assert.equal(a, 2);
	assert.equal(b, 3);
	assert.equal(arguments.length, 2);
}

const fBound = callBind(f);

const slice = callBound('Array.prototype.slice');

delete Function.prototype.call;
delete Function.prototype.bind;

fBound(1, 2, 3);

assert.deepEqual(slice([1, 2, 3, 4], 1, -1), [2, 3]);

Tests

Clone the repo, npm install, and run npm test

functionalcore-jsgenericstrimdeep-cloneconfigurablenativehashFunction.prototype.nameexpressinstrumentationfastspringcoveragewhatwgbufferpyyamlmanagerdom-testing-librarydiffdeepcopynamesnodeECMAScript 3restpostcssECMAScript 5codesstringifierjoiES7queueMicrotaskpackage.jsonTypeBoxcurriedponyfilllocationentriesinferenceflatidentifierspositivestarterclasseslookfpec2ECMAScript 6Setrm -frstyleavaPushlintformatthreeupconsumewalkingReactiveExtensionssliceES6xhrtddES2021settingsjQuerylastlanguagesymbolstypedarraysreal-timecreatehookformemitchildObservablebinemojimapreduceincludesWeakMapmulti-packageiteratorstringifyfastcopyIteratoroptionstreamsgroupByqueuecolumnInt32Arrayfunction.lengthfunctionautoprefixerisframeworkform-validationhttpsrgbcollectionUnderscoreposepathremoveatombeanstalktoArraydatecloudwatchsorteddeep-copycall-boundkeysextraexpressionArrayBuffer.prototype.slicesameValueZeronegativeES2023RegExp.prototype.flagsArray.prototype.includesprotobufclassnamesajaxflatMapnodejsmodulechaiECMAScript 7chinesetapglacierairbnbfantasy-landspinnerssetImmediatedatabddparsersetPrototypeOfscheme-validationomitnpmignoreflagwidthmrutypanionimmerkoreanimportexportselfefficientbrowserlistbabellogvalidatorfullwidthfeedeslintrequestlockfilecommand.envRegExp#flagsvalidateprotoES2016buffersbrowserslistjson-schematoolsjsdiffstructuredCloneramdacloudtrailrobustfastifyclass-validatornegative zerobinaryistanbuleventsregexpcloudformationgetPrototypeOfestreeSystem.globalpromiselibphonenumberargumentregexes-shim APIes2015reducejsdomglobal objectbannerpropertyjasmineequalpipeassertsMicrosoftcollection.es6readreadableprotocol-buffersfolderTypeScriptcirculareslintconfigObjectmetadatareact-hooksqsdropschematimeuuidhelpereventDispatchertypeerrorESnext__proto__busytypedarrayes6toolkitforEach3dkeycryptojsonschemalocalStreamsmobileaccessibilityprogresses8apollospeedfile systemmatchAllvpcCSSStyleDeclarationaccessorArrayBufferglobal this valueidInt8Arrayjson-schema-validationes-abstractcolorscss-in-jsobjectmkdirpescapeObject.assignparentECMAScript 2022descriptionpropbytecloudfrontsuperagentStyleSheetamazonmatchesutilsURLsyntaxerrortranspilereducersetsomeconfigrecursivexmlSymbol.toStringTagperformancecontainsqueryes2018emrRxJSwritecsscommand-linetoStringTagcoreio-tsredux-toolkitanimationidlees2017jsObject.isrmhigher-ordergettrimLefthtmlowntestlruESstylesrandomutilECMAScript 2023schemeregular expressionECMAScript 2020Object.keyswaitshamtoSortedtypeofbyteOffsetnopehelpersi18ntexttransformwgetassigngroupstringrequirehasOwnguidsestrimEndregular expressionsnumberjapanesemonorepoECMAScript 2016fpsfromtelephoneimmutableasteriskstakechromeArray.prototype.flatietc39appautoscalingpackage managerInt16ArraywindowdescriptorsES2017look-upgraphqloncemkdirscacheCSStrimStartexecfilefixed-widthprivate dataworkflowdirectoryawsajvgetintrinsicvisualsideYAMLwalkserializationquerystringhasUint16ArrayexecrulesObject.valuesplugincensorsubprocessclassnamevalueloadingagenttslibRFC-6455testingbyteLengthtapehardlinksenumerableresolveasciifigletunicoderegular-expressionhttpMapastPromiselistenerssharedarraybufferargvloadbalancingregularvarsnsdayjsreadablestreamcopycallbindsinatrashellweakmapObject.getPrototypeOfenvironmentcall-bindtostringtagsharedflattenAsyncIteratormatchfilerm -rfdeepclonemergeworkspace:*instreamRxdeterministicbinariesUint8ArrayfindspawnlengthsettersuperstructWebSocketsslotfnmatchpicomatchmanipulationfast-copyserializerpnpm9rfc4122pushquoteprefixperformanteveryviewassertproxyvarsarraysdeletefulleast-asian-widthstoragegatewayruntimetouches-shimsUint8ClampedArraydependenciesforktypearraysearchvestES2018importstylingredirectwafbundlingfast-deep-copycloneloggerroute53packagesSymbolassertionelbString.prototype.trimObject.fromEntriesvalueseslintpluginroutershimignorefast-clonefunctionsutil.inspectES2020user-streamsBigUint64Arraysafefull-widthminimalredactacornjshintArray.prototype.flatMapobjcharacterstypedfetchflagswarningrdsvalidationmakezodUint32ArrayReactiveXprototypeuninstallexecuteeffect-tsawesomesauceinternal slothasOwnPropertytyped arrayreduxiterateweaksetpreprocessorcomparetraversespecsource mapjson-schema-validatorartECMAScript 2018@@toStringTagmochaWeakSetArrayBuffer#slicereverseeventEmitterES2019reworkwhichcompilervaliddotenvoptimizernameoutput6to5popmotiondeeprestfulendercolourStreamrsspropertiesrapidjsonpinowebformsinspectfsgitignoreasyncreactbindsymlinksfind-upArray.prototype.findLastIndexelasticacheapiserializereact poseinstallECMAScript 2017modulesfastclonetoReversedworkerArrayArray.prototype.findLastyuppolyfillnpmES8charactercoercibleecmascriptendpointprivatechromiumreversedpostcss-pluginchecktesterdefineECMAScriptindicatorECMAScript 2015[[Prototype]]256Float64ArrayfinduprouteconsolezerottywaapiebscloudsearchBigInt64ArrayconcatMapHyBidependency managerarktypeloggingES2022typescurlshebangmake dirdataViews3-0react-testing-librarygesturesdefinePropertyterminalsqsstabletsgetterdataviewfindLastIndexcallboundoptimistpruneglobchannelObject.definePropertymapjsxES5arraybuffermovepureiamArray.prototype.containsdynamodbspinnershrinkwrapdescriptorwritabletypesafeconcatkarmaes5getoptinvariantgdprcode pointsinternalenvironmentsisConcatSpreadablecommanderespreeArray.prototype.flattenformattingtacitReflect.getPrototypeOfoffseterrores7simpledbequalityconst.gitignoreURLSearchParamspatchWebSocketbrowsereslint-pluginparentsString.prototype.matchAllglobalThissyntaxkinesisglobalgetOwnPropertyDescriptorinstallerletelectronyamlObservablescallesrangeerrortransportreact-hook-form$.extendcolumnsdebuggerstyleguidepackageTypedArrayurl
2.6.116

2 years ago

2.6.117

2 years ago

2.6.118

2 years ago

2.6.115

2 years ago

2.6.114

2 years ago

2.6.113

2 years ago

2.6.112

2 years ago

2.6.111

2 years ago

2.6.110

2 years ago

2.6.109

2 years ago

2.6.108

2 years ago

2.6.107

2 years ago

2.6.106

2 years ago

2.6.105

2 years ago

2.6.104

2 years ago

2.6.103

2 years ago

2.6.102

2 years ago

2.6.101

2 years ago

2.6.100

2 years ago

2.6.99

2 years ago

2.6.98

2 years ago

2.5.98

2 years ago

2.5.97

2 years ago

2.5.96

2 years ago

2.5.95

2 years ago

2.5.94

2 years ago

2.5.93

2 years ago

2.5.92

2 years ago

2.5.91

2 years ago

2.5.90

2 years ago

2.5.89

2 years ago

2.5.88

2 years ago

2.5.87

2 years ago

2.5.86

2 years ago

2.5.85

2 years ago

2.5.84

2 years ago

2.5.83

2 years ago

2.5.82

2 years ago

2.5.81

2 years ago

1.5.81

2 years ago

1.5.80

2 years ago

1.5.79

2 years ago

1.5.78

2 years ago

1.5.77

2 years ago

1.5.76

2 years ago

1.5.75

2 years ago

1.5.74

2 years ago

1.5.73

2 years ago

1.4.73

2 years ago

1.4.72

2 years ago

1.4.71

2 years ago

1.3.71

2 years ago

1.3.70

2 years ago

1.3.69

2 years ago

1.2.69

2 years ago

1.2.68

2 years ago

1.2.67

2 years ago

1.2.66

2 years ago

1.2.65

2 years ago

1.2.64

2 years ago

1.2.63

2 years ago

1.2.62

2 years ago

1.2.61

2 years ago

1.2.60

2 years ago

1.2.59

2 years ago

1.2.58

2 years ago

1.2.57

2 years ago

1.2.56

2 years ago

1.2.55

2 years ago

1.1.55

2 years ago

1.1.54

2 years ago

1.1.53

2 years ago

1.1.52

2 years ago

1.1.51

2 years ago

1.1.50

2 years ago

1.1.49

2 years ago

1.1.48

2 years ago

1.1.47

2 years ago

1.1.46

2 years ago

1.1.45

2 years ago

1.1.44

2 years ago

1.1.43

2 years ago

1.1.42

2 years ago

1.1.41

2 years ago

1.1.40

2 years ago

1.1.39

2 years ago

1.1.38

2 years ago

1.1.37

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago