modelmix 2.5.8 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -4
- package/demo/demo.mjs +1 -1
- package/demo/lmstudio.mjs +1 -1
- package/demo/parallel.mjs +22 -21
- package/index.js +31 -7
- package/package.json +5 -4
- package/demo/node_modules/.package-lock.json +0 -254
- package/demo/node_modules/@anthropic-ai/sdk/CHANGELOG.md +0 -859
- package/demo/node_modules/@anthropic-ai/sdk/LICENSE +0 -8
- package/demo/node_modules/@anthropic-ai/sdk/README.md +0 -424
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.d.ts +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.js +0 -16
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.mjs +0 -12
- package/demo/node_modules/@anthropic-ai/sdk/_shims/MultipartBody.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/README.md +0 -46
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.js +0 -21
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-bun.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.js +0 -21
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime-node.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.js +0 -21
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/runtime.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.js +0 -21
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types-node.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.d.ts +0 -101
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/auto/types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.d.ts +0 -6
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.js +0 -14
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.mjs +0 -10
- package/demo/node_modules/@anthropic-ai/sdk/_shims/bun-runtime.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/index.d.ts +0 -81
- package/demo/node_modules/@anthropic-ai/sdk/_shims/index.js +0 -13
- package/demo/node_modules/@anthropic-ai/sdk/_shims/index.mjs +0 -7
- package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.d.ts +0 -12
- package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/manual-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.d.ts +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.js +0 -90
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.mjs +0 -56
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-runtime.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.d.ts +0 -42
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/node-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.d.ts +0 -37
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.js +0 -41
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.mjs +0 -37
- package/demo/node_modules/@anthropic-ai/sdk/_shims/registry.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.d.ts +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.js +0 -78
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.mjs +0 -71
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-runtime.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.d.ts +0 -83
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/_shims/web-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/core.d.ts +0 -239
- package/demo/node_modules/@anthropic-ai/sdk/core.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/core.js +0 -879
- package/demo/node_modules/@anthropic-ai/sdk/core.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/core.mjs +0 -848
- package/demo/node_modules/@anthropic-ai/sdk/core.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/error.d.ts +0 -53
- package/demo/node_modules/@anthropic-ai/sdk/error.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/error.js +0 -143
- package/demo/node_modules/@anthropic-ai/sdk/error.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/error.mjs +0 -127
- package/demo/node_modules/@anthropic-ai/sdk/error.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/index.d.mts +0 -147
- package/demo/node_modules/@anthropic-ai/sdk/index.d.ts +0 -147
- package/demo/node_modules/@anthropic-ai/sdk/index.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/index.js +0 -149
- package/demo/node_modules/@anthropic-ai/sdk/index.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/index.mjs +0 -121
- package/demo/node_modules/@anthropic-ai/sdk/index.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +0 -94
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +0 -436
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +0 -432
- package/demo/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/package.json +0 -104
- package/demo/node_modules/@anthropic-ai/sdk/resource.d.ts +0 -6
- package/demo/node_modules/@anthropic-ai/sdk/resource.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resource.js +0 -11
- package/demo/node_modules/@anthropic-ai/sdk/resource.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resource.mjs +0 -7
- package/demo/node_modules/@anthropic-ai/sdk/resource.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +0 -40
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +0 -13
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.js +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.d.ts +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.js +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.mjs +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/index.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.d.ts +0 -462
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.js +0 -20
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.mjs +0 -16
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/messages.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.d.ts +0 -19
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.js +0 -40
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.mjs +0 -13
- package/demo/node_modules/@anthropic-ai/sdk/resources/beta/tools/tools.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +0 -184
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.js +0 -19
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.mjs +0 -15
- package/demo/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.d.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.js +0 -11
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.mjs +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.d.ts +0 -619
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.js +0 -28
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.mjs +0 -23
- package/demo/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.js +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/resources/top-level.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.d.ts +0 -29
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.js +0 -31
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.mjs +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/shims/node.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.d.ts +0 -26
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.js +0 -31
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.mjs +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/shims/web.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/MultipartBody.ts +0 -9
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/README.md +0 -46
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime-bun.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime-node.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/runtime.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types-node.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.d.ts +0 -101
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/auto/types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/bun-runtime.ts +0 -14
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.d.ts +0 -81
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.js +0 -13
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/index.mjs +0 -7
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.d.ts +0 -12
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/manual-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-runtime.ts +0 -83
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.d.ts +0 -42
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/node-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/registry.ts +0 -67
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-runtime.ts +0 -103
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.d.ts +0 -83
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.js +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/_shims/web-types.mjs +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/core.ts +0 -1162
- package/demo/node_modules/@anthropic-ai/sdk/src/error.ts +0 -146
- package/demo/node_modules/@anthropic-ai/sdk/src/index.ts +0 -264
- package/demo/node_modules/@anthropic-ai/sdk/src/lib/.keep +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +0 -535
- package/demo/node_modules/@anthropic-ai/sdk/src/resource.ts +0 -11
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +0 -12
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +0 -4
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/index.ts +0 -16
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/messages.ts +0 -531
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/beta/tools/tools.ts +0 -22
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +0 -223
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/index.ts +0 -33
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +0 -729
- package/demo/node_modules/@anthropic-ai/sdk/src/resources/top-level.ts +0 -3
- package/demo/node_modules/@anthropic-ai/sdk/src/shims/node.ts +0 -50
- package/demo/node_modules/@anthropic-ai/sdk/src/shims/web.ts +0 -50
- package/demo/node_modules/@anthropic-ai/sdk/src/streaming.ts +0 -509
- package/demo/node_modules/@anthropic-ai/sdk/src/tsconfig.json +0 -11
- package/demo/node_modules/@anthropic-ai/sdk/src/uploads.ts +0 -248
- package/demo/node_modules/@anthropic-ai/sdk/src/version.ts +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/streaming.d.ts +0 -41
- package/demo/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/streaming.js +0 -431
- package/demo/node_modules/@anthropic-ai/sdk/streaming.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/streaming.mjs +0 -424
- package/demo/node_modules/@anthropic-ai/sdk/streaming.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/uploads.d.ts +0 -75
- package/demo/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/uploads.js +0 -165
- package/demo/node_modules/@anthropic-ai/sdk/uploads.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/uploads.mjs +0 -152
- package/demo/node_modules/@anthropic-ai/sdk/uploads.mjs.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/version.d.ts +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/version.d.ts.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/version.js +0 -5
- package/demo/node_modules/@anthropic-ai/sdk/version.js.map +0 -1
- package/demo/node_modules/@anthropic-ai/sdk/version.mjs +0 -2
- package/demo/node_modules/@anthropic-ai/sdk/version.mjs.map +0 -1
- package/demo/node_modules/@types/node/LICENSE +0 -21
- package/demo/node_modules/@types/node/README.md +0 -15
- package/demo/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/demo/node_modules/@types/node/assert.d.ts +0 -985
- package/demo/node_modules/@types/node/async_hooks.d.ts +0 -522
- package/demo/node_modules/@types/node/buffer.d.ts +0 -2353
- package/demo/node_modules/@types/node/child_process.d.ts +0 -1544
- package/demo/node_modules/@types/node/cluster.d.ts +0 -578
- package/demo/node_modules/@types/node/console.d.ts +0 -452
- package/demo/node_modules/@types/node/constants.d.ts +0 -19
- package/demo/node_modules/@types/node/crypto.d.ts +0 -4457
- package/demo/node_modules/@types/node/dgram.d.ts +0 -596
- package/demo/node_modules/@types/node/diagnostics_channel.d.ts +0 -546
- package/demo/node_modules/@types/node/dns/promises.d.ts +0 -473
- package/demo/node_modules/@types/node/dns.d.ts +0 -853
- package/demo/node_modules/@types/node/dom-events.d.ts +0 -124
- package/demo/node_modules/@types/node/domain.d.ts +0 -170
- package/demo/node_modules/@types/node/events.d.ts +0 -819
- package/demo/node_modules/@types/node/fs/promises.d.ts +0 -1205
- package/demo/node_modules/@types/node/fs.d.ts +0 -4237
- package/demo/node_modules/@types/node/globals.d.ts +0 -377
- package/demo/node_modules/@types/node/globals.global.d.ts +0 -1
- package/demo/node_modules/@types/node/http.d.ts +0 -1803
- package/demo/node_modules/@types/node/http2.d.ts +0 -2392
- package/demo/node_modules/@types/node/https.d.ts +0 -544
- package/demo/node_modules/@types/node/index.d.ts +0 -88
- package/demo/node_modules/@types/node/inspector.d.ts +0 -2738
- package/demo/node_modules/@types/node/module.d.ts +0 -298
- package/demo/node_modules/@types/node/net.d.ts +0 -918
- package/demo/node_modules/@types/node/os.d.ts +0 -473
- package/demo/node_modules/@types/node/package.json +0 -222
- package/demo/node_modules/@types/node/path.d.ts +0 -191
- package/demo/node_modules/@types/node/perf_hooks.d.ts +0 -626
- package/demo/node_modules/@types/node/process.d.ts +0 -1548
- package/demo/node_modules/@types/node/punycode.d.ts +0 -117
- package/demo/node_modules/@types/node/querystring.d.ts +0 -141
- package/demo/node_modules/@types/node/readline/promises.d.ts +0 -143
- package/demo/node_modules/@types/node/readline.d.ts +0 -666
- package/demo/node_modules/@types/node/repl.d.ts +0 -430
- package/demo/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/demo/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/demo/node_modules/@types/node/stream/web.d.ts +0 -352
- package/demo/node_modules/@types/node/stream.d.ts +0 -1731
- package/demo/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/demo/node_modules/@types/node/test.d.ts +0 -1113
- package/demo/node_modules/@types/node/timers/promises.d.ts +0 -93
- package/demo/node_modules/@types/node/timers.d.ts +0 -126
- package/demo/node_modules/@types/node/tls.d.ts +0 -1203
- package/demo/node_modules/@types/node/trace_events.d.ts +0 -171
- package/demo/node_modules/@types/node/tty.d.ts +0 -206
- package/demo/node_modules/@types/node/url.d.ts +0 -954
- package/demo/node_modules/@types/node/util.d.ts +0 -2075
- package/demo/node_modules/@types/node/v8.d.ts +0 -753
- package/demo/node_modules/@types/node/vm.d.ts +0 -667
- package/demo/node_modules/@types/node/wasi.d.ts +0 -160
- package/demo/node_modules/@types/node/worker_threads.d.ts +0 -692
- package/demo/node_modules/@types/node/zlib.d.ts +0 -517
- package/demo/node_modules/@types/node-fetch/LICENSE +0 -21
- package/demo/node_modules/@types/node-fetch/README.md +0 -15
- package/demo/node_modules/@types/node-fetch/externals.d.ts +0 -32
- package/demo/node_modules/@types/node-fetch/index.d.ts +0 -238
- package/demo/node_modules/@types/node-fetch/package.json +0 -83
- package/demo/node_modules/abort-controller/LICENSE +0 -21
- package/demo/node_modules/abort-controller/README.md +0 -98
- package/demo/node_modules/abort-controller/browser.js +0 -13
- package/demo/node_modules/abort-controller/browser.mjs +0 -11
- package/demo/node_modules/abort-controller/package.json +0 -97
- package/demo/node_modules/abort-controller/polyfill.js +0 -21
- package/demo/node_modules/abort-controller/polyfill.mjs +0 -19
- package/demo/node_modules/agentkeepalive/History.md +0 -268
- package/demo/node_modules/agentkeepalive/LICENSE +0 -23
- package/demo/node_modules/agentkeepalive/README.md +0 -256
- package/demo/node_modules/agentkeepalive/browser.js +0 -5
- package/demo/node_modules/agentkeepalive/index.d.ts +0 -65
- package/demo/node_modules/agentkeepalive/index.js +0 -5
- package/demo/node_modules/agentkeepalive/lib/agent.js +0 -402
- package/demo/node_modules/agentkeepalive/lib/constants.js +0 -14
- package/demo/node_modules/agentkeepalive/lib/https_agent.js +0 -51
- package/demo/node_modules/agentkeepalive/package.json +0 -56
- package/demo/node_modules/asynckit/LICENSE +0 -21
- package/demo/node_modules/asynckit/README.md +0 -233
- package/demo/node_modules/asynckit/bench.js +0 -76
- package/demo/node_modules/asynckit/index.js +0 -6
- package/demo/node_modules/asynckit/lib/abort.js +0 -29
- package/demo/node_modules/asynckit/lib/async.js +0 -34
- package/demo/node_modules/asynckit/lib/defer.js +0 -26
- package/demo/node_modules/asynckit/lib/iterate.js +0 -75
- package/demo/node_modules/asynckit/lib/readable_asynckit.js +0 -91
- package/demo/node_modules/asynckit/lib/readable_parallel.js +0 -25
- package/demo/node_modules/asynckit/lib/readable_serial.js +0 -25
- package/demo/node_modules/asynckit/lib/readable_serial_ordered.js +0 -29
- package/demo/node_modules/asynckit/lib/state.js +0 -37
- package/demo/node_modules/asynckit/lib/streamify.js +0 -141
- package/demo/node_modules/asynckit/lib/terminator.js +0 -29
- package/demo/node_modules/asynckit/package.json +0 -63
- package/demo/node_modules/asynckit/parallel.js +0 -43
- package/demo/node_modules/asynckit/serial.js +0 -17
- package/demo/node_modules/asynckit/serialOrdered.js +0 -75
- package/demo/node_modules/asynckit/stream.js +0 -21
- package/demo/node_modules/combined-stream/License +0 -19
- package/demo/node_modules/combined-stream/Readme.md +0 -138
- package/demo/node_modules/combined-stream/lib/combined_stream.js +0 -208
- package/demo/node_modules/combined-stream/package.json +0 -25
- package/demo/node_modules/combined-stream/yarn.lock +0 -17
- package/demo/node_modules/delayed-stream/License +0 -19
- package/demo/node_modules/delayed-stream/Makefile +0 -7
- package/demo/node_modules/delayed-stream/Readme.md +0 -141
- package/demo/node_modules/delayed-stream/lib/delayed_stream.js +0 -107
- package/demo/node_modules/delayed-stream/package.json +0 -27
- package/demo/node_modules/dotenv/CHANGELOG.md +0 -475
- package/demo/node_modules/dotenv/LICENSE +0 -23
- package/demo/node_modules/dotenv/README-es.md +0 -448
- package/demo/node_modules/dotenv/README.md +0 -728
- package/demo/node_modules/dotenv/config.d.ts +0 -1
- package/demo/node_modules/dotenv/config.js +0 -9
- package/demo/node_modules/dotenv/lib/cli-options.js +0 -11
- package/demo/node_modules/dotenv/lib/env-options.js +0 -24
- package/demo/node_modules/dotenv/lib/main.d.ts +0 -153
- package/demo/node_modules/dotenv/lib/main.js +0 -361
- package/demo/node_modules/dotenv/package.json +0 -65
- package/demo/node_modules/event-target-shim/LICENSE +0 -22
- package/demo/node_modules/event-target-shim/README.md +0 -293
- package/demo/node_modules/event-target-shim/index.d.ts +0 -399
- package/demo/node_modules/event-target-shim/package.json +0 -82
- package/demo/node_modules/form-data/License +0 -19
- package/demo/node_modules/form-data/README.md.bak +0 -358
- package/demo/node_modules/form-data/Readme.md +0 -358
- package/demo/node_modules/form-data/index.d.ts +0 -62
- package/demo/node_modules/form-data/lib/browser.js +0 -2
- package/demo/node_modules/form-data/lib/form_data.js +0 -501
- package/demo/node_modules/form-data/lib/populate.js +0 -10
- package/demo/node_modules/form-data/package.json +0 -68
- package/demo/node_modules/form-data-encoder/@type/FileLike.d.ts +0 -23
- package/demo/node_modules/form-data-encoder/@type/FormDataEncoder.d.ts +0 -160
- package/demo/node_modules/form-data-encoder/@type/FormDataLike.d.ts +0 -40
- package/demo/node_modules/form-data-encoder/@type/index.d.ts +0 -5
- package/demo/node_modules/form-data-encoder/@type/util/createBoundary.d.ts +0 -13
- package/demo/node_modules/form-data-encoder/@type/util/escapeName.d.ts +0 -11
- package/demo/node_modules/form-data-encoder/@type/util/isFileLike.d.ts +0 -28
- package/demo/node_modules/form-data-encoder/@type/util/isFormData.d.ts +0 -15
- package/demo/node_modules/form-data-encoder/@type/util/isFunction.d.ts +0 -7
- package/demo/node_modules/form-data-encoder/@type/util/isPlainObject.d.ts +0 -2
- package/demo/node_modules/form-data-encoder/@type/util/normalizeValue.d.ts +0 -11
- package/demo/node_modules/form-data-encoder/lib/cjs/FileLike.js +0 -2
- package/demo/node_modules/form-data-encoder/lib/cjs/FormDataEncoder.js +0 -126
- package/demo/node_modules/form-data-encoder/lib/cjs/FormDataLike.js +0 -2
- package/demo/node_modules/form-data-encoder/lib/cjs/index.js +0 -17
- package/demo/node_modules/form-data-encoder/lib/cjs/package.json +0 -3
- package/demo/node_modules/form-data-encoder/lib/cjs/util/createBoundary.js +0 -12
- package/demo/node_modules/form-data-encoder/lib/cjs/util/escapeName.js +0 -7
- package/demo/node_modules/form-data-encoder/lib/cjs/util/isFileLike.js +0 -16
- package/demo/node_modules/form-data-encoder/lib/cjs/util/isFormData.js +0 -16
- package/demo/node_modules/form-data-encoder/lib/cjs/util/isFunction.js +0 -4
- package/demo/node_modules/form-data-encoder/lib/cjs/util/isPlainObject.js +0 -15
- package/demo/node_modules/form-data-encoder/lib/cjs/util/normalizeValue.js +0 -11
- package/demo/node_modules/form-data-encoder/lib/esm/FileLike.js +0 -1
- package/demo/node_modules/form-data-encoder/lib/esm/FormDataEncoder.js +0 -119
- package/demo/node_modules/form-data-encoder/lib/esm/FormDataLike.js +0 -1
- package/demo/node_modules/form-data-encoder/lib/esm/index.js +0 -5
- package/demo/node_modules/form-data-encoder/lib/esm/package.json +0 -3
- package/demo/node_modules/form-data-encoder/lib/esm/util/createBoundary.js +0 -10
- package/demo/node_modules/form-data-encoder/lib/esm/util/escapeName.js +0 -5
- package/demo/node_modules/form-data-encoder/lib/esm/util/isFileLike.js +0 -9
- package/demo/node_modules/form-data-encoder/lib/esm/util/isFormData.js +0 -9
- package/demo/node_modules/form-data-encoder/lib/esm/util/isFunction.js +0 -2
- package/demo/node_modules/form-data-encoder/lib/esm/util/isPlainObject.js +0 -13
- package/demo/node_modules/form-data-encoder/lib/esm/util/normalizeValue.js +0 -9
- package/demo/node_modules/form-data-encoder/license +0 -21
- package/demo/node_modules/form-data-encoder/package.json +0 -63
- package/demo/node_modules/form-data-encoder/readme.md +0 -366
- package/demo/node_modules/formdata-node/@type/Blob.d.ts +0 -66
- package/demo/node_modules/formdata-node/@type/BlobPart.d.ts +0 -2
- package/demo/node_modules/formdata-node/@type/File.d.ts +0 -53
- package/demo/node_modules/formdata-node/@type/FormData.d.ts +0 -105
- package/demo/node_modules/formdata-node/@type/blobHelpers.d.ts +0 -9
- package/demo/node_modules/formdata-node/@type/browser.d.ts +0 -10
- package/demo/node_modules/formdata-node/@type/deprecateConstructorEntries.d.ts +0 -1
- package/demo/node_modules/formdata-node/@type/fileFromPath.d.ts +0 -55
- package/demo/node_modules/formdata-node/@type/index.d.ts +0 -3
- package/demo/node_modules/formdata-node/@type/isBlob.d.ts +0 -2
- package/demo/node_modules/formdata-node/@type/isFile.d.ts +0 -7
- package/demo/node_modules/formdata-node/@type/isFunction.d.ts +0 -1
- package/demo/node_modules/formdata-node/@type/isPlainObject.d.ts +0 -2
- package/demo/node_modules/formdata-node/lib/cjs/Blob.js +0 -122
- package/demo/node_modules/formdata-node/lib/cjs/BlobPart.js +0 -2
- package/demo/node_modules/formdata-node/lib/cjs/File.js +0 -52
- package/demo/node_modules/formdata-node/lib/cjs/FormData.js +0 -148
- package/demo/node_modules/formdata-node/lib/cjs/blobHelpers.js +0 -80
- package/demo/node_modules/formdata-node/lib/cjs/browser.js +0 -13
- package/demo/node_modules/formdata-node/lib/cjs/deprecateConstructorEntries.js +0 -6
- package/demo/node_modules/formdata-node/lib/cjs/fileFromPath.js +0 -97
- package/demo/node_modules/formdata-node/lib/cjs/index.js +0 -15
- package/demo/node_modules/formdata-node/lib/cjs/isBlob.js +0 -6
- package/demo/node_modules/formdata-node/lib/cjs/isFile.js +0 -6
- package/demo/node_modules/formdata-node/lib/cjs/isFunction.js +0 -5
- package/demo/node_modules/formdata-node/lib/cjs/isPlainObject.js +0 -15
- package/demo/node_modules/formdata-node/lib/cjs/package.json +0 -3
- package/demo/node_modules/formdata-node/lib/esm/Blob.js +0 -118
- package/demo/node_modules/formdata-node/lib/esm/BlobPart.js +0 -1
- package/demo/node_modules/formdata-node/lib/esm/File.js +0 -48
- package/demo/node_modules/formdata-node/lib/esm/FormData.js +0 -144
- package/demo/node_modules/formdata-node/lib/esm/blobHelpers.js +0 -75
- package/demo/node_modules/formdata-node/lib/esm/browser.js +0 -10
- package/demo/node_modules/formdata-node/lib/esm/deprecateConstructorEntries.js +0 -3
- package/demo/node_modules/formdata-node/lib/esm/fileFromPath.js +0 -79
- package/demo/node_modules/formdata-node/lib/esm/index.js +0 -3
- package/demo/node_modules/formdata-node/lib/esm/isBlob.js +0 -2
- package/demo/node_modules/formdata-node/lib/esm/isFile.js +0 -2
- package/demo/node_modules/formdata-node/lib/esm/isFunction.js +0 -1
- package/demo/node_modules/formdata-node/lib/esm/isPlainObject.js +0 -13
- package/demo/node_modules/formdata-node/lib/esm/package.json +0 -3
- package/demo/node_modules/formdata-node/lib/node-domexception.d.ts +0 -5
- package/demo/node_modules/formdata-node/license +0 -21
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/LICENSE +0 -22
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/README.md +0 -135
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/es5/package.json +0 -6
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/package.json +0 -101
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/polyfill/es5/package.json +0 -5
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/polyfill/package.json +0 -5
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/polyfill.d.ts +0 -62
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/ponyfill.d.ts +0 -775
- package/demo/node_modules/formdata-node/node_modules/web-streams-polyfill/types/tsdoc-metadata.json +0 -11
- package/demo/node_modules/formdata-node/package.json +0 -94
- package/demo/node_modules/formdata-node/readme.md +0 -444
- package/demo/node_modules/humanize-ms/History.md +0 -25
- package/demo/node_modules/humanize-ms/LICENSE +0 -17
- package/demo/node_modules/humanize-ms/README.md +0 -40
- package/demo/node_modules/humanize-ms/index.js +0 -24
- package/demo/node_modules/humanize-ms/package.json +0 -37
- package/demo/node_modules/mime-db/HISTORY.md +0 -507
- package/demo/node_modules/mime-db/LICENSE +0 -23
- package/demo/node_modules/mime-db/README.md +0 -100
- package/demo/node_modules/mime-db/db.json +0 -8519
- package/demo/node_modules/mime-db/index.js +0 -12
- package/demo/node_modules/mime-db/package.json +0 -60
- package/demo/node_modules/mime-types/HISTORY.md +0 -397
- package/demo/node_modules/mime-types/LICENSE +0 -23
- package/demo/node_modules/mime-types/README.md +0 -113
- package/demo/node_modules/mime-types/index.js +0 -188
- package/demo/node_modules/mime-types/package.json +0 -44
- package/demo/node_modules/ms/index.js +0 -162
- package/demo/node_modules/ms/license.md +0 -21
- package/demo/node_modules/ms/package.json +0 -38
- package/demo/node_modules/ms/readme.md +0 -59
- package/demo/node_modules/node-domexception/.history/README_20210527203617.md +0 -2
- package/demo/node_modules/node-domexception/.history/README_20210527212714.md +0 -41
- package/demo/node_modules/node-domexception/.history/README_20210527213345.md +0 -36
- package/demo/node_modules/node-domexception/.history/README_20210527213411.md +0 -36
- package/demo/node_modules/node-domexception/.history/README_20210527213803.md +0 -36
- package/demo/node_modules/node-domexception/.history/README_20210527214323.md +0 -38
- package/demo/node_modules/node-domexception/.history/README_20210527214408.md +0 -38
- package/demo/node_modules/node-domexception/.history/index_20210527203842.js +0 -0
- package/demo/node_modules/node-domexception/.history/index_20210527203947.js +0 -8
- package/demo/node_modules/node-domexception/.history/index_20210527204259.js +0 -9
- package/demo/node_modules/node-domexception/.history/index_20210527204418.js +0 -9
- package/demo/node_modules/node-domexception/.history/index_20210527204756.js +0 -11
- package/demo/node_modules/node-domexception/.history/index_20210527204833.js +0 -11
- package/demo/node_modules/node-domexception/.history/index_20210527211208.js +0 -15
- package/demo/node_modules/node-domexception/.history/index_20210527211248.js +0 -15
- package/demo/node_modules/node-domexception/.history/index_20210527212722.js +0 -23
- package/demo/node_modules/node-domexception/.history/index_20210527212731.js +0 -23
- package/demo/node_modules/node-domexception/.history/index_20210527212746.js +0 -15
- package/demo/node_modules/node-domexception/.history/index_20210527212900.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527213022.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527213822.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527213843.js +0 -17
- package/demo/node_modules/node-domexception/.history/index_20210527213852.js +0 -17
- package/demo/node_modules/node-domexception/.history/index_20210527213910.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527214034.js +0 -16
- package/demo/node_modules/node-domexception/.history/index_20210527214643.js +0 -41
- package/demo/node_modules/node-domexception/.history/index_20210527214654.js +0 -41
- package/demo/node_modules/node-domexception/.history/index_20210527214700.js +0 -16
- package/demo/node_modules/node-domexception/.history/package_20210527203733.json +0 -19
- package/demo/node_modules/node-domexception/.history/package_20210527203825.json +0 -16
- package/demo/node_modules/node-domexception/.history/package_20210527204621.json +0 -19
- package/demo/node_modules/node-domexception/.history/package_20210527204913.json +0 -25
- package/demo/node_modules/node-domexception/.history/package_20210527204925.json +0 -25
- package/demo/node_modules/node-domexception/.history/package_20210527205145.json +0 -29
- package/demo/node_modules/node-domexception/.history/package_20210527205156.json +0 -29
- package/demo/node_modules/node-domexception/.history/test_20210527205603.js +0 -0
- package/demo/node_modules/node-domexception/.history/test_20210527205957.js +0 -3
- package/demo/node_modules/node-domexception/.history/test_20210527210021.js +0 -3
- package/demo/node_modules/node-domexception/LICENSE +0 -21
- package/demo/node_modules/node-domexception/README.md +0 -46
- package/demo/node_modules/node-domexception/index.js +0 -16
- package/demo/node_modules/node-domexception/package.json +0 -29
- package/demo/node_modules/node-fetch/LICENSE.md +0 -22
- package/demo/node_modules/node-fetch/README.md +0 -634
- package/demo/node_modules/node-fetch/browser.js +0 -25
- package/demo/node_modules/node-fetch/lib/index.es.js +0 -1777
- package/demo/node_modules/node-fetch/lib/index.js +0 -1787
- package/demo/node_modules/node-fetch/lib/index.mjs +0 -1775
- package/demo/node_modules/node-fetch/package.json +0 -89
- package/demo/node_modules/tr46/index.js +0 -193
- package/demo/node_modules/tr46/lib/.gitkeep +0 -0
- package/demo/node_modules/tr46/lib/mappingTable.json +0 -1
- package/demo/node_modules/tr46/package.json +0 -31
- package/demo/node_modules/undici-types/README.md +0 -6
- package/demo/node_modules/undici-types/agent.d.ts +0 -31
- package/demo/node_modules/undici-types/api.d.ts +0 -43
- package/demo/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/demo/node_modules/undici-types/cache.d.ts +0 -36
- package/demo/node_modules/undici-types/client.d.ts +0 -97
- package/demo/node_modules/undici-types/connector.d.ts +0 -34
- package/demo/node_modules/undici-types/content-type.d.ts +0 -21
- package/demo/node_modules/undici-types/cookies.d.ts +0 -28
- package/demo/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/demo/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/demo/node_modules/undici-types/errors.d.ts +0 -128
- package/demo/node_modules/undici-types/fetch.d.ts +0 -209
- package/demo/node_modules/undici-types/file.d.ts +0 -39
- package/demo/node_modules/undici-types/filereader.d.ts +0 -54
- package/demo/node_modules/undici-types/formdata.d.ts +0 -108
- package/demo/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/demo/node_modules/undici-types/global-origin.d.ts +0 -7
- package/demo/node_modules/undici-types/handlers.d.ts +0 -9
- package/demo/node_modules/undici-types/header.d.ts +0 -4
- package/demo/node_modules/undici-types/index.d.ts +0 -63
- package/demo/node_modules/undici-types/interceptors.d.ts +0 -5
- package/demo/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/demo/node_modules/undici-types/mock-client.d.ts +0 -25
- package/demo/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/demo/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/demo/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/demo/node_modules/undici-types/package.json +0 -55
- package/demo/node_modules/undici-types/patch.d.ts +0 -71
- package/demo/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/demo/node_modules/undici-types/pool.d.ts +0 -28
- package/demo/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/demo/node_modules/undici-types/readable.d.ts +0 -61
- package/demo/node_modules/undici-types/webidl.d.ts +0 -220
- package/demo/node_modules/undici-types/websocket.d.ts +0 -131
- package/demo/node_modules/web-streams-polyfill/LICENSE +0 -22
- package/demo/node_modules/web-streams-polyfill/README.md +0 -110
- package/demo/node_modules/web-streams-polyfill/es2018/package.json +0 -14
- package/demo/node_modules/web-streams-polyfill/es6/package.json +0 -14
- package/demo/node_modules/web-streams-polyfill/package.json +0 -83
- package/demo/node_modules/web-streams-polyfill/ponyfill/es2018/package.json +0 -13
- package/demo/node_modules/web-streams-polyfill/ponyfill/es6/package.json +0 -13
- package/demo/node_modules/web-streams-polyfill/ponyfill/package.json +0 -13
- package/demo/node_modules/webidl-conversions/LICENSE.md +0 -12
- package/demo/node_modules/webidl-conversions/README.md +0 -53
- package/demo/node_modules/webidl-conversions/lib/index.js +0 -189
- package/demo/node_modules/webidl-conversions/package.json +0 -23
- package/demo/node_modules/whatwg-url/LICENSE.txt +0 -21
- package/demo/node_modules/whatwg-url/README.md +0 -67
- package/demo/node_modules/whatwg-url/lib/URL-impl.js +0 -200
- package/demo/node_modules/whatwg-url/lib/URL.js +0 -196
- package/demo/node_modules/whatwg-url/lib/public-api.js +0 -11
- package/demo/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
- package/demo/node_modules/whatwg-url/lib/utils.js +0 -20
- package/demo/node_modules/whatwg-url/package.json +0 -32
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-node.d.ts","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,eAAe,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/**
|
|
18
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
19
|
-
*/
|
|
20
|
-
__exportStar(require("../node-types.js"), exports);
|
|
21
|
-
//# sourceMappingURL=types-node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-node.js","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,mDAA8B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types-node.mjs","sourceRoot":"","sources":["../../src/_shims/auto/types-node.ts"],"names":[],"mappings":""}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
export type Agent = any;
|
|
5
|
-
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
declare const _fetch: unknown extends typeof fetch ? never : typeof fetch;
|
|
8
|
-
export { _fetch as fetch };
|
|
9
|
-
|
|
10
|
-
// @ts-ignore
|
|
11
|
-
type _Request = unknown extends Request ? never : Request;
|
|
12
|
-
export { _Request as Request };
|
|
13
|
-
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
type _RequestInfo = unknown extends RequestInfo ? never : RequestInfo;
|
|
16
|
-
export { type _RequestInfo as RequestInfo };
|
|
17
|
-
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
type _RequestInit = unknown extends RequestInit ? never : RequestInit;
|
|
20
|
-
export { type _RequestInit as RequestInit };
|
|
21
|
-
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
type _Response = unknown extends Response ? never : Response;
|
|
24
|
-
export { _Response as Response };
|
|
25
|
-
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
type _ResponseInit = unknown extends ResponseInit ? never : ResponseInit;
|
|
28
|
-
export { type _ResponseInit as ResponseInit };
|
|
29
|
-
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
type _ResponseType = unknown extends ResponseType ? never : ResponseType;
|
|
32
|
-
export { type _ResponseType as ResponseType };
|
|
33
|
-
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
type _BodyInit = unknown extends BodyInit ? never : BodyInit;
|
|
36
|
-
export { type _BodyInit as BodyInit };
|
|
37
|
-
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
type _Headers = unknown extends Headers ? never : Headers;
|
|
40
|
-
export { _Headers as Headers };
|
|
41
|
-
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
type _HeadersInit = unknown extends HeadersInit ? never : HeadersInit;
|
|
44
|
-
export { type _HeadersInit as HeadersInit };
|
|
45
|
-
|
|
46
|
-
type EndingType = 'native' | 'transparent';
|
|
47
|
-
|
|
48
|
-
export interface BlobPropertyBag {
|
|
49
|
-
endings?: EndingType;
|
|
50
|
-
type?: string;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export interface FilePropertyBag extends BlobPropertyBag {
|
|
54
|
-
lastModified?: number;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
|
|
58
|
-
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
type _FormData = unknown extends FormData ? never : FormData;
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
declare const _FormData: unknown extends typeof FormData ? never : typeof FormData;
|
|
63
|
-
export { _FormData as FormData };
|
|
64
|
-
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
type _File = unknown extends File ? never : File;
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
declare const _File: unknown extends typeof File ? never : typeof File;
|
|
69
|
-
export { _File as File };
|
|
70
|
-
|
|
71
|
-
// @ts-ignore
|
|
72
|
-
type _Blob = unknown extends Blob ? never : Blob;
|
|
73
|
-
// @ts-ignore
|
|
74
|
-
declare const _Blob: unknown extends typeof Blob ? never : typeof Blob;
|
|
75
|
-
export { _Blob as Blob };
|
|
76
|
-
|
|
77
|
-
export declare class Readable {
|
|
78
|
-
readable: boolean;
|
|
79
|
-
readonly readableEnded: boolean;
|
|
80
|
-
readonly readableFlowing: boolean | null;
|
|
81
|
-
readonly readableHighWaterMark: number;
|
|
82
|
-
readonly readableLength: number;
|
|
83
|
-
readonly readableObjectMode: boolean;
|
|
84
|
-
destroyed: boolean;
|
|
85
|
-
read(size?: number): any;
|
|
86
|
-
pause(): this;
|
|
87
|
-
resume(): this;
|
|
88
|
-
isPaused(): boolean;
|
|
89
|
-
destroy(error?: Error): this;
|
|
90
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<any>;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export declare class FsReadStream extends Readable {
|
|
94
|
-
path: {}; // node type is string | Buffer
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// @ts-ignore
|
|
98
|
-
type _ReadableStream<R = any> = unknown extends ReadableStream<R> ? never : ReadableStream<R>;
|
|
99
|
-
// @ts-ignore
|
|
100
|
-
declare const _ReadableStream: unknown extends typeof ReadableStream ? never : typeof ReadableStream;
|
|
101
|
-
export { _ReadableStream as ReadableStream };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bun-runtime.d.ts","sourceRoot":"","sources":["../src/_shims/bun-runtime.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAIxC,wBAAgB,UAAU,IAAI,KAAK,CAMlC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRuntime = void 0;
|
|
4
|
-
const web_runtime_1 = require("./web-runtime.js");
|
|
5
|
-
const node_fs_1 = require("node:fs");
|
|
6
|
-
function getRuntime() {
|
|
7
|
-
const runtime = (0, web_runtime_1.getRuntime)();
|
|
8
|
-
function isFsReadStream(value) {
|
|
9
|
-
return value instanceof node_fs_1.ReadStream;
|
|
10
|
-
}
|
|
11
|
-
return { ...runtime, isFsReadStream };
|
|
12
|
-
}
|
|
13
|
-
exports.getRuntime = getRuntime;
|
|
14
|
-
//# sourceMappingURL=bun-runtime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bun-runtime.js","sourceRoot":"","sources":["../src/_shims/bun-runtime.ts"],"names":[],"mappings":";;;AAIA,kDAA4D;AAC5D,qCAAqD;AAErD,SAAgB,UAAU;IACxB,MAAM,OAAO,GAAG,IAAA,wBAAa,GAAE,CAAC;IAChC,SAAS,cAAc,CAAC,KAAU;QAChC,OAAO,KAAK,YAAY,oBAAY,CAAC;IACvC,CAAC;IACD,OAAO,EAAE,GAAG,OAAO,EAAE,cAAc,EAAE,CAAC;AACxC,CAAC;AAND,gCAMC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { getRuntime as getWebRuntime } from "./web-runtime.mjs";
|
|
2
|
-
import { ReadStream as FsReadStream } from 'node:fs';
|
|
3
|
-
export function getRuntime() {
|
|
4
|
-
const runtime = getWebRuntime();
|
|
5
|
-
function isFsReadStream(value) {
|
|
6
|
-
return value instanceof FsReadStream;
|
|
7
|
-
}
|
|
8
|
-
return { ...runtime, isFsReadStream };
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=bun-runtime.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bun-runtime.mjs","sourceRoot":"","sources":["../src/_shims/bun-runtime.ts"],"names":[],"mappings":"OAIO,EAAE,UAAU,IAAI,aAAa,EAAE;OAC/B,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,SAAS;AAEpD,MAAM,UAAU,UAAU;IACxB,MAAM,OAAO,GAAG,aAAa,EAAE,CAAC;IAChC,SAAS,cAAc,CAAC,KAAU;QAChC,OAAO,KAAK,YAAY,YAAY,CAAC;IACvC,CAAC;IACD,OAAO,EAAE,GAAG,OAAO,EAAE,cAAc,EAAE,CAAC;AACxC,CAAC"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
import { manual } from "./manual-types.js";
|
|
5
|
-
import * as auto from '@anthropic-ai/sdk/_shims/auto/types';
|
|
6
|
-
import { type RequestOptions } from "../core.js";
|
|
7
|
-
|
|
8
|
-
type SelectType<Manual, Auto> = unknown extends Manual ? Auto : Manual;
|
|
9
|
-
|
|
10
|
-
export const kind: string;
|
|
11
|
-
|
|
12
|
-
// @ts-ignore
|
|
13
|
-
export type Agent = SelectType<manual.Agent, auto.Agent>;
|
|
14
|
-
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
export const fetch: SelectType<typeof manual.fetch, typeof auto.fetch>;
|
|
17
|
-
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
export type Request = SelectType<manual.Request, auto.Request>;
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export type RequestInfo = SelectType<manual.RequestInfo, auto.RequestInfo>;
|
|
22
|
-
// @ts-ignore
|
|
23
|
-
export type RequestInit = SelectType<manual.RequestInit, auto.RequestInit>;
|
|
24
|
-
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
export type Response = SelectType<manual.Response, auto.Response>;
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
export type ResponseInit = SelectType<manual.ResponseInit, auto.ResponseInit>;
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
export type ResponseType = SelectType<manual.ResponseType, auto.ResponseType>;
|
|
31
|
-
// @ts-ignore
|
|
32
|
-
export type BodyInit = SelectType<manual.BodyInit, auto.BodyInit>;
|
|
33
|
-
// @ts-ignore
|
|
34
|
-
export type Headers = SelectType<manual.Headers, auto.Headers>;
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
export const Headers: SelectType<typeof manual.Headers, typeof auto.Headers>;
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
export type HeadersInit = SelectType<manual.HeadersInit, auto.HeadersInit>;
|
|
39
|
-
|
|
40
|
-
// @ts-ignore
|
|
41
|
-
export type BlobPropertyBag = SelectType<manual.BlobPropertyBag, auto.BlobPropertyBag>;
|
|
42
|
-
// @ts-ignore
|
|
43
|
-
export type FilePropertyBag = SelectType<manual.FilePropertyBag, auto.FilePropertyBag>;
|
|
44
|
-
// @ts-ignore
|
|
45
|
-
export type FileFromPathOptions = SelectType<manual.FileFromPathOptions, auto.FileFromPathOptions>;
|
|
46
|
-
// @ts-ignore
|
|
47
|
-
export type FormData = SelectType<manual.FormData, auto.FormData>;
|
|
48
|
-
// @ts-ignore
|
|
49
|
-
export const FormData: SelectType<typeof manual.FormData, typeof auto.FormData>;
|
|
50
|
-
// @ts-ignore
|
|
51
|
-
export type File = SelectType<manual.File, auto.File>;
|
|
52
|
-
// @ts-ignore
|
|
53
|
-
export const File: SelectType<typeof manual.File, typeof auto.File>;
|
|
54
|
-
// @ts-ignore
|
|
55
|
-
export type Blob = SelectType<manual.Blob, auto.Blob>;
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
export const Blob: SelectType<typeof manual.Blob, typeof auto.Blob>;
|
|
58
|
-
|
|
59
|
-
// @ts-ignore
|
|
60
|
-
export type Readable = SelectType<manual.Readable, auto.Readable>;
|
|
61
|
-
// @ts-ignore
|
|
62
|
-
export type FsReadStream = SelectType<manual.FsReadStream, auto.FsReadStream>;
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
export type ReadableStream = SelectType<manual.ReadableStream, auto.ReadableStream>;
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
export const ReadableStream: SelectType<typeof manual.ReadableStream, typeof auto.ReadableStream>;
|
|
67
|
-
|
|
68
|
-
export function getMultipartRequestOptions<T = Record<string, unknown>>(
|
|
69
|
-
form: FormData,
|
|
70
|
-
opts: RequestOptions<T>,
|
|
71
|
-
): Promise<RequestOptions<T>>;
|
|
72
|
-
|
|
73
|
-
export function getDefaultAgent(url: string): any;
|
|
74
|
-
|
|
75
|
-
// @ts-ignore
|
|
76
|
-
export type FileFromPathOptions = SelectType<manual.FileFromPathOptions, auto.FileFromPathOptions>;
|
|
77
|
-
|
|
78
|
-
export function fileFromPath(path: string, options?: FileFromPathOptions): Promise<File>;
|
|
79
|
-
export function fileFromPath(path: string, filename?: string, options?: FileFromPathOptions): Promise<File>;
|
|
80
|
-
|
|
81
|
-
export function isFsReadStream(value: any): value is FsReadStream;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
const shims = require('./registry');
|
|
5
|
-
const auto = require('@anthropic-ai/sdk/_shims/auto/runtime');
|
|
6
|
-
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
7
|
-
for (const property of Object.keys(shims)) {
|
|
8
|
-
Object.defineProperty(exports, property, {
|
|
9
|
-
get() {
|
|
10
|
-
return shims[property];
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
import * as shims from './registry.mjs';
|
|
5
|
-
import * as auto from '@anthropic-ai/sdk/_shims/auto/runtime';
|
|
6
|
-
if (!shims.kind) shims.setShims(auto.getRuntime(), { auto: true });
|
|
7
|
-
export * from './registry.mjs';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Types will get added to this namespace when you import one of the following:
|
|
6
|
-
*
|
|
7
|
-
* import '@anthropic-ai/sdk/shims/node'
|
|
8
|
-
* import '@anthropic-ai/sdk/shims/web'
|
|
9
|
-
*
|
|
10
|
-
* Importing more than one will cause type and runtime errors.
|
|
11
|
-
*/
|
|
12
|
-
export namespace manual {}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-runtime.d.ts","sourceRoot":"","sources":["../src/_shims/node-runtime.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AA+CxC,wBAAgB,UAAU,IAAI,KAAK,CAqBlC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.getRuntime = void 0;
|
|
30
|
-
/**
|
|
31
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
32
|
-
*/
|
|
33
|
-
const nf = __importStar(require("node-fetch"));
|
|
34
|
-
const fd = __importStar(require("formdata-node"));
|
|
35
|
-
const agentkeepalive_1 = __importDefault(require("agentkeepalive"));
|
|
36
|
-
const abort_controller_1 = require("abort-controller");
|
|
37
|
-
const node_fs_1 = require("node:fs");
|
|
38
|
-
const form_data_encoder_1 = require("form-data-encoder");
|
|
39
|
-
const node_stream_1 = require("node:stream");
|
|
40
|
-
const MultipartBody_1 = require("./MultipartBody.js");
|
|
41
|
-
// @ts-ignore (this package does not have proper export maps for this export)
|
|
42
|
-
const ponyfill_es2018_js_1 = require("web-streams-polyfill/dist/ponyfill.es2018.js");
|
|
43
|
-
let fileFromPathWarned = false;
|
|
44
|
-
async function fileFromPath(path, ...args) {
|
|
45
|
-
// this import fails in environments that don't handle export maps correctly, like old versions of Jest
|
|
46
|
-
const { fileFromPath: _fileFromPath } = await Promise.resolve().then(() => __importStar(require('formdata-node/file-from-path')));
|
|
47
|
-
if (!fileFromPathWarned) {
|
|
48
|
-
console.warn(`fileFromPath is deprecated; use fs.createReadStream(${JSON.stringify(path)}) instead`);
|
|
49
|
-
fileFromPathWarned = true;
|
|
50
|
-
}
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
return await _fileFromPath(path, ...args);
|
|
53
|
-
}
|
|
54
|
-
const defaultHttpAgent = new agentkeepalive_1.default({ keepAlive: true, timeout: 5 * 60 * 1000 });
|
|
55
|
-
const defaultHttpsAgent = new agentkeepalive_1.default.HttpsAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
|
|
56
|
-
async function getMultipartRequestOptions(form, opts) {
|
|
57
|
-
const encoder = new form_data_encoder_1.FormDataEncoder(form);
|
|
58
|
-
const readable = node_stream_1.Readable.from(encoder);
|
|
59
|
-
const body = new MultipartBody_1.MultipartBody(readable);
|
|
60
|
-
const headers = {
|
|
61
|
-
...opts.headers,
|
|
62
|
-
...encoder.headers,
|
|
63
|
-
'Content-Length': encoder.contentLength,
|
|
64
|
-
};
|
|
65
|
-
return { ...opts, body: body, headers };
|
|
66
|
-
}
|
|
67
|
-
function getRuntime() {
|
|
68
|
-
// Polyfill global object if needed.
|
|
69
|
-
if (typeof AbortController === 'undefined') {
|
|
70
|
-
// @ts-expect-error (the types are subtly different, but compatible in practice)
|
|
71
|
-
globalThis.AbortController = abort_controller_1.AbortController;
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
kind: 'node',
|
|
75
|
-
fetch: nf.default,
|
|
76
|
-
Request: nf.Request,
|
|
77
|
-
Response: nf.Response,
|
|
78
|
-
Headers: nf.Headers,
|
|
79
|
-
FormData: fd.FormData,
|
|
80
|
-
Blob: fd.Blob,
|
|
81
|
-
File: fd.File,
|
|
82
|
-
ReadableStream: ponyfill_es2018_js_1.ReadableStream,
|
|
83
|
-
getMultipartRequestOptions,
|
|
84
|
-
getDefaultAgent: (url) => (url.startsWith('https') ? defaultHttpsAgent : defaultHttpAgent),
|
|
85
|
-
fileFromPath,
|
|
86
|
-
isFsReadStream: (value) => value instanceof node_fs_1.ReadStream,
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
exports.getRuntime = getRuntime;
|
|
90
|
-
//# sourceMappingURL=node-runtime.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-runtime.js","sourceRoot":"","sources":["../src/_shims/node-runtime.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,+CAAiC;AACjC,kDAAoC;AAEpC,oEAA4C;AAC5C,uDAA8E;AAC9E,qCAAqD;AAErD,yDAAoD;AACpD,6CAAuC;AAEvC,sDAAgD;AAGhD,6EAA6E;AAC7E,qFAA8E;AAI9E,IAAI,kBAAkB,GAAG,KAAK,CAAC;AAS/B,KAAK,UAAU,YAAY,CAAC,IAAY,EAAE,GAAG,IAAW;IACtD,uGAAuG;IACvG,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,wDAAa,8BAA8B,GAAC,CAAC;IAErF,IAAI,CAAC,kBAAkB,EAAE;QACvB,OAAO,CAAC,IAAI,CAAC,uDAAuD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACrG,kBAAkB,GAAG,IAAI,CAAC;KAC3B;IACD,aAAa;IACb,OAAO,MAAM,aAAa,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,gBAAgB,GAAU,IAAI,wBAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;AAChG,MAAM,iBAAiB,GAAU,IAAI,wBAAc,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;AAE5G,KAAK,UAAU,0BAA0B,CACvC,IAAiB,EACjB,IAAuB;IAEvB,MAAM,OAAO,GAAG,IAAI,mCAAe,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,QAAQ,GAAG,sBAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,IAAI,GAAG,IAAI,6BAAa,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG;QACd,GAAG,IAAI,CAAC,OAAO;QACf,GAAG,OAAO,CAAC,OAAO;QAClB,gBAAgB,EAAE,OAAO,CAAC,aAAa;KACxC,CAAC;IAEF,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAW,EAAE,OAAO,EAAE,CAAC;AACjD,CAAC;AAED,SAAgB,UAAU;IACxB,oCAAoC;IACpC,IAAI,OAAO,eAAe,KAAK,WAAW,EAAE;QAC1C,gFAAgF;QAChF,UAAU,CAAC,eAAe,GAAG,kCAAuB,CAAC;KACtD;IACD,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE,CAAC,OAAO;QACjB,OAAO,EAAE,EAAE,CAAC,OAAO;QACnB,QAAQ,EAAE,EAAE,CAAC,QAAQ;QACrB,OAAO,EAAE,EAAE,CAAC,OAAO;QACnB,QAAQ,EAAE,EAAE,CAAC,QAAQ;QACrB,IAAI,EAAE,EAAE,CAAC,IAAI;QACb,IAAI,EAAE,EAAE,CAAC,IAAI;QACb,cAAc,EAAd,mCAAc;QACd,0BAA0B;QAC1B,eAAe,EAAE,CAAC,GAAW,EAAS,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,CAAC;QACzG,YAAY;QACZ,cAAc,EAAE,CAAC,KAAU,EAAyB,EAAE,CAAC,KAAK,YAAY,oBAAY;KACrF,CAAC;AACJ,CAAC;AArBD,gCAqBC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as nf from 'node-fetch';
|
|
2
|
-
import * as fd from 'formdata-node';
|
|
3
|
-
import KeepAliveAgent from 'agentkeepalive';
|
|
4
|
-
import { AbortController as AbortControllerPolyfill } from 'abort-controller';
|
|
5
|
-
import { ReadStream as FsReadStream } from 'node:fs';
|
|
6
|
-
import { FormDataEncoder } from 'form-data-encoder';
|
|
7
|
-
import { Readable } from 'node:stream';
|
|
8
|
-
import { MultipartBody } from "./MultipartBody.mjs";
|
|
9
|
-
import { ReadableStream } from 'web-streams-polyfill/dist/ponyfill.es2018.js';
|
|
10
|
-
let fileFromPathWarned = false;
|
|
11
|
-
async function fileFromPath(path, ...args) {
|
|
12
|
-
// this import fails in environments that don't handle export maps correctly, like old versions of Jest
|
|
13
|
-
const { fileFromPath: _fileFromPath } = await import('formdata-node/file-from-path');
|
|
14
|
-
if (!fileFromPathWarned) {
|
|
15
|
-
console.warn(`fileFromPath is deprecated; use fs.createReadStream(${JSON.stringify(path)}) instead`);
|
|
16
|
-
fileFromPathWarned = true;
|
|
17
|
-
}
|
|
18
|
-
// @ts-ignore
|
|
19
|
-
return await _fileFromPath(path, ...args);
|
|
20
|
-
}
|
|
21
|
-
const defaultHttpAgent = new KeepAliveAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
|
|
22
|
-
const defaultHttpsAgent = new KeepAliveAgent.HttpsAgent({ keepAlive: true, timeout: 5 * 60 * 1000 });
|
|
23
|
-
async function getMultipartRequestOptions(form, opts) {
|
|
24
|
-
const encoder = new FormDataEncoder(form);
|
|
25
|
-
const readable = Readable.from(encoder);
|
|
26
|
-
const body = new MultipartBody(readable);
|
|
27
|
-
const headers = {
|
|
28
|
-
...opts.headers,
|
|
29
|
-
...encoder.headers,
|
|
30
|
-
'Content-Length': encoder.contentLength,
|
|
31
|
-
};
|
|
32
|
-
return { ...opts, body: body, headers };
|
|
33
|
-
}
|
|
34
|
-
export function getRuntime() {
|
|
35
|
-
// Polyfill global object if needed.
|
|
36
|
-
if (typeof AbortController === 'undefined') {
|
|
37
|
-
// @ts-expect-error (the types are subtly different, but compatible in practice)
|
|
38
|
-
globalThis.AbortController = AbortControllerPolyfill;
|
|
39
|
-
}
|
|
40
|
-
return {
|
|
41
|
-
kind: 'node',
|
|
42
|
-
fetch: nf.default,
|
|
43
|
-
Request: nf.Request,
|
|
44
|
-
Response: nf.Response,
|
|
45
|
-
Headers: nf.Headers,
|
|
46
|
-
FormData: fd.FormData,
|
|
47
|
-
Blob: fd.Blob,
|
|
48
|
-
File: fd.File,
|
|
49
|
-
ReadableStream,
|
|
50
|
-
getMultipartRequestOptions,
|
|
51
|
-
getDefaultAgent: (url) => (url.startsWith('https') ? defaultHttpsAgent : defaultHttpAgent),
|
|
52
|
-
fileFromPath,
|
|
53
|
-
isFsReadStream: (value) => value instanceof FsReadStream,
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=node-runtime.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"node-runtime.mjs","sourceRoot":"","sources":["../src/_shims/node-runtime.ts"],"names":[],"mappings":"OAGO,KAAK,EAAE,MAAM,YAAY;OACzB,KAAK,EAAE,MAAM,eAAe;OAE5B,cAAc,MAAM,gBAAgB;OACpC,EAAE,eAAe,IAAI,uBAAuB,EAAE,MAAM,kBAAkB;OACtE,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,SAAS;OAE7C,EAAE,eAAe,EAAE,MAAM,mBAAmB;OAC5C,EAAE,QAAQ,EAAE,MAAM,aAAa;OAE/B,EAAE,aAAa,EAAE;OAIjB,EAAE,cAAc,EAAE,MAAM,8CAA8C;AAI7E,IAAI,kBAAkB,GAAG,KAAK,CAAC;AAS/B,KAAK,UAAU,YAAY,CAAC,IAAY,EAAE,GAAG,IAAW;IACtD,uGAAuG;IACvG,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,8BAA8B,CAAC,CAAC;IAErF,IAAI,CAAC,kBAAkB,EAAE;QACvB,OAAO,CAAC,IAAI,CAAC,uDAAuD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACrG,kBAAkB,GAAG,IAAI,CAAC;KAC3B;IACD,aAAa;IACb,OAAO,MAAM,aAAa,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,gBAAgB,GAAU,IAAI,cAAc,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;AAChG,MAAM,iBAAiB,GAAU,IAAI,cAAc,CAAC,UAAU,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC;AAE5G,KAAK,UAAU,0BAA0B,CACvC,IAAiB,EACjB,IAAuB;IAEvB,MAAM,OAAO,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;IAC1C,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACxC,MAAM,IAAI,GAAG,IAAI,aAAa,CAAC,QAAQ,CAAC,CAAC;IACzC,MAAM,OAAO,GAAG;QACd,GAAG,IAAI,CAAC,OAAO;QACf,GAAG,OAAO,CAAC,OAAO;QAClB,gBAAgB,EAAE,OAAO,CAAC,aAAa;KACxC,CAAC;IAEF,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE,IAAW,EAAE,OAAO,EAAE,CAAC;AACjD,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,oCAAoC;IACpC,IAAI,OAAO,eAAe,KAAK,WAAW,EAAE;QAC1C,gFAAgF;QAChF,UAAU,CAAC,eAAe,GAAG,uBAAuB,CAAC;KACtD;IACD,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE,CAAC,OAAO;QACjB,OAAO,EAAE,EAAE,CAAC,OAAO;QACnB,QAAQ,EAAE,EAAE,CAAC,QAAQ;QACrB,OAAO,EAAE,EAAE,CAAC,OAAO;QACnB,QAAQ,EAAE,EAAE,CAAC,QAAQ;QACrB,IAAI,EAAE,EAAE,CAAC,IAAI;QACb,IAAI,EAAE,EAAE,CAAC,IAAI;QACb,cAAc;QACd,0BAA0B;QAC1B,eAAe,EAAE,CAAC,GAAW,EAAS,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,gBAAgB,CAAC;QACzG,YAAY;QACZ,cAAc,EAAE,CAAC,KAAU,EAAyB,EAAE,CAAC,KAAK,YAAY,YAAY;KACrF,CAAC;AACJ,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
import * as nf from 'node-fetch';
|
|
5
|
-
import * as fd from 'formdata-node';
|
|
6
|
-
|
|
7
|
-
export { type Agent } from 'node:http';
|
|
8
|
-
export { type Readable } from 'node:stream';
|
|
9
|
-
export { type ReadStream as FsReadStream } from 'node:fs';
|
|
10
|
-
export { ReadableStream } from 'web-streams-polyfill';
|
|
11
|
-
|
|
12
|
-
export const fetch: typeof nf.default;
|
|
13
|
-
|
|
14
|
-
export type Request = nf.Request;
|
|
15
|
-
export type RequestInfo = nf.RequestInfo;
|
|
16
|
-
export type RequestInit = nf.RequestInit;
|
|
17
|
-
|
|
18
|
-
export type Response = nf.Response;
|
|
19
|
-
export type ResponseInit = nf.ResponseInit;
|
|
20
|
-
export type ResponseType = nf.ResponseType;
|
|
21
|
-
export type BodyInit = nf.BodyInit;
|
|
22
|
-
export type Headers = nf.Headers;
|
|
23
|
-
export type HeadersInit = nf.HeadersInit;
|
|
24
|
-
|
|
25
|
-
type EndingType = 'native' | 'transparent';
|
|
26
|
-
export interface BlobPropertyBag {
|
|
27
|
-
endings?: EndingType;
|
|
28
|
-
type?: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface FilePropertyBag extends BlobPropertyBag {
|
|
32
|
-
lastModified?: number;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>;
|
|
36
|
-
|
|
37
|
-
export type FormData = fd.FormData;
|
|
38
|
-
export const FormData: typeof fd.FormData;
|
|
39
|
-
export type File = fd.File;
|
|
40
|
-
export const File: typeof fd.File;
|
|
41
|
-
export type Blob = fd.Blob;
|
|
42
|
-
export const Blob: typeof fd.Blob;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
|
-
*/
|
|
4
|
-
import { type RequestOptions } from "../core.js";
|
|
5
|
-
export interface Shims {
|
|
6
|
-
kind: string;
|
|
7
|
-
fetch: any;
|
|
8
|
-
Request: any;
|
|
9
|
-
Response: any;
|
|
10
|
-
Headers: any;
|
|
11
|
-
FormData: any;
|
|
12
|
-
Blob: any;
|
|
13
|
-
File: any;
|
|
14
|
-
ReadableStream: any;
|
|
15
|
-
getMultipartRequestOptions: <T = Record<string, unknown>>(form: Shims['FormData'], opts: RequestOptions<T>) => Promise<RequestOptions<T>>;
|
|
16
|
-
getDefaultAgent: (url: string) => any;
|
|
17
|
-
fileFromPath: ((path: string, filename?: string, options?: {}) => Promise<Shims['File']>) | ((path: string, options?: {}) => Promise<Shims['File']>);
|
|
18
|
-
isFsReadStream: (value: any) => boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare let auto: boolean;
|
|
21
|
-
export declare let kind: Shims['kind'] | undefined;
|
|
22
|
-
export declare let fetch: Shims['fetch'] | undefined;
|
|
23
|
-
export declare let Request: Shims['Request'] | undefined;
|
|
24
|
-
export declare let Response: Shims['Response'] | undefined;
|
|
25
|
-
export declare let Headers: Shims['Headers'] | undefined;
|
|
26
|
-
export declare let FormData: Shims['FormData'] | undefined;
|
|
27
|
-
export declare let Blob: Shims['Blob'] | undefined;
|
|
28
|
-
export declare let File: Shims['File'] | undefined;
|
|
29
|
-
export declare let ReadableStream: Shims['ReadableStream'] | undefined;
|
|
30
|
-
export declare let getMultipartRequestOptions: Shims['getMultipartRequestOptions'] | undefined;
|
|
31
|
-
export declare let getDefaultAgent: Shims['getDefaultAgent'] | undefined;
|
|
32
|
-
export declare let fileFromPath: Shims['fileFromPath'] | undefined;
|
|
33
|
-
export declare let isFsReadStream: Shims['isFsReadStream'] | undefined;
|
|
34
|
-
export declare function setShims(shims: Shims, options?: {
|
|
35
|
-
auto: boolean;
|
|
36
|
-
}): void;
|
|
37
|
-
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../src/_shims/registry.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,MAAM,WAAW,KAAK;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,GAAG,CAAC;IACX,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;IACV,IAAI,EAAE,GAAG,CAAC;IACV,cAAc,EAAE,GAAG,CAAC;IACpB,0BAA0B,EAAE,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtD,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,EACvB,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,KACpB,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,GAAG,CAAC;IACtC,YAAY,EACR,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,KAAK,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,GAC3E,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,EAAE,KAAK,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC7D,cAAc,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC;CACzC;AAED,eAAO,IAAI,IAAI,SAAQ,CAAC;AACxB,eAAO,IAAI,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAqB,CAAC;AACvD,eAAO,IAAI,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,SAAqB,CAAC;AACzD,eAAO,IAAI,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,SAAqB,CAAC;AAC7D,eAAO,IAAI,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAqB,CAAC;AAC/D,eAAO,IAAI,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,SAAqB,CAAC;AAC7D,eAAO,IAAI,QAAQ,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,SAAqB,CAAC;AAC/D,eAAO,IAAI,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAqB,CAAC;AACvD,eAAO,IAAI,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAqB,CAAC;AACvD,eAAO,IAAI,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,SAAqB,CAAC;AAC3E,eAAO,IAAI,0BAA0B,EAAE,KAAK,CAAC,4BAA4B,CAAC,GAAG,SAAqB,CAAC;AACnG,eAAO,IAAI,eAAe,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,SAAqB,CAAC;AAC7E,eAAO,IAAI,YAAY,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,SAAqB,CAAC;AACvE,eAAO,IAAI,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,SAAqB,CAAC;AAE3E,wBAAgB,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,GAAE;IAAE,IAAI,EAAE,OAAO,CAAA;CAAoB,QAyBlF"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setShims = exports.isFsReadStream = exports.fileFromPath = exports.getDefaultAgent = exports.getMultipartRequestOptions = exports.ReadableStream = exports.File = exports.Blob = exports.FormData = exports.Headers = exports.Response = exports.Request = exports.fetch = exports.kind = exports.auto = void 0;
|
|
4
|
-
exports.auto = false;
|
|
5
|
-
exports.kind = undefined;
|
|
6
|
-
exports.fetch = undefined;
|
|
7
|
-
exports.Request = undefined;
|
|
8
|
-
exports.Response = undefined;
|
|
9
|
-
exports.Headers = undefined;
|
|
10
|
-
exports.FormData = undefined;
|
|
11
|
-
exports.Blob = undefined;
|
|
12
|
-
exports.File = undefined;
|
|
13
|
-
exports.ReadableStream = undefined;
|
|
14
|
-
exports.getMultipartRequestOptions = undefined;
|
|
15
|
-
exports.getDefaultAgent = undefined;
|
|
16
|
-
exports.fileFromPath = undefined;
|
|
17
|
-
exports.isFsReadStream = undefined;
|
|
18
|
-
function setShims(shims, options = { auto: false }) {
|
|
19
|
-
if (exports.auto) {
|
|
20
|
-
throw new Error(`you must \`import '@anthropic-ai/sdk/shims/${shims.kind}'\` before importing anything else from @anthropic-ai/sdk`);
|
|
21
|
-
}
|
|
22
|
-
if (exports.kind) {
|
|
23
|
-
throw new Error(`can't \`import '@anthropic-ai/sdk/shims/${shims.kind}'\` after \`import '@anthropic-ai/sdk/shims/${exports.kind}'\``);
|
|
24
|
-
}
|
|
25
|
-
exports.auto = options.auto;
|
|
26
|
-
exports.kind = shims.kind;
|
|
27
|
-
exports.fetch = shims.fetch;
|
|
28
|
-
exports.Request = shims.Request;
|
|
29
|
-
exports.Response = shims.Response;
|
|
30
|
-
exports.Headers = shims.Headers;
|
|
31
|
-
exports.FormData = shims.FormData;
|
|
32
|
-
exports.Blob = shims.Blob;
|
|
33
|
-
exports.File = shims.File;
|
|
34
|
-
exports.ReadableStream = shims.ReadableStream;
|
|
35
|
-
exports.getMultipartRequestOptions = shims.getMultipartRequestOptions;
|
|
36
|
-
exports.getDefaultAgent = shims.getDefaultAgent;
|
|
37
|
-
exports.fileFromPath = shims.fileFromPath;
|
|
38
|
-
exports.isFsReadStream = shims.isFsReadStream;
|
|
39
|
-
}
|
|
40
|
-
exports.setShims = setShims;
|
|
41
|
-
//# sourceMappingURL=registry.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../src/_shims/registry.ts"],"names":[],"mappings":";;;AA0BW,QAAA,IAAI,GAAG,KAAK,CAAC;AACb,QAAA,IAAI,GAA8B,SAAS,CAAC;AAC5C,QAAA,KAAK,GAA+B,SAAS,CAAC;AAC9C,QAAA,OAAO,GAAiC,SAAS,CAAC;AAClD,QAAA,QAAQ,GAAkC,SAAS,CAAC;AACpD,QAAA,OAAO,GAAiC,SAAS,CAAC;AAClD,QAAA,QAAQ,GAAkC,SAAS,CAAC;AACpD,QAAA,IAAI,GAA8B,SAAS,CAAC;AAC5C,QAAA,IAAI,GAA8B,SAAS,CAAC;AAC5C,QAAA,cAAc,GAAwC,SAAS,CAAC;AAChE,QAAA,0BAA0B,GAAoD,SAAS,CAAC;AACxF,QAAA,eAAe,GAAyC,SAAS,CAAC;AAClE,QAAA,YAAY,GAAsC,SAAS,CAAC;AAC5D,QAAA,cAAc,GAAwC,SAAS,CAAC;AAE3E,SAAgB,QAAQ,CAAC,KAAY,EAAE,UAA6B,EAAE,IAAI,EAAE,KAAK,EAAE;IACjF,IAAI,YAAI,EAAE;QACR,MAAM,IAAI,KAAK,CACb,8CAA8C,KAAK,CAAC,IAAI,2DAA2D,CACpH,CAAC;KACH;IACD,IAAI,YAAI,EAAE;QACR,MAAM,IAAI,KAAK,CACb,2CAA2C,KAAK,CAAC,IAAI,+CAA+C,YAAI,KAAK,CAC9G,CAAC;KACH;IACD,YAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACpB,YAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAClB,aAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IACpB,eAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IACxB,gBAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC1B,eAAO,GAAG,KAAK,CAAC,OAAO,CAAC;IACxB,gBAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAC1B,YAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAClB,YAAI,GAAG,KAAK,CAAC,IAAI,CAAC;IAClB,sBAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IACtC,kCAA0B,GAAG,KAAK,CAAC,0BAA0B,CAAC;IAC9D,uBAAe,GAAG,KAAK,CAAC,eAAe,CAAC;IACxC,oBAAY,GAAG,KAAK,CAAC,YAAY,CAAC;IAClC,sBAAc,GAAG,KAAK,CAAC,cAAc,CAAC;AACxC,CAAC;AAzBD,4BAyBC"}
|