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

Function createDefaultPipeline

out/cli.cjs:77194–77199  ·  view source on GitHub ↗
(endpoint, credential, options = {})

Source from the content-addressed store, hash-verified

77192 } else if (isKeyCredential2(credential)) {
77193 if (!((_c2 = clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.credentials) === null || _c2 === void 0 ? void 0 : _c2.apiKeyHeaderName)) {
77194 throw new Error(`Missing API Key Header Name`);
77195 }
77196 const keyPolicy = keyCredentialAuthenticationPolicy(credential, (_d2 = clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.credentials) === null || _d2 === void 0 ? void 0 : _d2.apiKeyHeaderName);
77197 pipeline.addPolicy(keyPolicy);
77198 }
77199}
77200function createDefaultPipeline(endpoint, credential, options = {}) {
77201 const pipeline = createPipelineFromOptions(options);
77202 pipeline.addPolicy(apiVersionPolicy(options));

Callers 1

getClientFunction · 0.85

Calls 4

apiVersionPolicyFunction · 0.85
addPolicyMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…