mirror of
https://github.com/Onewon/claude-code.git
synced 2026-04-26 06:41:16 +03:00
Add all the original files from the deleted 0.2.8 npm package
This commit is contained in:
37
vendor/sdk/_shims/registry.mjs
vendored
Normal file
37
vendor/sdk/_shims/registry.mjs
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
export let auto = false;
|
||||
export let kind = undefined;
|
||||
export let fetch = undefined;
|
||||
export let Request = undefined;
|
||||
export let Response = undefined;
|
||||
export let Headers = undefined;
|
||||
export let FormData = undefined;
|
||||
export let Blob = undefined;
|
||||
export let File = undefined;
|
||||
export let ReadableStream = undefined;
|
||||
export let getMultipartRequestOptions = undefined;
|
||||
export let getDefaultAgent = undefined;
|
||||
export let fileFromPath = undefined;
|
||||
export let isFsReadStream = undefined;
|
||||
export function setShims(shims, options = { auto: false }) {
|
||||
if (auto) {
|
||||
throw new Error(`you must \`import '@anthropic-ai/sdk/shims/${shims.kind}'\` before importing anything else from @anthropic-ai/sdk`);
|
||||
}
|
||||
if (kind) {
|
||||
throw new Error(`can't \`import '@anthropic-ai/sdk/shims/${shims.kind}'\` after \`import '@anthropic-ai/sdk/shims/${kind}'\``);
|
||||
}
|
||||
auto = options.auto;
|
||||
kind = shims.kind;
|
||||
fetch = shims.fetch;
|
||||
Request = shims.Request;
|
||||
Response = shims.Response;
|
||||
Headers = shims.Headers;
|
||||
FormData = shims.FormData;
|
||||
Blob = shims.Blob;
|
||||
File = shims.File;
|
||||
ReadableStream = shims.ReadableStream;
|
||||
getMultipartRequestOptions = shims.getMultipartRequestOptions;
|
||||
getDefaultAgent = shims.getDefaultAgent;
|
||||
fileFromPath = shims.fileFromPath;
|
||||
isFsReadStream = shims.isFsReadStream;
|
||||
}
|
||||
//# sourceMappingURL=registry.mjs.map
|
||||
Reference in New Issue
Block a user