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

Function isBlobLike3

out/cli.cjs:43000–43015  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

42998 fatal: true
42999 });
43000 function isBlobLike3(val) {
43001 if (val instanceof Blob) {
43002 return true;
43003 }
43004 if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
43005 return false;
43006 }
43007 const name = val[Symbol.toStringTag];
43008 if (typeof name !== "string") {
43009 return false;
43010 }
43011 if (name !== "Blob" && name !== "File") {
43012 return false;
43013 }
43014 return "stream" in val && typeof val.stream === "function";
43015 }
43016 }
43017});
43018

Callers 10

bodyLengthFunction · 0.85
processBlobPartsFunction · 0.85
appendMethod · 0.85
setMethod · 0.85
extractBodyFunction · 0.85
schemeFetchFunction · 0.85
sendMethod · 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…