@temboplus/afloat 0.1.58 → 0.1.60
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/esm/src/models/payout/derivatives/payout.d.ts +2 -0
- package/esm/src/models/payout/derivatives/payout.d.ts.map +1 -1
- package/esm/src/models/payout/derivatives/payout.js +5 -1
- package/esm/src/models/payout/index.d.ts +1 -0
- package/esm/src/models/payout/index.d.ts.map +1 -1
- package/esm/src/models/payout/index.js +1 -0
- package/esm/src/models/payout/narration.d.ts +164 -0
- package/esm/src/models/payout/narration.d.ts.map +1 -0
- package/esm/src/models/payout/narration.js +308 -0
- package/esm/src/models/payout/schemas.js +1 -1
- package/package.json +1 -1
- package/script/mod.d.ts +7 -7
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +7 -7
- package/script/npm/src/_dnt.test_shims.d.ts +6 -0
- package/script/npm/src/_dnt.test_shims.d.ts.map +1 -0
- package/script/npm/src/_dnt.test_shims.js +65 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts +29 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/almost_equals.js +49 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts +24 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/array_includes.js +49 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assert.d.ts +16 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assert.js +25 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts +26 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/assertion_error.js +34 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equal.d.ts +17 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equal.js +209 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equals.d.ts +35 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/equals.js +61 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/exists.d.ts +18 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/exists.js +30 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/fail.d.ts +15 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/fail.js +23 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/false.d.ts +18 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/false.js +25 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater.d.ts +20 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater.js +32 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts +20 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.js +32 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts +23 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/instance_of.js +55 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts +25 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/is_error.js +56 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less.d.ts +19 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less.js +31 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts +20 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/less_or_equal.js +32 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/match.d.ts +18 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/match.js +29 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/mod.d.ts +44 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/mod.js +61 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts +21 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_equals.js +36 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts +20 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_instance_of.js +32 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts +18 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_match.js +29 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts +23 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.js +35 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts +29 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/object_match.js +163 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts +42 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/rejects.js +56 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts +24 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/strict_equals.js +60 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts +18 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/string_includes.js +29 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/throws.d.ts +45 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/throws.js +47 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts +15 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unimplemented.js +23 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts +15 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/assert/1.0.10/unreachable.js +23 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +82 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/build_message.js +115 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +140 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff.js +283 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +99 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/diff_str.js +185 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/format.d.ts +2 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/format.js +63 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +159 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/styles.js +242 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/types.d.ts +16 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
- package/script/npm/src/deps/jsr.io/@std/internal/1.0.5/types.js +3 -0
- package/script/npm/src/mod.d.ts +8 -0
- package/script/npm/src/mod.d.ts.map +1 -0
- package/script/npm/src/mod.js +23 -0
- package/script/npm/src/src/errors/api_error.d.ts.map +1 -0
- package/script/npm/src/src/errors/index.d.ts.map +1 -0
- package/script/npm/src/src/errors/permission_error.d.ts.map +1 -0
- package/script/{src → npm/src/src}/features/admin/contract.d.ts.map +1 -1
- package/script/npm/src/src/features/admin/index.d.ts.map +1 -0
- package/script/npm/src/src/features/admin/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/admin/schemas.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/access/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/access/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/identity/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/identity/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/index.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/manager.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/profile/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/profile/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/client_store.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/client_token_handler.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/server_store.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/server_token_handler.d.ts.map +1 -0
- package/script/npm/src/src/features/auth/storage/types.d.ts.map +1 -0
- package/script/npm/src/src/features/contact/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/contact/index.d.ts.map +1 -0
- package/script/npm/src/src/features/contact/repository.d.ts.map +1 -0
- package/script/{src → npm/src/src}/features/payout/contract.d.ts.map +1 -1
- package/script/npm/src/src/features/payout/index.d.ts.map +1 -0
- package/script/npm/src/src/features/payout/repository.d.ts.map +1 -0
- package/script/npm/src/src/features/wallet/contract.d.ts.map +1 -0
- package/script/npm/src/src/features/wallet/index.d.ts.map +1 -0
- package/script/npm/src/src/features/wallet/repository.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/derivatives/contact.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/derivatives/contact.test.d.ts +1 -0
- package/script/npm/src/src/models/contact/derivatives/contact.test.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/derivatives/contact.test.js +64 -0
- package/script/npm/src/src/models/contact/derivatives/contact_info.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/derivatives/contact_info.test.d.ts +1 -0
- package/script/npm/src/src/models/contact/derivatives/contact_info.test.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/derivatives/contact_info.test.js +331 -0
- package/script/npm/src/src/models/contact/index.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/schemas.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/validation.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/validation.test.d.ts +2 -0
- package/script/npm/src/src/models/contact/validation.test.d.ts.map +1 -0
- package/script/npm/src/src/models/contact/validation.test.js +186 -0
- package/script/npm/src/src/models/index.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/api.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/channel.d.ts.map +1 -0
- package/script/{src → npm/src/src}/models/payout/derivatives/payout.d.ts +2 -0
- package/script/npm/src/src/models/payout/derivatives/payout.d.ts.map +1 -0
- package/script/{src → npm/src/src}/models/payout/derivatives/payout.js +4 -0
- package/script/npm/src/src/models/payout/derivatives/payout.test.d.ts +1 -0
- package/script/npm/src/src/models/payout/derivatives/payout.test.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/derivatives/payout.test.js +76 -0
- package/script/{src → npm/src/src}/models/payout/index.d.ts +1 -0
- package/script/npm/src/src/models/payout/index.d.ts.map +1 -0
- package/script/{src → npm/src/src}/models/payout/index.js +1 -0
- package/script/npm/src/src/models/payout/narration.d.ts +164 -0
- package/script/npm/src/src/models/payout/narration.d.ts.map +1 -0
- package/script/npm/src/src/models/payout/narration.js +312 -0
- package/script/npm/src/src/models/payout/schemas.d.ts.map +1 -0
- package/script/{src → npm/src/src}/models/payout/schemas.js +1 -1
- package/script/npm/src/src/models/payout/status.d.ts.map +1 -0
- package/script/npm/src/src/models/permission.d.ts.map +1 -0
- package/script/npm/src/src/models/role.d.ts.map +1 -0
- package/script/npm/src/src/models/user/authenticated-user.d.ts.map +1 -0
- package/script/npm/src/src/models/user/index.d.ts.map +1 -0
- package/script/npm/src/src/models/user/managed-user.d.ts.map +1 -0
- package/script/npm/src/src/models/user/profile.d.ts.map +1 -0
- package/script/npm/src/src/models/wallet/index.d.ts.map +1 -0
- package/script/npm/src/src/models/wallet/schemas.d.ts.map +1 -0
- package/script/npm/src/src/models/wallet/statement_entry.d.ts.map +1 -0
- package/script/npm/src/src/models/wallet/wallet.d.ts.map +1 -0
- package/script/npm/src/src/shared/base_repository.d.ts.map +1 -0
- package/script/npm/src/src/shared/common_responses.d.ts.map +1 -0
- package/script/npm/src/src/shared/index.d.ts.map +1 -0
- package/script/npm/src/src/shared/token_required_repository.d.ts.map +1 -0
- package/script/_dnt.test_shims.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/almost_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/array_includes.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/assert.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/exists.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/fail.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/greater.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/less.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/less_or_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/object_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/rejects.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/string_includes.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/throws.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/unimplemented.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.10/unreachable.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- package/script/src/errors/api_error.d.ts.map +0 -1
- package/script/src/errors/index.d.ts.map +0 -1
- package/script/src/errors/permission_error.d.ts.map +0 -1
- package/script/src/features/admin/index.d.ts.map +0 -1
- package/script/src/features/admin/repository.d.ts.map +0 -1
- package/script/src/features/admin/schemas.d.ts.map +0 -1
- package/script/src/features/auth/access/contract.d.ts.map +0 -1
- package/script/src/features/auth/access/repository.d.ts.map +0 -1
- package/script/src/features/auth/contract.d.ts.map +0 -1
- package/script/src/features/auth/identity/contract.d.ts.map +0 -1
- package/script/src/features/auth/identity/repository.d.ts.map +0 -1
- package/script/src/features/auth/index.d.ts.map +0 -1
- package/script/src/features/auth/manager.d.ts.map +0 -1
- package/script/src/features/auth/profile/contract.d.ts.map +0 -1
- package/script/src/features/auth/profile/repository.d.ts.map +0 -1
- package/script/src/features/auth/repository.d.ts.map +0 -1
- package/script/src/features/auth/storage/client_store.d.ts.map +0 -1
- package/script/src/features/auth/storage/client_token_handler.d.ts.map +0 -1
- package/script/src/features/auth/storage/server_store.d.ts.map +0 -1
- package/script/src/features/auth/storage/server_token_handler.d.ts.map +0 -1
- package/script/src/features/auth/storage/types.d.ts.map +0 -1
- package/script/src/features/contact/contract.d.ts.map +0 -1
- package/script/src/features/contact/index.d.ts.map +0 -1
- package/script/src/features/contact/repository.d.ts.map +0 -1
- package/script/src/features/payout/index.d.ts.map +0 -1
- package/script/src/features/payout/repository.d.ts.map +0 -1
- package/script/src/features/wallet/contract.d.ts.map +0 -1
- package/script/src/features/wallet/index.d.ts.map +0 -1
- package/script/src/features/wallet/repository.d.ts.map +0 -1
- package/script/src/models/contact/derivatives/contact.d.ts.map +0 -1
- package/script/src/models/contact/derivatives/contact.test.d.ts.map +0 -1
- package/script/src/models/contact/derivatives/contact_info.d.ts.map +0 -1
- package/script/src/models/contact/derivatives/contact_info.test.d.ts.map +0 -1
- package/script/src/models/contact/index.d.ts.map +0 -1
- package/script/src/models/contact/schemas.d.ts.map +0 -1
- package/script/src/models/contact/validation.d.ts.map +0 -1
- package/script/src/models/contact/validation.test.d.ts.map +0 -1
- package/script/src/models/index.d.ts.map +0 -1
- package/script/src/models/payout/api.d.ts.map +0 -1
- package/script/src/models/payout/channel.d.ts.map +0 -1
- package/script/src/models/payout/derivatives/payout.d.ts.map +0 -1
- package/script/src/models/payout/derivatives/payout.test.d.ts.map +0 -1
- package/script/src/models/payout/index.d.ts.map +0 -1
- package/script/src/models/payout/schemas.d.ts.map +0 -1
- package/script/src/models/payout/status.d.ts.map +0 -1
- package/script/src/models/permission.d.ts.map +0 -1
- package/script/src/models/role.d.ts.map +0 -1
- package/script/src/models/user/authenticated-user.d.ts.map +0 -1
- package/script/src/models/user/index.d.ts.map +0 -1
- package/script/src/models/user/managed-user.d.ts.map +0 -1
- package/script/src/models/user/profile.d.ts.map +0 -1
- package/script/src/models/wallet/index.d.ts.map +0 -1
- package/script/src/models/wallet/schemas.d.ts.map +0 -1
- package/script/src/models/wallet/statement_entry.d.ts.map +0 -1
- package/script/src/models/wallet/wallet.d.ts.map +0 -1
- package/script/src/shared/base_repository.d.ts.map +0 -1
- package/script/src/shared/common_responses.d.ts.map +0 -1
- package/script/src/shared/index.d.ts.map +0 -1
- package/script/src/shared/token_required_repository.d.ts.map +0 -1
- /package/script/{src → npm/src/src}/errors/api_error.d.ts +0 -0
- /package/script/{src → npm/src/src}/errors/api_error.js +0 -0
- /package/script/{src → npm/src/src}/errors/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/errors/index.js +0 -0
- /package/script/{src → npm/src/src}/errors/permission_error.d.ts +0 -0
- /package/script/{src → npm/src/src}/errors/permission_error.js +0 -0
- /package/script/{src → npm/src/src}/features/admin/contract.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/admin/contract.js +0 -0
- /package/script/{src → npm/src/src}/features/admin/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/admin/index.js +0 -0
- /package/script/{src → npm/src/src}/features/admin/repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/admin/repository.js +0 -0
- /package/script/{src → npm/src/src}/features/admin/schemas.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/admin/schemas.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/access/contract.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/access/contract.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/access/repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/access/repository.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/contract.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/contract.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/identity/contract.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/identity/contract.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/identity/repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/identity/repository.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/index.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/manager.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/manager.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/profile/contract.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/profile/contract.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/profile/repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/profile/repository.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/repository.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/client_store.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/client_store.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/client_token_handler.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/client_token_handler.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/server_store.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/server_store.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/server_token_handler.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/server_token_handler.js +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/types.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/auth/storage/types.js +0 -0
- /package/script/{src → npm/src/src}/features/contact/contract.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/contact/contract.js +0 -0
- /package/script/{src → npm/src/src}/features/contact/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/contact/index.js +0 -0
- /package/script/{src → npm/src/src}/features/contact/repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/contact/repository.js +0 -0
- /package/script/{src → npm/src/src}/features/payout/contract.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/payout/contract.js +0 -0
- /package/script/{src → npm/src/src}/features/payout/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/payout/index.js +0 -0
- /package/script/{src → npm/src/src}/features/payout/repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/payout/repository.js +0 -0
- /package/script/{src → npm/src/src}/features/wallet/contract.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/wallet/contract.js +0 -0
- /package/script/{src → npm/src/src}/features/wallet/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/wallet/index.js +0 -0
- /package/script/{src → npm/src/src}/features/wallet/repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/features/wallet/repository.js +0 -0
- /package/script/{src → npm/src/src}/models/contact/derivatives/contact.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/contact/derivatives/contact.js +0 -0
- /package/script/{src → npm/src/src}/models/contact/derivatives/contact_info.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/contact/derivatives/contact_info.js +0 -0
- /package/script/{src → npm/src/src}/models/contact/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/contact/index.js +0 -0
- /package/script/{src → npm/src/src}/models/contact/schemas.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/contact/schemas.js +0 -0
- /package/script/{src → npm/src/src}/models/contact/validation.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/contact/validation.js +0 -0
- /package/script/{src → npm/src/src}/models/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/index.js +0 -0
- /package/script/{src → npm/src/src}/models/payout/api.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/payout/api.js +0 -0
- /package/script/{src → npm/src/src}/models/payout/channel.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/payout/channel.js +0 -0
- /package/script/{src → npm/src/src}/models/payout/schemas.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/payout/status.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/payout/status.js +0 -0
- /package/script/{src → npm/src/src}/models/permission.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/permission.js +0 -0
- /package/script/{src → npm/src/src}/models/role.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/role.js +0 -0
- /package/script/{src → npm/src/src}/models/user/authenticated-user.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/user/authenticated-user.js +0 -0
- /package/script/{src → npm/src/src}/models/user/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/user/index.js +0 -0
- /package/script/{src → npm/src/src}/models/user/managed-user.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/user/managed-user.js +0 -0
- /package/script/{src → npm/src/src}/models/user/profile.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/user/profile.js +0 -0
- /package/script/{src → npm/src/src}/models/wallet/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/wallet/index.js +0 -0
- /package/script/{src → npm/src/src}/models/wallet/schemas.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/wallet/schemas.js +0 -0
- /package/script/{src → npm/src/src}/models/wallet/statement_entry.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/wallet/statement_entry.js +0 -0
- /package/script/{src → npm/src/src}/models/wallet/wallet.d.ts +0 -0
- /package/script/{src → npm/src/src}/models/wallet/wallet.js +0 -0
- /package/script/{src → npm/src/src}/shared/base_repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/shared/base_repository.js +0 -0
- /package/script/{src → npm/src/src}/shared/common_responses.d.ts +0 -0
- /package/script/{src → npm/src/src}/shared/common_responses.js +0 -0
- /package/script/{src → npm/src/src}/shared/index.d.ts +0 -0
- /package/script/{src → npm/src/src}/shared/index.js +0 -0
- /package/script/{src → npm/src/src}/shared/token_required_repository.d.ts +0 -0
- /package/script/{src → npm/src/src}/shared/token_required_repository.js +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that actual is not null or undefined.
|
|
3
|
+
* If not then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertExists } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertExists("something"); // Doesn't throw
|
|
10
|
+
* assertExists(undefined); // Throws
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @typeParam T The type of the actual value.
|
|
14
|
+
* @param actual The actual value to check.
|
|
15
|
+
* @param msg The optional message to include in the error if the assertion fails.
|
|
16
|
+
*/
|
|
17
|
+
export declare function assertExists<T>(actual: T, msg?: string): asserts actual is NonNullable<T>;
|
|
18
|
+
//# sourceMappingURL=exists.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/exists.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertExists = assertExists;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
+
/**
|
|
8
|
+
* Make an assertion that actual is not null or undefined.
|
|
9
|
+
* If not then throw.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage
|
|
12
|
+
* ```ts ignore
|
|
13
|
+
* import { assertExists } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* assertExists("something"); // Doesn't throw
|
|
16
|
+
* assertExists(undefined); // Throws
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @typeParam T The type of the actual value.
|
|
20
|
+
* @param actual The actual value to check.
|
|
21
|
+
* @param msg The optional message to include in the error if the assertion fails.
|
|
22
|
+
*/
|
|
23
|
+
function assertExists(actual, msg) {
|
|
24
|
+
if (actual === undefined || actual === null) {
|
|
25
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
26
|
+
msg =
|
|
27
|
+
`Expected actual: "${actual}" to not be null or undefined${msgSuffix}`;
|
|
28
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Forcefully throws a failed assertion.
|
|
3
|
+
*
|
|
4
|
+
* @example Usage
|
|
5
|
+
* ```ts ignore
|
|
6
|
+
* import { fail } from "@std/assert";
|
|
7
|
+
*
|
|
8
|
+
* fail("Deliberately failed!"); // Throws
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* @param msg Optional message to include in the error.
|
|
12
|
+
* @returns Never returns, always throws.
|
|
13
|
+
*/
|
|
14
|
+
export declare function fail(msg?: string): never;
|
|
15
|
+
//# sourceMappingURL=fail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fail.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/fail.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,KAAK,CAGxC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.fail = fail;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
+
/**
|
|
8
|
+
* Forcefully throws a failed assertion.
|
|
9
|
+
*
|
|
10
|
+
* @example Usage
|
|
11
|
+
* ```ts ignore
|
|
12
|
+
* import { fail } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* fail("Deliberately failed!"); // Throws
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @param msg Optional message to include in the error.
|
|
18
|
+
* @returns Never returns, always throws.
|
|
19
|
+
*/
|
|
20
|
+
function fail(msg) {
|
|
21
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
22
|
+
throw new assertion_error_js_1.AssertionError(`Failed assertion${msgSuffix}`);
|
|
23
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Assertion condition for {@linkcode assertFalse}. */
|
|
2
|
+
export type Falsy = false | 0 | 0n | "" | null | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Make an assertion, error will be thrown if `expr` have truthy value.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
* ```ts ignore
|
|
8
|
+
* import { assertFalse } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* assertFalse(false); // Doesn't throw
|
|
11
|
+
* assertFalse(true); // Throws
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @param expr The expression to test.
|
|
15
|
+
* @param msg The optional message to display if the assertion fails.
|
|
16
|
+
*/
|
|
17
|
+
export declare function assertFalse(expr: unknown, msg?: string): asserts expr is Falsy;
|
|
18
|
+
//# sourceMappingURL=false.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertFalse = assertFalse;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
+
/**
|
|
8
|
+
* Make an assertion, error will be thrown if `expr` have truthy value.
|
|
9
|
+
*
|
|
10
|
+
* @example Usage
|
|
11
|
+
* ```ts ignore
|
|
12
|
+
* import { assertFalse } from "@std/assert";
|
|
13
|
+
*
|
|
14
|
+
* assertFalse(false); // Doesn't throw
|
|
15
|
+
* assertFalse(true); // Throws
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @param expr The expression to test.
|
|
19
|
+
* @param msg The optional message to display if the assertion fails.
|
|
20
|
+
*/
|
|
21
|
+
function assertFalse(expr, msg = "") {
|
|
22
|
+
if (expr) {
|
|
23
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` is greater than `expected`.
|
|
3
|
+
* If not then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertGreater } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertGreater(2, 1); // Doesn't throw
|
|
10
|
+
* assertGreater(1, 1); // Throws
|
|
11
|
+
* assertGreater(0, 1); // Throws
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @typeParam T The type of the values to compare.
|
|
15
|
+
* @param actual The actual value to compare.
|
|
16
|
+
* @param expected The expected value to compare.
|
|
17
|
+
* @param msg The optional message to display if the assertion fails.
|
|
18
|
+
*/
|
|
19
|
+
export declare function assertGreater<T>(actual: T, expected: T, msg?: string): void;
|
|
20
|
+
//# sourceMappingURL=greater.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greater.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/greater.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMpE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertGreater = assertGreater;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const format_js_1 = require("../../internal/1.0.5/format.js");
|
|
7
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
8
|
+
/**
|
|
9
|
+
* Make an assertion that `actual` is greater than `expected`.
|
|
10
|
+
* If not then throw.
|
|
11
|
+
*
|
|
12
|
+
* @example Usage
|
|
13
|
+
* ```ts ignore
|
|
14
|
+
* import { assertGreater } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* assertGreater(2, 1); // Doesn't throw
|
|
17
|
+
* assertGreater(1, 1); // Throws
|
|
18
|
+
* assertGreater(0, 1); // Throws
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @typeParam T The type of the values to compare.
|
|
22
|
+
* @param actual The actual value to compare.
|
|
23
|
+
* @param expected The expected value to compare.
|
|
24
|
+
* @param msg The optional message to display if the assertion fails.
|
|
25
|
+
*/
|
|
26
|
+
function assertGreater(actual, expected, msg) {
|
|
27
|
+
if (actual > expected)
|
|
28
|
+
return;
|
|
29
|
+
const actualString = (0, format_js_1.format)(actual);
|
|
30
|
+
const expectedString = (0, format_js_1.format)(expected);
|
|
31
|
+
throw new assertion_error_js_1.AssertionError(msg ?? `Expect ${actualString} > ${expectedString}`);
|
|
32
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` is greater than or equal to `expected`.
|
|
3
|
+
* If not then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertGreaterOrEqual } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertGreaterOrEqual(2, 1); // Doesn't throw
|
|
10
|
+
* assertGreaterOrEqual(1, 1); // Doesn't throw
|
|
11
|
+
* assertGreaterOrEqual(0, 1); // Throws
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @typeParam T The type of the values to compare.
|
|
15
|
+
* @param actual The actual value to compare.
|
|
16
|
+
* @param expected The expected value to compare.
|
|
17
|
+
* @param msg The optional message to display if the assertion fails.
|
|
18
|
+
*/
|
|
19
|
+
export declare function assertGreaterOrEqual<T>(actual: T, expected: T, msg?: string): void;
|
|
20
|
+
//# sourceMappingURL=greater_or_equal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greater_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/greater_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EACpC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertGreaterOrEqual = assertGreaterOrEqual;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const format_js_1 = require("../../internal/1.0.5/format.js");
|
|
7
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
8
|
+
/**
|
|
9
|
+
* Make an assertion that `actual` is greater than or equal to `expected`.
|
|
10
|
+
* If not then throw.
|
|
11
|
+
*
|
|
12
|
+
* @example Usage
|
|
13
|
+
* ```ts ignore
|
|
14
|
+
* import { assertGreaterOrEqual } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* assertGreaterOrEqual(2, 1); // Doesn't throw
|
|
17
|
+
* assertGreaterOrEqual(1, 1); // Doesn't throw
|
|
18
|
+
* assertGreaterOrEqual(0, 1); // Throws
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @typeParam T The type of the values to compare.
|
|
22
|
+
* @param actual The actual value to compare.
|
|
23
|
+
* @param expected The expected value to compare.
|
|
24
|
+
* @param msg The optional message to display if the assertion fails.
|
|
25
|
+
*/
|
|
26
|
+
function assertGreaterOrEqual(actual, expected, msg) {
|
|
27
|
+
if (actual >= expected)
|
|
28
|
+
return;
|
|
29
|
+
const actualString = (0, format_js_1.format)(actual);
|
|
30
|
+
const expectedString = (0, format_js_1.format)(expected);
|
|
31
|
+
throw new assertion_error_js_1.AssertionError(msg ?? `Expect ${actualString} >= ${expectedString}`);
|
|
32
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Any constructor */
|
|
2
|
+
export type AnyConstructor = new (...args: any[]) => any;
|
|
3
|
+
/** Gets constructor type */
|
|
4
|
+
export type GetConstructorType<T extends AnyConstructor> = InstanceType<T>;
|
|
5
|
+
/**
|
|
6
|
+
* Make an assertion that `obj` is an instance of `type`.
|
|
7
|
+
* If not then throw.
|
|
8
|
+
*
|
|
9
|
+
* @example Usage
|
|
10
|
+
* ```ts ignore
|
|
11
|
+
* import { assertInstanceOf } from "@std/assert";
|
|
12
|
+
*
|
|
13
|
+
* assertInstanceOf(new Date(), Date); // Doesn't throw
|
|
14
|
+
* assertInstanceOf(new Date(), Number); // Throws
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @typeParam T The expected type of the object.
|
|
18
|
+
* @param actual The object to check.
|
|
19
|
+
* @param expectedType The expected class constructor.
|
|
20
|
+
* @param msg The optional message to display if the assertion fails.
|
|
21
|
+
*/
|
|
22
|
+
export declare function assertInstanceOf<T extends abstract new (...args: any[]) => any>(actual: unknown, expectedType: T, msg?: string): asserts actual is InstanceType<T>;
|
|
23
|
+
//# sourceMappingURL=instance_of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAE9B,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAE9C,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CA6BnC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertInstanceOf = assertInstanceOf;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
+
/**
|
|
8
|
+
* Make an assertion that `obj` is an instance of `type`.
|
|
9
|
+
* If not then throw.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage
|
|
12
|
+
* ```ts ignore
|
|
13
|
+
* import { assertInstanceOf } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* assertInstanceOf(new Date(), Date); // Doesn't throw
|
|
16
|
+
* assertInstanceOf(new Date(), Number); // Throws
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @typeParam T The expected type of the object.
|
|
20
|
+
* @param actual The object to check.
|
|
21
|
+
* @param expectedType The expected class constructor.
|
|
22
|
+
* @param msg The optional message to display if the assertion fails.
|
|
23
|
+
*/
|
|
24
|
+
function assertInstanceOf(actual, expectedType, msg = "") {
|
|
25
|
+
if (actual instanceof expectedType)
|
|
26
|
+
return;
|
|
27
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
28
|
+
const expectedTypeStr = expectedType.name;
|
|
29
|
+
let actualTypeStr = "";
|
|
30
|
+
if (actual === null) {
|
|
31
|
+
actualTypeStr = "null";
|
|
32
|
+
}
|
|
33
|
+
else if (actual === undefined) {
|
|
34
|
+
actualTypeStr = "undefined";
|
|
35
|
+
}
|
|
36
|
+
else if (typeof actual === "object") {
|
|
37
|
+
actualTypeStr = actual.constructor?.name ?? "Object";
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
actualTypeStr = typeof actual;
|
|
41
|
+
}
|
|
42
|
+
if (expectedTypeStr === actualTypeStr) {
|
|
43
|
+
msg =
|
|
44
|
+
`Expected object to be an instance of "${expectedTypeStr}"${msgSuffix}`;
|
|
45
|
+
}
|
|
46
|
+
else if (actualTypeStr === "function") {
|
|
47
|
+
msg =
|
|
48
|
+
`Expected object to be an instance of "${expectedTypeStr}" but was not an instanced object${msgSuffix}`;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
msg =
|
|
52
|
+
`Expected object to be an instance of "${expectedTypeStr}" but was "${actualTypeStr}"${msgSuffix}`;
|
|
53
|
+
}
|
|
54
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
55
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `error` is an `Error`.
|
|
3
|
+
* If not then an error will be thrown.
|
|
4
|
+
* An error class and a string that should be included in the
|
|
5
|
+
* error message can also be asserted.
|
|
6
|
+
*
|
|
7
|
+
* @example Usage
|
|
8
|
+
* ```ts ignore
|
|
9
|
+
* import { assertIsError } from "@std/assert";
|
|
10
|
+
*
|
|
11
|
+
* assertIsError(null); // Throws
|
|
12
|
+
* assertIsError(new RangeError("Out of range")); // Doesn't throw
|
|
13
|
+
* assertIsError(new RangeError("Out of range"), SyntaxError); // Throws
|
|
14
|
+
* assertIsError(new RangeError("Out of range"), SyntaxError, "Out of range"); // Doesn't throw
|
|
15
|
+
* assertIsError(new RangeError("Out of range"), SyntaxError, "Within range"); // Throws
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @typeParam E The type of the error to assert.
|
|
19
|
+
* @param error The error to assert.
|
|
20
|
+
* @param ErrorClass The optional error class to assert.
|
|
21
|
+
* @param msgMatches The optional string or RegExp to assert in the error message.
|
|
22
|
+
* @param msg The optional message to display if the assertion fails.
|
|
23
|
+
*/
|
|
24
|
+
export declare function assertIsError<E extends Error = Error>(error: unknown, ErrorClass?: abstract new (...args: any[]) => E, msgMatches?: string | RegExp, msg?: string): asserts error is E;
|
|
25
|
+
//# sourceMappingURL=is_error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is_error.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CA8BpB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertIsError = assertIsError;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
+
const styles_js_1 = require("../../internal/1.0.5/styles.js");
|
|
8
|
+
/**
|
|
9
|
+
* Make an assertion that `error` is an `Error`.
|
|
10
|
+
* If not then an error will be thrown.
|
|
11
|
+
* An error class and a string that should be included in the
|
|
12
|
+
* error message can also be asserted.
|
|
13
|
+
*
|
|
14
|
+
* @example Usage
|
|
15
|
+
* ```ts ignore
|
|
16
|
+
* import { assertIsError } from "@std/assert";
|
|
17
|
+
*
|
|
18
|
+
* assertIsError(null); // Throws
|
|
19
|
+
* assertIsError(new RangeError("Out of range")); // Doesn't throw
|
|
20
|
+
* assertIsError(new RangeError("Out of range"), SyntaxError); // Throws
|
|
21
|
+
* assertIsError(new RangeError("Out of range"), SyntaxError, "Out of range"); // Doesn't throw
|
|
22
|
+
* assertIsError(new RangeError("Out of range"), SyntaxError, "Within range"); // Throws
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @typeParam E The type of the error to assert.
|
|
26
|
+
* @param error The error to assert.
|
|
27
|
+
* @param ErrorClass The optional error class to assert.
|
|
28
|
+
* @param msgMatches The optional string or RegExp to assert in the error message.
|
|
29
|
+
* @param msg The optional message to display if the assertion fails.
|
|
30
|
+
*/
|
|
31
|
+
function assertIsError(error,
|
|
32
|
+
// deno-lint-ignore no-explicit-any
|
|
33
|
+
ErrorClass, msgMatches, msg) {
|
|
34
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
35
|
+
if (!(error instanceof Error)) {
|
|
36
|
+
throw new assertion_error_js_1.AssertionError(`Expected "error" to be an Error object${msgSuffix}`);
|
|
37
|
+
}
|
|
38
|
+
if (ErrorClass && !(error instanceof ErrorClass)) {
|
|
39
|
+
msg =
|
|
40
|
+
`Expected error to be instance of "${ErrorClass.name}", but was "${error?.constructor?.name}"${msgSuffix}`;
|
|
41
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
42
|
+
}
|
|
43
|
+
let msgCheck;
|
|
44
|
+
if (typeof msgMatches === "string") {
|
|
45
|
+
msgCheck = (0, styles_js_1.stripAnsiCode)(error.message).includes((0, styles_js_1.stripAnsiCode)(msgMatches));
|
|
46
|
+
}
|
|
47
|
+
if (msgMatches instanceof RegExp) {
|
|
48
|
+
msgCheck = msgMatches.test((0, styles_js_1.stripAnsiCode)(error.message));
|
|
49
|
+
}
|
|
50
|
+
if (msgMatches && !msgCheck) {
|
|
51
|
+
msg = `Expected error message to include ${msgMatches instanceof RegExp
|
|
52
|
+
? msgMatches.toString()
|
|
53
|
+
: JSON.stringify(msgMatches)}, but got ${JSON.stringify(error?.message)}${msgSuffix}`;
|
|
54
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` is less than `expected`.
|
|
3
|
+
* If not then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertLess } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertLess(1, 2); // Doesn't throw
|
|
10
|
+
* assertLess(2, 1); // Throws
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @typeParam T The type of the values to compare.
|
|
14
|
+
* @param actual The actual value to compare.
|
|
15
|
+
* @param expected The expected value to compare.
|
|
16
|
+
* @param msg The optional message to display if the assertion fails.
|
|
17
|
+
*/
|
|
18
|
+
export declare function assertLess<T>(actual: T, expected: T, msg?: string): void;
|
|
19
|
+
//# sourceMappingURL=less.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"less.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/less.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAMjE"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertLess = assertLess;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const format_js_1 = require("../../internal/1.0.5/format.js");
|
|
7
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
8
|
+
/**
|
|
9
|
+
* Make an assertion that `actual` is less than `expected`.
|
|
10
|
+
* If not then throw.
|
|
11
|
+
*
|
|
12
|
+
* @example Usage
|
|
13
|
+
* ```ts ignore
|
|
14
|
+
* import { assertLess } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* assertLess(1, 2); // Doesn't throw
|
|
17
|
+
* assertLess(2, 1); // Throws
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @typeParam T The type of the values to compare.
|
|
21
|
+
* @param actual The actual value to compare.
|
|
22
|
+
* @param expected The expected value to compare.
|
|
23
|
+
* @param msg The optional message to display if the assertion fails.
|
|
24
|
+
*/
|
|
25
|
+
function assertLess(actual, expected, msg) {
|
|
26
|
+
if (actual < expected)
|
|
27
|
+
return;
|
|
28
|
+
const actualString = (0, format_js_1.format)(actual);
|
|
29
|
+
const expectedString = (0, format_js_1.format)(expected);
|
|
30
|
+
throw new assertion_error_js_1.AssertionError(msg ?? `Expect ${actualString} < ${expectedString}`);
|
|
31
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` is less than or equal to `expected`.
|
|
3
|
+
* If not then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertLessOrEqual } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertLessOrEqual(1, 2); // Doesn't throw
|
|
10
|
+
* assertLessOrEqual(1, 1); // Doesn't throw
|
|
11
|
+
* assertLessOrEqual(1, 0); // Throws
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @typeParam T The type of the values to compare.
|
|
15
|
+
* @param actual The actual value to compare.
|
|
16
|
+
* @param expected The expected value to compare.
|
|
17
|
+
* @param msg The optional message to display if the assertion fails.
|
|
18
|
+
*/
|
|
19
|
+
export declare function assertLessOrEqual<T>(actual: T, expected: T, msg?: string): void;
|
|
20
|
+
//# sourceMappingURL=less_or_equal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"less_or_equal.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/less_or_equal.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EACjC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QASb"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertLessOrEqual = assertLessOrEqual;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const format_js_1 = require("../../internal/1.0.5/format.js");
|
|
7
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
8
|
+
/**
|
|
9
|
+
* Make an assertion that `actual` is less than or equal to `expected`.
|
|
10
|
+
* If not then throw.
|
|
11
|
+
*
|
|
12
|
+
* @example Usage
|
|
13
|
+
* ```ts ignore
|
|
14
|
+
* import { assertLessOrEqual } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* assertLessOrEqual(1, 2); // Doesn't throw
|
|
17
|
+
* assertLessOrEqual(1, 1); // Doesn't throw
|
|
18
|
+
* assertLessOrEqual(1, 0); // Throws
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @typeParam T The type of the values to compare.
|
|
22
|
+
* @param actual The actual value to compare.
|
|
23
|
+
* @param expected The expected value to compare.
|
|
24
|
+
* @param msg The optional message to display if the assertion fails.
|
|
25
|
+
*/
|
|
26
|
+
function assertLessOrEqual(actual, expected, msg) {
|
|
27
|
+
if (actual <= expected)
|
|
28
|
+
return;
|
|
29
|
+
const actualString = (0, format_js_1.format)(actual);
|
|
30
|
+
const expectedString = (0, format_js_1.format)(expected);
|
|
31
|
+
throw new assertion_error_js_1.AssertionError(msg ?? `Expect ${actualString} <= ${expectedString}`);
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` match RegExp `expected`. If not
|
|
3
|
+
* then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertMatch } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertMatch("Raptor", /Raptor/); // Doesn't throw
|
|
10
|
+
* assertMatch("Denosaurus", /Raptor/); // Throws
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param actual The actual value to be matched.
|
|
14
|
+
* @param expected The expected pattern to match.
|
|
15
|
+
* @param msg The optional message to display if the assertion fails.
|
|
16
|
+
*/
|
|
17
|
+
export declare function assertMatch(actual: string, expected: RegExp, msg?: string): void;
|
|
18
|
+
//# sourceMappingURL=match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertMatch = assertMatch;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
+
/**
|
|
8
|
+
* Make an assertion that `actual` match RegExp `expected`. If not
|
|
9
|
+
* then throw.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage
|
|
12
|
+
* ```ts ignore
|
|
13
|
+
* import { assertMatch } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* assertMatch("Raptor", /Raptor/); // Doesn't throw
|
|
16
|
+
* assertMatch("Denosaurus", /Raptor/); // Throws
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param actual The actual value to be matched.
|
|
20
|
+
* @param expected The expected pattern to match.
|
|
21
|
+
* @param msg The optional message to display if the assertion fails.
|
|
22
|
+
*/
|
|
23
|
+
function assertMatch(actual, expected, msg) {
|
|
24
|
+
if (expected.test(actual))
|
|
25
|
+
return;
|
|
26
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
27
|
+
msg = `Expected actual: "${actual}" to match: "${expected}"${msgSuffix}`;
|
|
28
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
29
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/** A library of assertion functions.
|
|
2
|
+
* If the assertion is false an `AssertionError` will be thrown which will
|
|
3
|
+
* result in pretty-printed diff of the failing assertion.
|
|
4
|
+
*
|
|
5
|
+
* This module is browser compatible, but do not rely on good formatting of
|
|
6
|
+
* values for AssertionError messages in browsers.
|
|
7
|
+
*
|
|
8
|
+
* ```ts ignore
|
|
9
|
+
* import { assert } from "@std/assert";
|
|
10
|
+
*
|
|
11
|
+
* assert("I am truthy"); // Doesn't throw
|
|
12
|
+
* assert(false); // Throws `AssertionError`
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @module
|
|
16
|
+
*/
|
|
17
|
+
export * from "./almost_equals.js";
|
|
18
|
+
export * from "./array_includes.js";
|
|
19
|
+
export * from "./equals.js";
|
|
20
|
+
export * from "./exists.js";
|
|
21
|
+
export * from "./false.js";
|
|
22
|
+
export * from "./greater_or_equal.js";
|
|
23
|
+
export * from "./greater.js";
|
|
24
|
+
export * from "./instance_of.js";
|
|
25
|
+
export * from "./is_error.js";
|
|
26
|
+
export * from "./less_or_equal.js";
|
|
27
|
+
export * from "./less.js";
|
|
28
|
+
export * from "./match.js";
|
|
29
|
+
export * from "./not_equals.js";
|
|
30
|
+
export * from "./not_instance_of.js";
|
|
31
|
+
export * from "./not_match.js";
|
|
32
|
+
export * from "./not_strict_equals.js";
|
|
33
|
+
export * from "./object_match.js";
|
|
34
|
+
export * from "./rejects.js";
|
|
35
|
+
export * from "./strict_equals.js";
|
|
36
|
+
export * from "./string_includes.js";
|
|
37
|
+
export * from "./throws.js";
|
|
38
|
+
export * from "./assert.js";
|
|
39
|
+
export * from "./assertion_error.js";
|
|
40
|
+
export * from "./equal.js";
|
|
41
|
+
export * from "./fail.js";
|
|
42
|
+
export * from "./unimplemented.js";
|
|
43
|
+
export * from "./unreachable.js";
|
|
44
|
+
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/mod.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC"}
|