(object)
| 1204 | return obj && typeof obj === "object" && typeof obj.pipe === "function" && typeof obj.on === "function"; |
| 1205 | } |
| 1206 | function isBlobLike(object) { |
| 1207 | if (object === null) { |
| 1208 | return false; |
| 1209 | } else if (object instanceof Blob2) { |
| 1210 | return true; |
| 1211 | } else if (typeof object !== "object") { |
| 1212 | return false; |
| 1213 | } else { |
| 1214 | const sTag = object[Symbol.toStringTag]; |
| 1215 | return (sTag === "Blob" || sTag === "File") && ("stream" in object && typeof object.stream === "function" || "arrayBuffer" in object && typeof object.arrayBuffer === "function"); |
| 1216 | } |
| 1217 | } |
| 1218 | function buildURL(url, queryParams) { |
| 1219 | if (url.includes("?") || url.includes("#")) { |
| 1220 | throw new Error('Query params cannot be passed when url already contains "?" or "#".'); |
no outgoing calls
no test coverage detected