@adaptic/maestro 1.0.0 → 1.1.0
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/package.json +3 -2
- package/scripts/huddle/node_modules/.package-lock.json +0 -50
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/CHANGELOG.md +0 -1677
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/LICENSE +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/README.md +0 -674
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js +0 -226
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs +0 -223
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/_vendor/partial-json-parser/parser.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/api-promise.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/bin/cli +0 -53
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/bin/migration-config.json +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.d.mts +0 -225
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.d.ts +0 -225
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.js +0 -536
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.mjs +0 -531
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/client.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts +0 -49
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts +0 -49
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.js +0 -76
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.mjs +0 -72
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/api-promise.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.d.mts +0 -47
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.d.ts +0 -47
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.js +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.mjs +0 -98
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/error.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.d.mts +0 -63
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.d.ts +0 -63
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.js +0 -123
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.mjs +0 -117
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/pagination.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.d.mts +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.d.ts +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.js +0 -11
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.mjs +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/resource.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.d.mts +0 -31
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.d.ts +0 -31
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.js +0 -282
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.mjs +0 -277
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/streaming.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/core/uploads.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/error.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.d.mts +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.d.ts +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.js +0 -35
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.mjs +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts +0 -73
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts +0 -73
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.js +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/builtin-types.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.d.mts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.d.ts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.js +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.mjs +0 -12
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/constants.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts +0 -10
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts +0 -10
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js +0 -39
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs +0 -35
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/jsonl.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.js +0 -113
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs +0 -108
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/decoders/line.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.js +0 -162
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs +0 -157
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/detect-platform.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.js +0 -41
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.mjs +0 -36
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/errors.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.d.mts +0 -22
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.d.ts +0 -22
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.js +0 -79
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.mjs +0 -74
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/headers.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.d.mts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.d.ts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.js +0 -55
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.mjs +0 -51
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/parse.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts +0 -34
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts +0 -34
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.js +0 -14
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.mjs +0 -10
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/request-options.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shim-types.d.mts +0 -28
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shim-types.d.ts +0 -28
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.d.mts +0 -20
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.d.ts +0 -20
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.js +0 -92
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.mjs +0 -85
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/shims.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.js +0 -38
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs +0 -35
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/stream-utils.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts +0 -45
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts +0 -45
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.js +0 -96
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.mjs +0 -93
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/to-file.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/tslib.js +0 -81
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/tslib.mjs +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.d.mts +0 -67
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.d.ts +0 -67
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.js +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/types.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts +0 -42
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts +0 -42
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.js +0 -146
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.mjs +0 -136
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/uploads.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.js +0 -38
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs +0 -33
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/base64.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js +0 -31
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs +0 -26
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/bytes.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts +0 -9
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts +0 -9
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.js +0 -22
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs +0 -18
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/env.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts +0 -37
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts +0 -37
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.js +0 -86
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs +0 -80
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/log.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.js +0 -58
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs +0 -53
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/path.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/sleep.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js +0 -19
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/uuid.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts +0 -16
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts +0 -16
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.js +0 -109
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs +0 -92
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils/values.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.d.mts +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.d.ts +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.js +0 -11
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.mjs +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/internal/utils.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js +0 -553
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs +0 -549
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/BetaMessageStream.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts +0 -114
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.js +0 -553
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs +0 -549
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/lib/MessageStream.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/package.json +0 -185
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/pagination.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resource.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts +0 -61
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts +0 -61
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.js +0 -25
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs +0 -20
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/beta.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts +0 -151
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts +0 -151
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.js +0 -122
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs +0 -118
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/files.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.js +0 -13
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts +0 -343
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts +0 -343
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js +0 -204
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs +0 -200
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/batches.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js +0 -9
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts +0 -1561
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts +0 -1561
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js +0 -86
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs +0 -81
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages/messages.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/messages.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts +0 -74
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts +0 -74
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.js +0 -60
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs +0 -56
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta/models.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/beta.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.d.mts +0 -183
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.d.ts +0 -183
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.js +0 -23
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.mjs +0 -19
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/completions.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.d.mts +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.d.ts +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.js +0 -15
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.mjs +0 -7
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts +0 -304
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts +0 -304
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.js +0 -153
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs +0 -149
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/batches.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.js +0 -9
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/index.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts +0 -1264
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts +0 -1264
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.js +0 -72
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs +0 -67
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages/messages.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/messages.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.d.mts +0 -59
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.d.ts +0 -59
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.js +0 -45
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.mjs +0 -41
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/models.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.d.mts +0 -42
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.d.ts +0 -42
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.js +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/shared.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.js +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.mjs +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources/top-level.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.js +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/resources.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/README.md +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/_vendor/partial-json-parser/parser.ts +0 -264
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/api-promise.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/client.ts +0 -1070
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/README.md +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/api-promise.ts +0 -101
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/error.ts +0 -133
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/pagination.ts +0 -201
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/resource.ts +0 -11
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/streaming.ts +0 -331
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/core/uploads.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/error.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/index.ts +0 -23
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/README.md +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/builtin-types.ts +0 -93
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/constants.ts +0 -12
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/decoders/jsonl.ts +0 -48
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/decoders/line.ts +0 -135
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/detect-platform.ts +0 -196
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/errors.ts +0 -33
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/headers.ts +0 -99
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/parse.ts +0 -84
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/request-options.ts +0 -39
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/shim-types.d.ts +0 -28
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/shims.ts +0 -107
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/stream-utils.ts +0 -32
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/to-file.ts +0 -159
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/types.ts +0 -92
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/uploads.ts +0 -193
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/base64.ts +0 -40
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/bytes.ts +0 -32
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/env.ts +0 -18
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/log.ts +0 -127
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/path.ts +0 -65
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/sleep.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/uuid.ts +0 -17
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils/values.ts +0 -102
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/internal/utils.ts +0 -8
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/lib/.keep +0 -4
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/lib/BetaMessageStream.ts +0 -683
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/lib/MessageStream.ts +0 -684
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/pagination.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resource.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/beta.ts +0 -380
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/files.ts +0 -258
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/index.ts +0 -148
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/batches.ts +0 -502
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/index.ts +0 -135
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/messages/messages.ts +0 -2249
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/messages.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta/models.ts +0 -118
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/beta.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/completions.ts +0 -231
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/index.ts +0 -121
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/messages/batches.ts +0 -396
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/messages/index.ts +0 -110
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/messages/messages.ts +0 -1783
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/messages.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/models.ts +0 -103
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/shared.ts +0 -72
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources/top-level.ts +0 -3
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/resources.ts +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/streaming.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/tsconfig.json +0 -11
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/uploads.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/src/version.ts +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/streaming.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.js +0 -6
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/uploads.mjs.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.d.mts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.d.mts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.d.ts +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.d.ts.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.js +0 -5
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.js.map +0 -1
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.mjs +0 -2
- package/scripts/huddle/node_modules/@anthropic-ai/sdk/version.mjs.map +0 -1
- package/scripts/huddle/node_modules/dotenv/CHANGELOG.md +0 -520
- package/scripts/huddle/node_modules/dotenv/LICENSE +0 -23
- package/scripts/huddle/node_modules/dotenv/README-es.md +0 -411
- package/scripts/huddle/node_modules/dotenv/README.md +0 -645
- package/scripts/huddle/node_modules/dotenv/SECURITY.md +0 -1
- package/scripts/huddle/node_modules/dotenv/config.d.ts +0 -1
- package/scripts/huddle/node_modules/dotenv/config.js +0 -9
- package/scripts/huddle/node_modules/dotenv/lib/cli-options.js +0 -17
- package/scripts/huddle/node_modules/dotenv/lib/env-options.js +0 -28
- package/scripts/huddle/node_modules/dotenv/lib/main.d.ts +0 -162
- package/scripts/huddle/node_modules/dotenv/lib/main.js +0 -386
- package/scripts/huddle/node_modules/dotenv/package.json +0 -62
- package/scripts/huddle/node_modules/ws/LICENSE +0 -20
- package/scripts/huddle/node_modules/ws/README.md +0 -548
- package/scripts/huddle/node_modules/ws/browser.js +0 -8
- package/scripts/huddle/node_modules/ws/index.js +0 -22
- package/scripts/huddle/node_modules/ws/lib/buffer-util.js +0 -131
- package/scripts/huddle/node_modules/ws/lib/constants.js +0 -19
- package/scripts/huddle/node_modules/ws/lib/event-target.js +0 -292
- package/scripts/huddle/node_modules/ws/lib/extension.js +0 -203
- package/scripts/huddle/node_modules/ws/lib/limiter.js +0 -55
- package/scripts/huddle/node_modules/ws/lib/permessage-deflate.js +0 -528
- package/scripts/huddle/node_modules/ws/lib/receiver.js +0 -706
- package/scripts/huddle/node_modules/ws/lib/sender.js +0 -602
- package/scripts/huddle/node_modules/ws/lib/stream.js +0 -161
- package/scripts/huddle/node_modules/ws/lib/subprotocol.js +0 -62
- package/scripts/huddle/node_modules/ws/lib/validation.js +0 -152
- package/scripts/huddle/node_modules/ws/lib/websocket-server.js +0 -554
- package/scripts/huddle/node_modules/ws/lib/websocket.js +0 -1393
- package/scripts/huddle/node_modules/ws/package.json +0 -70
- package/scripts/huddle/node_modules/ws/wrapper.mjs +0 -21
|
@@ -1,548 +0,0 @@
|
|
|
1
|
-
# ws: a Node.js WebSocket library
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/ws)
|
|
4
|
-
[](https://github.com/websockets/ws/actions?query=workflow%3ACI+branch%3Amaster)
|
|
5
|
-
[](https://coveralls.io/github/websockets/ws)
|
|
6
|
-
|
|
7
|
-
ws is a simple to use, blazing fast, and thoroughly tested WebSocket client and
|
|
8
|
-
server implementation.
|
|
9
|
-
|
|
10
|
-
Passes the quite extensive Autobahn test suite: [server][server-report],
|
|
11
|
-
[client][client-report].
|
|
12
|
-
|
|
13
|
-
**Note**: This module does not work in the browser. The client in the docs is a
|
|
14
|
-
reference to a backend with the role of a client in the WebSocket communication.
|
|
15
|
-
Browser clients must use the native
|
|
16
|
-
[`WebSocket`](https://developer.mozilla.org/en-US/docs/Web/API/WebSocket)
|
|
17
|
-
object. To make the same code work seamlessly on Node.js and the browser, you
|
|
18
|
-
can use one of the many wrappers available on npm, like
|
|
19
|
-
[isomorphic-ws](https://github.com/heineiuo/isomorphic-ws).
|
|
20
|
-
|
|
21
|
-
## Table of Contents
|
|
22
|
-
|
|
23
|
-
- [Protocol support](#protocol-support)
|
|
24
|
-
- [Installing](#installing)
|
|
25
|
-
- [Opt-in for performance](#opt-in-for-performance)
|
|
26
|
-
- [Legacy opt-in for performance](#legacy-opt-in-for-performance)
|
|
27
|
-
- [API docs](#api-docs)
|
|
28
|
-
- [WebSocket compression](#websocket-compression)
|
|
29
|
-
- [Usage examples](#usage-examples)
|
|
30
|
-
- [Sending and receiving text data](#sending-and-receiving-text-data)
|
|
31
|
-
- [Sending binary data](#sending-binary-data)
|
|
32
|
-
- [Simple server](#simple-server)
|
|
33
|
-
- [External HTTP/S server](#external-https-server)
|
|
34
|
-
- [Multiple servers sharing a single HTTP/S server](#multiple-servers-sharing-a-single-https-server)
|
|
35
|
-
- [Client authentication](#client-authentication)
|
|
36
|
-
- [Server broadcast](#server-broadcast)
|
|
37
|
-
- [Round-trip time](#round-trip-time)
|
|
38
|
-
- [Use the Node.js streams API](#use-the-nodejs-streams-api)
|
|
39
|
-
- [Other examples](#other-examples)
|
|
40
|
-
- [FAQ](#faq)
|
|
41
|
-
- [How to get the IP address of the client?](#how-to-get-the-ip-address-of-the-client)
|
|
42
|
-
- [How to detect and close broken connections?](#how-to-detect-and-close-broken-connections)
|
|
43
|
-
- [How to connect via a proxy?](#how-to-connect-via-a-proxy)
|
|
44
|
-
- [Changelog](#changelog)
|
|
45
|
-
- [License](#license)
|
|
46
|
-
|
|
47
|
-
## Protocol support
|
|
48
|
-
|
|
49
|
-
- **HyBi drafts 07-12** (Use the option `protocolVersion: 8`)
|
|
50
|
-
- **HyBi drafts 13-17** (Current default, alternatively option
|
|
51
|
-
`protocolVersion: 13`)
|
|
52
|
-
|
|
53
|
-
## Installing
|
|
54
|
-
|
|
55
|
-
```
|
|
56
|
-
npm install ws
|
|
57
|
-
```
|
|
58
|
-
|
|
59
|
-
### Opt-in for performance
|
|
60
|
-
|
|
61
|
-
[bufferutil][] is an optional module that can be installed alongside the ws
|
|
62
|
-
module:
|
|
63
|
-
|
|
64
|
-
```
|
|
65
|
-
npm install --save-optional bufferutil
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
This is a binary addon that improves the performance of certain operations such
|
|
69
|
-
as masking and unmasking the data payload of the WebSocket frames. Prebuilt
|
|
70
|
-
binaries are available for the most popular platforms, so you don't necessarily
|
|
71
|
-
need to have a C++ compiler installed on your machine.
|
|
72
|
-
|
|
73
|
-
To force ws to not use bufferutil, use the
|
|
74
|
-
[`WS_NO_BUFFER_UTIL`](./doc/ws.md#ws_no_buffer_util) environment variable. This
|
|
75
|
-
can be useful to enhance security in systems where a user can put a package in
|
|
76
|
-
the package search path of an application of another user, due to how the
|
|
77
|
-
Node.js resolver algorithm works.
|
|
78
|
-
|
|
79
|
-
#### Legacy opt-in for performance
|
|
80
|
-
|
|
81
|
-
If you are running on an old version of Node.js (prior to v18.14.0), ws also
|
|
82
|
-
supports the [utf-8-validate][] module:
|
|
83
|
-
|
|
84
|
-
```
|
|
85
|
-
npm install --save-optional utf-8-validate
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
This contains a binary polyfill for [`buffer.isUtf8()`][].
|
|
89
|
-
|
|
90
|
-
To force ws not to use utf-8-validate, use the
|
|
91
|
-
[`WS_NO_UTF_8_VALIDATE`](./doc/ws.md#ws_no_utf_8_validate) environment variable.
|
|
92
|
-
|
|
93
|
-
## API docs
|
|
94
|
-
|
|
95
|
-
See [`/doc/ws.md`](./doc/ws.md) for Node.js-like documentation of ws classes and
|
|
96
|
-
utility functions.
|
|
97
|
-
|
|
98
|
-
## WebSocket compression
|
|
99
|
-
|
|
100
|
-
ws supports the [permessage-deflate extension][permessage-deflate] which enables
|
|
101
|
-
the client and server to negotiate a compression algorithm and its parameters,
|
|
102
|
-
and then selectively apply it to the data payloads of each WebSocket message.
|
|
103
|
-
|
|
104
|
-
The extension is disabled by default on the server and enabled by default on the
|
|
105
|
-
client. It adds a significant overhead in terms of performance and memory
|
|
106
|
-
consumption so we suggest to enable it only if it is really needed.
|
|
107
|
-
|
|
108
|
-
Note that Node.js has a variety of issues with high-performance compression,
|
|
109
|
-
where increased concurrency, especially on Linux, can lead to [catastrophic
|
|
110
|
-
memory fragmentation][node-zlib-bug] and slow performance. If you intend to use
|
|
111
|
-
permessage-deflate in production, it is worthwhile to set up a test
|
|
112
|
-
representative of your workload and ensure Node.js/zlib will handle it with
|
|
113
|
-
acceptable performance and memory usage.
|
|
114
|
-
|
|
115
|
-
Tuning of permessage-deflate can be done via the options defined below. You can
|
|
116
|
-
also use `zlibDeflateOptions` and `zlibInflateOptions`, which is passed directly
|
|
117
|
-
into the creation of [raw deflate/inflate streams][node-zlib-deflaterawdocs].
|
|
118
|
-
|
|
119
|
-
See [the docs][ws-server-options] for more options.
|
|
120
|
-
|
|
121
|
-
```js
|
|
122
|
-
import WebSocket, { WebSocketServer } from 'ws';
|
|
123
|
-
|
|
124
|
-
const wss = new WebSocketServer({
|
|
125
|
-
port: 8080,
|
|
126
|
-
perMessageDeflate: {
|
|
127
|
-
zlibDeflateOptions: {
|
|
128
|
-
// See zlib defaults.
|
|
129
|
-
chunkSize: 1024,
|
|
130
|
-
memLevel: 7,
|
|
131
|
-
level: 3
|
|
132
|
-
},
|
|
133
|
-
zlibInflateOptions: {
|
|
134
|
-
chunkSize: 10 * 1024
|
|
135
|
-
},
|
|
136
|
-
// Other options settable:
|
|
137
|
-
clientNoContextTakeover: true, // Defaults to negotiated value.
|
|
138
|
-
serverNoContextTakeover: true, // Defaults to negotiated value.
|
|
139
|
-
serverMaxWindowBits: 10, // Defaults to negotiated value.
|
|
140
|
-
// Below options specified as default values.
|
|
141
|
-
concurrencyLimit: 10, // Limits zlib concurrency for perf.
|
|
142
|
-
threshold: 1024 // Size (in bytes) below which messages
|
|
143
|
-
// should not be compressed if context takeover is disabled.
|
|
144
|
-
}
|
|
145
|
-
});
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
The client will only use the extension if it is supported and enabled on the
|
|
149
|
-
server. To always disable the extension on the client, set the
|
|
150
|
-
`perMessageDeflate` option to `false`.
|
|
151
|
-
|
|
152
|
-
```js
|
|
153
|
-
import WebSocket from 'ws';
|
|
154
|
-
|
|
155
|
-
const ws = new WebSocket('ws://www.host.com/path', {
|
|
156
|
-
perMessageDeflate: false
|
|
157
|
-
});
|
|
158
|
-
```
|
|
159
|
-
|
|
160
|
-
## Usage examples
|
|
161
|
-
|
|
162
|
-
### Sending and receiving text data
|
|
163
|
-
|
|
164
|
-
```js
|
|
165
|
-
import WebSocket from 'ws';
|
|
166
|
-
|
|
167
|
-
const ws = new WebSocket('ws://www.host.com/path');
|
|
168
|
-
|
|
169
|
-
ws.on('error', console.error);
|
|
170
|
-
|
|
171
|
-
ws.on('open', function open() {
|
|
172
|
-
ws.send('something');
|
|
173
|
-
});
|
|
174
|
-
|
|
175
|
-
ws.on('message', function message(data) {
|
|
176
|
-
console.log('received: %s', data);
|
|
177
|
-
});
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
### Sending binary data
|
|
181
|
-
|
|
182
|
-
```js
|
|
183
|
-
import WebSocket from 'ws';
|
|
184
|
-
|
|
185
|
-
const ws = new WebSocket('ws://www.host.com/path');
|
|
186
|
-
|
|
187
|
-
ws.on('error', console.error);
|
|
188
|
-
|
|
189
|
-
ws.on('open', function open() {
|
|
190
|
-
const array = new Float32Array(5);
|
|
191
|
-
|
|
192
|
-
for (var i = 0; i < array.length; ++i) {
|
|
193
|
-
array[i] = i / 2;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
ws.send(array);
|
|
197
|
-
});
|
|
198
|
-
```
|
|
199
|
-
|
|
200
|
-
### Simple server
|
|
201
|
-
|
|
202
|
-
```js
|
|
203
|
-
import { WebSocketServer } from 'ws';
|
|
204
|
-
|
|
205
|
-
const wss = new WebSocketServer({ port: 8080 });
|
|
206
|
-
|
|
207
|
-
wss.on('connection', function connection(ws) {
|
|
208
|
-
ws.on('error', console.error);
|
|
209
|
-
|
|
210
|
-
ws.on('message', function message(data) {
|
|
211
|
-
console.log('received: %s', data);
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
ws.send('something');
|
|
215
|
-
});
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
### External HTTP/S server
|
|
219
|
-
|
|
220
|
-
```js
|
|
221
|
-
import { createServer } from 'https';
|
|
222
|
-
import { readFileSync } from 'fs';
|
|
223
|
-
import { WebSocketServer } from 'ws';
|
|
224
|
-
|
|
225
|
-
const server = createServer({
|
|
226
|
-
cert: readFileSync('/path/to/cert.pem'),
|
|
227
|
-
key: readFileSync('/path/to/key.pem')
|
|
228
|
-
});
|
|
229
|
-
const wss = new WebSocketServer({ server });
|
|
230
|
-
|
|
231
|
-
wss.on('connection', function connection(ws) {
|
|
232
|
-
ws.on('error', console.error);
|
|
233
|
-
|
|
234
|
-
ws.on('message', function message(data) {
|
|
235
|
-
console.log('received: %s', data);
|
|
236
|
-
});
|
|
237
|
-
|
|
238
|
-
ws.send('something');
|
|
239
|
-
});
|
|
240
|
-
|
|
241
|
-
server.listen(8080);
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
### Multiple servers sharing a single HTTP/S server
|
|
245
|
-
|
|
246
|
-
```js
|
|
247
|
-
import { createServer } from 'http';
|
|
248
|
-
import { WebSocketServer } from 'ws';
|
|
249
|
-
|
|
250
|
-
const server = createServer();
|
|
251
|
-
const wss1 = new WebSocketServer({ noServer: true });
|
|
252
|
-
const wss2 = new WebSocketServer({ noServer: true });
|
|
253
|
-
|
|
254
|
-
wss1.on('connection', function connection(ws) {
|
|
255
|
-
ws.on('error', console.error);
|
|
256
|
-
|
|
257
|
-
// ...
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
wss2.on('connection', function connection(ws) {
|
|
261
|
-
ws.on('error', console.error);
|
|
262
|
-
|
|
263
|
-
// ...
|
|
264
|
-
});
|
|
265
|
-
|
|
266
|
-
server.on('upgrade', function upgrade(request, socket, head) {
|
|
267
|
-
const { pathname } = new URL(request.url, 'wss://base.url');
|
|
268
|
-
|
|
269
|
-
if (pathname === '/foo') {
|
|
270
|
-
wss1.handleUpgrade(request, socket, head, function done(ws) {
|
|
271
|
-
wss1.emit('connection', ws, request);
|
|
272
|
-
});
|
|
273
|
-
} else if (pathname === '/bar') {
|
|
274
|
-
wss2.handleUpgrade(request, socket, head, function done(ws) {
|
|
275
|
-
wss2.emit('connection', ws, request);
|
|
276
|
-
});
|
|
277
|
-
} else {
|
|
278
|
-
socket.destroy();
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
server.listen(8080);
|
|
283
|
-
```
|
|
284
|
-
|
|
285
|
-
### Client authentication
|
|
286
|
-
|
|
287
|
-
```js
|
|
288
|
-
import { createServer } from 'http';
|
|
289
|
-
import { WebSocketServer } from 'ws';
|
|
290
|
-
|
|
291
|
-
function onSocketError(err) {
|
|
292
|
-
console.error(err);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
const server = createServer();
|
|
296
|
-
const wss = new WebSocketServer({ noServer: true });
|
|
297
|
-
|
|
298
|
-
wss.on('connection', function connection(ws, request, client) {
|
|
299
|
-
ws.on('error', console.error);
|
|
300
|
-
|
|
301
|
-
ws.on('message', function message(data) {
|
|
302
|
-
console.log(`Received message ${data} from user ${client}`);
|
|
303
|
-
});
|
|
304
|
-
});
|
|
305
|
-
|
|
306
|
-
server.on('upgrade', function upgrade(request, socket, head) {
|
|
307
|
-
socket.on('error', onSocketError);
|
|
308
|
-
|
|
309
|
-
// This function is not defined on purpose. Implement it with your own logic.
|
|
310
|
-
authenticate(request, function next(err, client) {
|
|
311
|
-
if (err || !client) {
|
|
312
|
-
socket.write('HTTP/1.1 401 Unauthorized\r\n\r\n');
|
|
313
|
-
socket.destroy();
|
|
314
|
-
return;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
socket.removeListener('error', onSocketError);
|
|
318
|
-
|
|
319
|
-
wss.handleUpgrade(request, socket, head, function done(ws) {
|
|
320
|
-
wss.emit('connection', ws, request, client);
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
});
|
|
324
|
-
|
|
325
|
-
server.listen(8080);
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
Also see the provided [example][session-parse-example] using `express-session`.
|
|
329
|
-
|
|
330
|
-
### Server broadcast
|
|
331
|
-
|
|
332
|
-
A client WebSocket broadcasting to all connected WebSocket clients, including
|
|
333
|
-
itself.
|
|
334
|
-
|
|
335
|
-
```js
|
|
336
|
-
import WebSocket, { WebSocketServer } from 'ws';
|
|
337
|
-
|
|
338
|
-
const wss = new WebSocketServer({ port: 8080 });
|
|
339
|
-
|
|
340
|
-
wss.on('connection', function connection(ws) {
|
|
341
|
-
ws.on('error', console.error);
|
|
342
|
-
|
|
343
|
-
ws.on('message', function message(data, isBinary) {
|
|
344
|
-
wss.clients.forEach(function each(client) {
|
|
345
|
-
if (client.readyState === WebSocket.OPEN) {
|
|
346
|
-
client.send(data, { binary: isBinary });
|
|
347
|
-
}
|
|
348
|
-
});
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
```
|
|
352
|
-
|
|
353
|
-
A client WebSocket broadcasting to every other connected WebSocket clients,
|
|
354
|
-
excluding itself.
|
|
355
|
-
|
|
356
|
-
```js
|
|
357
|
-
import WebSocket, { WebSocketServer } from 'ws';
|
|
358
|
-
|
|
359
|
-
const wss = new WebSocketServer({ port: 8080 });
|
|
360
|
-
|
|
361
|
-
wss.on('connection', function connection(ws) {
|
|
362
|
-
ws.on('error', console.error);
|
|
363
|
-
|
|
364
|
-
ws.on('message', function message(data, isBinary) {
|
|
365
|
-
wss.clients.forEach(function each(client) {
|
|
366
|
-
if (client !== ws && client.readyState === WebSocket.OPEN) {
|
|
367
|
-
client.send(data, { binary: isBinary });
|
|
368
|
-
}
|
|
369
|
-
});
|
|
370
|
-
});
|
|
371
|
-
});
|
|
372
|
-
```
|
|
373
|
-
|
|
374
|
-
### Round-trip time
|
|
375
|
-
|
|
376
|
-
```js
|
|
377
|
-
import WebSocket from 'ws';
|
|
378
|
-
|
|
379
|
-
const ws = new WebSocket('wss://websocket-echo.com/');
|
|
380
|
-
|
|
381
|
-
ws.on('error', console.error);
|
|
382
|
-
|
|
383
|
-
ws.on('open', function open() {
|
|
384
|
-
console.log('connected');
|
|
385
|
-
ws.send(Date.now());
|
|
386
|
-
});
|
|
387
|
-
|
|
388
|
-
ws.on('close', function close() {
|
|
389
|
-
console.log('disconnected');
|
|
390
|
-
});
|
|
391
|
-
|
|
392
|
-
ws.on('message', function message(data) {
|
|
393
|
-
console.log(`Round-trip time: ${Date.now() - data} ms`);
|
|
394
|
-
|
|
395
|
-
setTimeout(function timeout() {
|
|
396
|
-
ws.send(Date.now());
|
|
397
|
-
}, 500);
|
|
398
|
-
});
|
|
399
|
-
```
|
|
400
|
-
|
|
401
|
-
### Use the Node.js streams API
|
|
402
|
-
|
|
403
|
-
```js
|
|
404
|
-
import WebSocket, { createWebSocketStream } from 'ws';
|
|
405
|
-
|
|
406
|
-
const ws = new WebSocket('wss://websocket-echo.com/');
|
|
407
|
-
|
|
408
|
-
const duplex = createWebSocketStream(ws, { encoding: 'utf8' });
|
|
409
|
-
|
|
410
|
-
duplex.on('error', console.error);
|
|
411
|
-
|
|
412
|
-
duplex.pipe(process.stdout);
|
|
413
|
-
process.stdin.pipe(duplex);
|
|
414
|
-
```
|
|
415
|
-
|
|
416
|
-
### Other examples
|
|
417
|
-
|
|
418
|
-
For a full example with a browser client communicating with a ws server, see the
|
|
419
|
-
examples folder.
|
|
420
|
-
|
|
421
|
-
Otherwise, see the test cases.
|
|
422
|
-
|
|
423
|
-
## FAQ
|
|
424
|
-
|
|
425
|
-
### How to get the IP address of the client?
|
|
426
|
-
|
|
427
|
-
The remote IP address can be obtained from the raw socket.
|
|
428
|
-
|
|
429
|
-
```js
|
|
430
|
-
import { WebSocketServer } from 'ws';
|
|
431
|
-
|
|
432
|
-
const wss = new WebSocketServer({ port: 8080 });
|
|
433
|
-
|
|
434
|
-
wss.on('connection', function connection(ws, req) {
|
|
435
|
-
const ip = req.socket.remoteAddress;
|
|
436
|
-
|
|
437
|
-
ws.on('error', console.error);
|
|
438
|
-
});
|
|
439
|
-
```
|
|
440
|
-
|
|
441
|
-
When the server runs behind a proxy like NGINX, the de-facto standard is to use
|
|
442
|
-
the `X-Forwarded-For` header.
|
|
443
|
-
|
|
444
|
-
```js
|
|
445
|
-
wss.on('connection', function connection(ws, req) {
|
|
446
|
-
const ip = req.headers['x-forwarded-for'].split(',')[0].trim();
|
|
447
|
-
|
|
448
|
-
ws.on('error', console.error);
|
|
449
|
-
});
|
|
450
|
-
```
|
|
451
|
-
|
|
452
|
-
### How to detect and close broken connections?
|
|
453
|
-
|
|
454
|
-
Sometimes, the link between the server and the client can be interrupted in a
|
|
455
|
-
way that keeps both the server and the client unaware of the broken state of the
|
|
456
|
-
connection (e.g. when pulling the cord).
|
|
457
|
-
|
|
458
|
-
In these cases, ping messages can be used as a means to verify that the remote
|
|
459
|
-
endpoint is still responsive.
|
|
460
|
-
|
|
461
|
-
```js
|
|
462
|
-
import { WebSocketServer } from 'ws';
|
|
463
|
-
|
|
464
|
-
function heartbeat() {
|
|
465
|
-
this.isAlive = true;
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
const wss = new WebSocketServer({ port: 8080 });
|
|
469
|
-
|
|
470
|
-
wss.on('connection', function connection(ws) {
|
|
471
|
-
ws.isAlive = true;
|
|
472
|
-
ws.on('error', console.error);
|
|
473
|
-
ws.on('pong', heartbeat);
|
|
474
|
-
});
|
|
475
|
-
|
|
476
|
-
const interval = setInterval(function ping() {
|
|
477
|
-
wss.clients.forEach(function each(ws) {
|
|
478
|
-
if (ws.isAlive === false) return ws.terminate();
|
|
479
|
-
|
|
480
|
-
ws.isAlive = false;
|
|
481
|
-
ws.ping();
|
|
482
|
-
});
|
|
483
|
-
}, 30000);
|
|
484
|
-
|
|
485
|
-
wss.on('close', function close() {
|
|
486
|
-
clearInterval(interval);
|
|
487
|
-
});
|
|
488
|
-
```
|
|
489
|
-
|
|
490
|
-
Pong messages are automatically sent in response to ping messages as required by
|
|
491
|
-
the spec.
|
|
492
|
-
|
|
493
|
-
Just like the server example above, your clients might as well lose connection
|
|
494
|
-
without knowing it. You might want to add a ping listener on your clients to
|
|
495
|
-
prevent that. A simple implementation would be:
|
|
496
|
-
|
|
497
|
-
```js
|
|
498
|
-
import WebSocket from 'ws';
|
|
499
|
-
|
|
500
|
-
function heartbeat() {
|
|
501
|
-
clearTimeout(this.pingTimeout);
|
|
502
|
-
|
|
503
|
-
// Use `WebSocket#terminate()`, which immediately destroys the connection,
|
|
504
|
-
// instead of `WebSocket#close()`, which waits for the close timer.
|
|
505
|
-
// Delay should be equal to the interval at which your server
|
|
506
|
-
// sends out pings plus a conservative assumption of the latency.
|
|
507
|
-
this.pingTimeout = setTimeout(() => {
|
|
508
|
-
this.terminate();
|
|
509
|
-
}, 30000 + 1000);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
const client = new WebSocket('wss://websocket-echo.com/');
|
|
513
|
-
|
|
514
|
-
client.on('error', console.error);
|
|
515
|
-
client.on('open', heartbeat);
|
|
516
|
-
client.on('ping', heartbeat);
|
|
517
|
-
client.on('close', function clear() {
|
|
518
|
-
clearTimeout(this.pingTimeout);
|
|
519
|
-
});
|
|
520
|
-
```
|
|
521
|
-
|
|
522
|
-
### How to connect via a proxy?
|
|
523
|
-
|
|
524
|
-
Use a custom `http.Agent` implementation like [https-proxy-agent][] or
|
|
525
|
-
[socks-proxy-agent][].
|
|
526
|
-
|
|
527
|
-
## Changelog
|
|
528
|
-
|
|
529
|
-
We're using the GitHub [releases][changelog] for changelog entries.
|
|
530
|
-
|
|
531
|
-
## License
|
|
532
|
-
|
|
533
|
-
[MIT](LICENSE)
|
|
534
|
-
|
|
535
|
-
[`buffer.isutf8()`]: https://nodejs.org/api/buffer.html#bufferisutf8input
|
|
536
|
-
[bufferutil]: https://github.com/websockets/bufferutil
|
|
537
|
-
[changelog]: https://github.com/websockets/ws/releases
|
|
538
|
-
[client-report]: http://websockets.github.io/ws/autobahn/clients/
|
|
539
|
-
[https-proxy-agent]: https://github.com/TooTallNate/node-https-proxy-agent
|
|
540
|
-
[node-zlib-bug]: https://github.com/nodejs/node/issues/8871
|
|
541
|
-
[node-zlib-deflaterawdocs]:
|
|
542
|
-
https://nodejs.org/api/zlib.html#zlib_zlib_createdeflateraw_options
|
|
543
|
-
[permessage-deflate]: https://tools.ietf.org/html/rfc7692
|
|
544
|
-
[server-report]: http://websockets.github.io/ws/autobahn/servers/
|
|
545
|
-
[session-parse-example]: ./examples/express-session-parse
|
|
546
|
-
[socks-proxy-agent]: https://github.com/TooTallNate/node-socks-proxy-agent
|
|
547
|
-
[utf-8-validate]: https://github.com/websockets/utf-8-validate
|
|
548
|
-
[ws-server-options]: ./doc/ws.md#new-websocketserveroptions-callback
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const createWebSocketStream = require('./lib/stream');
|
|
4
|
-
const extension = require('./lib/extension');
|
|
5
|
-
const PerMessageDeflate = require('./lib/permessage-deflate');
|
|
6
|
-
const Receiver = require('./lib/receiver');
|
|
7
|
-
const Sender = require('./lib/sender');
|
|
8
|
-
const subprotocol = require('./lib/subprotocol');
|
|
9
|
-
const WebSocket = require('./lib/websocket');
|
|
10
|
-
const WebSocketServer = require('./lib/websocket-server');
|
|
11
|
-
|
|
12
|
-
WebSocket.createWebSocketStream = createWebSocketStream;
|
|
13
|
-
WebSocket.extension = extension;
|
|
14
|
-
WebSocket.PerMessageDeflate = PerMessageDeflate;
|
|
15
|
-
WebSocket.Receiver = Receiver;
|
|
16
|
-
WebSocket.Sender = Sender;
|
|
17
|
-
WebSocket.Server = WebSocketServer;
|
|
18
|
-
WebSocket.subprotocol = subprotocol;
|
|
19
|
-
WebSocket.WebSocket = WebSocket;
|
|
20
|
-
WebSocket.WebSocketServer = WebSocketServer;
|
|
21
|
-
|
|
22
|
-
module.exports = WebSocket;
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const { EMPTY_BUFFER } = require('./constants');
|
|
4
|
-
|
|
5
|
-
const FastBuffer = Buffer[Symbol.species];
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Merges an array of buffers into a new buffer.
|
|
9
|
-
*
|
|
10
|
-
* @param {Buffer[]} list The array of buffers to concat
|
|
11
|
-
* @param {Number} totalLength The total length of buffers in the list
|
|
12
|
-
* @return {Buffer} The resulting buffer
|
|
13
|
-
* @public
|
|
14
|
-
*/
|
|
15
|
-
function concat(list, totalLength) {
|
|
16
|
-
if (list.length === 0) return EMPTY_BUFFER;
|
|
17
|
-
if (list.length === 1) return list[0];
|
|
18
|
-
|
|
19
|
-
const target = Buffer.allocUnsafe(totalLength);
|
|
20
|
-
let offset = 0;
|
|
21
|
-
|
|
22
|
-
for (let i = 0; i < list.length; i++) {
|
|
23
|
-
const buf = list[i];
|
|
24
|
-
target.set(buf, offset);
|
|
25
|
-
offset += buf.length;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
if (offset < totalLength) {
|
|
29
|
-
return new FastBuffer(target.buffer, target.byteOffset, offset);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return target;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Masks a buffer using the given mask.
|
|
37
|
-
*
|
|
38
|
-
* @param {Buffer} source The buffer to mask
|
|
39
|
-
* @param {Buffer} mask The mask to use
|
|
40
|
-
* @param {Buffer} output The buffer where to store the result
|
|
41
|
-
* @param {Number} offset The offset at which to start writing
|
|
42
|
-
* @param {Number} length The number of bytes to mask.
|
|
43
|
-
* @public
|
|
44
|
-
*/
|
|
45
|
-
function _mask(source, mask, output, offset, length) {
|
|
46
|
-
for (let i = 0; i < length; i++) {
|
|
47
|
-
output[offset + i] = source[i] ^ mask[i & 3];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* Unmasks a buffer using the given mask.
|
|
53
|
-
*
|
|
54
|
-
* @param {Buffer} buffer The buffer to unmask
|
|
55
|
-
* @param {Buffer} mask The mask to use
|
|
56
|
-
* @public
|
|
57
|
-
*/
|
|
58
|
-
function _unmask(buffer, mask) {
|
|
59
|
-
for (let i = 0; i < buffer.length; i++) {
|
|
60
|
-
buffer[i] ^= mask[i & 3];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Converts a buffer to an `ArrayBuffer`.
|
|
66
|
-
*
|
|
67
|
-
* @param {Buffer} buf The buffer to convert
|
|
68
|
-
* @return {ArrayBuffer} Converted buffer
|
|
69
|
-
* @public
|
|
70
|
-
*/
|
|
71
|
-
function toArrayBuffer(buf) {
|
|
72
|
-
if (buf.length === buf.buffer.byteLength) {
|
|
73
|
-
return buf.buffer;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.length);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Converts `data` to a `Buffer`.
|
|
81
|
-
*
|
|
82
|
-
* @param {*} data The data to convert
|
|
83
|
-
* @return {Buffer} The buffer
|
|
84
|
-
* @throws {TypeError}
|
|
85
|
-
* @public
|
|
86
|
-
*/
|
|
87
|
-
function toBuffer(data) {
|
|
88
|
-
toBuffer.readOnly = true;
|
|
89
|
-
|
|
90
|
-
if (Buffer.isBuffer(data)) return data;
|
|
91
|
-
|
|
92
|
-
let buf;
|
|
93
|
-
|
|
94
|
-
if (data instanceof ArrayBuffer) {
|
|
95
|
-
buf = new FastBuffer(data);
|
|
96
|
-
} else if (ArrayBuffer.isView(data)) {
|
|
97
|
-
buf = new FastBuffer(data.buffer, data.byteOffset, data.byteLength);
|
|
98
|
-
} else {
|
|
99
|
-
buf = Buffer.from(data);
|
|
100
|
-
toBuffer.readOnly = false;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
return buf;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
module.exports = {
|
|
107
|
-
concat,
|
|
108
|
-
mask: _mask,
|
|
109
|
-
toArrayBuffer,
|
|
110
|
-
toBuffer,
|
|
111
|
-
unmask: _unmask
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
/* istanbul ignore else */
|
|
115
|
-
if (!process.env.WS_NO_BUFFER_UTIL) {
|
|
116
|
-
try {
|
|
117
|
-
const bufferUtil = require('bufferutil');
|
|
118
|
-
|
|
119
|
-
module.exports.mask = function (source, mask, output, offset, length) {
|
|
120
|
-
if (length < 48) _mask(source, mask, output, offset, length);
|
|
121
|
-
else bufferUtil.mask(source, mask, output, offset, length);
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
module.exports.unmask = function (buffer, mask) {
|
|
125
|
-
if (buffer.length < 32) _unmask(buffer, mask);
|
|
126
|
-
else bufferUtil.unmask(buffer, mask);
|
|
127
|
-
};
|
|
128
|
-
} catch (e) {
|
|
129
|
-
// Continue regardless of the error.
|
|
130
|
-
}
|
|
131
|
-
}
|