MCPcopy
hub / github.com/di-sukharev/opencommit / isBlob4

Function isBlob4

out/cli.cjs:6326–6328  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

6324 return obj.constructor.name === "URLSearchParams" || Object.prototype.toString.call(obj) === "[object URLSearchParams]" || typeof obj.sort === "function";
6325 }
6326 function isBlob4(obj) {
6327 return typeof obj === "object" && typeof obj.arrayBuffer === "function" && typeof obj.type === "string" && typeof obj.stream === "function" && typeof obj.constructor === "function" && typeof obj.constructor.name === "string" && /^(Blob|File)$/.test(obj.constructor.name) && /^(Blob|File)$/.test(obj[Symbol.toStringTag]);
6328 }
6329 function clone(instance) {
6330 let p1, p22;
6331 let body = instance.body;

Callers 5

BodyFunction · 0.85
consumeBodyFunction · 0.85
extractContentTypeFunction · 0.85
getTotalBytesFunction · 0.85
writeToStreamFunction · 0.85

Calls 1

testMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…