@sddxzxqy/core-js-sdk
Version:
Official SDK of OCP Auth
2 lines (1 loc) • 369 B
JavaScript
var t=function(){function t(){this.handlers=[]}return t.prototype.use=function(t){return this.handlers.push(t),this.handlers.length-1},t.prototype.eject=function(t){this.handlers[t]=null},t.prototype.clear=function(){this.handlers=[]},t.prototype.forEach=function(t){this.handlers.forEach((function(n){return n&&t.call(null,n)}))},t}();export{t as InterceptorManager};