MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / processFormDataValue

Function processFormDataValue

out/cli.cjs:77326–77328  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

77324}
77325function isRLCFormDataValue(value) {
77326 return typeof value === "string" || value instanceof Uint8Array || // We don't do `instanceof Blob` since we should also accept polyfills of e.g. File in Node.
77327 typeof value.stream === "function";
77328}
77329function isRLCFormDataInput(body) {
77330 return body !== void 0 && body instanceof Object && Object.values(body).every((value) => isRLCFormDataValue(value) || Array.isArray(value) && value.every(isRLCFormDataValue));
77331}

Callers 1

processFormDataFunction · 0.85

Calls 1

createFileFunction · 0.85

Tested by

no test coverage detected