MCPcopy
hub / github.com/axios/axios / progressEventDecorator

Function progressEventDecorator

lib/helpers/progressEventReducer.js:37–49  ·  view source on GitHub ↗
(total, throttled)

Source from the content-addressed store, hash-verified

35};
36
37export const progressEventDecorator = (total, throttled) => {
38 const lengthComputable = total != null;
39
40 return [
41 (loaded) =>
42 throttled[0]({
43 lengthComputable,
44 total,
45 loaded,
46 }),
47 throttled[1],
48 ];
49};
50
51export const asyncDecorator =
52 (fn) =>

Callers 2

factoryFunction · 0.90
http.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected