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

Function convertUnderlyingDefaultOrByteSource

out/cli.cjs:13862–13877  ·  view source on GitHub ↗
(source, context)

Source from the content-addressed store, hash-verified

13860 return stream4;
13861 }
13862 function convertUnderlyingDefaultOrByteSource(source, context) {
13863 assertDictionary(source, context);
13864 const original = source;
13865 const autoAllocateChunkSize = original === null || original === void 0 ? void 0 : original.autoAllocateChunkSize;
13866 const cancel = original === null || original === void 0 ? void 0 : original.cancel;
13867 const pull = original === null || original === void 0 ? void 0 : original.pull;
13868 const start = original === null || original === void 0 ? void 0 : original.start;
13869 const type2 = original === null || original === void 0 ? void 0 : original.type;
13870 return {
13871 autoAllocateChunkSize: autoAllocateChunkSize === void 0 ? void 0 : convertUnsignedLongLongWithEnforceRange(autoAllocateChunkSize, `${context} has member 'autoAllocateChunkSize' that`),
13872 cancel: cancel === void 0 ? void 0 : convertUnderlyingSourceCancelCallback(cancel, original, `${context} has member 'cancel' that`),
13873 pull: pull === void 0 ? void 0 : convertUnderlyingSourcePullCallback(pull, original, `${context} has member 'pull' that`),
13874 start: start === void 0 ? void 0 : convertUnderlyingSourceStartCallback(start, original, `${context} has member 'start' that`),
13875 type: type2 === void 0 ? void 0 : convertReadableStreamType(type2, `${context} has member 'type' that`)
13876 };
13877 }
13878 function convertUnderlyingSourceCancelCallback(fn, original, context) {
13879 assertFunction(fn, context);
13880 return (reason) => promiseCall(fn, original, [reason]);

Callers 1

constructorMethod · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…