@tstdl/base 0.83.0-beta2 → 0.83.0-beta3
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/api/client/client.js +125 -110
- package/api/client/index.js +18 -2
- package/api/default-error-handlers.js +44 -19
- package/api/index.js +20 -15
- package/api/response.js +122 -99
- package/api/server/api-controller.js +70 -43
- package/api/server/api-request-token.provider.js +40 -14
- package/api/server/error-handler.js +46 -26
- package/api/server/gateway.js +213 -209
- package/api/server/index.js +22 -6
- package/api/server/middlewares/allowed-methods.middleware.js +40 -18
- package/api/server/middlewares/catch-error.middleware.js +33 -13
- package/api/server/middlewares/cors.middleware.js +69 -50
- package/api/server/middlewares/index.js +21 -5
- package/api/server/middlewares/response-time.middleware.js +31 -9
- package/api/server/module.js +42 -19
- package/api/server/tokens.js +25 -3
- package/api/types.js +40 -15
- package/api/utils.js +36 -14
- package/application/application.js +181 -166
- package/application/index.js +18 -2
- package/async-iterator-symbol.js +28 -6
- package/authentication/authentication.api.js +113 -90
- package/authentication/client/api.client.js +57 -30
- package/authentication/client/authentication.service.js +264 -239
- package/authentication/client/http-client.middleware.js +44 -22
- package/authentication/client/index.js +22 -6
- package/authentication/client/module.js +38 -16
- package/authentication/client/tokens.js +29 -6
- package/authentication/errors/index.js +18 -2
- package/authentication/errors/secret-requirements.error.js +29 -8
- package/authentication/index.js +19 -3
- package/authentication/models/authentication-credentials.model.js +66 -38
- package/authentication/models/authentication-session.model.js +80 -52
- package/authentication/models/index.js +23 -7
- package/authentication/models/init-secret-reset-data.model.js +44 -17
- package/authentication/models/secret-check-result.model.js +36 -11
- package/authentication/models/token-payload-base.model.js +59 -32
- package/authentication/models/token.model.js +16 -2
- package/authentication/server/authentication-api-request-token.provider.js +52 -26
- package/authentication/server/authentication-credentials.repository.js +24 -2
- package/authentication/server/authentication-secret-requirements.validator.js +51 -25
- package/authentication/server/authentication-secret-reset.handler.js +24 -2
- package/authentication/server/authentication-session.repository.js +24 -2
- package/authentication/server/authentication-subject.resolver.js +24 -6
- package/authentication/server/authentication-token-payload.provider.js +29 -6
- package/authentication/server/authentication.api-controller.js +114 -90
- package/authentication/server/authentication.service.js +290 -255
- package/authentication/server/helper.js +87 -67
- package/authentication/server/index.js +28 -12
- package/authentication/server/module.js +43 -21
- package/authentication/server/mongo/index.js +19 -3
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js +84 -55
- package/authentication/server/mongo/mongo-authentication-session.repository.js +81 -52
- package/collections/awaitable/awaitable-list.js +122 -100
- package/collections/awaitable/awaitable-map.js +116 -94
- package/collections/awaitable/awaitable-set.js +86 -64
- package/collections/awaitable/index.js +20 -4
- package/collections/collection.js +16 -2
- package/collections/index.js +23 -7
- package/collections/keyed-set.js +77 -54
- package/collections/list.js +16 -2
- package/collections/observable/index.js +25 -9
- package/collections/observable/observable-array.js +118 -96
- package/collections/observable/observable-collection-base.js +83 -61
- package/collections/observable/observable-collection.js +16 -2
- package/collections/observable/observable-list-base.js +78 -56
- package/collections/observable/observable-list.js +16 -2
- package/collections/observable/observable-map.js +79 -57
- package/collections/observable/observable-set.js +98 -76
- package/collections/observable/observable-sorted-array-list.js +188 -166
- package/collections/sorted-array-list.js +179 -157
- package/collections/sorted-list.js +16 -2
- package/collections/sorted-map.js +93 -71
- package/container/container.js +437 -423
- package/container/decorators.js +96 -113
- package/container/index.js +27 -11
- package/container/interfaces.js +26 -3
- package/container/provider.js +54 -25
- package/container/resolve-chain.js +99 -75
- package/container/resolve.error.js +35 -11
- package/container/token.js +29 -10
- package/container/type-info.js +16 -2
- package/container/types.js +16 -2
- package/container/utils.js +42 -19
- package/cookie/cookie.js +71 -50
- package/cookie/index.js +18 -2
- package/core.js +63 -38
- package/data-structures/array-list.js +128 -106
- package/data-structures/circular-buffer.js +216 -196
- package/data-structures/collection.js +109 -87
- package/data-structures/index-out-of-bounds.error.js +31 -9
- package/data-structures/index.js +29 -13
- package/data-structures/iterable-weak-map.js +149 -130
- package/data-structures/linked-list.js +385 -369
- package/data-structures/list.js +101 -79
- package/data-structures/map.js +87 -65
- package/data-structures/multi-key-map.js +162 -140
- package/data-structures/set.js +77 -55
- package/data-structures/sorted-array-list.js +169 -144
- package/data-structures/weak-ref-map.js +143 -124
- package/database/entity-repository.js +24 -2
- package/database/entity.js +16 -2
- package/database/id.js +27 -5
- package/database/index.js +23 -7
- package/database/module.js +31 -8
- package/database/mongo/classes.js +42 -17
- package/database/mongo/index.js +27 -11
- package/database/mongo/model/document.js +85 -55
- package/database/mongo/model/index.js +18 -2
- package/database/mongo/module.js +71 -52
- package/database/mongo/mongo-base.repository.js +283 -260
- package/database/mongo/mongo-bulk.js +110 -88
- package/database/mongo/mongo-entity-repository.js +295 -270
- package/database/mongo/operations.js +76 -49
- package/database/mongo/query-converter.js +96 -74
- package/database/mongo/simple-entity-repository.js +28 -6
- package/database/mongo/types.js +25 -3
- package/database/query.js +36 -8
- package/database/utils.js +25 -3
- package/disposable/async-disposer.js +110 -99
- package/disposable/disposable.js +33 -8
- package/disposable/index.js +20 -4
- package/disposable/using.js +37 -16
- package/distributed-loop/controller.js +16 -2
- package/distributed-loop/distributed-loop.js +105 -80
- package/distributed-loop/index.js +20 -4
- package/distributed-loop/provider.js +48 -22
- package/enumerable/async-enumerable.js +261 -239
- package/enumerable/enumerable-methods.js +16 -2
- package/enumerable/enumerable.js +200 -178
- package/enumerable/index.js +19 -3
- package/environment.d.ts +5 -4
- package/environment.js +57 -24
- package/error/api.error.js +33 -12
- package/error/assertion.error.js +29 -8
- package/error/bad-request.error.js +29 -8
- package/error/custom.error.js +47 -26
- package/error/details.error.js +31 -10
- package/error/forbidden.error.js +29 -8
- package/error/index.js +32 -16
- package/error/invalid-token.error.js +29 -8
- package/error/max-bytes-exceeded.error.js +32 -11
- package/error/method-not-allowed.error.js +29 -8
- package/error/multi.error.js +31 -10
- package/error/not-found.error.js +29 -8
- package/error/not-implemented.error.js +29 -8
- package/error/not-supported.error.js +34 -13
- package/error/unauthorized.error.js +29 -8
- package/error/unsupported-media-type.error.js +29 -8
- package/examples/api/authentication.js +40 -41
- package/examples/api/basic-overview.js +86 -82
- package/examples/api/custom-authentication.js +66 -62
- package/examples/api/streaming.js +94 -90
- package/examples/http/client.js +13 -13
- package/examples/mail/basic.js +31 -31
- package/examples/mail/templates/hello-name.js +33 -11
- package/examples/pdf/basic.js +22 -22
- package/examples/pdf/templates/hello-name.js +53 -31
- package/examples/reflection/basic.js +84 -54
- package/examples/template/basic.js +26 -26
- package/examples/template/templates/hello-jsx.js +32 -9
- package/examples/template/templates/hello-name.js +41 -19
- package/global-this.js +36 -18
- package/http/client/adapters/undici-http-client.adapter.js +110 -92
- package/http/client/http-client-options.js +37 -15
- package/http/client/http-client-request.js +167 -146
- package/http/client/http-client-response.js +56 -34
- package/http/client/http-client.adapter.js +24 -2
- package/http/client/http-client.js +319 -300
- package/http/client/index.js +23 -7
- package/http/client/module.js +38 -16
- package/http/cookie-parser.js +42 -20
- package/http/http-body.js +75 -53
- package/http/http-form.js +37 -15
- package/http/http-headers.js +109 -87
- package/http/http-query.js +37 -15
- package/http/http-url-parameters.js +31 -9
- package/http/http-value-map.js +133 -111
- package/http/http.error.js +82 -62
- package/http/index.js +28 -12
- package/http/server/http-server-request.js +47 -25
- package/http/server/http-server-response.js +45 -23
- package/http/server/http-server.js +25 -3
- package/http/server/index.js +20 -4
- package/http/server/node/index.js +19 -3
- package/http/server/node/module.js +28 -9
- package/http/server/node/node-http-server.js +234 -210
- package/http/types.js +47 -22
- package/http/utils.js +108 -93
- package/image-service/image-service.js +91 -60
- package/image-service/imgproxy/imgproxy-image-service.js +124 -88
- package/image-service/imgproxy/index.js +18 -2
- package/image-service/index.js +18 -2
- package/import.js +25 -3
- package/index.js +18 -2
- package/interfaces.js +16 -2
- package/json-path/index.js +18 -2
- package/json-path/json-path.js +134 -134
- package/key-value-store/index.js +19 -3
- package/key-value-store/key-value-store.provider.js +24 -2
- package/key-value-store/key-value.store.js +29 -7
- package/key-value-store/mongo/index.js +23 -7
- package/key-value-store/mongo/module.js +35 -18
- package/key-value-store/mongo/mongo-key-value-store.provider.js +48 -22
- package/key-value-store/mongo/mongo-key-value.model.js +16 -2
- package/key-value-store/mongo/mongo-key-value.repository.js +52 -24
- package/key-value-store/mongo/mongo-key-value.store.js +89 -61
- package/key-value-store/mongo/tokens.js +25 -3
- package/lock/index.js +19 -3
- package/lock/lock.js +28 -6
- package/lock/mongo/index.js +22 -6
- package/lock/mongo/lock.js +135 -113
- package/lock/mongo/model.js +16 -2
- package/lock/mongo/module.js +37 -19
- package/lock/mongo/mongo-lock-repository.js +85 -58
- package/lock/mongo/provider.js +68 -40
- package/lock/provider.js +24 -2
- package/lock/web/index.js +20 -4
- package/lock/web/module.js +31 -12
- package/lock/web/web-lock.js +105 -82
- package/lock/web/web-lock.provider.js +57 -29
- package/logger/console/index.js +18 -2
- package/logger/console/logger.js +71 -46
- package/logger/index.js +19 -3
- package/logger/level.js +31 -9
- package/logger/logger.js +60 -38
- package/logger/noop/index.js +18 -2
- package/logger/noop/logger.js +39 -18
- package/mail/clients/nodemailer.mail-client.js +90 -64
- package/mail/index.js +22 -6
- package/mail/mail-log.repository.js +25 -3
- package/mail/mail.client.js +62 -35
- package/mail/mail.service.js +106 -75
- package/mail/models/index.js +23 -7
- package/mail/models/mail-address.model.js +16 -2
- package/mail/models/mail-content.model.js +16 -2
- package/mail/models/mail-data.model.js +16 -2
- package/mail/models/mail-log.model.js +16 -2
- package/mail/models/mail-send-result.model.js +16 -2
- package/mail/models/mail-template.model.js +28 -6
- package/mail/module.js +41 -22
- package/mail/repositories/mongo-mail-log.repository.js +56 -26
- package/mail/tokens.js +25 -3
- package/memory/finalization.js +60 -37
- package/memory/index.js +19 -3
- package/memory/observable-finalization-registry.js +32 -10
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js +53 -25
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js +74 -48
- package/message-bus/broadcast-channel/index.js +20 -4
- package/message-bus/broadcast-channel/module.js +31 -12
- package/message-bus/index.js +20 -4
- package/message-bus/local/index.js +20 -4
- package/message-bus/local/local-message-bus-provider.js +65 -37
- package/message-bus/local/local-message-bus.js +66 -40
- package/message-bus/local/module.js +31 -12
- package/message-bus/local/types.js +16 -2
- package/message-bus/message-bus-base.js +63 -42
- package/message-bus/message-bus-provider.js +24 -2
- package/message-bus/message-bus.js +28 -6
- package/migration/index.js +20 -4
- package/migration/migration-state-repository.js +25 -3
- package/migration/migration-state.js +16 -2
- package/migration/migrator.js +108 -82
- package/migration/mongo/index.js +19 -3
- package/migration/mongo/migration-state-repository.js +53 -25
- package/migration/mongo/module.js +34 -16
- package/module/index.js +21 -5
- package/module/module-base.js +60 -38
- package/module/module-metric-reporter.js +77 -59
- package/module/module.js +34 -11
- package/module/modules/function.module.js +34 -12
- package/module/modules/index.js +19 -3
- package/module/modules/web-server.module.js +103 -69
- package/module/utils.js +43 -20
- package/notification/api.js +50 -23
- package/notification/models/index.js +19 -3
- package/notification/models/notification-channel-job.model.js +16 -2
- package/notification/models/notification.model.js +103 -76
- package/notification/module.js +28 -9
- package/notification/notification-channel.service.js +24 -2
- package/notification/notification.repository.js +24 -2
- package/notification/notification.service.js +58 -32
- package/object-storage/index.js +20 -4
- package/object-storage/object-storage-provider.js +24 -2
- package/object-storage/object-storage.js +29 -7
- package/object-storage/object.js +30 -8
- package/object-storage/s3/index.js +20 -4
- package/object-storage/s3/s3.object-storage-provider.js +108 -84
- package/object-storage/s3/s3.object-storage.js +152 -127
- package/object-storage/s3/s3.object.js +62 -40
- package/openid-connect/cached-oidc-configuration.service.js +65 -37
- package/openid-connect/index.js +28 -12
- package/openid-connect/mongo-oidc-state.repository.js +64 -40
- package/openid-connect/oidc-configuration.service.js +66 -40
- package/openid-connect/oidc-state.model.js +16 -2
- package/openid-connect/oidc-state.repository.js +25 -3
- package/openid-connect/oidc.service-model.js +16 -2
- package/openid-connect/oidc.service.js +187 -159
- package/package.json +5 -3
- package/password/have-i-been-pwned.js +39 -22
- package/password/index.js +21 -5
- package/password/password-check-result.model.js +63 -35
- package/password/password-check.js +76 -47
- package/password/password-check.localization.js +111 -87
- package/pdf/index.js +18 -2
- package/pdf/pdf.service.js +301 -266
- package/pool/index.js +18 -2
- package/pool/pool.js +127 -111
- package/process-shutdown.js +77 -55
- package/promise/cancelable-promise.js +41 -24
- package/promise/deferred-promise.js +91 -69
- package/promise/index.js +20 -4
- package/promise/lazy-promise.js +46 -25
- package/queue/enqueue-batch.js +41 -19
- package/queue/index.js +20 -4
- package/queue/mongo/index.js +21 -5
- package/queue/mongo/job.js +16 -2
- package/queue/mongo/mongo-job.repository.js +70 -46
- package/queue/mongo/queue.js +265 -244
- package/queue/mongo/queue.provider.js +70 -46
- package/queue/provider.js +24 -2
- package/queue/queue.js +41 -16
- package/random/index.js +18 -2
- package/random/number/index.js +20 -4
- package/random/number/mulberry32.js +50 -34
- package/random/number/seeded.js +31 -9
- package/random/number/sfc32.js +63 -47
- package/reflection/decorator-data.js +80 -64
- package/reflection/decorators.js +70 -41
- package/reflection/index.js +22 -6
- package/reflection/reflection-data-map.js +55 -33
- package/reflection/registry.js +132 -113
- package/reflection/types.js +16 -2
- package/reflection/utils.js +124 -97
- package/require.js +26 -4
- package/rpc/endpoints/message-port.rpc-endpoint.js +48 -30
- package/rpc/index.js +21 -5
- package/rpc/model.js +30 -8
- package/rpc/rpc-endpoint.js +40 -18
- package/rpc/rpc-error.js +40 -19
- package/rpc/rpc.js +235 -224
- package/rxjs/cast.js +28 -5
- package/rxjs/index.js +29 -13
- package/rxjs/intersection-observer.js +48 -26
- package/rxjs/media-query.js +27 -9
- package/rxjs/mutation-observer.js +50 -29
- package/rxjs/noop.js +28 -5
- package/rxjs/performance-observer.js +60 -38
- package/rxjs/resize-observer.js +50 -29
- package/rxjs/retry-backoff.js +47 -24
- package/rxjs/slow-array.js +36 -23
- package/rxjs/teardown.js +44 -22
- package/rxjs/timing.js +55 -25
- package/rxjs/touch.js +30 -12
- package/schema/array-constraints/index.js +19 -3
- package/schema/array-constraints/maximum-length.js +42 -20
- package/schema/array-constraints/minimum-length.js +42 -20
- package/schema/coercers/boolean.coercer.js +49 -26
- package/schema/coercers/date.coercer.js +38 -15
- package/schema/coercers/index.js +23 -7
- package/schema/coercers/number.coercer.js +36 -13
- package/schema/coercers/regexp.coercer.js +41 -19
- package/schema/coercers/string.coercer.js +36 -13
- package/schema/coercers/uint8-array.coercer.js +40 -17
- package/schema/constraints/enumeration.js +49 -28
- package/schema/constraints/generic.js +41 -22
- package/schema/constraints/index.js +29 -13
- package/schema/constraints/integer.js +44 -21
- package/schema/constraints/length.js +36 -15
- package/schema/constraints/literal.js +44 -23
- package/schema/constraints/maximum-date.js +46 -24
- package/schema/constraints/maximum-length.js +45 -23
- package/schema/constraints/maximum.js +44 -22
- package/schema/constraints/minimum-date.js +46 -24
- package/schema/constraints/minimum-length.js +45 -23
- package/schema/constraints/minimum.js +44 -22
- package/schema/constraints/pattern.js +46 -24
- package/schema/decorators/class.js +26 -5
- package/schema/decorators/coerce.js +26 -5
- package/schema/decorators/constraint.js +28 -7
- package/schema/decorators/index.js +23 -7
- package/schema/decorators/property.js +38 -17
- package/schema/decorators/types.js +16 -2
- package/schema/decorators/utils.js +73 -46
- package/schema/index.js +27 -11
- package/schema/schema.error.js +71 -60
- package/schema/schema.js +267 -254
- package/schema/schemas/any.js +30 -8
- package/schema/schemas/array.js +44 -22
- package/schema/schemas/assign.js +48 -26
- package/schema/schemas/boolean.js +30 -8
- package/schema/schemas/constraint.js +29 -7
- package/schema/schemas/date.js +43 -21
- package/schema/schemas/defaulted.js +31 -9
- package/schema/schemas/enumeration.js +38 -16
- package/schema/schemas/index.js +43 -27
- package/schema/schemas/instance.js +26 -5
- package/schema/schemas/literal.js +38 -16
- package/schema/schemas/nullable.js +30 -8
- package/schema/schemas/number.js +48 -26
- package/schema/schemas/object.js +34 -11
- package/schema/schemas/omit.js +37 -15
- package/schema/schemas/one-or-many.js +35 -14
- package/schema/schemas/optional.js +30 -7
- package/schema/schemas/partial.js +39 -17
- package/schema/schemas/pick.js +37 -15
- package/schema/schemas/readable-stream.js +30 -8
- package/schema/schemas/record.js +30 -9
- package/schema/schemas/regexp.js +30 -8
- package/schema/schemas/string.js +59 -37
- package/schema/schemas/transform.js +29 -7
- package/schema/schemas/uint8-array.js +50 -28
- package/schema/schemas/union.js +34 -12
- package/schema/schemas/unknown.js +30 -8
- package/schema/transformers/generic.js +39 -17
- package/schema/transformers/index.js +21 -5
- package/schema/transformers/lowercase.js +33 -11
- package/schema/transformers/trim.js +33 -11
- package/schema/transformers/uppercase.js +33 -11
- package/schema/types/index.js +22 -6
- package/schema/types/schema-array-constraint.js +24 -2
- package/schema/types/schema-value-coercer.js +24 -2
- package/schema/types/schema-value-constraint.js +24 -2
- package/schema/types/schema-value-transformer.js +24 -2
- package/schema/types/types.js +174 -147
- package/schema/utils/index.js +19 -3
- package/schema/utils/schema.js +136 -115
- package/schema/utils/value-type.js +73 -50
- package/search-index/elastic/config.js +49 -21
- package/search-index/elastic/index.js +23 -7
- package/search-index/elastic/keyword-rewriter.js +40 -18
- package/search-index/elastic/model/elastic-query.js +16 -2
- package/search-index/elastic/model/index-mapping.js +26 -5
- package/search-index/elastic/model/index.js +20 -4
- package/search-index/elastic/model/sort.js +16 -2
- package/search-index/elastic/module.js +64 -39
- package/search-index/elastic/query-builder/boolean-query-builder.js +69 -47
- package/search-index/elastic/query-builder/index.js +18 -2
- package/search-index/elastic/query-converter.js +192 -175
- package/search-index/elastic/search-index.js +153 -133
- package/search-index/elastic/sort-converter.js +34 -13
- package/search-index/elastic/types.js +16 -2
- package/search-index/error.js +35 -14
- package/search-index/index.js +20 -4
- package/search-index/memory/index.js +18 -2
- package/search-index/memory/memory-search-index.js +152 -131
- package/search-index/search-index.js +53 -31
- package/search-index/search-result.js +16 -2
- package/serializer/handlers/binary.js +47 -20
- package/serializer/handlers/date.js +28 -5
- package/serializer/handlers/error.js +31 -8
- package/serializer/handlers/index.js +24 -8
- package/serializer/handlers/map.js +40 -17
- package/serializer/handlers/regex.js +31 -8
- package/serializer/handlers/register.js +59 -37
- package/serializer/handlers/set.js +37 -14
- package/serializer/index.js +30 -4
- package/serializer/serializable.js +68 -44
- package/serializer/serializer.js +264 -245
- package/serializer/types.js +34 -7
- package/sse/index.js +19 -3
- package/sse/model.js +16 -2
- package/sse/server-sent-events-source.js +76 -55
- package/sse/server-sent-events.js +72 -49
- package/supports.js +32 -6
- package/templates/index.js +26 -10
- package/templates/module.js +58 -38
- package/templates/providers/file.template-provider.js +81 -41
- package/templates/providers/memory.template-provider.js +55 -29
- package/templates/renderers/handlebars.template-renderer.js +115 -79
- package/templates/renderers/jsx.template-renderer.js +56 -30
- package/templates/renderers/mjml.template-renderer.js +82 -45
- package/templates/renderers/string.template-renderer.js +49 -23
- package/templates/resolvers/file.template-resolver.js +89 -47
- package/templates/resolvers/jsx.template-resolver.js +59 -31
- package/templates/resolvers/string.template-resolver.js +59 -31
- package/templates/template-renderer.provider.js +66 -38
- package/templates/template-resolver.provider.js +66 -38
- package/templates/template.model.js +69 -41
- package/templates/template.provider.js +24 -2
- package/templates/template.renderer.js +34 -12
- package/templates/template.resolver.js +24 -2
- package/templates/template.service.js +82 -51
- package/templates/tokens.js +27 -4
- package/templates/types/jsx.intrinsic-elements.js +16 -2
- package/text/dynamic-text.model.js +49 -25
- package/text/index.js +20 -4
- package/text/localizable-text.model.js +16 -2
- package/text/localization.service.js +217 -190
- package/theme/adapters/css-adapter.js +46 -24
- package/theme/adapters/tailwind-adapter.js +51 -29
- package/theme/index.js +18 -2
- package/theme/theme-service.js +146 -109
- package/threading/index.js +19 -3
- package/threading/thread-pool.js +70 -49
- package/threading/thread-worker.js +26 -4
- package/tokens.js +25 -3
- package/tsconfig.json +1 -2
- package/types/geo-json.js +16 -2
- package/types.js +16 -3
- package/utils/alphabet.js +35 -13
- package/utils/any-iterable-iterator.js +27 -5
- package/utils/array/array-backtracker.js +65 -43
- package/utils/array/array.js +77 -76
- package/utils/array/index.js +19 -3
- package/utils/async-iterable-helpers/all.js +46 -26
- package/utils/async-iterable-helpers/any.js +46 -26
- package/utils/async-iterable-helpers/assert.js +43 -23
- package/utils/async-iterable-helpers/batch.js +46 -27
- package/utils/async-iterable-helpers/buffer.js +64 -48
- package/utils/async-iterable-helpers/concat.js +27 -6
- package/utils/async-iterable-helpers/default-if-empty.js +32 -10
- package/utils/async-iterable-helpers/deferred.js +26 -4
- package/utils/async-iterable-helpers/difference.js +48 -25
- package/utils/async-iterable-helpers/distinct.js +44 -24
- package/utils/async-iterable-helpers/drain.js +26 -5
- package/utils/async-iterable-helpers/filter.js +44 -24
- package/utils/async-iterable-helpers/first-or-default.js +30 -9
- package/utils/async-iterable-helpers/first.js +30 -9
- package/utils/async-iterable-helpers/for-each.js +38 -19
- package/utils/async-iterable-helpers/group-single.js +26 -4
- package/utils/async-iterable-helpers/group-to-map.js +41 -21
- package/utils/async-iterable-helpers/group-to-single-map.js +44 -24
- package/utils/async-iterable-helpers/group.js +26 -4
- package/utils/async-iterable-helpers/includes.js +28 -8
- package/utils/async-iterable-helpers/index.js +65 -49
- package/utils/async-iterable-helpers/interrupt.js +43 -20
- package/utils/async-iterable-helpers/is-async-iterable.js +29 -6
- package/utils/async-iterable-helpers/last-or-default.js +36 -14
- package/utils/async-iterable-helpers/last.js +36 -14
- package/utils/async-iterable-helpers/map-many.js +40 -20
- package/utils/async-iterable-helpers/map.js +40 -20
- package/utils/async-iterable-helpers/materialize.js +42 -22
- package/utils/async-iterable-helpers/metadata.js +58 -39
- package/utils/async-iterable-helpers/multiplex.js +44 -24
- package/utils/async-iterable-helpers/observable-iterable.js +53 -32
- package/utils/async-iterable-helpers/pairwise.js +44 -27
- package/utils/async-iterable-helpers/parallel/feed.js +45 -25
- package/utils/async-iterable-helpers/parallel/filter.js +31 -9
- package/utils/async-iterable-helpers/parallel/for-each.js +44 -22
- package/utils/async-iterable-helpers/parallel/group.js +32 -10
- package/utils/async-iterable-helpers/parallel/index.js +24 -8
- package/utils/async-iterable-helpers/parallel/map.js +29 -7
- package/utils/async-iterable-helpers/parallel/tap.js +29 -7
- package/utils/async-iterable-helpers/parallel/types.js +16 -2
- package/utils/async-iterable-helpers/reduce.js +46 -32
- package/utils/async-iterable-helpers/retry.js +58 -44
- package/utils/async-iterable-helpers/single-or-default.js +40 -18
- package/utils/async-iterable-helpers/single.js +42 -20
- package/utils/async-iterable-helpers/skip.js +26 -4
- package/utils/async-iterable-helpers/sort.js +29 -7
- package/utils/async-iterable-helpers/take-until.js +49 -33
- package/utils/async-iterable-helpers/take-while.js +46 -30
- package/utils/async-iterable-helpers/take.js +33 -11
- package/utils/async-iterable-helpers/tap.js +40 -20
- package/utils/async-iterable-helpers/throttle.js +30 -10
- package/utils/async-iterable-helpers/to-array.js +33 -11
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js +59 -41
- package/utils/async-iterable-helpers/to-async-iterator.js +54 -33
- package/utils/async-iterable-helpers/to-set.js +33 -11
- package/utils/async-iterable-helpers/to-sync-iterable.js +27 -7
- package/utils/async-iterable-helpers/types.js +16 -2
- package/utils/async-iterable-helpers/while.js +46 -26
- package/utils/async-iterator-iterable-iterator.js +62 -42
- package/utils/backoff.js +109 -110
- package/utils/base64.js +140 -154
- package/utils/benchmark.js +107 -115
- package/utils/binary-search.js +87 -71
- package/utils/binary.js +61 -51
- package/utils/cancellation-token.js +169 -148
- package/utils/clone.js +64 -44
- package/utils/comparison.js +98 -77
- package/utils/compression.js +118 -108
- package/utils/config-parser.js +48 -22
- package/utils/cryptography.js +111 -143
- package/utils/date-time.js +139 -104
- package/utils/encoding.js +60 -63
- package/utils/enum.js +53 -28
- package/utils/equals.js +116 -102
- package/utils/event-loop.js +39 -20
- package/utils/factory-map.js +75 -54
- package/utils/feedable-async-iterable.js +70 -48
- package/utils/file-reader.js +41 -16
- package/utils/format-error.js +56 -36
- package/utils/function/index.js +19 -3
- package/utils/function/memoize.js +53 -39
- package/utils/function/throttle.js +48 -27
- package/utils/helpers.js +122 -116
- package/utils/image.js +88 -63
- package/utils/index.js +64 -48
- package/utils/iterable-helpers/all.js +31 -9
- package/utils/iterable-helpers/any.js +31 -9
- package/utils/iterable-helpers/assert.js +30 -8
- package/utils/iterable-helpers/batch.js +34 -12
- package/utils/iterable-helpers/concat.js +27 -5
- package/utils/iterable-helpers/default-if-empty.js +32 -10
- package/utils/iterable-helpers/deferred.js +25 -3
- package/utils/iterable-helpers/difference.js +45 -22
- package/utils/iterable-helpers/distinct.js +32 -10
- package/utils/iterable-helpers/drain.js +26 -5
- package/utils/iterable-helpers/filter.js +30 -8
- package/utils/iterable-helpers/first-or-default.js +30 -9
- package/utils/iterable-helpers/first.js +30 -9
- package/utils/iterable-helpers/for-each.js +28 -6
- package/utils/iterable-helpers/group-single.js +26 -4
- package/utils/iterable-helpers/group-to-map.js +32 -10
- package/utils/iterable-helpers/group-to-single-map.js +33 -11
- package/utils/iterable-helpers/group.js +26 -4
- package/utils/iterable-helpers/includes.js +26 -4
- package/utils/iterable-helpers/index.js +56 -40
- package/utils/iterable-helpers/is-iterable.js +29 -6
- package/utils/iterable-helpers/last-or-default.js +36 -14
- package/utils/iterable-helpers/last.js +36 -14
- package/utils/iterable-helpers/map-many.js +29 -7
- package/utils/iterable-helpers/map.js +29 -7
- package/utils/iterable-helpers/materialize.js +25 -3
- package/utils/iterable-helpers/metadata.js +38 -17
- package/utils/iterable-helpers/pairwise.js +33 -12
- package/utils/iterable-helpers/range.js +27 -5
- package/utils/iterable-helpers/reduce.js +33 -12
- package/utils/iterable-helpers/single-or-default.js +37 -15
- package/utils/iterable-helpers/single.js +40 -18
- package/utils/iterable-helpers/skip.js +29 -7
- package/utils/iterable-helpers/sort.js +27 -5
- package/utils/iterable-helpers/take-until.js +31 -9
- package/utils/iterable-helpers/take-while.js +33 -11
- package/utils/iterable-helpers/take.js +33 -11
- package/utils/iterable-helpers/tap.js +29 -7
- package/utils/iterable-helpers/types.js +16 -2
- package/utils/iterable-helpers/while.js +31 -9
- package/utils/jwt.js +100 -78
- package/utils/map.js +62 -36
- package/utils/math.js +63 -102
- package/utils/merge.js +45 -27
- package/utils/middleware.js +60 -37
- package/utils/moving-metric.js +188 -156
- package/utils/noop.js +27 -5
- package/utils/object/decycle.js +78 -58
- package/utils/object/dereference.js +44 -47
- package/utils/object/forward-ref.js +73 -58
- package/utils/object/index.js +24 -8
- package/utils/object/lazy-property.js +96 -82
- package/utils/object/merge.js +70 -49
- package/utils/object/object.js +109 -84
- package/utils/object/property-name.js +65 -63
- package/utils/ordered-feedable-async-iterable.js +65 -43
- package/utils/patch-worker.js +90 -70
- package/utils/patterns.js +29 -8
- package/utils/periodic-reporter.js +82 -61
- package/utils/periodic-sampler.js +91 -68
- package/utils/provider-function-iterable.js +48 -27
- package/utils/proxy.js +42 -18
- package/utils/random.js +50 -41
- package/utils/reflection.js +41 -14
- package/utils/set.js +62 -37
- package/utils/singleton.js +41 -19
- package/utils/sort.js +77 -54
- package/utils/stream/finalize-stream.js +52 -33
- package/utils/stream/index.js +23 -7
- package/utils/stream/readable-stream-adapter.js +57 -36
- package/utils/stream/readable-stream-from-promise.js +27 -7
- package/utils/stream/size-limited-stream.js +35 -13
- package/utils/stream/stream-helper-types.js +16 -2
- package/utils/stream/stream-reader.js +52 -31
- package/utils/string/hypenate.js +25 -3
- package/utils/string/index.js +20 -4
- package/utils/string/title-case.js +26 -7
- package/utils/string/trim.js +32 -10
- package/utils/throw.js +30 -8
- package/utils/timer.js +91 -71
- package/utils/timing.js +60 -34
- package/utils/type-guards.js +1024 -242
- package/utils/type-of.js +43 -26
- package/utils/units.js +124 -54
- package/utils/url-builder.js +68 -48
- package/utils/z-base32.js +63 -43
- package/web-types.js +16 -2
- package/api/client/client.js.map +0 -1
- package/api/client/index.js.map +0 -1
- package/api/default-error-handlers.js.map +0 -1
- package/api/index.js.map +0 -1
- package/api/response.js.map +0 -1
- package/api/server/api-controller.js.map +0 -1
- package/api/server/api-request-token.provider.js.map +0 -1
- package/api/server/error-handler.js.map +0 -1
- package/api/server/gateway.js.map +0 -1
- package/api/server/index.js.map +0 -1
- package/api/server/middlewares/allowed-methods.middleware.js.map +0 -1
- package/api/server/middlewares/catch-error.middleware.js.map +0 -1
- package/api/server/middlewares/cors.middleware.js.map +0 -1
- package/api/server/middlewares/index.js.map +0 -1
- package/api/server/middlewares/response-time.middleware.js.map +0 -1
- package/api/server/module.js.map +0 -1
- package/api/server/tokens.js.map +0 -1
- package/api/types.js.map +0 -1
- package/api/utils.js.map +0 -1
- package/application/application.js.map +0 -1
- package/application/index.js.map +0 -1
- package/async-iterator-symbol.js.map +0 -1
- package/authentication/authentication.api.js.map +0 -1
- package/authentication/client/api.client.js.map +0 -1
- package/authentication/client/authentication.service.js.map +0 -1
- package/authentication/client/http-client.middleware.js.map +0 -1
- package/authentication/client/index.js.map +0 -1
- package/authentication/client/module.js.map +0 -1
- package/authentication/client/tokens.js.map +0 -1
- package/authentication/errors/index.js.map +0 -1
- package/authentication/errors/secret-requirements.error.js.map +0 -1
- package/authentication/index.js.map +0 -1
- package/authentication/models/authentication-credentials.model.js.map +0 -1
- package/authentication/models/authentication-session.model.js.map +0 -1
- package/authentication/models/index.js.map +0 -1
- package/authentication/models/init-secret-reset-data.model.js.map +0 -1
- package/authentication/models/secret-check-result.model.js.map +0 -1
- package/authentication/models/token-payload-base.model.js.map +0 -1
- package/authentication/models/token.model.js.map +0 -1
- package/authentication/server/authentication-api-request-token.provider.js.map +0 -1
- package/authentication/server/authentication-credentials.repository.js.map +0 -1
- package/authentication/server/authentication-secret-requirements.validator.js.map +0 -1
- package/authentication/server/authentication-secret-reset.handler.js.map +0 -1
- package/authentication/server/authentication-session.repository.js.map +0 -1
- package/authentication/server/authentication-subject.resolver.js.map +0 -1
- package/authentication/server/authentication-token-payload.provider.js.map +0 -1
- package/authentication/server/authentication.api-controller.js.map +0 -1
- package/authentication/server/authentication.service.js.map +0 -1
- package/authentication/server/helper.js.map +0 -1
- package/authentication/server/index.js.map +0 -1
- package/authentication/server/module.js.map +0 -1
- package/authentication/server/mongo/index.js.map +0 -1
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js.map +0 -1
- package/authentication/server/mongo/mongo-authentication-session.repository.js.map +0 -1
- package/collections/awaitable/awaitable-list.js.map +0 -1
- package/collections/awaitable/awaitable-map.js.map +0 -1
- package/collections/awaitable/awaitable-set.js.map +0 -1
- package/collections/awaitable/index.js.map +0 -1
- package/collections/collection.js.map +0 -1
- package/collections/index.js.map +0 -1
- package/collections/keyed-set.js.map +0 -1
- package/collections/list.js.map +0 -1
- package/collections/observable/index.js.map +0 -1
- package/collections/observable/observable-array.js.map +0 -1
- package/collections/observable/observable-collection-base.js.map +0 -1
- package/collections/observable/observable-collection.js.map +0 -1
- package/collections/observable/observable-list-base.js.map +0 -1
- package/collections/observable/observable-list.js.map +0 -1
- package/collections/observable/observable-map.js.map +0 -1
- package/collections/observable/observable-set.js.map +0 -1
- package/collections/observable/observable-sorted-array-list.js.map +0 -1
- package/collections/sorted-array-list.js.map +0 -1
- package/collections/sorted-list.js.map +0 -1
- package/collections/sorted-map.js.map +0 -1
- package/container/container.js.map +0 -1
- package/container/decorators.js.map +0 -1
- package/container/index.js.map +0 -1
- package/container/interfaces.js.map +0 -1
- package/container/provider.js.map +0 -1
- package/container/resolve-chain.js.map +0 -1
- package/container/resolve.error.js.map +0 -1
- package/container/token.js.map +0 -1
- package/container/type-info.js.map +0 -1
- package/container/types.js.map +0 -1
- package/container/utils.js.map +0 -1
- package/cookie/cookie.js.map +0 -1
- package/cookie/index.js.map +0 -1
- package/core.js.map +0 -1
- package/data-structures/array-list.js.map +0 -1
- package/data-structures/circular-buffer.js.map +0 -1
- package/data-structures/collection.js.map +0 -1
- package/data-structures/index-out-of-bounds.error.js.map +0 -1
- package/data-structures/index.js.map +0 -1
- package/data-structures/iterable-weak-map.js.map +0 -1
- package/data-structures/linked-list.js.map +0 -1
- package/data-structures/list.js.map +0 -1
- package/data-structures/map.js.map +0 -1
- package/data-structures/multi-key-map.js.map +0 -1
- package/data-structures/set.js.map +0 -1
- package/data-structures/sorted-array-list.js.map +0 -1
- package/data-structures/weak-ref-map.js.map +0 -1
- package/database/entity-repository.js.map +0 -1
- package/database/entity.js.map +0 -1
- package/database/id.js.map +0 -1
- package/database/index.js.map +0 -1
- package/database/module.js.map +0 -1
- package/database/mongo/classes.js.map +0 -1
- package/database/mongo/index.js.map +0 -1
- package/database/mongo/model/document.js.map +0 -1
- package/database/mongo/model/index.js.map +0 -1
- package/database/mongo/module.js.map +0 -1
- package/database/mongo/mongo-base.repository.js.map +0 -1
- package/database/mongo/mongo-bulk.js.map +0 -1
- package/database/mongo/mongo-entity-repository.js.map +0 -1
- package/database/mongo/operations.js.map +0 -1
- package/database/mongo/query-converter.js.map +0 -1
- package/database/mongo/simple-entity-repository.js.map +0 -1
- package/database/mongo/types.js.map +0 -1
- package/database/query.js.map +0 -1
- package/database/utils.js.map +0 -1
- package/disposable/async-disposer.js.map +0 -1
- package/disposable/disposable.js.map +0 -1
- package/disposable/index.js.map +0 -1
- package/disposable/using.js.map +0 -1
- package/distributed-loop/controller.js.map +0 -1
- package/distributed-loop/distributed-loop.js.map +0 -1
- package/distributed-loop/index.js.map +0 -1
- package/distributed-loop/provider.js.map +0 -1
- package/enumerable/async-enumerable.js.map +0 -1
- package/enumerable/enumerable-methods.js.map +0 -1
- package/enumerable/enumerable.js.map +0 -1
- package/enumerable/index.js.map +0 -1
- package/environment.js.map +0 -1
- package/error/api.error.js.map +0 -1
- package/error/assertion.error.js.map +0 -1
- package/error/bad-request.error.js.map +0 -1
- package/error/custom.error.js.map +0 -1
- package/error/details.error.js.map +0 -1
- package/error/forbidden.error.js.map +0 -1
- package/error/index.js.map +0 -1
- package/error/invalid-token.error.js.map +0 -1
- package/error/max-bytes-exceeded.error.js.map +0 -1
- package/error/method-not-allowed.error.js.map +0 -1
- package/error/multi.error.js.map +0 -1
- package/error/not-found.error.js.map +0 -1
- package/error/not-implemented.error.js.map +0 -1
- package/error/not-supported.error.js.map +0 -1
- package/error/unauthorized.error.js.map +0 -1
- package/error/unsupported-media-type.error.js.map +0 -1
- package/examples/api/authentication.js.map +0 -1
- package/examples/api/basic-overview.js.map +0 -1
- package/examples/api/custom-authentication.js.map +0 -1
- package/examples/api/streaming.js.map +0 -1
- package/examples/http/client.js.map +0 -1
- package/examples/mail/basic.js.map +0 -1
- package/examples/mail/templates/hello-name.js.map +0 -1
- package/examples/pdf/basic.js.map +0 -1
- package/examples/pdf/templates/hello-name.js.map +0 -1
- package/examples/reflection/basic.js.map +0 -1
- package/examples/template/basic.js.map +0 -1
- package/examples/template/templates/hello-jsx.js.map +0 -1
- package/examples/template/templates/hello-name.js.map +0 -1
- package/global-this.js.map +0 -1
- package/http/client/adapters/undici-http-client.adapter.js.map +0 -1
- package/http/client/http-client-options.js.map +0 -1
- package/http/client/http-client-request.js.map +0 -1
- package/http/client/http-client-response.js.map +0 -1
- package/http/client/http-client.adapter.js.map +0 -1
- package/http/client/http-client.js.map +0 -1
- package/http/client/index.js.map +0 -1
- package/http/client/module.js.map +0 -1
- package/http/cookie-parser.js.map +0 -1
- package/http/http-body.js.map +0 -1
- package/http/http-form.js.map +0 -1
- package/http/http-headers.js.map +0 -1
- package/http/http-query.js.map +0 -1
- package/http/http-url-parameters.js.map +0 -1
- package/http/http-value-map.js.map +0 -1
- package/http/http.error.js.map +0 -1
- package/http/index.js.map +0 -1
- package/http/server/http-server-request.js.map +0 -1
- package/http/server/http-server-response.js.map +0 -1
- package/http/server/http-server.js.map +0 -1
- package/http/server/index.js.map +0 -1
- package/http/server/node/index.js.map +0 -1
- package/http/server/node/module.js.map +0 -1
- package/http/server/node/node-http-server.js.map +0 -1
- package/http/types.js.map +0 -1
- package/http/utils.js.map +0 -1
- package/image-service/image-service.js.map +0 -1
- package/image-service/imgproxy/imgproxy-image-service.js.map +0 -1
- package/image-service/imgproxy/index.js.map +0 -1
- package/image-service/index.js.map +0 -1
- package/import.js.map +0 -1
- package/index.js.map +0 -1
- package/interfaces.js.map +0 -1
- package/json-path/index.js.map +0 -1
- package/json-path/json-path.js.map +0 -1
- package/key-value-store/index.js.map +0 -1
- package/key-value-store/key-value-store.provider.js.map +0 -1
- package/key-value-store/key-value.store.js.map +0 -1
- package/key-value-store/mongo/index.js.map +0 -1
- package/key-value-store/mongo/module.js.map +0 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.js.map +0 -1
- package/key-value-store/mongo/mongo-key-value.model.js.map +0 -1
- package/key-value-store/mongo/mongo-key-value.repository.js.map +0 -1
- package/key-value-store/mongo/mongo-key-value.store.js.map +0 -1
- package/key-value-store/mongo/tokens.js.map +0 -1
- package/lock/index.js.map +0 -1
- package/lock/lock.js.map +0 -1
- package/lock/mongo/index.js.map +0 -1
- package/lock/mongo/lock.js.map +0 -1
- package/lock/mongo/model.js.map +0 -1
- package/lock/mongo/module.js.map +0 -1
- package/lock/mongo/mongo-lock-repository.js.map +0 -1
- package/lock/mongo/provider.js.map +0 -1
- package/lock/provider.js.map +0 -1
- package/lock/web/index.js.map +0 -1
- package/lock/web/module.js.map +0 -1
- package/lock/web/web-lock.js.map +0 -1
- package/lock/web/web-lock.provider.js.map +0 -1
- package/logger/console/index.js.map +0 -1
- package/logger/console/logger.js.map +0 -1
- package/logger/index.js.map +0 -1
- package/logger/level.js.map +0 -1
- package/logger/logger.js.map +0 -1
- package/logger/noop/index.js.map +0 -1
- package/logger/noop/logger.js.map +0 -1
- package/mail/clients/nodemailer.mail-client.js.map +0 -1
- package/mail/index.js.map +0 -1
- package/mail/mail-log.repository.js.map +0 -1
- package/mail/mail.client.js.map +0 -1
- package/mail/mail.service.js.map +0 -1
- package/mail/models/index.js.map +0 -1
- package/mail/models/mail-address.model.js.map +0 -1
- package/mail/models/mail-content.model.js.map +0 -1
- package/mail/models/mail-data.model.js.map +0 -1
- package/mail/models/mail-log.model.js.map +0 -1
- package/mail/models/mail-send-result.model.js.map +0 -1
- package/mail/models/mail-template.model.js.map +0 -1
- package/mail/module.js.map +0 -1
- package/mail/repositories/mongo-mail-log.repository.js.map +0 -1
- package/mail/tokens.js.map +0 -1
- package/memory/finalization.js.map +0 -1
- package/memory/index.js.map +0 -1
- package/memory/observable-finalization-registry.js.map +0 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js.map +0 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +0 -1
- package/message-bus/broadcast-channel/index.js.map +0 -1
- package/message-bus/broadcast-channel/module.js.map +0 -1
- package/message-bus/index.js.map +0 -1
- package/message-bus/local/index.js.map +0 -1
- package/message-bus/local/local-message-bus-provider.js.map +0 -1
- package/message-bus/local/local-message-bus.js.map +0 -1
- package/message-bus/local/module.js.map +0 -1
- package/message-bus/local/types.js.map +0 -1
- package/message-bus/message-bus-base.js.map +0 -1
- package/message-bus/message-bus-provider.js.map +0 -1
- package/message-bus/message-bus.js.map +0 -1
- package/migration/index.js.map +0 -1
- package/migration/migration-state-repository.js.map +0 -1
- package/migration/migration-state.js.map +0 -1
- package/migration/migrator.js.map +0 -1
- package/migration/mongo/index.js.map +0 -1
- package/migration/mongo/migration-state-repository.js.map +0 -1
- package/migration/mongo/module.js.map +0 -1
- package/module/index.js.map +0 -1
- package/module/module-base.js.map +0 -1
- package/module/module-metric-reporter.js.map +0 -1
- package/module/module.js.map +0 -1
- package/module/modules/function.module.js.map +0 -1
- package/module/modules/index.js.map +0 -1
- package/module/modules/web-server.module.js.map +0 -1
- package/module/utils.js.map +0 -1
- package/notification/api.js.map +0 -1
- package/notification/models/index.js.map +0 -1
- package/notification/models/notification-channel-job.model.js.map +0 -1
- package/notification/models/notification.model.js.map +0 -1
- package/notification/module.js.map +0 -1
- package/notification/notification-channel.service.js.map +0 -1
- package/notification/notification.repository.js.map +0 -1
- package/notification/notification.service.js.map +0 -1
- package/object-storage/index.js.map +0 -1
- package/object-storage/object-storage-provider.js.map +0 -1
- package/object-storage/object-storage.js.map +0 -1
- package/object-storage/object.js.map +0 -1
- package/object-storage/s3/index.js.map +0 -1
- package/object-storage/s3/s3.object-storage-provider.js.map +0 -1
- package/object-storage/s3/s3.object-storage.js.map +0 -1
- package/object-storage/s3/s3.object.js.map +0 -1
- package/openid-connect/cached-oidc-configuration.service.js.map +0 -1
- package/openid-connect/index.js.map +0 -1
- package/openid-connect/mongo-oidc-state.repository.js.map +0 -1
- package/openid-connect/oidc-configuration.service.js.map +0 -1
- package/openid-connect/oidc-state.model.js.map +0 -1
- package/openid-connect/oidc-state.repository.js.map +0 -1
- package/openid-connect/oidc.service-model.js.map +0 -1
- package/openid-connect/oidc.service.js.map +0 -1
- package/password/have-i-been-pwned.js.map +0 -1
- package/password/index.js.map +0 -1
- package/password/password-check-result.model.js.map +0 -1
- package/password/password-check.js.map +0 -1
- package/password/password-check.localization.js.map +0 -1
- package/pdf/index.js.map +0 -1
- package/pdf/pdf.service.js.map +0 -1
- package/pool/index.js.map +0 -1
- package/pool/pool.js.map +0 -1
- package/process-shutdown.js.map +0 -1
- package/promise/cancelable-promise.js.map +0 -1
- package/promise/deferred-promise.js.map +0 -1
- package/promise/index.js.map +0 -1
- package/promise/lazy-promise.js.map +0 -1
- package/queue/enqueue-batch.js.map +0 -1
- package/queue/index.js.map +0 -1
- package/queue/mongo/index.js.map +0 -1
- package/queue/mongo/job.js.map +0 -1
- package/queue/mongo/mongo-job.repository.js.map +0 -1
- package/queue/mongo/queue.js.map +0 -1
- package/queue/mongo/queue.provider.js.map +0 -1
- package/queue/provider.js.map +0 -1
- package/queue/queue.js.map +0 -1
- package/random/index.js.map +0 -1
- package/random/number/index.js.map +0 -1
- package/random/number/mulberry32.js.map +0 -1
- package/random/number/seeded.js.map +0 -1
- package/random/number/sfc32.js.map +0 -1
- package/reflection/decorator-data.js.map +0 -1
- package/reflection/decorators.js.map +0 -1
- package/reflection/index.js.map +0 -1
- package/reflection/reflection-data-map.js.map +0 -1
- package/reflection/registry.js.map +0 -1
- package/reflection/types.js.map +0 -1
- package/reflection/utils.js.map +0 -1
- package/require.js.map +0 -1
- package/rpc/endpoints/message-port.rpc-endpoint.js.map +0 -1
- package/rpc/index.js.map +0 -1
- package/rpc/model.js.map +0 -1
- package/rpc/rpc-endpoint.js.map +0 -1
- package/rpc/rpc-error.js.map +0 -1
- package/rpc/rpc.js.map +0 -1
- package/rxjs/cast.js.map +0 -1
- package/rxjs/index.js.map +0 -1
- package/rxjs/intersection-observer.js.map +0 -1
- package/rxjs/media-query.js.map +0 -1
- package/rxjs/mutation-observer.js.map +0 -1
- package/rxjs/noop.js.map +0 -1
- package/rxjs/performance-observer.js.map +0 -1
- package/rxjs/resize-observer.js.map +0 -1
- package/rxjs/retry-backoff.js.map +0 -1
- package/rxjs/slow-array.js.map +0 -1
- package/rxjs/teardown.js.map +0 -1
- package/rxjs/timing.js.map +0 -1
- package/rxjs/touch.js.map +0 -1
- package/schema/array-constraints/index.js.map +0 -1
- package/schema/array-constraints/maximum-length.js.map +0 -1
- package/schema/array-constraints/minimum-length.js.map +0 -1
- package/schema/coercers/boolean.coercer.js.map +0 -1
- package/schema/coercers/date.coercer.js.map +0 -1
- package/schema/coercers/index.js.map +0 -1
- package/schema/coercers/number.coercer.js.map +0 -1
- package/schema/coercers/regexp.coercer.js.map +0 -1
- package/schema/coercers/string.coercer.js.map +0 -1
- package/schema/coercers/uint8-array.coercer.js.map +0 -1
- package/schema/constraints/enumeration.js.map +0 -1
- package/schema/constraints/generic.js.map +0 -1
- package/schema/constraints/index.js.map +0 -1
- package/schema/constraints/integer.js.map +0 -1
- package/schema/constraints/length.js.map +0 -1
- package/schema/constraints/literal.js.map +0 -1
- package/schema/constraints/maximum-date.js.map +0 -1
- package/schema/constraints/maximum-length.js.map +0 -1
- package/schema/constraints/maximum.js.map +0 -1
- package/schema/constraints/minimum-date.js.map +0 -1
- package/schema/constraints/minimum-length.js.map +0 -1
- package/schema/constraints/minimum.js.map +0 -1
- package/schema/constraints/pattern.js.map +0 -1
- package/schema/decorators/class.js.map +0 -1
- package/schema/decorators/coerce.js.map +0 -1
- package/schema/decorators/constraint.js.map +0 -1
- package/schema/decorators/index.js.map +0 -1
- package/schema/decorators/property.js.map +0 -1
- package/schema/decorators/types.js.map +0 -1
- package/schema/decorators/utils.js.map +0 -1
- package/schema/index.js.map +0 -1
- package/schema/schema.error.js.map +0 -1
- package/schema/schema.js.map +0 -1
- package/schema/schemas/any.js.map +0 -1
- package/schema/schemas/array.js.map +0 -1
- package/schema/schemas/assign.js.map +0 -1
- package/schema/schemas/boolean.js.map +0 -1
- package/schema/schemas/constraint.js.map +0 -1
- package/schema/schemas/date.js.map +0 -1
- package/schema/schemas/defaulted.js.map +0 -1
- package/schema/schemas/enumeration.js.map +0 -1
- package/schema/schemas/index.js.map +0 -1
- package/schema/schemas/instance.js.map +0 -1
- package/schema/schemas/literal.js.map +0 -1
- package/schema/schemas/nullable.js.map +0 -1
- package/schema/schemas/number.js.map +0 -1
- package/schema/schemas/object.js.map +0 -1
- package/schema/schemas/omit.js.map +0 -1
- package/schema/schemas/one-or-many.js.map +0 -1
- package/schema/schemas/optional.js.map +0 -1
- package/schema/schemas/partial.js.map +0 -1
- package/schema/schemas/pick.js.map +0 -1
- package/schema/schemas/readable-stream.js.map +0 -1
- package/schema/schemas/record.js.map +0 -1
- package/schema/schemas/regexp.js.map +0 -1
- package/schema/schemas/string.js.map +0 -1
- package/schema/schemas/transform.js.map +0 -1
- package/schema/schemas/uint8-array.js.map +0 -1
- package/schema/schemas/union.js.map +0 -1
- package/schema/schemas/unknown.js.map +0 -1
- package/schema/transformers/generic.js.map +0 -1
- package/schema/transformers/index.js.map +0 -1
- package/schema/transformers/lowercase.js.map +0 -1
- package/schema/transformers/trim.js.map +0 -1
- package/schema/transformers/uppercase.js.map +0 -1
- package/schema/types/index.js.map +0 -1
- package/schema/types/schema-array-constraint.js.map +0 -1
- package/schema/types/schema-value-coercer.js.map +0 -1
- package/schema/types/schema-value-constraint.js.map +0 -1
- package/schema/types/schema-value-transformer.js.map +0 -1
- package/schema/types/types.js.map +0 -1
- package/schema/utils/index.js.map +0 -1
- package/schema/utils/schema.js.map +0 -1
- package/schema/utils/value-type.js.map +0 -1
- package/search-index/elastic/config.js.map +0 -1
- package/search-index/elastic/index.js.map +0 -1
- package/search-index/elastic/keyword-rewriter.js.map +0 -1
- package/search-index/elastic/model/elastic-query.js.map +0 -1
- package/search-index/elastic/model/index-mapping.js.map +0 -1
- package/search-index/elastic/model/index.js.map +0 -1
- package/search-index/elastic/model/sort.js.map +0 -1
- package/search-index/elastic/module.js.map +0 -1
- package/search-index/elastic/query-builder/boolean-query-builder.js.map +0 -1
- package/search-index/elastic/query-builder/index.js.map +0 -1
- package/search-index/elastic/query-converter.js.map +0 -1
- package/search-index/elastic/search-index.js.map +0 -1
- package/search-index/elastic/sort-converter.js.map +0 -1
- package/search-index/elastic/types.js.map +0 -1
- package/search-index/error.js.map +0 -1
- package/search-index/index.js.map +0 -1
- package/search-index/memory/index.js.map +0 -1
- package/search-index/memory/memory-search-index.js.map +0 -1
- package/search-index/search-index.js.map +0 -1
- package/search-index/search-result.js.map +0 -1
- package/serializer/handlers/binary.js.map +0 -1
- package/serializer/handlers/date.js.map +0 -1
- package/serializer/handlers/error.js.map +0 -1
- package/serializer/handlers/index.js.map +0 -1
- package/serializer/handlers/map.js.map +0 -1
- package/serializer/handlers/regex.js.map +0 -1
- package/serializer/handlers/register.js.map +0 -1
- package/serializer/handlers/set.js.map +0 -1
- package/serializer/index.js.map +0 -1
- package/serializer/serializable.js.map +0 -1
- package/serializer/serializer.js.map +0 -1
- package/serializer/types.js.map +0 -1
- package/sse/index.js.map +0 -1
- package/sse/model.js.map +0 -1
- package/sse/server-sent-events-source.js.map +0 -1
- package/sse/server-sent-events.js.map +0 -1
- package/supports.js.map +0 -1
- package/templates/index.js.map +0 -1
- package/templates/module.js.map +0 -1
- package/templates/providers/file.template-provider.js.map +0 -1
- package/templates/providers/memory.template-provider.js.map +0 -1
- package/templates/renderers/handlebars.template-renderer.js.map +0 -1
- package/templates/renderers/jsx.template-renderer.js.map +0 -1
- package/templates/renderers/mjml.template-renderer.js.map +0 -1
- package/templates/renderers/string.template-renderer.js.map +0 -1
- package/templates/resolvers/file.template-resolver.js.map +0 -1
- package/templates/resolvers/jsx.template-resolver.js.map +0 -1
- package/templates/resolvers/string.template-resolver.js.map +0 -1
- package/templates/template-renderer.provider.js.map +0 -1
- package/templates/template-resolver.provider.js.map +0 -1
- package/templates/template.model.js.map +0 -1
- package/templates/template.provider.js.map +0 -1
- package/templates/template.renderer.js.map +0 -1
- package/templates/template.resolver.js.map +0 -1
- package/templates/template.service.js.map +0 -1
- package/templates/tokens.js.map +0 -1
- package/templates/types/jsx.intrinsic-elements.js.map +0 -1
- package/text/dynamic-text.model.js.map +0 -1
- package/text/index.js.map +0 -1
- package/text/localizable-text.model.js.map +0 -1
- package/text/localization.service.js.map +0 -1
- package/theme/adapters/css-adapter.js.map +0 -1
- package/theme/adapters/tailwind-adapter.js.map +0 -1
- package/theme/index.js.map +0 -1
- package/theme/theme-service.js.map +0 -1
- package/threading/index.js.map +0 -1
- package/threading/thread-pool.js.map +0 -1
- package/threading/thread-worker.js.map +0 -1
- package/tokens.js.map +0 -1
- package/types/geo-json.js.map +0 -1
- package/types.js.map +0 -1
- package/utils/alphabet.js.map +0 -1
- package/utils/any-iterable-iterator.js.map +0 -1
- package/utils/array/array-backtracker.js.map +0 -1
- package/utils/array/array.js.map +0 -1
- package/utils/array/index.js.map +0 -1
- package/utils/async-iterable-helpers/all.js.map +0 -1
- package/utils/async-iterable-helpers/any.js.map +0 -1
- package/utils/async-iterable-helpers/assert.js.map +0 -1
- package/utils/async-iterable-helpers/batch.js.map +0 -1
- package/utils/async-iterable-helpers/buffer.js.map +0 -1
- package/utils/async-iterable-helpers/concat.js.map +0 -1
- package/utils/async-iterable-helpers/default-if-empty.js.map +0 -1
- package/utils/async-iterable-helpers/deferred.js.map +0 -1
- package/utils/async-iterable-helpers/difference.js.map +0 -1
- package/utils/async-iterable-helpers/distinct.js.map +0 -1
- package/utils/async-iterable-helpers/drain.js.map +0 -1
- package/utils/async-iterable-helpers/filter.js.map +0 -1
- package/utils/async-iterable-helpers/first-or-default.js.map +0 -1
- package/utils/async-iterable-helpers/first.js.map +0 -1
- package/utils/async-iterable-helpers/for-each.js.map +0 -1
- package/utils/async-iterable-helpers/group-single.js.map +0 -1
- package/utils/async-iterable-helpers/group-to-map.js.map +0 -1
- package/utils/async-iterable-helpers/group-to-single-map.js.map +0 -1
- package/utils/async-iterable-helpers/group.js.map +0 -1
- package/utils/async-iterable-helpers/includes.js.map +0 -1
- package/utils/async-iterable-helpers/index.js.map +0 -1
- package/utils/async-iterable-helpers/interrupt.js.map +0 -1
- package/utils/async-iterable-helpers/is-async-iterable.js.map +0 -1
- package/utils/async-iterable-helpers/last-or-default.js.map +0 -1
- package/utils/async-iterable-helpers/last.js.map +0 -1
- package/utils/async-iterable-helpers/map-many.js.map +0 -1
- package/utils/async-iterable-helpers/map.js.map +0 -1
- package/utils/async-iterable-helpers/materialize.js.map +0 -1
- package/utils/async-iterable-helpers/metadata.js.map +0 -1
- package/utils/async-iterable-helpers/multiplex.js.map +0 -1
- package/utils/async-iterable-helpers/observable-iterable.js.map +0 -1
- package/utils/async-iterable-helpers/pairwise.js.map +0 -1
- package/utils/async-iterable-helpers/parallel/feed.js.map +0 -1
- package/utils/async-iterable-helpers/parallel/filter.js.map +0 -1
- package/utils/async-iterable-helpers/parallel/for-each.js.map +0 -1
- package/utils/async-iterable-helpers/parallel/group.js.map +0 -1
- package/utils/async-iterable-helpers/parallel/index.js.map +0 -1
- package/utils/async-iterable-helpers/parallel/map.js.map +0 -1
- package/utils/async-iterable-helpers/parallel/tap.js.map +0 -1
- package/utils/async-iterable-helpers/parallel/types.js.map +0 -1
- package/utils/async-iterable-helpers/reduce.js.map +0 -1
- package/utils/async-iterable-helpers/retry.js.map +0 -1
- package/utils/async-iterable-helpers/single-or-default.js.map +0 -1
- package/utils/async-iterable-helpers/single.js.map +0 -1
- package/utils/async-iterable-helpers/skip.js.map +0 -1
- package/utils/async-iterable-helpers/sort.js.map +0 -1
- package/utils/async-iterable-helpers/take-until.js.map +0 -1
- package/utils/async-iterable-helpers/take-while.js.map +0 -1
- package/utils/async-iterable-helpers/take.js.map +0 -1
- package/utils/async-iterable-helpers/tap.js.map +0 -1
- package/utils/async-iterable-helpers/throttle.js.map +0 -1
- package/utils/async-iterable-helpers/to-array.js.map +0 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js.map +0 -1
- package/utils/async-iterable-helpers/to-async-iterator.js.map +0 -1
- package/utils/async-iterable-helpers/to-set.js.map +0 -1
- package/utils/async-iterable-helpers/to-sync-iterable.js.map +0 -1
- package/utils/async-iterable-helpers/types.js.map +0 -1
- package/utils/async-iterable-helpers/while.js.map +0 -1
- package/utils/async-iterator-iterable-iterator.js.map +0 -1
- package/utils/backoff.js.map +0 -1
- package/utils/base64.js.map +0 -1
- package/utils/benchmark.js.map +0 -1
- package/utils/binary-search.js.map +0 -1
- package/utils/binary.js.map +0 -1
- package/utils/cancellation-token.js.map +0 -1
- package/utils/clone.js.map +0 -1
- package/utils/comparison.js.map +0 -1
- package/utils/compression.js.map +0 -1
- package/utils/config-parser.js.map +0 -1
- package/utils/cryptography.js.map +0 -1
- package/utils/date-time.js.map +0 -1
- package/utils/encoding.js.map +0 -1
- package/utils/enum.js.map +0 -1
- package/utils/equals.js.map +0 -1
- package/utils/event-loop.js.map +0 -1
- package/utils/factory-map.js.map +0 -1
- package/utils/feedable-async-iterable.js.map +0 -1
- package/utils/file-reader.js.map +0 -1
- package/utils/format-error.js.map +0 -1
- package/utils/function/index.js.map +0 -1
- package/utils/function/memoize.js.map +0 -1
- package/utils/function/throttle.js.map +0 -1
- package/utils/helpers.js.map +0 -1
- package/utils/image.js.map +0 -1
- package/utils/index.js.map +0 -1
- package/utils/iterable-helpers/all.js.map +0 -1
- package/utils/iterable-helpers/any.js.map +0 -1
- package/utils/iterable-helpers/assert.js.map +0 -1
- package/utils/iterable-helpers/batch.js.map +0 -1
- package/utils/iterable-helpers/concat.js.map +0 -1
- package/utils/iterable-helpers/default-if-empty.js.map +0 -1
- package/utils/iterable-helpers/deferred.js.map +0 -1
- package/utils/iterable-helpers/difference.js.map +0 -1
- package/utils/iterable-helpers/distinct.js.map +0 -1
- package/utils/iterable-helpers/drain.js.map +0 -1
- package/utils/iterable-helpers/filter.js.map +0 -1
- package/utils/iterable-helpers/first-or-default.js.map +0 -1
- package/utils/iterable-helpers/first.js.map +0 -1
- package/utils/iterable-helpers/for-each.js.map +0 -1
- package/utils/iterable-helpers/group-single.js.map +0 -1
- package/utils/iterable-helpers/group-to-map.js.map +0 -1
- package/utils/iterable-helpers/group-to-single-map.js.map +0 -1
- package/utils/iterable-helpers/group.js.map +0 -1
- package/utils/iterable-helpers/includes.js.map +0 -1
- package/utils/iterable-helpers/index.js.map +0 -1
- package/utils/iterable-helpers/is-iterable.js.map +0 -1
- package/utils/iterable-helpers/last-or-default.js.map +0 -1
- package/utils/iterable-helpers/last.js.map +0 -1
- package/utils/iterable-helpers/map-many.js.map +0 -1
- package/utils/iterable-helpers/map.js.map +0 -1
- package/utils/iterable-helpers/materialize.js.map +0 -1
- package/utils/iterable-helpers/metadata.js.map +0 -1
- package/utils/iterable-helpers/pairwise.js.map +0 -1
- package/utils/iterable-helpers/range.js.map +0 -1
- package/utils/iterable-helpers/reduce.js.map +0 -1
- package/utils/iterable-helpers/single-or-default.js.map +0 -1
- package/utils/iterable-helpers/single.js.map +0 -1
- package/utils/iterable-helpers/skip.js.map +0 -1
- package/utils/iterable-helpers/sort.js.map +0 -1
- package/utils/iterable-helpers/take-until.js.map +0 -1
- package/utils/iterable-helpers/take-while.js.map +0 -1
- package/utils/iterable-helpers/take.js.map +0 -1
- package/utils/iterable-helpers/tap.js.map +0 -1
- package/utils/iterable-helpers/types.js.map +0 -1
- package/utils/iterable-helpers/while.js.map +0 -1
- package/utils/jwt.js.map +0 -1
- package/utils/map.js.map +0 -1
- package/utils/math.js.map +0 -1
- package/utils/merge.js.map +0 -1
- package/utils/middleware.js.map +0 -1
- package/utils/moving-metric.js.map +0 -1
- package/utils/noop.js.map +0 -1
- package/utils/object/decycle.js.map +0 -1
- package/utils/object/dereference.js.map +0 -1
- package/utils/object/forward-ref.js.map +0 -1
- package/utils/object/index.js.map +0 -1
- package/utils/object/lazy-property.js.map +0 -1
- package/utils/object/merge.js.map +0 -1
- package/utils/object/object.js.map +0 -1
- package/utils/object/property-name.js.map +0 -1
- package/utils/ordered-feedable-async-iterable.js.map +0 -1
- package/utils/patch-worker.js.map +0 -1
- package/utils/patterns.js.map +0 -1
- package/utils/periodic-reporter.js.map +0 -1
- package/utils/periodic-sampler.js.map +0 -1
- package/utils/provider-function-iterable.js.map +0 -1
- package/utils/proxy.js.map +0 -1
- package/utils/random.js.map +0 -1
- package/utils/reflection.js.map +0 -1
- package/utils/set.js.map +0 -1
- package/utils/singleton.js.map +0 -1
- package/utils/sort.js.map +0 -1
- package/utils/stream/finalize-stream.js.map +0 -1
- package/utils/stream/index.js.map +0 -1
- package/utils/stream/readable-stream-adapter.js.map +0 -1
- package/utils/stream/readable-stream-from-promise.js.map +0 -1
- package/utils/stream/size-limited-stream.js.map +0 -1
- package/utils/stream/stream-helper-types.js.map +0 -1
- package/utils/stream/stream-reader.js.map +0 -1
- package/utils/string/hypenate.js.map +0 -1
- package/utils/string/index.js.map +0 -1
- package/utils/string/title-case.js.map +0 -1
- package/utils/string/trim.js.map +0 -1
- package/utils/throw.js.map +0 -1
- package/utils/timer.js.map +0 -1
- package/utils/timing.js.map +0 -1
- package/utils/type-guards.js.map +0 -1
- package/utils/type-of.js.map +0 -1
- package/utils/units.js.map +0 -1
- package/utils/url-builder.js.map +0 -1
- package/utils/z-base32.js.map +0 -1
- package/web-types.js.map +0 -1
package/utils/type-guards.js
CHANGED
|
@@ -1,242 +1,1024 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var type_guards_exports = {};
|
|
20
|
+
__export(type_guards_exports, {
|
|
21
|
+
assert: () => assert,
|
|
22
|
+
assertArray: () => assertArray,
|
|
23
|
+
assertArrayBuffer: () => assertArrayBuffer,
|
|
24
|
+
assertArrayBufferPass: () => assertArrayBufferPass,
|
|
25
|
+
assertArrayBufferView: () => assertArrayBufferView,
|
|
26
|
+
assertArrayBufferViewPass: () => assertArrayBufferViewPass,
|
|
27
|
+
assertArrayPass: () => assertArrayPass,
|
|
28
|
+
assertBigInt: () => assertBigInt,
|
|
29
|
+
assertBigInt64Array: () => assertBigInt64Array,
|
|
30
|
+
assertBigInt64ArrayPass: () => assertBigInt64ArrayPass,
|
|
31
|
+
assertBigIntPass: () => assertBigIntPass,
|
|
32
|
+
assertBigUint64Array: () => assertBigUint64Array,
|
|
33
|
+
assertBigUint64ArrayPass: () => assertBigUint64ArrayPass,
|
|
34
|
+
assertBlob: () => assertBlob,
|
|
35
|
+
assertBlobPass: () => assertBlobPass,
|
|
36
|
+
assertBoolean: () => assertBoolean,
|
|
37
|
+
assertBooleanPass: () => assertBooleanPass,
|
|
38
|
+
assertDataView: () => assertDataView,
|
|
39
|
+
assertDataViewPass: () => assertDataViewPass,
|
|
40
|
+
assertDate: () => assertDate,
|
|
41
|
+
assertDatePass: () => assertDatePass,
|
|
42
|
+
assertDefined: () => assertDefined,
|
|
43
|
+
assertDefinedPass: () => assertDefinedPass,
|
|
44
|
+
assertFloat32Array: () => assertFloat32Array,
|
|
45
|
+
assertFloat32ArrayPass: () => assertFloat32ArrayPass,
|
|
46
|
+
assertFloat64Array: () => assertFloat64Array,
|
|
47
|
+
assertFloat64ArrayPass: () => assertFloat64ArrayPass,
|
|
48
|
+
assertFunction: () => assertFunction,
|
|
49
|
+
assertFunctionPass: () => assertFunctionPass,
|
|
50
|
+
assertInt16Array: () => assertInt16Array,
|
|
51
|
+
assertInt16ArrayPass: () => assertInt16ArrayPass,
|
|
52
|
+
assertInt32Array: () => assertInt32Array,
|
|
53
|
+
assertInt32ArrayPass: () => assertInt32ArrayPass,
|
|
54
|
+
assertInt8Array: () => assertInt8Array,
|
|
55
|
+
assertInt8ArrayPass: () => assertInt8ArrayPass,
|
|
56
|
+
assertJsonPrimitive: () => assertJsonPrimitive,
|
|
57
|
+
assertJsonPrimitivePass: () => assertJsonPrimitivePass,
|
|
58
|
+
assertMap: () => assertMap,
|
|
59
|
+
assertMapPass: () => assertMapPass,
|
|
60
|
+
assertNot: () => assertNot,
|
|
61
|
+
assertNotArray: () => assertNotArray,
|
|
62
|
+
assertNotArrayBuffer: () => assertNotArrayBuffer,
|
|
63
|
+
assertNotArrayBufferPass: () => assertNotArrayBufferPass,
|
|
64
|
+
assertNotArrayBufferView: () => assertNotArrayBufferView,
|
|
65
|
+
assertNotArrayBufferViewPass: () => assertNotArrayBufferViewPass,
|
|
66
|
+
assertNotArrayPass: () => assertNotArrayPass,
|
|
67
|
+
assertNotBigInt: () => assertNotBigInt,
|
|
68
|
+
assertNotBigInt64Array: () => assertNotBigInt64Array,
|
|
69
|
+
assertNotBigInt64ArrayPass: () => assertNotBigInt64ArrayPass,
|
|
70
|
+
assertNotBigIntPass: () => assertNotBigIntPass,
|
|
71
|
+
assertNotBigUint64Array: () => assertNotBigUint64Array,
|
|
72
|
+
assertNotBigUint64ArrayPass: () => assertNotBigUint64ArrayPass,
|
|
73
|
+
assertNotBlob: () => assertNotBlob,
|
|
74
|
+
assertNotBlobPass: () => assertNotBlobPass,
|
|
75
|
+
assertNotBoolean: () => assertNotBoolean,
|
|
76
|
+
assertNotBooleanPass: () => assertNotBooleanPass,
|
|
77
|
+
assertNotDataView: () => assertNotDataView,
|
|
78
|
+
assertNotDataViewPass: () => assertNotDataViewPass,
|
|
79
|
+
assertNotDate: () => assertNotDate,
|
|
80
|
+
assertNotDatePass: () => assertNotDatePass,
|
|
81
|
+
assertNotFloat32Array: () => assertNotFloat32Array,
|
|
82
|
+
assertNotFloat32ArrayPass: () => assertNotFloat32ArrayPass,
|
|
83
|
+
assertNotFloat64Array: () => assertNotFloat64Array,
|
|
84
|
+
assertNotFloat64ArrayPass: () => assertNotFloat64ArrayPass,
|
|
85
|
+
assertNotFunction: () => assertNotFunction,
|
|
86
|
+
assertNotFunctionPass: () => assertNotFunctionPass,
|
|
87
|
+
assertNotInt16Array: () => assertNotInt16Array,
|
|
88
|
+
assertNotInt16ArrayPass: () => assertNotInt16ArrayPass,
|
|
89
|
+
assertNotInt32Array: () => assertNotInt32Array,
|
|
90
|
+
assertNotInt32ArrayPass: () => assertNotInt32ArrayPass,
|
|
91
|
+
assertNotInt8Array: () => assertNotInt8Array,
|
|
92
|
+
assertNotInt8ArrayPass: () => assertNotInt8ArrayPass,
|
|
93
|
+
assertNotJsonPrimitive: () => assertNotJsonPrimitive,
|
|
94
|
+
assertNotJsonPrimitivePass: () => assertNotJsonPrimitivePass,
|
|
95
|
+
assertNotMap: () => assertNotMap,
|
|
96
|
+
assertNotMapPass: () => assertNotMapPass,
|
|
97
|
+
assertNotNull: () => assertNotNull,
|
|
98
|
+
assertNotNullOrUndefined: () => assertNotNullOrUndefined,
|
|
99
|
+
assertNotNullOrUndefinedPass: () => assertNotNullOrUndefinedPass,
|
|
100
|
+
assertNotNullPass: () => assertNotNullPass,
|
|
101
|
+
assertNotNumber: () => assertNotNumber,
|
|
102
|
+
assertNotNumberPass: () => assertNotNumberPass,
|
|
103
|
+
assertNotObject: () => assertNotObject,
|
|
104
|
+
assertNotObjectPass: () => assertNotObjectPass,
|
|
105
|
+
assertNotPrimitive: () => assertNotPrimitive,
|
|
106
|
+
assertNotPrimitivePass: () => assertNotPrimitivePass,
|
|
107
|
+
assertNotPromise: () => assertNotPromise,
|
|
108
|
+
assertNotPromisePass: () => assertNotPromisePass,
|
|
109
|
+
assertNotReadableStream: () => assertNotReadableStream,
|
|
110
|
+
assertNotReadableStreamPass: () => assertNotReadableStreamPass,
|
|
111
|
+
assertNotRegExp: () => assertNotRegExp,
|
|
112
|
+
assertNotRegExpPass: () => assertNotRegExpPass,
|
|
113
|
+
assertNotSet: () => assertNotSet,
|
|
114
|
+
assertNotSetPass: () => assertNotSetPass,
|
|
115
|
+
assertNotString: () => assertNotString,
|
|
116
|
+
assertNotStringPass: () => assertNotStringPass,
|
|
117
|
+
assertNotSymbol: () => assertNotSymbol,
|
|
118
|
+
assertNotSymbolPass: () => assertNotSymbolPass,
|
|
119
|
+
assertNotType: () => assertNotType,
|
|
120
|
+
assertNotTypePass: () => assertNotTypePass,
|
|
121
|
+
assertNotTypedArray: () => assertNotTypedArray,
|
|
122
|
+
assertNotTypedArrayPass: () => assertNotTypedArrayPass,
|
|
123
|
+
assertNotUint16Array: () => assertNotUint16Array,
|
|
124
|
+
assertNotUint16ArrayPass: () => assertNotUint16ArrayPass,
|
|
125
|
+
assertNotUint32Array: () => assertNotUint32Array,
|
|
126
|
+
assertNotUint32ArrayPass: () => assertNotUint32ArrayPass,
|
|
127
|
+
assertNotUint8Array: () => assertNotUint8Array,
|
|
128
|
+
assertNotUint8ArrayPass: () => assertNotUint8ArrayPass,
|
|
129
|
+
assertNotUint8ClampedArray: () => assertNotUint8ClampedArray,
|
|
130
|
+
assertNotUint8ClampedArrayPass: () => assertNotUint8ClampedArrayPass,
|
|
131
|
+
assertNotValidDate: () => assertNotValidDate,
|
|
132
|
+
assertNotValidDatePass: () => assertNotValidDatePass,
|
|
133
|
+
assertNotWritableArray: () => assertNotWritableArray,
|
|
134
|
+
assertNotWritableArrayPass: () => assertNotWritableArrayPass,
|
|
135
|
+
assertNull: () => assertNull,
|
|
136
|
+
assertNullOrUndefined: () => assertNullOrUndefined,
|
|
137
|
+
assertNullOrUndefinedPass: () => assertNullOrUndefinedPass,
|
|
138
|
+
assertNullPass: () => assertNullPass,
|
|
139
|
+
assertNumber: () => assertNumber,
|
|
140
|
+
assertNumberPass: () => assertNumberPass,
|
|
141
|
+
assertObject: () => assertObject,
|
|
142
|
+
assertObjectPass: () => assertObjectPass,
|
|
143
|
+
assertPrimitive: () => assertPrimitive,
|
|
144
|
+
assertPrimitivePass: () => assertPrimitivePass,
|
|
145
|
+
assertPromise: () => assertPromise,
|
|
146
|
+
assertPromisePass: () => assertPromisePass,
|
|
147
|
+
assertReadableStream: () => assertReadableStream,
|
|
148
|
+
assertReadableStreamPass: () => assertReadableStreamPass,
|
|
149
|
+
assertRegExp: () => assertRegExp,
|
|
150
|
+
assertRegExpPass: () => assertRegExpPass,
|
|
151
|
+
assertSet: () => assertSet,
|
|
152
|
+
assertSetPass: () => assertSetPass,
|
|
153
|
+
assertString: () => assertString,
|
|
154
|
+
assertStringPass: () => assertStringPass,
|
|
155
|
+
assertSymbol: () => assertSymbol,
|
|
156
|
+
assertSymbolPass: () => assertSymbolPass,
|
|
157
|
+
assertType: () => assertType,
|
|
158
|
+
assertTypePass: () => assertTypePass,
|
|
159
|
+
assertTypedArray: () => assertTypedArray,
|
|
160
|
+
assertTypedArrayPass: () => assertTypedArrayPass,
|
|
161
|
+
assertUint16Array: () => assertUint16Array,
|
|
162
|
+
assertUint16ArrayPass: () => assertUint16ArrayPass,
|
|
163
|
+
assertUint32Array: () => assertUint32Array,
|
|
164
|
+
assertUint32ArrayPass: () => assertUint32ArrayPass,
|
|
165
|
+
assertUint8Array: () => assertUint8Array,
|
|
166
|
+
assertUint8ArrayPass: () => assertUint8ArrayPass,
|
|
167
|
+
assertUint8ClampedArray: () => assertUint8ClampedArray,
|
|
168
|
+
assertUint8ClampedArrayPass: () => assertUint8ClampedArrayPass,
|
|
169
|
+
assertUndefined: () => assertUndefined,
|
|
170
|
+
assertUndefinedPass: () => assertUndefinedPass,
|
|
171
|
+
assertValidDate: () => assertValidDate,
|
|
172
|
+
assertValidDatePass: () => assertValidDatePass,
|
|
173
|
+
assertWritableArray: () => assertWritableArray,
|
|
174
|
+
assertWritableArrayPass: () => assertWritableArrayPass,
|
|
175
|
+
isArray: () => isArray,
|
|
176
|
+
isArrayBuffer: () => isArrayBuffer,
|
|
177
|
+
isArrayBufferView: () => isArrayBufferView,
|
|
178
|
+
isBigInt: () => isBigInt,
|
|
179
|
+
isBigInt64Array: () => isBigInt64Array,
|
|
180
|
+
isBigUint64Array: () => isBigUint64Array,
|
|
181
|
+
isBlob: () => isBlob,
|
|
182
|
+
isBoolean: () => isBoolean,
|
|
183
|
+
isDataView: () => isDataView,
|
|
184
|
+
isDate: () => isDate,
|
|
185
|
+
isDefined: () => isDefined,
|
|
186
|
+
isFloat32Array: () => isFloat32Array,
|
|
187
|
+
isFloat64Array: () => isFloat64Array,
|
|
188
|
+
isFunction: () => isFunction,
|
|
189
|
+
isInt16Array: () => isInt16Array,
|
|
190
|
+
isInt32Array: () => isInt32Array,
|
|
191
|
+
isInt8Array: () => isInt8Array,
|
|
192
|
+
isJsonPrimitive: () => isJsonPrimitive,
|
|
193
|
+
isMap: () => isMap,
|
|
194
|
+
isNotArray: () => isNotArray,
|
|
195
|
+
isNotArrayBuffer: () => isNotArrayBuffer,
|
|
196
|
+
isNotArrayBufferView: () => isNotArrayBufferView,
|
|
197
|
+
isNotBigInt: () => isNotBigInt,
|
|
198
|
+
isNotBigInt64Array: () => isNotBigInt64Array,
|
|
199
|
+
isNotBigUint64Array: () => isNotBigUint64Array,
|
|
200
|
+
isNotBlob: () => isNotBlob,
|
|
201
|
+
isNotBoolean: () => isNotBoolean,
|
|
202
|
+
isNotDataView: () => isNotDataView,
|
|
203
|
+
isNotDate: () => isNotDate,
|
|
204
|
+
isNotFloat32Array: () => isNotFloat32Array,
|
|
205
|
+
isNotFloat64Array: () => isNotFloat64Array,
|
|
206
|
+
isNotFunction: () => isNotFunction,
|
|
207
|
+
isNotInt16Array: () => isNotInt16Array,
|
|
208
|
+
isNotInt32Array: () => isNotInt32Array,
|
|
209
|
+
isNotInt8Array: () => isNotInt8Array,
|
|
210
|
+
isNotJsonPrimitive: () => isNotJsonPrimitive,
|
|
211
|
+
isNotMap: () => isNotMap,
|
|
212
|
+
isNotNull: () => isNotNull,
|
|
213
|
+
isNotNullOrUndefined: () => isNotNullOrUndefined,
|
|
214
|
+
isNotNumber: () => isNotNumber,
|
|
215
|
+
isNotObject: () => isNotObject,
|
|
216
|
+
isNotPrimitive: () => isNotPrimitive,
|
|
217
|
+
isNotPromise: () => isNotPromise,
|
|
218
|
+
isNotReadableStream: () => isNotReadableStream,
|
|
219
|
+
isNotRegExp: () => isNotRegExp,
|
|
220
|
+
isNotSet: () => isNotSet,
|
|
221
|
+
isNotString: () => isNotString,
|
|
222
|
+
isNotSymbol: () => isNotSymbol,
|
|
223
|
+
isNotType: () => isNotType,
|
|
224
|
+
isNotTypedArray: () => isNotTypedArray,
|
|
225
|
+
isNotUint16Array: () => isNotUint16Array,
|
|
226
|
+
isNotUint32Array: () => isNotUint32Array,
|
|
227
|
+
isNotUint8Array: () => isNotUint8Array,
|
|
228
|
+
isNotUint8ClampedArray: () => isNotUint8ClampedArray,
|
|
229
|
+
isNotValidDate: () => isNotValidDate,
|
|
230
|
+
isNotWritableArray: () => isNotWritableArray,
|
|
231
|
+
isNull: () => isNull,
|
|
232
|
+
isNullOrUndefined: () => isNullOrUndefined,
|
|
233
|
+
isNumber: () => isNumber,
|
|
234
|
+
isObject: () => isObject,
|
|
235
|
+
isPrimitive: () => isPrimitive,
|
|
236
|
+
isPromise: () => isPromise,
|
|
237
|
+
isReadableStream: () => isReadableStream,
|
|
238
|
+
isRegExp: () => isRegExp,
|
|
239
|
+
isSet: () => isSet,
|
|
240
|
+
isString: () => isString,
|
|
241
|
+
isSymbol: () => isSymbol,
|
|
242
|
+
isType: () => isType,
|
|
243
|
+
isTypedArray: () => isTypedArray,
|
|
244
|
+
isUint16Array: () => isUint16Array,
|
|
245
|
+
isUint32Array: () => isUint32Array,
|
|
246
|
+
isUint8Array: () => isUint8Array,
|
|
247
|
+
isUint8ClampedArray: () => isUint8ClampedArray,
|
|
248
|
+
isUndefined: () => isUndefined,
|
|
249
|
+
isValidDate: () => isValidDate,
|
|
250
|
+
isWritableArray: () => isWritableArray
|
|
251
|
+
});
|
|
252
|
+
module.exports = __toCommonJS(type_guards_exports);
|
|
253
|
+
var import_supports = require("../supports.js");
|
|
254
|
+
var import_assertion_error = require("../error/assertion.error.js");
|
|
255
|
+
function assert(condition, message = "assertion failed") {
|
|
256
|
+
if (!condition) {
|
|
257
|
+
throw new import_assertion_error.AssertionError(isFunction(message) ? message() : message);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
function assertNot(condition, message = "assertion failed") {
|
|
261
|
+
if (condition) {
|
|
262
|
+
throw new import_assertion_error.AssertionError(isFunction(message) ? message() : message);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
function isType(type, value) {
|
|
266
|
+
return value instanceof type;
|
|
267
|
+
}
|
|
268
|
+
function isNotType(type, value) {
|
|
269
|
+
return !isType(type, value);
|
|
270
|
+
}
|
|
271
|
+
function assertType(type, value, message = () => `Expected value to be of type ${type.name}.`) {
|
|
272
|
+
assert(isType(type, value), message);
|
|
273
|
+
}
|
|
274
|
+
function assertNotType(type, value, message = () => `Expected value to be not of type ${type.name}.`) {
|
|
275
|
+
assert(isNotType(type, value), message);
|
|
276
|
+
}
|
|
277
|
+
function assertTypePass(type, value, message) {
|
|
278
|
+
assertType(type, value, message);
|
|
279
|
+
return value;
|
|
280
|
+
}
|
|
281
|
+
function assertNotTypePass(type, value, message) {
|
|
282
|
+
assertNotType(type, value, message);
|
|
283
|
+
return value;
|
|
284
|
+
}
|
|
285
|
+
function isUndefined(value) {
|
|
286
|
+
return value === void 0;
|
|
287
|
+
}
|
|
288
|
+
function isDefined(value) {
|
|
289
|
+
return !isUndefined(value);
|
|
290
|
+
}
|
|
291
|
+
function assertUndefined(value, message = "Expected value to be undefined.") {
|
|
292
|
+
assert(isUndefined(value), message);
|
|
293
|
+
}
|
|
294
|
+
function assertDefined(value, message = "Expected value to not be undefined.") {
|
|
295
|
+
assert(isDefined(value), message);
|
|
296
|
+
}
|
|
297
|
+
function assertUndefinedPass(value, message) {
|
|
298
|
+
assertUndefined(value, message);
|
|
299
|
+
return value;
|
|
300
|
+
}
|
|
301
|
+
function assertDefinedPass(value, message) {
|
|
302
|
+
assertDefined(value, message);
|
|
303
|
+
return value;
|
|
304
|
+
}
|
|
305
|
+
function isNull(value) {
|
|
306
|
+
return value === null;
|
|
307
|
+
}
|
|
308
|
+
function isNotNull(value) {
|
|
309
|
+
return !isNull(value);
|
|
310
|
+
}
|
|
311
|
+
function assertNull(value, message = "Expected value to be null.") {
|
|
312
|
+
assert(isNull(value), message);
|
|
313
|
+
}
|
|
314
|
+
function assertNotNull(value, message = "Expected value to not be null.") {
|
|
315
|
+
assert(isNotNull(value), message);
|
|
316
|
+
}
|
|
317
|
+
function assertNullPass(value, message) {
|
|
318
|
+
assertNull(value, message);
|
|
319
|
+
return value;
|
|
320
|
+
}
|
|
321
|
+
function assertNotNullPass(value, message) {
|
|
322
|
+
assertNotNull(value, message);
|
|
323
|
+
return value;
|
|
324
|
+
}
|
|
325
|
+
function isNullOrUndefined(value) {
|
|
326
|
+
return value === null || value === void 0;
|
|
327
|
+
}
|
|
328
|
+
function isNotNullOrUndefined(value) {
|
|
329
|
+
return !isNullOrUndefined(value);
|
|
330
|
+
}
|
|
331
|
+
function assertNullOrUndefined(value, message = "Expected value to be null or undefined.") {
|
|
332
|
+
assert(isNullOrUndefined(value), message);
|
|
333
|
+
}
|
|
334
|
+
function assertNotNullOrUndefined(value, message = "Expected value to not be null or undefined.") {
|
|
335
|
+
assert(isNotNullOrUndefined(value), message);
|
|
336
|
+
}
|
|
337
|
+
function assertNullOrUndefinedPass(value, message) {
|
|
338
|
+
assertNullOrUndefined(value, message);
|
|
339
|
+
return value;
|
|
340
|
+
}
|
|
341
|
+
function assertNotNullOrUndefinedPass(value, message) {
|
|
342
|
+
assertNotNullOrUndefined(value, message);
|
|
343
|
+
return value;
|
|
344
|
+
}
|
|
345
|
+
function isNumber(value) {
|
|
346
|
+
return typeof value == "number";
|
|
347
|
+
}
|
|
348
|
+
function isNotNumber(value) {
|
|
349
|
+
return !isNumber(value);
|
|
350
|
+
}
|
|
351
|
+
function assertNumber(value, message = "Expected value to be number.") {
|
|
352
|
+
assert(isNumber(value), message);
|
|
353
|
+
}
|
|
354
|
+
function assertNotNumber(value, message = "Expected value to not be number.") {
|
|
355
|
+
assert(isNotNumber(value), message);
|
|
356
|
+
}
|
|
357
|
+
function assertNumberPass(value, message) {
|
|
358
|
+
assertNumber(value, message);
|
|
359
|
+
return value;
|
|
360
|
+
}
|
|
361
|
+
function assertNotNumberPass(value, message) {
|
|
362
|
+
assertNotNumber(value, message);
|
|
363
|
+
return value;
|
|
364
|
+
}
|
|
365
|
+
function isString(value) {
|
|
366
|
+
return typeof value == "string";
|
|
367
|
+
}
|
|
368
|
+
function isNotString(value) {
|
|
369
|
+
return !isString(value);
|
|
370
|
+
}
|
|
371
|
+
function assertString(value, message = "Expected value to be string.") {
|
|
372
|
+
assert(isString(value), message);
|
|
373
|
+
}
|
|
374
|
+
function assertNotString(value, message = "Expected value to not be string.") {
|
|
375
|
+
assert(isNotString(value), message);
|
|
376
|
+
}
|
|
377
|
+
function assertStringPass(value, message) {
|
|
378
|
+
assertString(value, message);
|
|
379
|
+
return value;
|
|
380
|
+
}
|
|
381
|
+
function assertNotStringPass(value, message) {
|
|
382
|
+
assertNotString(value, message);
|
|
383
|
+
return value;
|
|
384
|
+
}
|
|
385
|
+
function isBoolean(value) {
|
|
386
|
+
return typeof value == "boolean";
|
|
387
|
+
}
|
|
388
|
+
function isNotBoolean(value) {
|
|
389
|
+
return !isBoolean(value);
|
|
390
|
+
}
|
|
391
|
+
function assertBoolean(value, message = "Expected value to be boolean.") {
|
|
392
|
+
assert(isBoolean(value), message);
|
|
393
|
+
}
|
|
394
|
+
function assertNotBoolean(value, message = "Expected value to not be boolean.") {
|
|
395
|
+
assert(isNotBoolean(value), message);
|
|
396
|
+
}
|
|
397
|
+
function assertBooleanPass(value, message) {
|
|
398
|
+
assertBoolean(value, message);
|
|
399
|
+
return value;
|
|
400
|
+
}
|
|
401
|
+
function assertNotBooleanPass(value, message) {
|
|
402
|
+
assertNotBoolean(value, message);
|
|
403
|
+
return value;
|
|
404
|
+
}
|
|
405
|
+
function isBigInt(value) {
|
|
406
|
+
return typeof value == "bigint";
|
|
407
|
+
}
|
|
408
|
+
function isNotBigInt(value) {
|
|
409
|
+
return !isBigInt(value);
|
|
410
|
+
}
|
|
411
|
+
function assertBigInt(value, message = "Expected value to be bigint.") {
|
|
412
|
+
assert(isBigInt(value), message);
|
|
413
|
+
}
|
|
414
|
+
function assertNotBigInt(value, message = "Expected value to not be bigint.") {
|
|
415
|
+
assert(isNotBigInt(value), message);
|
|
416
|
+
}
|
|
417
|
+
function assertBigIntPass(value, message) {
|
|
418
|
+
assertBigInt(value, message);
|
|
419
|
+
return value;
|
|
420
|
+
}
|
|
421
|
+
function assertNotBigIntPass(value, message) {
|
|
422
|
+
assertNotBigInt(value, message);
|
|
423
|
+
return value;
|
|
424
|
+
}
|
|
425
|
+
function isFunction(value) {
|
|
426
|
+
return typeof value == "function";
|
|
427
|
+
}
|
|
428
|
+
function isNotFunction(value) {
|
|
429
|
+
return !isFunction(value);
|
|
430
|
+
}
|
|
431
|
+
function assertFunction(value, message = "Expected value to be function.") {
|
|
432
|
+
assert(isFunction(value), message);
|
|
433
|
+
}
|
|
434
|
+
function assertNotFunction(value, message = "Expected value to not be function.") {
|
|
435
|
+
assert(isNotFunction(value), message);
|
|
436
|
+
}
|
|
437
|
+
function assertFunctionPass(value, message) {
|
|
438
|
+
assertFunction(value, message);
|
|
439
|
+
return value;
|
|
440
|
+
}
|
|
441
|
+
function assertNotFunctionPass(value, message) {
|
|
442
|
+
assertNotFunction(value, message);
|
|
443
|
+
return value;
|
|
444
|
+
}
|
|
445
|
+
function isSymbol(value) {
|
|
446
|
+
return typeof value == "symbol";
|
|
447
|
+
}
|
|
448
|
+
function isNotSymbol(value) {
|
|
449
|
+
return !isSymbol(value);
|
|
450
|
+
}
|
|
451
|
+
function assertSymbol(value, message = "Expected value to be symbol.") {
|
|
452
|
+
assert(isSymbol(value), message);
|
|
453
|
+
}
|
|
454
|
+
function assertNotSymbol(value, message = "Expected value to not be symbol.") {
|
|
455
|
+
assert(isNotSymbol(value), message);
|
|
456
|
+
}
|
|
457
|
+
function assertSymbolPass(value, message) {
|
|
458
|
+
assertSymbol(value, message);
|
|
459
|
+
return value;
|
|
460
|
+
}
|
|
461
|
+
function assertNotSymbolPass(value, message) {
|
|
462
|
+
assertNotSymbol(value, message);
|
|
463
|
+
return value;
|
|
464
|
+
}
|
|
465
|
+
function isObject(value) {
|
|
466
|
+
return value?.constructor == Object;
|
|
467
|
+
}
|
|
468
|
+
function isNotObject(value) {
|
|
469
|
+
return !isObject(value);
|
|
470
|
+
}
|
|
471
|
+
function assertObject(value, message = "Expected value to be object.") {
|
|
472
|
+
assert(isObject(value), message);
|
|
473
|
+
}
|
|
474
|
+
function assertNotObject(value, message = "Expected value to not be object.") {
|
|
475
|
+
assert(isNotObject(value), message);
|
|
476
|
+
}
|
|
477
|
+
function assertObjectPass(value, message) {
|
|
478
|
+
assertObject(value, message);
|
|
479
|
+
return value;
|
|
480
|
+
}
|
|
481
|
+
function assertNotObjectPass(value, message) {
|
|
482
|
+
assertNotObject(value, message);
|
|
483
|
+
return value;
|
|
484
|
+
}
|
|
485
|
+
function isPrimitive(value) {
|
|
486
|
+
const type = typeof value;
|
|
487
|
+
return type == "string" || type == "number" || type == "boolean" || type == "bigint" || type == "symbol" || value === null || value === void 0;
|
|
488
|
+
}
|
|
489
|
+
function isNotPrimitive(value) {
|
|
490
|
+
return !isPrimitive(value);
|
|
491
|
+
}
|
|
492
|
+
function assertPrimitive(value, message = "Expected value to be primitive.") {
|
|
493
|
+
assert(isPrimitive(value), message);
|
|
494
|
+
}
|
|
495
|
+
function assertNotPrimitive(value, message = "Expected value to not be primitive.") {
|
|
496
|
+
assert(isNotPrimitive(value), message);
|
|
497
|
+
}
|
|
498
|
+
function assertPrimitivePass(value, message) {
|
|
499
|
+
assertPrimitive(value, message);
|
|
500
|
+
return value;
|
|
501
|
+
}
|
|
502
|
+
function assertNotPrimitivePass(value, message) {
|
|
503
|
+
assertNotPrimitive(value, message);
|
|
504
|
+
return value;
|
|
505
|
+
}
|
|
506
|
+
function isJsonPrimitive(value) {
|
|
507
|
+
const type = typeof value;
|
|
508
|
+
return type == "string" || type == "number" || type == "boolean" || value === null;
|
|
509
|
+
}
|
|
510
|
+
function isNotJsonPrimitive(value) {
|
|
511
|
+
return !isJsonPrimitive(value);
|
|
512
|
+
}
|
|
513
|
+
function assertJsonPrimitive(value, message = "Expected value to be json-primitive.") {
|
|
514
|
+
assert(isJsonPrimitive(value), message);
|
|
515
|
+
}
|
|
516
|
+
function assertNotJsonPrimitive(value, message = "Expected value to not be json-primitive.") {
|
|
517
|
+
assert(isNotJsonPrimitive(value), message);
|
|
518
|
+
}
|
|
519
|
+
function assertJsonPrimitivePass(value, message) {
|
|
520
|
+
assertJsonPrimitive(value, message);
|
|
521
|
+
return value;
|
|
522
|
+
}
|
|
523
|
+
function assertNotJsonPrimitivePass(value, message) {
|
|
524
|
+
assertNotJsonPrimitive(value, message);
|
|
525
|
+
return value;
|
|
526
|
+
}
|
|
527
|
+
function isDate(value) {
|
|
528
|
+
return value instanceof Date;
|
|
529
|
+
}
|
|
530
|
+
function isNotDate(value) {
|
|
531
|
+
return !isDate(value);
|
|
532
|
+
}
|
|
533
|
+
function assertDate(value, message = "Expected value to be Date.") {
|
|
534
|
+
assert(isDate(value), message);
|
|
535
|
+
}
|
|
536
|
+
function assertNotDate(value, message = "Expected value to not be Date.") {
|
|
537
|
+
assert(isNotDate(value), message);
|
|
538
|
+
}
|
|
539
|
+
function assertDatePass(value, message) {
|
|
540
|
+
assertDate(value, message);
|
|
541
|
+
return value;
|
|
542
|
+
}
|
|
543
|
+
function assertNotDatePass(value, message) {
|
|
544
|
+
assertNotDate(value, message);
|
|
545
|
+
return value;
|
|
546
|
+
}
|
|
547
|
+
function isValidDate(value) {
|
|
548
|
+
return isDate(value) && !Number.isNaN(value.getTime());
|
|
549
|
+
}
|
|
550
|
+
function isNotValidDate(value) {
|
|
551
|
+
return !isValidDate(value);
|
|
552
|
+
}
|
|
553
|
+
function assertValidDate(value, message = "Expected value to be a valid Date.") {
|
|
554
|
+
assert(isValidDate(value), message);
|
|
555
|
+
}
|
|
556
|
+
function assertNotValidDate(value, message = "Expected value to not be a valid Date.") {
|
|
557
|
+
assert(isNotValidDate(value), message);
|
|
558
|
+
}
|
|
559
|
+
function assertValidDatePass(value, message) {
|
|
560
|
+
assertValidDate(value, message);
|
|
561
|
+
return value;
|
|
562
|
+
}
|
|
563
|
+
function assertNotValidDatePass(value, message) {
|
|
564
|
+
assertNotValidDate(value, message);
|
|
565
|
+
return value;
|
|
566
|
+
}
|
|
567
|
+
function isRegExp(value) {
|
|
568
|
+
return value instanceof RegExp;
|
|
569
|
+
}
|
|
570
|
+
function isNotRegExp(value) {
|
|
571
|
+
return !isRegExp(value);
|
|
572
|
+
}
|
|
573
|
+
function assertRegExp(value, message = "Expected value to be RegExp.") {
|
|
574
|
+
assert(isRegExp(value), message);
|
|
575
|
+
}
|
|
576
|
+
function assertNotRegExp(value, message = "Expected value to not be RegExp.") {
|
|
577
|
+
assert(isNotRegExp(value), message);
|
|
578
|
+
}
|
|
579
|
+
function assertRegExpPass(value, message) {
|
|
580
|
+
assertRegExp(value, message);
|
|
581
|
+
return value;
|
|
582
|
+
}
|
|
583
|
+
function assertNotRegExpPass(value, message) {
|
|
584
|
+
assertNotRegExp(value, message);
|
|
585
|
+
return value;
|
|
586
|
+
}
|
|
587
|
+
function isArray(value) {
|
|
588
|
+
return Array.isArray(value);
|
|
589
|
+
}
|
|
590
|
+
function isNotArray(value) {
|
|
591
|
+
return !isArray(value);
|
|
592
|
+
}
|
|
593
|
+
function assertArray(value, message = "Expected value to be Array.") {
|
|
594
|
+
assert(isArray(value), message);
|
|
595
|
+
}
|
|
596
|
+
function assertNotArray(value, message = "Expected value to not be Array.") {
|
|
597
|
+
assert(isNotArray(value), message);
|
|
598
|
+
}
|
|
599
|
+
function assertArrayPass(value, message) {
|
|
600
|
+
assertArray(value, message);
|
|
601
|
+
return value;
|
|
602
|
+
}
|
|
603
|
+
function assertNotArrayPass(value, message) {
|
|
604
|
+
assertNotArray(value, message);
|
|
605
|
+
return value;
|
|
606
|
+
}
|
|
607
|
+
function isWritableArray(value) {
|
|
608
|
+
return isArray(value);
|
|
609
|
+
}
|
|
610
|
+
function isNotWritableArray(value) {
|
|
611
|
+
return isNotArray(value);
|
|
612
|
+
}
|
|
613
|
+
function assertWritableArray(value, message = "Expected value to be Array.") {
|
|
614
|
+
assertArray(value, message);
|
|
615
|
+
}
|
|
616
|
+
function assertNotWritableArray(value, message = "Expected value to not be Array.") {
|
|
617
|
+
assertNotArray(value, message);
|
|
618
|
+
}
|
|
619
|
+
function assertWritableArrayPass(value, message) {
|
|
620
|
+
return assertArrayPass(value, message);
|
|
621
|
+
}
|
|
622
|
+
function assertNotWritableArrayPass(value, message) {
|
|
623
|
+
return assertNotArrayPass(value, message);
|
|
624
|
+
}
|
|
625
|
+
function isBlob(value) {
|
|
626
|
+
return import_supports.supportsBlob && value instanceof Blob;
|
|
627
|
+
}
|
|
628
|
+
function isNotBlob(value) {
|
|
629
|
+
return !isBlob(value);
|
|
630
|
+
}
|
|
631
|
+
function assertBlob(value, message = "Expected value to be Blob.") {
|
|
632
|
+
assert(isBlob(value), message);
|
|
633
|
+
}
|
|
634
|
+
function assertNotBlob(value, message = "Expected value to not be Blob.") {
|
|
635
|
+
assert(isNotBlob(value), message);
|
|
636
|
+
}
|
|
637
|
+
function assertBlobPass(value, message) {
|
|
638
|
+
assertBlob(value, message);
|
|
639
|
+
return value;
|
|
640
|
+
}
|
|
641
|
+
function assertNotBlobPass(value, message) {
|
|
642
|
+
assertNotBlob(value, message);
|
|
643
|
+
return value;
|
|
644
|
+
}
|
|
645
|
+
function isArrayBuffer(value) {
|
|
646
|
+
return value instanceof ArrayBuffer;
|
|
647
|
+
}
|
|
648
|
+
function isNotArrayBuffer(value) {
|
|
649
|
+
return !isArrayBuffer(value);
|
|
650
|
+
}
|
|
651
|
+
function assertArrayBuffer(value, message = "Expected value to be ArrayBuffer.") {
|
|
652
|
+
assert(isArrayBuffer(value), message);
|
|
653
|
+
}
|
|
654
|
+
function assertNotArrayBuffer(value, message = "Expected value to not be ArrayBuffer.") {
|
|
655
|
+
assert(isNotArrayBuffer(value), message);
|
|
656
|
+
}
|
|
657
|
+
function assertArrayBufferPass(value, message) {
|
|
658
|
+
assertArrayBuffer(value, message);
|
|
659
|
+
return value;
|
|
660
|
+
}
|
|
661
|
+
function assertNotArrayBufferPass(value, message) {
|
|
662
|
+
assertNotArrayBuffer(value, message);
|
|
663
|
+
return value;
|
|
664
|
+
}
|
|
665
|
+
function isArrayBufferView(value) {
|
|
666
|
+
return ArrayBuffer.isView(value);
|
|
667
|
+
}
|
|
668
|
+
function isNotArrayBufferView(value) {
|
|
669
|
+
return !isArrayBufferView(value);
|
|
670
|
+
}
|
|
671
|
+
function assertArrayBufferView(value, message = "Expected value to be ArrayBufferView.") {
|
|
672
|
+
assert(isArrayBufferView(value), message);
|
|
673
|
+
}
|
|
674
|
+
function assertNotArrayBufferView(value, message = "Expected value to not be ArrayBufferView.") {
|
|
675
|
+
assert(isNotArrayBufferView(value), message);
|
|
676
|
+
}
|
|
677
|
+
function assertArrayBufferViewPass(value, message) {
|
|
678
|
+
assertArrayBufferView(value, message);
|
|
679
|
+
return value;
|
|
680
|
+
}
|
|
681
|
+
function assertNotArrayBufferViewPass(value, message) {
|
|
682
|
+
assertNotArrayBufferView(value, message);
|
|
683
|
+
return value;
|
|
684
|
+
}
|
|
685
|
+
function isTypedArray(value) {
|
|
686
|
+
return ArrayBuffer.isView(value) && isNotDataView(value);
|
|
687
|
+
}
|
|
688
|
+
function isNotTypedArray(value) {
|
|
689
|
+
return !isTypedArray(value);
|
|
690
|
+
}
|
|
691
|
+
function assertTypedArray(value, message = "Expected value to be TypedArray.") {
|
|
692
|
+
assert(isTypedArray(value), message);
|
|
693
|
+
}
|
|
694
|
+
function assertNotTypedArray(value, message = "Expected value to not be TypedArray.") {
|
|
695
|
+
assert(isNotTypedArray(value), message);
|
|
696
|
+
}
|
|
697
|
+
function assertTypedArrayPass(value, message) {
|
|
698
|
+
assertTypedArray(value, message);
|
|
699
|
+
return value;
|
|
700
|
+
}
|
|
701
|
+
function assertNotTypedArrayPass(value, message) {
|
|
702
|
+
assertNotTypedArray(value, message);
|
|
703
|
+
return value;
|
|
704
|
+
}
|
|
705
|
+
function isInt8Array(value) {
|
|
706
|
+
return value instanceof Int8Array;
|
|
707
|
+
}
|
|
708
|
+
function isNotInt8Array(value) {
|
|
709
|
+
return !isInt8Array(value);
|
|
710
|
+
}
|
|
711
|
+
function assertInt8Array(value, message = "Expected value to be Int8Array.") {
|
|
712
|
+
assert(isInt8Array(value), message);
|
|
713
|
+
}
|
|
714
|
+
function assertNotInt8Array(value, message = "Expected value to not be Int8Array.") {
|
|
715
|
+
assert(isNotInt8Array(value), message);
|
|
716
|
+
}
|
|
717
|
+
function assertInt8ArrayPass(value, message) {
|
|
718
|
+
assertInt8Array(value, message);
|
|
719
|
+
return value;
|
|
720
|
+
}
|
|
721
|
+
function assertNotInt8ArrayPass(value, message) {
|
|
722
|
+
assertNotInt8Array(value, message);
|
|
723
|
+
return value;
|
|
724
|
+
}
|
|
725
|
+
function isUint8Array(value) {
|
|
726
|
+
return value instanceof Uint8Array;
|
|
727
|
+
}
|
|
728
|
+
function isNotUint8Array(value) {
|
|
729
|
+
return !isUint8Array(value);
|
|
730
|
+
}
|
|
731
|
+
function assertUint8Array(value, message = "Expected value to be Uint8Array.") {
|
|
732
|
+
assert(isUint8Array(value), message);
|
|
733
|
+
}
|
|
734
|
+
function assertNotUint8Array(value, message = "Expected value to not be Uint8Array.") {
|
|
735
|
+
assert(isNotUint8Array(value), message);
|
|
736
|
+
}
|
|
737
|
+
function assertUint8ArrayPass(value, message) {
|
|
738
|
+
assertUint8Array(value, message);
|
|
739
|
+
return value;
|
|
740
|
+
}
|
|
741
|
+
function assertNotUint8ArrayPass(value, message) {
|
|
742
|
+
assertNotUint8Array(value, message);
|
|
743
|
+
return value;
|
|
744
|
+
}
|
|
745
|
+
function isUint8ClampedArray(value) {
|
|
746
|
+
return value instanceof Uint8ClampedArray;
|
|
747
|
+
}
|
|
748
|
+
function isNotUint8ClampedArray(value) {
|
|
749
|
+
return !isUint8ClampedArray(value);
|
|
750
|
+
}
|
|
751
|
+
function assertUint8ClampedArray(value, message = "Expected value to be Uint8ClampedArray.") {
|
|
752
|
+
assert(isUint8ClampedArray(value), message);
|
|
753
|
+
}
|
|
754
|
+
function assertNotUint8ClampedArray(value, message = "Expected value to not be Uint8ClampedArray.") {
|
|
755
|
+
assert(isNotUint8ClampedArray(value), message);
|
|
756
|
+
}
|
|
757
|
+
function assertUint8ClampedArrayPass(value, message) {
|
|
758
|
+
assertUint8ClampedArray(value, message);
|
|
759
|
+
return value;
|
|
760
|
+
}
|
|
761
|
+
function assertNotUint8ClampedArrayPass(value, message) {
|
|
762
|
+
assertNotUint8ClampedArray(value, message);
|
|
763
|
+
return value;
|
|
764
|
+
}
|
|
765
|
+
function isInt16Array(value) {
|
|
766
|
+
return value instanceof Int16Array;
|
|
767
|
+
}
|
|
768
|
+
function isNotInt16Array(value) {
|
|
769
|
+
return !isInt16Array(value);
|
|
770
|
+
}
|
|
771
|
+
function assertInt16Array(value, message = "Expected value to be Int16Array.") {
|
|
772
|
+
assert(isInt16Array(value), message);
|
|
773
|
+
}
|
|
774
|
+
function assertNotInt16Array(value, message = "Expected value to not be Int16Array.") {
|
|
775
|
+
assert(isNotInt16Array(value), message);
|
|
776
|
+
}
|
|
777
|
+
function assertInt16ArrayPass(value, message) {
|
|
778
|
+
assertInt16Array(value, message);
|
|
779
|
+
return value;
|
|
780
|
+
}
|
|
781
|
+
function assertNotInt16ArrayPass(value, message) {
|
|
782
|
+
assertNotInt16Array(value, message);
|
|
783
|
+
return value;
|
|
784
|
+
}
|
|
785
|
+
function isUint16Array(value) {
|
|
786
|
+
return value instanceof Uint16Array;
|
|
787
|
+
}
|
|
788
|
+
function isNotUint16Array(value) {
|
|
789
|
+
return !isUint16Array(value);
|
|
790
|
+
}
|
|
791
|
+
function assertUint16Array(value, message = "Expected value to be Uint16Array.") {
|
|
792
|
+
assert(isUint16Array(value), message);
|
|
793
|
+
}
|
|
794
|
+
function assertNotUint16Array(value, message = "Expected value to not be Uint16Array.") {
|
|
795
|
+
assert(isNotUint16Array(value), message);
|
|
796
|
+
}
|
|
797
|
+
function assertUint16ArrayPass(value, message) {
|
|
798
|
+
assertUint16Array(value, message);
|
|
799
|
+
return value;
|
|
800
|
+
}
|
|
801
|
+
function assertNotUint16ArrayPass(value, message) {
|
|
802
|
+
assertNotUint16Array(value, message);
|
|
803
|
+
return value;
|
|
804
|
+
}
|
|
805
|
+
function isInt32Array(value) {
|
|
806
|
+
return value instanceof Int32Array;
|
|
807
|
+
}
|
|
808
|
+
function isNotInt32Array(value) {
|
|
809
|
+
return !isInt32Array(value);
|
|
810
|
+
}
|
|
811
|
+
function assertInt32Array(value, message = "Expected value to be Int32Array.") {
|
|
812
|
+
assert(isInt32Array(value), message);
|
|
813
|
+
}
|
|
814
|
+
function assertNotInt32Array(value, message = "Expected value to not be Int32Array.") {
|
|
815
|
+
assert(isNotInt32Array(value), message);
|
|
816
|
+
}
|
|
817
|
+
function assertInt32ArrayPass(value, message) {
|
|
818
|
+
assertInt32Array(value, message);
|
|
819
|
+
return value;
|
|
820
|
+
}
|
|
821
|
+
function assertNotInt32ArrayPass(value, message) {
|
|
822
|
+
assertNotInt32Array(value, message);
|
|
823
|
+
return value;
|
|
824
|
+
}
|
|
825
|
+
function isUint32Array(value) {
|
|
826
|
+
return value instanceof Uint32Array;
|
|
827
|
+
}
|
|
828
|
+
function isNotUint32Array(value) {
|
|
829
|
+
return !isUint32Array(value);
|
|
830
|
+
}
|
|
831
|
+
function assertUint32Array(value, message = "Expected value to be Uint32Array.") {
|
|
832
|
+
assert(isUint32Array(value), message);
|
|
833
|
+
}
|
|
834
|
+
function assertNotUint32Array(value, message = "Expected value to not be Uint32Array.") {
|
|
835
|
+
assert(isNotUint32Array(value), message);
|
|
836
|
+
}
|
|
837
|
+
function assertUint32ArrayPass(value, message) {
|
|
838
|
+
assertUint32Array(value, message);
|
|
839
|
+
return value;
|
|
840
|
+
}
|
|
841
|
+
function assertNotUint32ArrayPass(value, message) {
|
|
842
|
+
assertNotUint32Array(value, message);
|
|
843
|
+
return value;
|
|
844
|
+
}
|
|
845
|
+
function isFloat32Array(value) {
|
|
846
|
+
return value instanceof Float32Array;
|
|
847
|
+
}
|
|
848
|
+
function isNotFloat32Array(value) {
|
|
849
|
+
return !isFloat32Array(value);
|
|
850
|
+
}
|
|
851
|
+
function assertFloat32Array(value, message = "Expected value to be Float32Array.") {
|
|
852
|
+
assert(isFloat32Array(value), message);
|
|
853
|
+
}
|
|
854
|
+
function assertNotFloat32Array(value, message = "Expected value to not be Float32Array.") {
|
|
855
|
+
assert(isNotFloat32Array(value), message);
|
|
856
|
+
}
|
|
857
|
+
function assertFloat32ArrayPass(value, message) {
|
|
858
|
+
assertFloat32Array(value, message);
|
|
859
|
+
return value;
|
|
860
|
+
}
|
|
861
|
+
function assertNotFloat32ArrayPass(value, message) {
|
|
862
|
+
assertNotFloat32Array(value, message);
|
|
863
|
+
return value;
|
|
864
|
+
}
|
|
865
|
+
function isFloat64Array(value) {
|
|
866
|
+
return value instanceof Float64Array;
|
|
867
|
+
}
|
|
868
|
+
function isNotFloat64Array(value) {
|
|
869
|
+
return !isFloat64Array(value);
|
|
870
|
+
}
|
|
871
|
+
function assertFloat64Array(value, message = "Expected value to be Float64Array.") {
|
|
872
|
+
assert(isFloat64Array(value), message);
|
|
873
|
+
}
|
|
874
|
+
function assertNotFloat64Array(value, message = "Expected value to not be Float64Array.") {
|
|
875
|
+
assert(isNotFloat64Array(value), message);
|
|
876
|
+
}
|
|
877
|
+
function assertFloat64ArrayPass(value, message) {
|
|
878
|
+
assertFloat64Array(value, message);
|
|
879
|
+
return value;
|
|
880
|
+
}
|
|
881
|
+
function assertNotFloat64ArrayPass(value, message) {
|
|
882
|
+
assertNotFloat64Array(value, message);
|
|
883
|
+
return value;
|
|
884
|
+
}
|
|
885
|
+
function isBigInt64Array(value) {
|
|
886
|
+
return value instanceof BigInt64Array;
|
|
887
|
+
}
|
|
888
|
+
function isNotBigInt64Array(value) {
|
|
889
|
+
return !isBigInt64Array(value);
|
|
890
|
+
}
|
|
891
|
+
function assertBigInt64Array(value, message = "Expected value to be BigInt64Array.") {
|
|
892
|
+
assert(isBigInt64Array(value), message);
|
|
893
|
+
}
|
|
894
|
+
function assertNotBigInt64Array(value, message = "Expected value to not be BigInt64Array.") {
|
|
895
|
+
assert(isNotBigInt64Array(value), message);
|
|
896
|
+
}
|
|
897
|
+
function assertBigInt64ArrayPass(value, message) {
|
|
898
|
+
assertBigInt64Array(value, message);
|
|
899
|
+
return value;
|
|
900
|
+
}
|
|
901
|
+
function assertNotBigInt64ArrayPass(value, message) {
|
|
902
|
+
assertNotBigInt64Array(value, message);
|
|
903
|
+
return value;
|
|
904
|
+
}
|
|
905
|
+
function isBigUint64Array(value) {
|
|
906
|
+
return value instanceof BigUint64Array;
|
|
907
|
+
}
|
|
908
|
+
function isNotBigUint64Array(value) {
|
|
909
|
+
return !isBigUint64Array(value);
|
|
910
|
+
}
|
|
911
|
+
function assertBigUint64Array(value, message = "Expected value to be BigUint64Array.") {
|
|
912
|
+
assert(isBigUint64Array(value), message);
|
|
913
|
+
}
|
|
914
|
+
function assertNotBigUint64Array(value, message = "Expected value to not be BigUint64Array.") {
|
|
915
|
+
assert(isNotBigUint64Array(value), message);
|
|
916
|
+
}
|
|
917
|
+
function assertBigUint64ArrayPass(value, message) {
|
|
918
|
+
assertBigUint64Array(value, message);
|
|
919
|
+
return value;
|
|
920
|
+
}
|
|
921
|
+
function assertNotBigUint64ArrayPass(value, message) {
|
|
922
|
+
assertNotBigUint64Array(value, message);
|
|
923
|
+
return value;
|
|
924
|
+
}
|
|
925
|
+
function isDataView(value) {
|
|
926
|
+
return value instanceof DataView;
|
|
927
|
+
}
|
|
928
|
+
function isNotDataView(value) {
|
|
929
|
+
return !isDataView(value);
|
|
930
|
+
}
|
|
931
|
+
function assertDataView(value, message = "Expected value to be DataView.") {
|
|
932
|
+
assert(isDataView(value), message);
|
|
933
|
+
}
|
|
934
|
+
function assertNotDataView(value, message = "Expected value to not be DataView.") {
|
|
935
|
+
assert(isNotDataView(value), message);
|
|
936
|
+
}
|
|
937
|
+
function assertDataViewPass(value, message) {
|
|
938
|
+
assertDataView(value, message);
|
|
939
|
+
return value;
|
|
940
|
+
}
|
|
941
|
+
function assertNotDataViewPass(value, message) {
|
|
942
|
+
assertNotDataView(value, message);
|
|
943
|
+
return value;
|
|
944
|
+
}
|
|
945
|
+
function isSet(value) {
|
|
946
|
+
return value instanceof Set;
|
|
947
|
+
}
|
|
948
|
+
function isNotSet(value) {
|
|
949
|
+
return !isSet(value);
|
|
950
|
+
}
|
|
951
|
+
function assertSet(value, message = "Expected value to be Set.") {
|
|
952
|
+
assert(isSet(value), message);
|
|
953
|
+
}
|
|
954
|
+
function assertNotSet(value, message = "Expected value to not be Set.") {
|
|
955
|
+
assert(isNotSet(value), message);
|
|
956
|
+
}
|
|
957
|
+
function assertSetPass(value, message) {
|
|
958
|
+
assertSet(value, message);
|
|
959
|
+
return value;
|
|
960
|
+
}
|
|
961
|
+
function assertNotSetPass(value, message) {
|
|
962
|
+
assertNotSet(value, message);
|
|
963
|
+
return value;
|
|
964
|
+
}
|
|
965
|
+
function isMap(value) {
|
|
966
|
+
return value instanceof Map;
|
|
967
|
+
}
|
|
968
|
+
function isNotMap(value) {
|
|
969
|
+
return !isMap(value);
|
|
970
|
+
}
|
|
971
|
+
function assertMap(value, message = "Expected value to be Map.") {
|
|
972
|
+
assert(isMap(value), message);
|
|
973
|
+
}
|
|
974
|
+
function assertNotMap(value, message = "Expected value to not be Map.") {
|
|
975
|
+
assert(isNotMap(value), message);
|
|
976
|
+
}
|
|
977
|
+
function assertMapPass(value, message) {
|
|
978
|
+
assertMap(value, message);
|
|
979
|
+
return value;
|
|
980
|
+
}
|
|
981
|
+
function assertNotMapPass(value, message) {
|
|
982
|
+
assertNotMap(value, message);
|
|
983
|
+
return value;
|
|
984
|
+
}
|
|
985
|
+
function isPromise(value) {
|
|
986
|
+
return value instanceof Promise;
|
|
987
|
+
}
|
|
988
|
+
function isNotPromise(value) {
|
|
989
|
+
return !isPromise(value);
|
|
990
|
+
}
|
|
991
|
+
function assertPromise(value, message = "Expected value to be Promise.") {
|
|
992
|
+
assert(isPromise(value), message);
|
|
993
|
+
}
|
|
994
|
+
function assertNotPromise(value, message = "Expected value to not be Promise.") {
|
|
995
|
+
assert(isNotPromise(value), message);
|
|
996
|
+
}
|
|
997
|
+
function assertPromisePass(value, message) {
|
|
998
|
+
assertPromise(value, message);
|
|
999
|
+
return value;
|
|
1000
|
+
}
|
|
1001
|
+
function assertNotPromisePass(value, message) {
|
|
1002
|
+
assertNotPromise(value, message);
|
|
1003
|
+
return value;
|
|
1004
|
+
}
|
|
1005
|
+
function isReadableStream(value) {
|
|
1006
|
+
return import_supports.supportsReadableStream && value instanceof ReadableStream;
|
|
1007
|
+
}
|
|
1008
|
+
function isNotReadableStream(value) {
|
|
1009
|
+
return !isReadableStream(value);
|
|
1010
|
+
}
|
|
1011
|
+
function assertReadableStream(value, message = "Expected value to be ReadableStream.") {
|
|
1012
|
+
assert(isReadableStream(value), message);
|
|
1013
|
+
}
|
|
1014
|
+
function assertNotReadableStream(value, message = "Expected value to not be ReadableStream.") {
|
|
1015
|
+
assert(isNotReadableStream(value), message);
|
|
1016
|
+
}
|
|
1017
|
+
function assertReadableStreamPass(value, message) {
|
|
1018
|
+
assertReadableStream(value, message);
|
|
1019
|
+
return value;
|
|
1020
|
+
}
|
|
1021
|
+
function assertNotReadableStreamPass(value, message) {
|
|
1022
|
+
assertNotReadableStream(value, message);
|
|
1023
|
+
return value;
|
|
1024
|
+
}
|