core-functions
Advanced tools
Changelog
3.0.25
promises
module:
handleUnhandledRejection
& handleUnhandledRejections
functions based on
avoidUnhandledPromiseRejectionWarning
& avoidUnhandledPromiseRejectionWarnings
functionsavoidUnhandledPromiseRejectionWarning/s
functions to be deprecated synonyms for
handleUnhandledRejection/s
functionsignoreUnhandledRejection
& ignoreUnhandledRejections
functions that suppress unhandled rejections without
loggingChangelog
3.0.24
promises
module:
wrap
& wrapMethod
functions to handle successful callbacks with more than 2 arguments by resolving the
promise with an array containing all of the arguments other than the first. Note that successful callbacks with only
2 arguments will still return the 2nd argument as before (instead of an array containing only the 2nd argument).wrap
& wrapMethod
functions to timeout and reject their promises if they are still pending after a
configurable number of milliseconds - to avoid cases where the wrapped function does NOT call the callback.
opts
last argument to wrap
& wrapMethod
functions to enable configuration of the timeout
time in millisecondsChangelog
3.0.23
.npmignore
release_notes.md
to CHANGES.md
Changelog
3.0.22
instanceof
usages in arrays
module with calls to isInstanceOf
Changelog
3.0.21
toType
function to any
moduleisInstanceOf
function to objects
moduleinstanceof
checks against custom classes with calls to isInstanceOf
MethodNotAllowed
class to app-errors
moduleChangelog
3.0.20
README.md
Changelog
3.0.19
exports._ = '_'; //IDE workaround
) of most modules to (exports._$_ = '_$_';
) to avoid
potential future collisions with lodash
& underscore
Changelog
3.0.18
tries
module:
describeSuccessAndFailureCounts
function to suppress clauses with counts of zeroChangelog
3.0.17
promises
module:
avoidUnhandledPromiseRejectionWarning
function to log each error and its stack trace at WARN-levelavoidUnhandledPromiseRejectionWarnings
function that applies the
avoidUnhandledPromiseRejectionWarning
function to each of the promises it is givenevery
function:
logger
3rd parameter to the every
function to enable use of a custom logger instead of consoleevery
function to call the new avoidUnhandledPromiseRejectionWarnings
function on any unresolved
promises before throwing a CancelledError
flatten
function:
flatten
function to ALWAYS return a Promiseflatten
function to rely on the fixed every
function to avoid UnhandledPromiseRejectionWarnings
instead of calling avoidUnhandledPromiseRejectionWarning
itselfdefaultFlattenOpts
sample options to use with flatten
functiontries
module:
defaultFlattenOpts
sample options to use with flatten
functionflatten
function to cache Success
values & unpacked values instead of Success
instancescopying
module:
defaultCopyOpts
sample options to use with copy
functiondefaultCopyNamedPropertiesOpts
sample options to use with copyNamedProperties
functionmerging
module:
defaultMergeOpts
sample options to use with merge
functiontype-defs
module:
FlattenOpts
& TryFlattenOpts
type definitionsChangelog
3.0.16
errors
module:
cause
constructor parameters & properties to FatalError
, TransientError
& TimeoutError
classespromises
module:
logger
parameters to flatten
& avoidUnhandledPromiseRejectionWarning
functions to enable or
disable TRACE-level logging of their attempts to avoid unhandled promise rejection warnings