@superfaceai/one-sdk
Advanced tools
Changelog
[0.0.31] - 2021-08-25
Changelog
[0.0.30] - 2021-08-24
pre-bind-and-perform
hookpre-
event abort
resolution does not prevent post-
event from being emittedreason
is propagated and handled in failure policies, implemented FailurePolicyReason
throw
now uses an instance of an Error subclassChangelog
[0.0.29] - 2021-07-20
MetricReporter
class that hooks on various events and reports metrics to Superface backend servicesErrorBase
now contains toString()
method and getter for Symbol.toStringTag
CrossFetchError
is now union of NetworkFetchError
and RequestFetchError
classesSuperfaceClient::getProvider
throws if the provider is not foundSuperfaceClient::getProviderForProfile
no longer takes an optional non-documented preference argumentFailurePolicyRouter::constructor
now takes a function which is called to instantiate policy for specified provider