(resource)
| 55356 | }; |
| 55357 | } |
| 55358 | function getResourceContentLength(resource) { |
| 55359 | if ((0, _isType.isResponse)(resource)) return resource.headers["content-length"] || -1; |
| 55360 | if ((0, _isType.isBlob)(resource)) return resource.size; |
| 55361 | if (typeof resource === "string") return resource.length; |
| 55362 | if (resource instanceof ArrayBuffer) return resource.byteLength; |
| 55363 | if (ArrayBuffer.isView(resource)) return resource.byteLength; |
| 55364 | return -1; |
| 55365 | } |
| 55366 | function stripQueryString(url) { |
| 55367 | return url.replace(QUERY_STRING_PATTERN, ""); |
| 55368 | } |
nothing calls this directly
no outgoing calls
no test coverage detected