2.6.118 • Published 11 months ago

@patrtorg/totam-error v2.6.118

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

11 months ago

2.6.117

11 months ago

2.6.118

11 months ago

2.6.115

11 months ago

2.6.114

11 months ago

2.6.113

12 months ago

2.6.112

12 months ago

2.6.111

12 months ago

2.6.110

12 months ago

2.6.109

12 months ago

2.6.108

12 months ago

2.6.107

12 months ago

2.6.106

12 months ago

2.6.105

12 months ago

2.6.104

12 months ago

2.6.103

12 months ago

2.6.102

12 months ago

2.6.101

12 months ago

2.6.100

12 months ago

2.6.99

12 months ago

2.6.98

12 months ago

2.5.98

12 months ago

2.5.97

12 months ago

2.5.96

12 months ago

2.5.95

12 months ago

2.5.94

1 year ago

2.5.93

1 year ago

2.5.92

1 year ago

2.5.91

1 year ago

2.5.90

1 year ago

2.5.89

1 year ago

2.5.88

1 year ago

2.5.87

1 year ago

2.5.86

1 year ago

2.5.85

1 year ago

2.5.84

1 year ago

2.5.83

1 year ago

2.5.82

1 year ago

2.5.81

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.4.73

1 year ago

1.4.72

1 year ago

1.4.71

1 year ago

1.3.71

1 year ago

1.3.70

1 year ago

1.3.69

1 year ago

1.2.69

1 year ago

1.2.68

1 year ago

1.2.67

1 year ago

1.2.66

1 year ago

1.2.65

1 year ago

1.2.64

1 year ago

1.2.63

1 year ago

1.2.62

1 year ago

1.2.61

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.1.55

1 year ago

1.1.54

1 year ago

1.1.53

1 year ago

1.1.52

1 year ago

1.1.51

1 year ago

1.1.50

1 year ago

1.1.49

1 year ago

1.1.48

1 year ago

1.1.47

1 year ago

1.1.46

1 year ago

1.1.45

1 year ago

1.1.44

1 year ago

1.1.43

1 year ago

1.1.42

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.1.39

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.0.37

1 year ago

1.0.36

1 year ago

1.0.35

1 year ago

1.0.34

1 year ago

1.0.33

1 year ago

1.0.32

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

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