react-native-xenon
Version:
A powerful in-app debugging tool for React Native.
18 lines (17 loc) • 436 B
JavaScript
;
import Interceptor from "./Interceptor.js";
export class NetworkInterceptor extends Interceptor {
getCallbacks() {
const callbacks = {};
for (const key in this.handlers) {
callbacks[`${key}Callback`] = this.handlers[key];
}
return callbacks;
}
clearCallbacks() {
for (const key in this.handlers) {
this.handlers[key] = null;
}
}
}
//# sourceMappingURL=NetworkInterceptor.js.map