kubo-rpc-client
Version:
A client library for the Kubo RPC API
14 lines • 520 B
JavaScript
import { objectToCamel } from "../lib/object-to-camel.js";
import { toUrlSearchParams } from "../lib/to-url-search-params.js";
export function createLocal(client) {
return async function* refsLocal(options = {}) {
const res = await client.post('refs/local', {
signal: options.signal,
transform: objectToCamel,
searchParams: toUrlSearchParams(options),
headers: options.headers
});
yield* res.ndjson();
};
}
//# sourceMappingURL=local.js.map