resources/lib/fetch-polyfill/fetch.umd.js
File fetch.umd.js
has 515 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.WHATWGFetch = {})));
}(this, (function (exports) { 'use strict';
Function Body
has 93 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Body() {
this.bodyUsed = false;
this._initBody = function(body) {
/*
Function fetch
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function fetch(input, init) {
return new Promise(function(resolve, reject) {
var request = new Request(input, init);
if (request.signal && request.signal.aborted) {
Function Request
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Request(input, options) {
if (!(this instanceof Request)) {
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.')
}
Function _initBody
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this._initBody = function(body) {
/*
fetch-mock wraps the Response object in an ES6 Proxy to
provide useful test harness features such as flush. However, on
ES5 browsers without fetch or Proxy support pollyfills must be used;