@outfoxx/sunday 1.1.0-beta.9 → 2.0.0-beta.1
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 +2 -0
- package/build/date-time-types.d.ts +35 -0
- package/build/date-time-types.js +699 -0
- package/build/date-time-types.js.map +1 -0
- package/build/{esm/event-parser.d.ts → event-parser.d.ts} +1 -1
- package/build/{esm/event-parser.js → event-parser.js} +10 -12
- package/build/event-parser.js.map +1 -0
- package/build/{esm/fetch-event-source.d.ts → fetch-event-source.d.ts} +26 -18
- package/build/fetch-event-source.js +365 -0
- package/build/fetch-event-source.js.map +1 -0
- package/build/fetch-transport.d.ts +32 -0
- package/build/fetch-transport.js +311 -0
- package/build/fetch-transport.js.map +1 -0
- package/build/fetch.d.ts +9 -0
- package/build/fetch.js +140 -0
- package/build/fetch.js.map +1 -0
- package/build/{esnext/header-parameters.js → header-parameters.js} +31 -2
- package/build/header-parameters.js.map +1 -0
- package/build/index.d.ts +27 -0
- package/build/index.js +42 -0
- package/build/index.js.map +1 -0
- package/build/{main/logger.d.ts → logger.d.ts} +9 -0
- package/build/logger.js +36 -0
- package/build/logger.js.map +1 -0
- package/build/media-type-codecs/any-text-decoder.d.ts +7 -0
- package/build/{esm/media-type-codecs → media-type-codecs}/any-text-decoder.js +9 -9
- package/build/media-type-codecs/any-text-decoder.js.map +1 -0
- package/build/media-type-codecs/any-text-encoder.d.ts +6 -0
- package/build/{esm/media-type-codecs → media-type-codecs}/any-text-encoder.js +9 -5
- package/build/media-type-codecs/any-text-encoder.js.map +1 -0
- package/build/media-type-codecs/binary-decoder.d.ts +7 -0
- package/build/{esnext/media-type-codecs → media-type-codecs}/binary-decoder.js +13 -9
- package/build/media-type-codecs/binary-decoder.js.map +1 -0
- package/build/media-type-codecs/binary-encoder.d.ts +6 -0
- package/build/{esnext/media-type-codecs → media-type-codecs}/binary-encoder.js +12 -8
- package/build/media-type-codecs/binary-encoder.js.map +1 -0
- package/build/media-type-codecs/cbor-decoder.d.ts +13 -0
- package/build/media-type-codecs/cbor-decoder.js +38 -0
- package/build/media-type-codecs/cbor-decoder.js.map +1 -0
- package/build/media-type-codecs/cbor-encoder.d.ts +12 -0
- package/build/media-type-codecs/cbor-encoder.js +36 -0
- package/build/media-type-codecs/cbor-encoder.js.map +1 -0
- package/build/{esm/media-type-codecs → media-type-codecs}/cbor-tags.d.ts +2 -0
- package/build/{esnext/media-type-codecs → media-type-codecs}/cbor-tags.js +2 -0
- package/build/media-type-codecs/cbor-tags.js.map +1 -0
- package/build/media-type-codecs/default-policies.d.ts +3 -0
- package/build/media-type-codecs/default-policies.js +33 -0
- package/build/media-type-codecs/default-policies.js.map +1 -0
- package/build/media-type-codecs/json-decoder.d.ts +14 -0
- package/build/media-type-codecs/json-decoder.js +40 -0
- package/build/media-type-codecs/json-decoder.js.map +1 -0
- package/build/media-type-codecs/json-encoder.d.ts +13 -0
- package/build/media-type-codecs/json-encoder.js +43 -0
- package/build/media-type-codecs/json-encoder.js.map +1 -0
- package/build/media-type-codecs/media-type-decoder.d.ts +14 -0
- package/build/{esm/media-type-codecs → media-type-codecs}/media-type-decoder.js +1 -2
- package/build/media-type-codecs/media-type-decoder.js.map +1 -0
- package/build/{main/media-type-codecs → media-type-codecs}/media-type-decoders.d.ts +6 -8
- package/build/media-type-codecs/media-type-decoders.js +63 -0
- package/build/media-type-codecs/media-type-decoders.js.map +1 -0
- package/build/{main/media-type-codecs → media-type-codecs}/media-type-encoder.d.ts +3 -3
- package/build/{esnext/media-type-codecs → media-type-codecs}/media-type-encoder.js +2 -4
- package/build/media-type-codecs/media-type-encoder.js.map +1 -0
- package/build/{esnext/media-type-codecs → media-type-codecs}/media-type-encoders.d.ts +6 -8
- package/build/media-type-codecs/media-type-encoders.js +65 -0
- package/build/media-type-codecs/media-type-encoders.js.map +1 -0
- package/build/media-type-codecs/www-form-url-encoder.d.ts +31 -0
- package/build/media-type-codecs/www-form-url-encoder.js +281 -0
- package/build/media-type-codecs/www-form-url-encoder.js.map +1 -0
- package/build/{esm/media-type.js → media-type.js} +23 -23
- package/build/media-type.js.map +1 -0
- package/build/operation-response.d.ts +33 -0
- package/build/operation-response.js +140 -0
- package/build/operation-response.js.map +1 -0
- package/build/operation.d.ts +54 -0
- package/build/operation.js +87 -0
- package/build/operation.js.map +1 -0
- package/build/problem.d.ts +35 -0
- package/build/problem.js +122 -0
- package/build/problem.js.map +1 -0
- package/build/request-adapters.d.ts +23 -0
- package/build/request-adapters.js +53 -0
- package/build/request-adapters.js.map +1 -0
- package/build/schema-builtins.d.ts +21 -0
- package/build/schema-builtins.js +201 -0
- package/build/schema-builtins.js.map +1 -0
- package/build/schema-policy.d.ts +31 -0
- package/build/schema-policy.js +41 -0
- package/build/schema-policy.js.map +1 -0
- package/build/schema-runtime.d.ts +36 -0
- package/build/schema-runtime.js +77 -0
- package/build/schema-runtime.js.map +1 -0
- package/build/{esnext/sunday-error.d.ts → sunday-error.d.ts} +2 -3
- package/build/{esm/sunday-error.js → sunday-error.js} +9 -4
- package/build/sunday-error.js.map +1 -0
- package/build/transport.d.ts +39 -0
- package/build/{esnext/logger.js → transport.js} +1 -1
- package/build/transport.js.map +1 -0
- package/build/{esm/url-template.js → url-template.js} +5 -3
- package/build/url-template.js.map +1 -0
- package/build/util/async-iterables.d.ts +15 -0
- package/build/util/async-iterables.js +179 -0
- package/build/util/async-iterables.js.map +1 -0
- package/build/util/errors.js +65 -0
- package/build/util/errors.js.map +1 -0
- package/build/util/nullify.d.ts +5 -0
- package/build/util/nullify.js +37 -0
- package/build/util/nullify.js.map +1 -0
- package/build/util/numbers.d.ts +11 -0
- package/build/{esnext/util/temporal.js → util/numbers.js} +14 -4
- package/build/util/numbers.js.map +1 -0
- package/build/util/subscriptions.d.ts +16 -0
- package/build/util/subscriptions.js +78 -0
- package/build/util/subscriptions.js.map +1 -0
- package/build/{esm/util/any.js → util/unknowns.js} +2 -3
- package/build/util/unknowns.js.map +1 -0
- package/package.json +58 -58
- package/build/esm/any-type.d.ts +0 -4
- package/build/esm/any-type.js +0 -15
- package/build/esm/any-type.js.map +0 -1
- package/build/esm/class-type.d.ts +0 -2
- package/build/esm/class-type.js +0 -15
- package/build/esm/class-type.js.map +0 -1
- package/build/esm/date-time-types.d.ts +0 -2
- package/build/esm/date-time-types.js +0 -16
- package/build/esm/date-time-types.js.map +0 -1
- package/build/esm/event-parser.js.map +0 -1
- package/build/esm/fetch-event-source.js +0 -290
- package/build/esm/fetch-event-source.js.map +0 -1
- package/build/esm/fetch-request-factory.d.ts +0 -34
- package/build/esm/fetch-request-factory.js +0 -181
- package/build/esm/fetch-request-factory.js.map +0 -1
- package/build/esm/fetch.d.ts +0 -7
- package/build/esm/fetch.js +0 -90
- package/build/esm/fetch.js.map +0 -1
- package/build/esm/header-parameters.js +0 -53
- package/build/esm/header-parameters.js.map +0 -1
- package/build/esm/index.d.ts +0 -26
- package/build/esm/index.js +0 -40
- package/build/esm/index.js.map +0 -1
- package/build/esm/logger.d.ts +0 -8
- package/build/esm/logger.js +0 -15
- package/build/esm/logger.js.map +0 -1
- package/build/esm/media-type-codecs/any-text-decoder.d.ts +0 -7
- package/build/esm/media-type-codecs/any-text-decoder.js.map +0 -1
- package/build/esm/media-type-codecs/any-text-encoder.d.ts +0 -5
- package/build/esm/media-type-codecs/any-text-encoder.js.map +0 -1
- package/build/esm/media-type-codecs/binary-decoder.d.ts +0 -6
- package/build/esm/media-type-codecs/binary-decoder.js +0 -29
- package/build/esm/media-type-codecs/binary-decoder.js.map +0 -1
- package/build/esm/media-type-codecs/binary-encoder.d.ts +0 -5
- package/build/esm/media-type-codecs/binary-encoder.js +0 -26
- package/build/esm/media-type-codecs/binary-encoder.js.map +0 -1
- package/build/esm/media-type-codecs/cbor-decoder.d.ts +0 -39
- package/build/esm/media-type-codecs/cbor-decoder.js +0 -426
- package/build/esm/media-type-codecs/cbor-decoder.js.map +0 -1
- package/build/esm/media-type-codecs/cbor-encoder.d.ts +0 -43
- package/build/esm/media-type-codecs/cbor-encoder.js +0 -236
- package/build/esm/media-type-codecs/cbor-encoder.js.map +0 -1
- package/build/esm/media-type-codecs/cbor-tags.js +0 -18
- package/build/esm/media-type-codecs/cbor-tags.js.map +0 -1
- package/build/esm/media-type-codecs/json-decoder.d.ts +0 -39
- package/build/esm/media-type-codecs/json-decoder.js +0 -380
- package/build/esm/media-type-codecs/json-decoder.js.map +0 -1
- package/build/esm/media-type-codecs/json-encoder.d.ts +0 -44
- package/build/esm/media-type-codecs/json-encoder.js +0 -273
- package/build/esm/media-type-codecs/json-encoder.js.map +0 -1
- package/build/esm/media-type-codecs/media-type-decoder.d.ts +0 -11
- package/build/esm/media-type-codecs/media-type-decoder.js.map +0 -1
- package/build/esm/media-type-codecs/media-type-decoders.d.ts +0 -18
- package/build/esm/media-type-codecs/media-type-decoders.js +0 -58
- package/build/esm/media-type-codecs/media-type-decoders.js.map +0 -1
- package/build/esm/media-type-codecs/media-type-encoder.d.ts +0 -12
- package/build/esm/media-type-codecs/media-type-encoder.js +0 -24
- package/build/esm/media-type-codecs/media-type-encoder.js.map +0 -1
- package/build/esm/media-type-codecs/media-type-encoders.d.ts +0 -18
- package/build/esm/media-type-codecs/media-type-encoders.js +0 -60
- package/build/esm/media-type-codecs/media-type-encoders.js.map +0 -1
- package/build/esm/media-type-codecs/www-form-url-encoder.d.ts +0 -59
- package/build/esm/media-type-codecs/www-form-url-encoder.js +0 -192
- package/build/esm/media-type-codecs/www-form-url-encoder.js.map +0 -1
- package/build/esm/media-type.js.map +0 -1
- package/build/esm/problem.d.ts +0 -31
- package/build/esm/problem.js +0 -158
- package/build/esm/problem.js.map +0 -1
- package/build/esm/request-factory.d.ts +0 -44
- package/build/esm/request-factory.js +0 -15
- package/build/esm/request-factory.js.map +0 -1
- package/build/esm/result-response.d.ts +0 -4
- package/build/esm/result-response.js +0 -15
- package/build/esm/result-response.js.map +0 -1
- package/build/esm/sunday-error.d.ts +0 -11
- package/build/esm/sunday-error.js.map +0 -1
- package/build/esm/url-template.js.map +0 -1
- package/build/esm/util/any.js.map +0 -1
- package/build/esm/util/base64.d.ts +0 -5
- package/build/esm/util/base64.js +0 -77
- package/build/esm/util/base64.js.map +0 -1
- package/build/esm/util/error.js +0 -26
- package/build/esm/util/error.js.map +0 -1
- package/build/esm/util/hex.d.ts +0 -4
- package/build/esm/util/hex.js +0 -32
- package/build/esm/util/hex.js.map +0 -1
- package/build/esm/util/rxjs.d.ts +0 -5
- package/build/esm/util/rxjs.js +0 -31
- package/build/esm/util/rxjs.js.map +0 -1
- package/build/esm/util/stream-rxjs.d.ts +0 -2
- package/build/esm/util/stream-rxjs.js +0 -39
- package/build/esm/util/stream-rxjs.js.map +0 -1
- package/build/esm/util/temporal.d.ts +0 -2
- package/build/esm/util/temporal.js +0 -31
- package/build/esm/util/temporal.js.map +0 -1
- package/build/esnext/any-type.d.ts +0 -4
- package/build/esnext/any-type.js +0 -15
- package/build/esnext/any-type.js.map +0 -1
- package/build/esnext/class-type.d.ts +0 -2
- package/build/esnext/class-type.js +0 -15
- package/build/esnext/class-type.js.map +0 -1
- package/build/esnext/date-time-types.d.ts +0 -2
- package/build/esnext/date-time-types.js +0 -16
- package/build/esnext/date-time-types.js.map +0 -1
- package/build/esnext/event-parser.d.ts +0 -17
- package/build/esnext/event-parser.js +0 -153
- package/build/esnext/event-parser.js.map +0 -1
- package/build/esnext/fetch-event-source.d.ts +0 -58
- package/build/esnext/fetch-event-source.js +0 -290
- package/build/esnext/fetch-event-source.js.map +0 -1
- package/build/esnext/fetch-request-factory.d.ts +0 -34
- package/build/esnext/fetch-request-factory.js +0 -181
- package/build/esnext/fetch-request-factory.js.map +0 -1
- package/build/esnext/fetch.d.ts +0 -7
- package/build/esnext/fetch.js +0 -90
- package/build/esnext/fetch.js.map +0 -1
- package/build/esnext/header-parameters.d.ts +0 -3
- package/build/esnext/header-parameters.js.map +0 -1
- package/build/esnext/index.d.ts +0 -26
- package/build/esnext/index.js +0 -40
- package/build/esnext/index.js.map +0 -1
- package/build/esnext/logger.d.ts +0 -8
- package/build/esnext/logger.js.map +0 -1
- package/build/esnext/media-type-codecs/any-text-decoder.d.ts +0 -7
- package/build/esnext/media-type-codecs/any-text-decoder.js +0 -29
- package/build/esnext/media-type-codecs/any-text-decoder.js.map +0 -1
- package/build/esnext/media-type-codecs/any-text-encoder.d.ts +0 -5
- package/build/esnext/media-type-codecs/any-text-encoder.js +0 -23
- package/build/esnext/media-type-codecs/any-text-encoder.js.map +0 -1
- package/build/esnext/media-type-codecs/binary-decoder.d.ts +0 -6
- package/build/esnext/media-type-codecs/binary-decoder.js.map +0 -1
- package/build/esnext/media-type-codecs/binary-encoder.d.ts +0 -5
- package/build/esnext/media-type-codecs/binary-encoder.js.map +0 -1
- package/build/esnext/media-type-codecs/cbor-decoder.d.ts +0 -39
- package/build/esnext/media-type-codecs/cbor-decoder.js +0 -426
- package/build/esnext/media-type-codecs/cbor-decoder.js.map +0 -1
- package/build/esnext/media-type-codecs/cbor-encoder.d.ts +0 -43
- package/build/esnext/media-type-codecs/cbor-encoder.js +0 -236
- package/build/esnext/media-type-codecs/cbor-encoder.js.map +0 -1
- package/build/esnext/media-type-codecs/cbor-tags.d.ts +0 -4
- package/build/esnext/media-type-codecs/cbor-tags.js.map +0 -1
- package/build/esnext/media-type-codecs/json-decoder.d.ts +0 -39
- package/build/esnext/media-type-codecs/json-decoder.js +0 -380
- package/build/esnext/media-type-codecs/json-decoder.js.map +0 -1
- package/build/esnext/media-type-codecs/json-encoder.d.ts +0 -44
- package/build/esnext/media-type-codecs/json-encoder.js +0 -273
- package/build/esnext/media-type-codecs/json-encoder.js.map +0 -1
- package/build/esnext/media-type-codecs/media-type-decoder.d.ts +0 -11
- package/build/esnext/media-type-codecs/media-type-decoder.js +0 -19
- package/build/esnext/media-type-codecs/media-type-decoder.js.map +0 -1
- package/build/esnext/media-type-codecs/media-type-decoders.d.ts +0 -18
- package/build/esnext/media-type-codecs/media-type-decoders.js +0 -58
- package/build/esnext/media-type-codecs/media-type-decoders.js.map +0 -1
- package/build/esnext/media-type-codecs/media-type-encoder.d.ts +0 -12
- package/build/esnext/media-type-codecs/media-type-encoder.js.map +0 -1
- package/build/esnext/media-type-codecs/media-type-encoders.js +0 -60
- package/build/esnext/media-type-codecs/media-type-encoders.js.map +0 -1
- package/build/esnext/media-type-codecs/www-form-url-encoder.d.ts +0 -59
- package/build/esnext/media-type-codecs/www-form-url-encoder.js +0 -192
- package/build/esnext/media-type-codecs/www-form-url-encoder.js.map +0 -1
- package/build/esnext/media-type.d.ts +0 -94
- package/build/esnext/media-type.js +0 -305
- package/build/esnext/media-type.js.map +0 -1
- package/build/esnext/problem.d.ts +0 -31
- package/build/esnext/problem.js +0 -158
- package/build/esnext/problem.js.map +0 -1
- package/build/esnext/request-factory.d.ts +0 -44
- package/build/esnext/request-factory.js +0 -15
- package/build/esnext/request-factory.js.map +0 -1
- package/build/esnext/result-response.d.ts +0 -4
- package/build/esnext/result-response.js +0 -15
- package/build/esnext/result-response.js.map +0 -1
- package/build/esnext/sunday-error.js +0 -31
- package/build/esnext/sunday-error.js.map +0 -1
- package/build/esnext/url-template.d.ts +0 -6
- package/build/esnext/url-template.js +0 -31
- package/build/esnext/url-template.js.map +0 -1
- package/build/esnext/util/any.d.ts +0 -2
- package/build/esnext/util/any.js +0 -24
- package/build/esnext/util/any.js.map +0 -1
- package/build/esnext/util/base64.d.ts +0 -5
- package/build/esnext/util/base64.js +0 -77
- package/build/esnext/util/base64.js.map +0 -1
- package/build/esnext/util/error.d.ts +0 -2
- package/build/esnext/util/error.js +0 -26
- package/build/esnext/util/error.js.map +0 -1
- package/build/esnext/util/hex.d.ts +0 -4
- package/build/esnext/util/hex.js +0 -32
- package/build/esnext/util/hex.js.map +0 -1
- package/build/esnext/util/rxjs.d.ts +0 -5
- package/build/esnext/util/rxjs.js +0 -31
- package/build/esnext/util/rxjs.js.map +0 -1
- package/build/esnext/util/stream-rxjs.d.ts +0 -2
- package/build/esnext/util/stream-rxjs.js +0 -39
- package/build/esnext/util/stream-rxjs.js.map +0 -1
- package/build/esnext/util/temporal.d.ts +0 -2
- package/build/esnext/util/temporal.js.map +0 -1
- package/build/main/any-type.d.ts +0 -4
- package/build/main/any-type.js +0 -16
- package/build/main/any-type.js.map +0 -1
- package/build/main/class-type.d.ts +0 -2
- package/build/main/class-type.js +0 -16
- package/build/main/class-type.js.map +0 -1
- package/build/main/date-time-types.d.ts +0 -2
- package/build/main/date-time-types.js +0 -27
- package/build/main/date-time-types.js.map +0 -1
- package/build/main/event-parser.d.ts +0 -17
- package/build/main/event-parser.js +0 -157
- package/build/main/event-parser.js.map +0 -1
- package/build/main/fetch-event-source.d.ts +0 -58
- package/build/main/fetch-event-source.js +0 -294
- package/build/main/fetch-event-source.js.map +0 -1
- package/build/main/fetch-request-factory.d.ts +0 -34
- package/build/main/fetch-request-factory.js +0 -185
- package/build/main/fetch-request-factory.js.map +0 -1
- package/build/main/fetch.d.ts +0 -7
- package/build/main/fetch.js +0 -94
- package/build/main/fetch.js.map +0 -1
- package/build/main/header-parameters.d.ts +0 -3
- package/build/main/header-parameters.js +0 -56
- package/build/main/header-parameters.js.map +0 -1
- package/build/main/index.d.ts +0 -26
- package/build/main/index.js +0 -52
- package/build/main/index.js.map +0 -1
- package/build/main/logger.js +0 -16
- package/build/main/logger.js.map +0 -1
- package/build/main/media-type-codecs/any-text-decoder.d.ts +0 -7
- package/build/main/media-type-codecs/any-text-decoder.js +0 -33
- package/build/main/media-type-codecs/any-text-decoder.js.map +0 -1
- package/build/main/media-type-codecs/any-text-encoder.d.ts +0 -5
- package/build/main/media-type-codecs/any-text-encoder.js +0 -27
- package/build/main/media-type-codecs/any-text-encoder.js.map +0 -1
- package/build/main/media-type-codecs/binary-decoder.d.ts +0 -6
- package/build/main/media-type-codecs/binary-decoder.js +0 -33
- package/build/main/media-type-codecs/binary-decoder.js.map +0 -1
- package/build/main/media-type-codecs/binary-encoder.d.ts +0 -5
- package/build/main/media-type-codecs/binary-encoder.js +0 -30
- package/build/main/media-type-codecs/binary-encoder.js.map +0 -1
- package/build/main/media-type-codecs/cbor-decoder.d.ts +0 -39
- package/build/main/media-type-codecs/cbor-decoder.js +0 -430
- package/build/main/media-type-codecs/cbor-decoder.js.map +0 -1
- package/build/main/media-type-codecs/cbor-encoder.d.ts +0 -43
- package/build/main/media-type-codecs/cbor-encoder.js +0 -240
- package/build/main/media-type-codecs/cbor-encoder.js.map +0 -1
- package/build/main/media-type-codecs/cbor-tags.d.ts +0 -4
- package/build/main/media-type-codecs/cbor-tags.js +0 -21
- package/build/main/media-type-codecs/cbor-tags.js.map +0 -1
- package/build/main/media-type-codecs/json-decoder.d.ts +0 -39
- package/build/main/media-type-codecs/json-decoder.js +0 -384
- package/build/main/media-type-codecs/json-decoder.js.map +0 -1
- package/build/main/media-type-codecs/json-encoder.d.ts +0 -44
- package/build/main/media-type-codecs/json-encoder.js +0 -277
- package/build/main/media-type-codecs/json-encoder.js.map +0 -1
- package/build/main/media-type-codecs/media-type-decoder.d.ts +0 -11
- package/build/main/media-type-codecs/media-type-decoder.js +0 -23
- package/build/main/media-type-codecs/media-type-decoder.js.map +0 -1
- package/build/main/media-type-codecs/media-type-decoders.js +0 -62
- package/build/main/media-type-codecs/media-type-decoders.js.map +0 -1
- package/build/main/media-type-codecs/media-type-encoder.js +0 -29
- package/build/main/media-type-codecs/media-type-encoder.js.map +0 -1
- package/build/main/media-type-codecs/media-type-encoders.d.ts +0 -18
- package/build/main/media-type-codecs/media-type-encoders.js +0 -64
- package/build/main/media-type-codecs/media-type-encoders.js.map +0 -1
- package/build/main/media-type-codecs/www-form-url-encoder.d.ts +0 -59
- package/build/main/media-type-codecs/www-form-url-encoder.js +0 -196
- package/build/main/media-type-codecs/www-form-url-encoder.js.map +0 -1
- package/build/main/media-type.d.ts +0 -94
- package/build/main/media-type.js +0 -309
- package/build/main/media-type.js.map +0 -1
- package/build/main/problem.d.ts +0 -31
- package/build/main/problem.js +0 -161
- package/build/main/problem.js.map +0 -1
- package/build/main/request-factory.d.ts +0 -44
- package/build/main/request-factory.js +0 -16
- package/build/main/request-factory.js.map +0 -1
- package/build/main/result-response.d.ts +0 -4
- package/build/main/result-response.js +0 -16
- package/build/main/result-response.js.map +0 -1
- package/build/main/sunday-error.d.ts +0 -11
- package/build/main/sunday-error.js +0 -35
- package/build/main/sunday-error.js.map +0 -1
- package/build/main/url-template.d.ts +0 -6
- package/build/main/url-template.js +0 -35
- package/build/main/url-template.js.map +0 -1
- package/build/main/util/any.d.ts +0 -2
- package/build/main/util/any.js +0 -29
- package/build/main/util/any.js.map +0 -1
- package/build/main/util/base64.d.ts +0 -5
- package/build/main/util/base64.js +0 -80
- package/build/main/util/base64.js.map +0 -1
- package/build/main/util/error.d.ts +0 -2
- package/build/main/util/error.js +0 -31
- package/build/main/util/error.js.map +0 -1
- package/build/main/util/hex.d.ts +0 -4
- package/build/main/util/hex.js +0 -35
- package/build/main/util/hex.js.map +0 -1
- package/build/main/util/rxjs.d.ts +0 -5
- package/build/main/util/rxjs.js +0 -36
- package/build/main/util/rxjs.js.map +0 -1
- package/build/main/util/stream-rxjs.d.ts +0 -2
- package/build/main/util/stream-rxjs.js +0 -43
- package/build/main/util/stream-rxjs.js.map +0 -1
- package/build/main/util/temporal.d.ts +0 -2
- package/build/main/util/temporal.js +0 -36
- package/build/main/util/temporal.js.map +0 -1
- /package/build/{esm/header-parameters.d.ts → header-parameters.d.ts} +0 -0
- /package/build/{esm/media-type.d.ts → media-type.d.ts} +0 -0
- /package/build/{esm/url-template.d.ts → url-template.d.ts} +0 -0
- /package/build/{esm/util/error.d.ts → util/errors.d.ts} +0 -0
- /package/build/{esm/util/any.d.ts → util/unknowns.d.ts} +0 -0
package/build/esm/util/error.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 Outfox, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
export function isError(value) {
|
|
15
|
-
return value instanceof Error;
|
|
16
|
-
}
|
|
17
|
-
export function errorToMessage(value, defMsg) {
|
|
18
|
-
return isError(value) ? value.message : defMsg !== null && defMsg !== void 0 ? defMsg : `${fmtMsg(value)}`;
|
|
19
|
-
}
|
|
20
|
-
function fmtMsg(value) {
|
|
21
|
-
if (value instanceof Object) {
|
|
22
|
-
return JSON.stringify(value);
|
|
23
|
-
}
|
|
24
|
-
return `${value}`;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/util/error.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,MAAM,UAAU,OAAO,CAAC,KAAc;IACpC,OAAO,KAAK,YAAY,KAAK,CAAC;AAChC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,KAAc,EAAE,MAAe;IAC5D,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACvE,CAAC;AAED,SAAS,MAAM,CAAC,KAAc;IAC5B,IAAI,KAAK,YAAY,MAAM,EAAE;QAC3B,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;KAC9B;IACD,OAAO,GAAG,KAAK,EAAE,CAAC;AACpB,CAAC"}
|
package/build/esm/util/hex.d.ts
DELETED
package/build/esm/util/hex.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 Outfox, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
export var Hex;
|
|
15
|
-
(function (Hex) {
|
|
16
|
-
function decode(hex) {
|
|
17
|
-
hex = hex.replace(/^0x/, '').replace(/\s/g, '');
|
|
18
|
-
const values = hex.match(/[\da-f]{2}/gi);
|
|
19
|
-
if (!values || values.length != hex.length / 2) {
|
|
20
|
-
throw Error(`Invalid hex string`);
|
|
21
|
-
}
|
|
22
|
-
return new Uint8Array(values.map((b) => parseInt(b, 16))).buffer;
|
|
23
|
-
}
|
|
24
|
-
Hex.decode = decode;
|
|
25
|
-
function encode(buffer, separator = '') {
|
|
26
|
-
return Array.from(new Uint8Array(buffer))
|
|
27
|
-
.map((value) => value.toString(16).padStart(2, '0'))
|
|
28
|
-
.join(separator);
|
|
29
|
-
}
|
|
30
|
-
Hex.encode = encode;
|
|
31
|
-
})(Hex || (Hex = {}));
|
|
32
|
-
//# sourceMappingURL=hex.js.map
|
|
@@ -1 +0,0 @@
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
package/build/esm/util/rxjs.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ClassType } from '../class-type';
|
|
3
|
-
import { Problem } from '../problem';
|
|
4
|
-
export declare function nullifyNotFound<T>(): (source: Observable<T>) => Observable<T | null>;
|
|
5
|
-
export declare function nullifyResponse<T>(statuses: number[], problemTypes: ClassType<Problem>[]): (source: Observable<T>) => Observable<T | null>;
|
package/build/esm/util/rxjs.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 Outfox, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
import { catchError, from, throwError } from 'rxjs';
|
|
15
|
-
import { Problem } from '../problem';
|
|
16
|
-
export function nullifyNotFound() {
|
|
17
|
-
return nullifyResponse([404], []);
|
|
18
|
-
}
|
|
19
|
-
export function nullifyResponse(statuses, problemTypes) {
|
|
20
|
-
return function (source) {
|
|
21
|
-
return source.pipe(catchError((error) => {
|
|
22
|
-
const errorType = error.constructor;
|
|
23
|
-
if (error instanceof Problem &&
|
|
24
|
-
(statuses.includes(error.status) || problemTypes.includes(errorType))) {
|
|
25
|
-
return from([null]);
|
|
26
|
-
}
|
|
27
|
-
return throwError(() => error);
|
|
28
|
-
}));
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=rxjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rxjs.js","sourceRoot":"","sources":["../../../src/util/rxjs.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAc,UAAU,EAAE,MAAM,MAAM,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAErC,MAAM,UAAU,eAAe;IAG7B,OAAO,eAAe,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,eAAe,CAC7B,QAAkB,EAClB,YAAkC;IAElC,OAAO,UAAa,MAAqB;QACvC,OAAO,MAAM,CAAC,IAAI,CAChB,UAAU,CAAC,CAAC,KAAK,EAAE,EAAE;YACnB,MAAM,SAAS,GAAG,KAAK,CAAC,WAAiC,CAAC;YAC1D,IACE,KAAK,YAAY,OAAO;gBACxB,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EACrE;gBACA,OAAO,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;aACrB;YACD,OAAO,UAAU,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;QACjC,CAAC,CAAC,CACH,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 Outfox, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
import { Observable } from 'rxjs';
|
|
15
|
-
export function fromStream(stream) {
|
|
16
|
-
return new Observable((subscriber) => {
|
|
17
|
-
let reader;
|
|
18
|
-
(async function readLoop() {
|
|
19
|
-
try {
|
|
20
|
-
reader = stream.getReader();
|
|
21
|
-
while (true) {
|
|
22
|
-
const { done, value } = await reader.read();
|
|
23
|
-
if (value !== undefined) {
|
|
24
|
-
subscriber.next(value);
|
|
25
|
-
}
|
|
26
|
-
if (done) {
|
|
27
|
-
subscriber.complete();
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
catch (e) {
|
|
33
|
-
subscriber.error(e);
|
|
34
|
-
}
|
|
35
|
-
})();
|
|
36
|
-
return () => reader === null || reader === void 0 ? void 0 : reader.cancel();
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=stream-rxjs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stream-rxjs.js","sourceRoot":"","sources":["../../../src/util/stream-rxjs.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,UAAU,UAAU,CACxB,MAAkC;IAElC,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,EAAE;QACnC,IAAI,MAA+C,CAAC;QACpD,CAAC,KAAK,UAAU,QAAQ;YACtB,IAAI;gBACF,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;gBAC5B,OAAO,IAAI,EAAE;oBACX,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;oBAC5C,IAAI,KAAK,KAAK,SAAS,EAAE;wBACvB,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;qBACxB;oBAED,IAAI,IAAI,EAAE;wBACR,UAAU,CAAC,QAAQ,EAAE,CAAC;wBACtB,OAAO;qBACR;iBACF;aACF;YAAC,OAAO,CAAC,EAAE;gBACV,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;aACrB;QACH,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,GAAG,EAAE,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,EAAE,CAAC;IAChC,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 Outfox, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
export function secondsToNumber(seconds, nanos) {
|
|
15
|
-
if (nanos == 0) {
|
|
16
|
-
return seconds;
|
|
17
|
-
}
|
|
18
|
-
const nanoStr = nanos.toString();
|
|
19
|
-
return parseFloat(`${seconds}.${'0'.repeat(9 - nanoStr.length)}${nanos}`);
|
|
20
|
-
}
|
|
21
|
-
export function encodeSeconds(seconds, fraction) {
|
|
22
|
-
const result = [];
|
|
23
|
-
if (seconds != 0 || fraction != 0) {
|
|
24
|
-
result.push(seconds);
|
|
25
|
-
if (fraction != 0) {
|
|
26
|
-
result.push(fraction);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return result;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=temporal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"temporal.js","sourceRoot":"","sources":["../../../src/util/temporal.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,MAAM,UAAU,eAAe,CAAC,OAAe,EAAE,KAAa;IAC5D,IAAI,KAAK,IAAI,CAAC,EAAE;QACd,OAAO,OAAO,CAAC;KAChB;IACD,MAAM,OAAO,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IACjC,OAAO,UAAU,CAAC,GAAG,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,OAAe,EAAE,QAAgB;IAC7D,MAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,OAAO,IAAI,CAAC,IAAI,QAAQ,IAAI,CAAC,EAAE;QACjC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrB,IAAI,QAAQ,IAAI,CAAC,EAAE;YACjB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACvB;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/build/esnext/any-type.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 Outfox, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=any-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"any-type.js","sourceRoot":"","sources":["../../src/any-type.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 Outfox, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=class-type.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"class-type.js","sourceRoot":"","sources":["../../src/class-type.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 Outfox, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
import { Duration, Instant, LocalDate, LocalDateTime, LocalTime, OffsetDateTime, OffsetTime, Period, ZonedDateTime, } from '@js-joda/core';
|
|
15
|
-
export { Duration, Instant, LocalDate, LocalTime, LocalDateTime, OffsetDateTime, OffsetTime, Period, ZonedDateTime, };
|
|
16
|
-
//# sourceMappingURL=date-time-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-time-types.js","sourceRoot":"","sources":["../../src/date-time-types.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,OAAO,EACL,QAAQ,EACR,OAAO,EACP,SAAS,EACT,aAAa,EACb,SAAS,EACT,cAAc,EACd,UAAU,EACV,MAAM,EACN,aAAa,GACd,MAAM,eAAe,CAAC;AAEvB,OAAO,EACL,QAAQ,EACR,OAAO,EACP,SAAS,EACT,SAAS,EACT,aAAa,EACb,cAAc,EACd,UAAU,EACV,MAAM,EACN,aAAa,GACd,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export interface EventInfo {
|
|
2
|
-
id?: string;
|
|
3
|
-
event?: string;
|
|
4
|
-
data?: string;
|
|
5
|
-
retry?: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class EventParser {
|
|
8
|
-
private decoder;
|
|
9
|
-
private unprocessedBuffer?;
|
|
10
|
-
process(buffer: ArrayBuffer, dispatcher: (eventInfo: EventInfo) => void): void;
|
|
11
|
-
private buildAvailableBuffer;
|
|
12
|
-
private extractEventStringsFromBuffer;
|
|
13
|
-
private static findEventSeparator;
|
|
14
|
-
private static parseAndDispatchEvents;
|
|
15
|
-
private static parseEvent;
|
|
16
|
-
private static trimFieldValue;
|
|
17
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 Outfox, Inc.
|
|
2
|
-
//
|
|
3
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
// you may not use this file except in compliance with the License.
|
|
5
|
-
// You may obtain a copy of the License at
|
|
6
|
-
//
|
|
7
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
//
|
|
9
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
// See the License for the specific language governing permissions and
|
|
13
|
-
// limitations under the License.
|
|
14
|
-
export class EventParser {
|
|
15
|
-
constructor() {
|
|
16
|
-
this.decoder = new TextDecoder('utf-8');
|
|
17
|
-
}
|
|
18
|
-
process(buffer, dispatcher) {
|
|
19
|
-
const availableBuffer = this.buildAvailableBuffer(buffer);
|
|
20
|
-
if (!availableBuffer) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
const eventStrings = this.extractEventStringsFromBuffer(availableBuffer);
|
|
24
|
-
if (!eventStrings.length) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
EventParser.parseAndDispatchEvents(eventStrings, dispatcher);
|
|
28
|
-
}
|
|
29
|
-
buildAvailableBuffer(buffer) {
|
|
30
|
-
const unprocessedBuffer = this.unprocessedBuffer;
|
|
31
|
-
this.unprocessedBuffer = undefined;
|
|
32
|
-
if (!buffer.byteLength) {
|
|
33
|
-
return unprocessedBuffer;
|
|
34
|
-
}
|
|
35
|
-
else if (!(unprocessedBuffer === null || unprocessedBuffer === void 0 ? void 0 : unprocessedBuffer.byteLength)) {
|
|
36
|
-
return buffer;
|
|
37
|
-
}
|
|
38
|
-
const newBuffer = new Uint8Array(unprocessedBuffer.byteLength + buffer.byteLength);
|
|
39
|
-
newBuffer.set(new Uint8Array(unprocessedBuffer), 0);
|
|
40
|
-
newBuffer.set(new Uint8Array(buffer), unprocessedBuffer.byteLength);
|
|
41
|
-
return newBuffer.buffer;
|
|
42
|
-
}
|
|
43
|
-
extractEventStringsFromBuffer(buffer) {
|
|
44
|
-
const eventStrings = [];
|
|
45
|
-
while (buffer.byteLength) {
|
|
46
|
-
// Find end of next event separator in buffer, exiting if none found.
|
|
47
|
-
const eventSeparator = EventParser.findEventSeparator(buffer);
|
|
48
|
-
if (!eventSeparator) {
|
|
49
|
-
// Save unprocessed data
|
|
50
|
-
this.unprocessedBuffer = buffer;
|
|
51
|
-
break;
|
|
52
|
-
}
|
|
53
|
-
const [endOfCurrentEventIdx, startOfNextEventIdx] = eventSeparator;
|
|
54
|
-
const eventBuffer = buffer.slice(0, endOfCurrentEventIdx);
|
|
55
|
-
buffer = buffer.slice(startOfNextEventIdx);
|
|
56
|
-
const eventString = this.decoder.decode(eventBuffer, {
|
|
57
|
-
stream: true,
|
|
58
|
-
});
|
|
59
|
-
eventStrings.push(eventString);
|
|
60
|
-
}
|
|
61
|
-
return eventStrings;
|
|
62
|
-
}
|
|
63
|
-
static findEventSeparator(buffer) {
|
|
64
|
-
const bytes = new Uint8Array(buffer);
|
|
65
|
-
for (let idx = 0; idx < bytes.length; ++idx) {
|
|
66
|
-
const byte = bytes[idx];
|
|
67
|
-
switch (byte) {
|
|
68
|
-
// line-feed
|
|
69
|
-
case 0xa: {
|
|
70
|
-
// if next byte is same,
|
|
71
|
-
// we found a separator
|
|
72
|
-
if (bytes[idx + 1] == 0xa) {
|
|
73
|
-
return [idx, idx + 2];
|
|
74
|
-
}
|
|
75
|
-
break;
|
|
76
|
-
}
|
|
77
|
-
// carriage-return
|
|
78
|
-
case 0xd: {
|
|
79
|
-
// if next byte is same,
|
|
80
|
-
// we found a separator
|
|
81
|
-
if (bytes[idx + 1] == 0xd) {
|
|
82
|
-
return [idx, idx + 2];
|
|
83
|
-
}
|
|
84
|
-
// if next is line-feed, and pattern
|
|
85
|
-
// repeats, we found a separator.
|
|
86
|
-
if (bytes[idx + 1] == 0xa &&
|
|
87
|
-
bytes[idx + 2] == 0xd &&
|
|
88
|
-
bytes[idx + 3] == 0xa) {
|
|
89
|
-
return [idx, idx + 4];
|
|
90
|
-
}
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
default:
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return undefined;
|
|
97
|
-
}
|
|
98
|
-
static parseAndDispatchEvents(eventStrings, dispatcher) {
|
|
99
|
-
for (const eventString of eventStrings) {
|
|
100
|
-
if (!eventString.length) {
|
|
101
|
-
continue;
|
|
102
|
-
}
|
|
103
|
-
const parsedEvent = EventParser.parseEvent(eventString);
|
|
104
|
-
dispatcher(parsedEvent);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
static parseEvent(eventString) {
|
|
108
|
-
var _a, _b, _c;
|
|
109
|
-
const event = {};
|
|
110
|
-
for (const line of eventString.split(lineSeparatorsRegEx)) {
|
|
111
|
-
const keyValueSeparatorIdx = line.indexOf(':');
|
|
112
|
-
let key;
|
|
113
|
-
let value;
|
|
114
|
-
if (keyValueSeparatorIdx != -1) {
|
|
115
|
-
key = line.slice(0, keyValueSeparatorIdx);
|
|
116
|
-
value = line.slice(keyValueSeparatorIdx + 1);
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
key = line;
|
|
120
|
-
value = '';
|
|
121
|
-
}
|
|
122
|
-
switch (key) {
|
|
123
|
-
case 'retry':
|
|
124
|
-
event.retry = EventParser.trimFieldValue(value);
|
|
125
|
-
break;
|
|
126
|
-
case 'data': {
|
|
127
|
-
const data = (_a = event.data) !== null && _a !== void 0 ? _a : '';
|
|
128
|
-
event.data = `${data}${EventParser.trimFieldValue(value)}\n`;
|
|
129
|
-
break;
|
|
130
|
-
}
|
|
131
|
-
case '':
|
|
132
|
-
// comment do nothing
|
|
133
|
-
break;
|
|
134
|
-
default: {
|
|
135
|
-
event[key] =
|
|
136
|
-
EventParser.trimFieldValue(value);
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
if (((_b = event.data) === null || _b === void 0 ? void 0 : _b[((_c = event.data) === null || _c === void 0 ? void 0 : _c.length) - 1]) == '\n') {
|
|
141
|
-
event.data = event.data.slice(0, -1);
|
|
142
|
-
}
|
|
143
|
-
return event;
|
|
144
|
-
}
|
|
145
|
-
static trimFieldValue(value) {
|
|
146
|
-
if (value[0] != ' ') {
|
|
147
|
-
return value;
|
|
148
|
-
}
|
|
149
|
-
return value.slice(1);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
const lineSeparatorsRegEx = /\r\n|\r|\n/;
|
|
153
|
-
//# sourceMappingURL=event-parser.js.map
|
|
@@ -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AC,CAAC;IACxB,CAAC;CACF;AAED,MAAM,mBAAmB,GAAG,YAAY,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Logger } from './logger';
|
|
3
|
-
import { ExtEventSource } from './request-factory';
|
|
4
|
-
export interface FetchEventSource {
|
|
5
|
-
addEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
6
|
-
removeEventListener<K extends keyof EventSourceEventMap>(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
7
|
-
}
|
|
8
|
-
export declare class FetchEventSource extends EventTarget implements ExtEventSource {
|
|
9
|
-
private static LAST_EVENT_ID_HEADER;
|
|
10
|
-
private static MAX_RETRY_TIME_MULTIPLE;
|
|
11
|
-
private static EVENT_TIMEOUT_DEFAULT;
|
|
12
|
-
private static EVENT_TIMEOUT_CHECK_INTERVAL;
|
|
13
|
-
CONNECTING: number;
|
|
14
|
-
OPEN: number;
|
|
15
|
-
CLOSED: number;
|
|
16
|
-
readyState: number;
|
|
17
|
-
url: string;
|
|
18
|
-
withCredentials: boolean;
|
|
19
|
-
onerror: ((this: EventSource, ev: Event) => unknown) | null;
|
|
20
|
-
onmessage: ((this: EventSource, ev: MessageEvent) => unknown) | null;
|
|
21
|
-
onopen: ((this: EventSource, ev: Event) => unknown) | null;
|
|
22
|
-
get retryTime(): number;
|
|
23
|
-
private adapter;
|
|
24
|
-
private connectionSubscription?;
|
|
25
|
-
private internalRetryTime;
|
|
26
|
-
private retryAttempt;
|
|
27
|
-
private connectionAttemptTime;
|
|
28
|
-
private connectionOrigin?;
|
|
29
|
-
private reconnectTimeoutHandle?;
|
|
30
|
-
private lastEventId?;
|
|
31
|
-
private logger?;
|
|
32
|
-
private readonly eventTimeout?;
|
|
33
|
-
private eventTimeoutCheckHandle?;
|
|
34
|
-
private lastEventReceivedTime;
|
|
35
|
-
private eventParser;
|
|
36
|
-
private readonly externalAbortController?;
|
|
37
|
-
constructor(url: string, eventSourceInit?: EventSourceInit & {
|
|
38
|
-
adapter?: (url: string, requestInit: RequestInit) => Observable<Request>;
|
|
39
|
-
eventTimeout?: number;
|
|
40
|
-
logger?: Logger;
|
|
41
|
-
abortController?: AbortController;
|
|
42
|
-
});
|
|
43
|
-
connect(): void;
|
|
44
|
-
private internalConnect;
|
|
45
|
-
close(): void;
|
|
46
|
-
private internalClose;
|
|
47
|
-
private startEventTimeoutCheck;
|
|
48
|
-
private stopEventTimeoutCheck;
|
|
49
|
-
private checkEventTimeout;
|
|
50
|
-
private receivedHeaders;
|
|
51
|
-
private receivedData;
|
|
52
|
-
private receivedError;
|
|
53
|
-
private receivedComplete;
|
|
54
|
-
private scheduleReconnect;
|
|
55
|
-
private clearReconnect;
|
|
56
|
-
private dispatchParsedEvent;
|
|
57
|
-
fireErrorEvent(error: unknown): void;
|
|
58
|
-
}
|