@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,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
/** A library of assertion functions.
|
|
20
|
+
* If the assertion is false an `AssertionError` will be thrown which will
|
|
21
|
+
* result in pretty-printed diff of the failing assertion.
|
|
22
|
+
*
|
|
23
|
+
* This module is browser compatible, but do not rely on good formatting of
|
|
24
|
+
* values for AssertionError messages in browsers.
|
|
25
|
+
*
|
|
26
|
+
* ```ts ignore
|
|
27
|
+
* import { assert } from "@std/assert";
|
|
28
|
+
*
|
|
29
|
+
* assert("I am truthy"); // Doesn't throw
|
|
30
|
+
* assert(false); // Throws `AssertionError`
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @module
|
|
34
|
+
*/
|
|
35
|
+
__exportStar(require("./almost_equals.js"), exports);
|
|
36
|
+
__exportStar(require("./array_includes.js"), exports);
|
|
37
|
+
__exportStar(require("./equals.js"), exports);
|
|
38
|
+
__exportStar(require("./exists.js"), exports);
|
|
39
|
+
__exportStar(require("./false.js"), exports);
|
|
40
|
+
__exportStar(require("./greater_or_equal.js"), exports);
|
|
41
|
+
__exportStar(require("./greater.js"), exports);
|
|
42
|
+
__exportStar(require("./instance_of.js"), exports);
|
|
43
|
+
__exportStar(require("./is_error.js"), exports);
|
|
44
|
+
__exportStar(require("./less_or_equal.js"), exports);
|
|
45
|
+
__exportStar(require("./less.js"), exports);
|
|
46
|
+
__exportStar(require("./match.js"), exports);
|
|
47
|
+
__exportStar(require("./not_equals.js"), exports);
|
|
48
|
+
__exportStar(require("./not_instance_of.js"), exports);
|
|
49
|
+
__exportStar(require("./not_match.js"), exports);
|
|
50
|
+
__exportStar(require("./not_strict_equals.js"), exports);
|
|
51
|
+
__exportStar(require("./object_match.js"), exports);
|
|
52
|
+
__exportStar(require("./rejects.js"), exports);
|
|
53
|
+
__exportStar(require("./strict_equals.js"), exports);
|
|
54
|
+
__exportStar(require("./string_includes.js"), exports);
|
|
55
|
+
__exportStar(require("./throws.js"), exports);
|
|
56
|
+
__exportStar(require("./assert.js"), exports);
|
|
57
|
+
__exportStar(require("./assertion_error.js"), exports);
|
|
58
|
+
__exportStar(require("./equal.js"), exports);
|
|
59
|
+
__exportStar(require("./fail.js"), exports);
|
|
60
|
+
__exportStar(require("./unimplemented.js"), exports);
|
|
61
|
+
__exportStar(require("./unreachable.js"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
3
|
+
* If not then throw.
|
|
4
|
+
*
|
|
5
|
+
* Type parameter can be specified to ensure values under comparison have the same type.
|
|
6
|
+
*
|
|
7
|
+
* @example Usage
|
|
8
|
+
* ```ts ignore
|
|
9
|
+
* import { assertNotEquals } from "@std/assert";
|
|
10
|
+
*
|
|
11
|
+
* assertNotEquals(1, 2); // Doesn't throw
|
|
12
|
+
* assertNotEquals(1, 1); // Throws
|
|
13
|
+
* ```
|
|
14
|
+
*
|
|
15
|
+
* @typeParam T The type of the values to compare.
|
|
16
|
+
* @param actual The actual value to compare.
|
|
17
|
+
* @param expected The expected value to compare.
|
|
18
|
+
* @param msg The optional message to display if the assertion fails.
|
|
19
|
+
*/
|
|
20
|
+
export declare function assertNotEquals<T>(actual: T, expected: T, msg?: string): void;
|
|
21
|
+
//# sourceMappingURL=not_equals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_equals.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/not_equals.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,MAAM,QAUtE"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
+
// This module is browser compatible.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.assertNotEquals = assertNotEquals;
|
|
6
|
+
const equal_js_1 = require("./equal.js");
|
|
7
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
8
|
+
const format_js_1 = require("../../internal/1.0.5/format.js");
|
|
9
|
+
/**
|
|
10
|
+
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
11
|
+
* If not then throw.
|
|
12
|
+
*
|
|
13
|
+
* Type parameter can be specified to ensure values under comparison have the same type.
|
|
14
|
+
*
|
|
15
|
+
* @example Usage
|
|
16
|
+
* ```ts ignore
|
|
17
|
+
* import { assertNotEquals } from "@std/assert";
|
|
18
|
+
*
|
|
19
|
+
* assertNotEquals(1, 2); // Doesn't throw
|
|
20
|
+
* assertNotEquals(1, 1); // Throws
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @typeParam T The type of the values to compare.
|
|
24
|
+
* @param actual The actual value to compare.
|
|
25
|
+
* @param expected The expected value to compare.
|
|
26
|
+
* @param msg The optional message to display if the assertion fails.
|
|
27
|
+
*/
|
|
28
|
+
function assertNotEquals(actual, expected, msg) {
|
|
29
|
+
if (!(0, equal_js_1.equal)(actual, expected)) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const actualString = (0, format_js_1.format)(actual);
|
|
33
|
+
const expectedString = (0, format_js_1.format)(expected);
|
|
34
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
35
|
+
throw new assertion_error_js_1.AssertionError(`Expected actual: ${actualString} not to be: ${expectedString}${msgSuffix}`);
|
|
36
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `obj` is not an instance of `type`.
|
|
3
|
+
* If so, then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertNotInstanceOf } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertNotInstanceOf(new Date(), Number); // Doesn't throw
|
|
10
|
+
* assertNotInstanceOf(new Date(), Date); // Throws
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @typeParam A The type of the object to check.
|
|
14
|
+
* @typeParam T The type of the class to check against.
|
|
15
|
+
* @param actual The object to check.
|
|
16
|
+
* @param unexpectedType The class constructor to check against.
|
|
17
|
+
* @param msg The optional message to display if the assertion fails.
|
|
18
|
+
*/
|
|
19
|
+
export declare function assertNotInstanceOf<A, T>(actual: A, unexpectedType: abstract new (...args: any[]) => T, msg?: string): asserts actual is Exclude<A, T>;
|
|
20
|
+
//# sourceMappingURL=not_instance_of.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/not_instance_of.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EACtC,MAAM,EAAE,CAAC,EAET,cAAc,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAClD,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAKjC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertNotInstanceOf = assertNotInstanceOf;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const false_js_1 = require("./false.js");
|
|
7
|
+
/**
|
|
8
|
+
* Make an assertion that `obj` is not an instance of `type`.
|
|
9
|
+
* If so, then throw.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage
|
|
12
|
+
* ```ts ignore
|
|
13
|
+
* import { assertNotInstanceOf } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* assertNotInstanceOf(new Date(), Number); // Doesn't throw
|
|
16
|
+
* assertNotInstanceOf(new Date(), Date); // Throws
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @typeParam A The type of the object to check.
|
|
20
|
+
* @typeParam T The type of the class to check against.
|
|
21
|
+
* @param actual The object to check.
|
|
22
|
+
* @param unexpectedType The class constructor to check against.
|
|
23
|
+
* @param msg The optional message to display if the assertion fails.
|
|
24
|
+
*/
|
|
25
|
+
function assertNotInstanceOf(actual,
|
|
26
|
+
// deno-lint-ignore no-explicit-any
|
|
27
|
+
unexpectedType, msg) {
|
|
28
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
29
|
+
msg =
|
|
30
|
+
`Expected object to not be an instance of "${typeof unexpectedType}"${msgSuffix}`;
|
|
31
|
+
(0, false_js_1.assertFalse)(actual instanceof unexpectedType, msg);
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` not match RegExp `expected`. If match
|
|
3
|
+
* then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertNotMatch } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* assertNotMatch("Denosaurus", /Raptor/); // Doesn't throw
|
|
10
|
+
* assertNotMatch("Raptor", /Raptor/); // Throws
|
|
11
|
+
* ```
|
|
12
|
+
*
|
|
13
|
+
* @param actual The actual value to match.
|
|
14
|
+
* @param expected The expected value to not match.
|
|
15
|
+
* @param msg The optional message to display if the assertion fails.
|
|
16
|
+
*/
|
|
17
|
+
export declare function assertNotMatch(actual: string, expected: RegExp, msg?: string): void;
|
|
18
|
+
//# sourceMappingURL=not_match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_match.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/not_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,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.assertNotMatch = assertNotMatch;
|
|
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` not match RegExp `expected`. If match
|
|
9
|
+
* then throw.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage
|
|
12
|
+
* ```ts ignore
|
|
13
|
+
* import { assertNotMatch } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* assertNotMatch("Denosaurus", /Raptor/); // Doesn't throw
|
|
16
|
+
* assertNotMatch("Raptor", /Raptor/); // Throws
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param actual The actual value to match.
|
|
20
|
+
* @param expected The expected value to not match.
|
|
21
|
+
* @param msg The optional message to display if the assertion fails.
|
|
22
|
+
*/
|
|
23
|
+
function assertNotMatch(actual, expected, msg) {
|
|
24
|
+
if (!expected.test(actual))
|
|
25
|
+
return;
|
|
26
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
27
|
+
msg = `Expected actual: "${actual}" to not match: "${expected}"${msgSuffix}`;
|
|
28
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` and `expected` are not strictly equal, using
|
|
3
|
+
* {@linkcode Object.is} for equality comparison. If the values are strictly
|
|
4
|
+
* equal then throw.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
* ```ts ignore
|
|
8
|
+
* import { assertNotStrictEquals } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* assertNotStrictEquals(1, 1); // Throws
|
|
11
|
+
* assertNotStrictEquals(1, 2); // Doesn't throw
|
|
12
|
+
*
|
|
13
|
+
* assertNotStrictEquals(0, 0); // Throws
|
|
14
|
+
* assertNotStrictEquals(0, -0); // Doesn't throw
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @typeParam T The type of the values to compare.
|
|
18
|
+
* @param actual The actual value to compare.
|
|
19
|
+
* @param expected The expected value to compare.
|
|
20
|
+
* @param msg The optional message to display if the assertion fails.
|
|
21
|
+
*/
|
|
22
|
+
export declare function assertNotStrictEquals<T>(actual: T, expected: T, msg?: string): void;
|
|
23
|
+
//# sourceMappingURL=not_strict_equals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/not_strict_equals.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAYb"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertNotStrictEquals = assertNotStrictEquals;
|
|
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 format_js_1 = require("../../internal/1.0.5/format.js");
|
|
8
|
+
/**
|
|
9
|
+
* Make an assertion that `actual` and `expected` are not strictly equal, using
|
|
10
|
+
* {@linkcode Object.is} for equality comparison. If the values are strictly
|
|
11
|
+
* equal then throw.
|
|
12
|
+
*
|
|
13
|
+
* @example Usage
|
|
14
|
+
* ```ts ignore
|
|
15
|
+
* import { assertNotStrictEquals } from "@std/assert";
|
|
16
|
+
*
|
|
17
|
+
* assertNotStrictEquals(1, 1); // Throws
|
|
18
|
+
* assertNotStrictEquals(1, 2); // Doesn't throw
|
|
19
|
+
*
|
|
20
|
+
* assertNotStrictEquals(0, 0); // Throws
|
|
21
|
+
* assertNotStrictEquals(0, -0); // Doesn't throw
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @typeParam T The type of the values to compare.
|
|
25
|
+
* @param actual The actual value to compare.
|
|
26
|
+
* @param expected The expected value to compare.
|
|
27
|
+
* @param msg The optional message to display if the assertion fails.
|
|
28
|
+
*/
|
|
29
|
+
function assertNotStrictEquals(actual, expected, msg) {
|
|
30
|
+
if (!Object.is(actual, expected)) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
34
|
+
throw new assertion_error_js_1.AssertionError(`Expected "actual" to not be strictly equal to: ${(0, format_js_1.format)(actual)}${msgSuffix}\n`);
|
|
35
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `expected` object is a subset of `actual` object,
|
|
3
|
+
* deeply. If not, then throw a diff of the objects, with mismatching
|
|
4
|
+
* properties highlighted.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
* ```ts ignore
|
|
8
|
+
* import { assertObjectMatch } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* assertObjectMatch({ foo: "bar" }, { foo: "bar" }); // Doesn't throw
|
|
11
|
+
* assertObjectMatch({ foo: "bar" }, { foo: "baz" }); // Throws
|
|
12
|
+
* assertObjectMatch({ foo: 1, bar: 2 }, { foo: 1 }); // Doesn't throw
|
|
13
|
+
* assertObjectMatch({ foo: 1 }, { foo: 1, bar: 2 }); // Throws
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* @example Usage with nested objects
|
|
17
|
+
* ```ts ignore
|
|
18
|
+
* import { assertObjectMatch } from "@std/assert";
|
|
19
|
+
*
|
|
20
|
+
* assertObjectMatch({ foo: { bar: 3, baz: 4 } }, { foo: { bar: 3 } }); // Doesn't throw
|
|
21
|
+
* assertObjectMatch({ foo: { bar: 3 } }, { foo: { bar: 3, baz: 4 } }); // Throws
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @param actual The actual value to be matched.
|
|
25
|
+
* @param expected The expected value to match.
|
|
26
|
+
* @param msg The optional message to display if the assertion fails.
|
|
27
|
+
*/
|
|
28
|
+
export declare function assertObjectMatch(actual: Record<PropertyKey, any>, expected: Record<PropertyKey, unknown>, msg?: string): void;
|
|
29
|
+
//# sourceMappingURL=object_match.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object_match.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/object_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,iBAAiB,CAE/B,MAAM,EAAE,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,EAChC,QAAQ,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,EACtC,GAAG,CAAC,EAAE,MAAM,GACX,IAAI,CAUN"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertObjectMatch = assertObjectMatch;
|
|
4
|
+
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const equals_js_1 = require("./equals.js");
|
|
7
|
+
/**
|
|
8
|
+
* Make an assertion that `expected` object is a subset of `actual` object,
|
|
9
|
+
* deeply. If not, then throw a diff of the objects, with mismatching
|
|
10
|
+
* properties highlighted.
|
|
11
|
+
*
|
|
12
|
+
* @example Usage
|
|
13
|
+
* ```ts ignore
|
|
14
|
+
* import { assertObjectMatch } from "@std/assert";
|
|
15
|
+
*
|
|
16
|
+
* assertObjectMatch({ foo: "bar" }, { foo: "bar" }); // Doesn't throw
|
|
17
|
+
* assertObjectMatch({ foo: "bar" }, { foo: "baz" }); // Throws
|
|
18
|
+
* assertObjectMatch({ foo: 1, bar: 2 }, { foo: 1 }); // Doesn't throw
|
|
19
|
+
* assertObjectMatch({ foo: 1 }, { foo: 1, bar: 2 }); // Throws
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @example Usage with nested objects
|
|
23
|
+
* ```ts ignore
|
|
24
|
+
* import { assertObjectMatch } from "@std/assert";
|
|
25
|
+
*
|
|
26
|
+
* assertObjectMatch({ foo: { bar: 3, baz: 4 } }, { foo: { bar: 3 } }); // Doesn't throw
|
|
27
|
+
* assertObjectMatch({ foo: { bar: 3 } }, { foo: { bar: 3, baz: 4 } }); // Throws
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @param actual The actual value to be matched.
|
|
31
|
+
* @param expected The expected value to match.
|
|
32
|
+
* @param msg The optional message to display if the assertion fails.
|
|
33
|
+
*/
|
|
34
|
+
function assertObjectMatch(
|
|
35
|
+
// deno-lint-ignore no-explicit-any
|
|
36
|
+
actual, expected, msg) {
|
|
37
|
+
return (0, equals_js_1.assertEquals)(
|
|
38
|
+
// get the intersection of "actual" and "expected"
|
|
39
|
+
// side effect: all the instances' constructor field is "Object" now.
|
|
40
|
+
filter(actual, expected),
|
|
41
|
+
// set (nested) instances' constructor field to be "Object" without changing expected value.
|
|
42
|
+
// see https://github.com/denoland/deno_std/pull/1419
|
|
43
|
+
filter(expected, expected), msg);
|
|
44
|
+
}
|
|
45
|
+
function isObject(val) {
|
|
46
|
+
return typeof val === "object" && val !== null;
|
|
47
|
+
}
|
|
48
|
+
function filter(a, b) {
|
|
49
|
+
const seen = new WeakMap();
|
|
50
|
+
return filterObject(a, b);
|
|
51
|
+
function filterObject(a, b) {
|
|
52
|
+
// Prevent infinite loop with circular references with same filter
|
|
53
|
+
if ((seen.has(a)) && (seen.get(a) === b)) {
|
|
54
|
+
return a;
|
|
55
|
+
}
|
|
56
|
+
try {
|
|
57
|
+
seen.set(a, b);
|
|
58
|
+
}
|
|
59
|
+
catch (err) {
|
|
60
|
+
if (err instanceof TypeError) {
|
|
61
|
+
throw new TypeError(`Cannot assertObjectMatch ${a === null ? null : `type ${typeof a}`}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// Filter keys and symbols which are present in both actual and expected
|
|
65
|
+
const filtered = {};
|
|
66
|
+
const keysA = Reflect.ownKeys(a);
|
|
67
|
+
const keysB = Reflect.ownKeys(b);
|
|
68
|
+
const entries = keysA.filter((key) => keysB.includes(key))
|
|
69
|
+
.map((key) => [key, a[key]]);
|
|
70
|
+
if (keysA.length && keysB.length && !entries.length) {
|
|
71
|
+
// If both objects are not empty but don't have the same keys or symbols,
|
|
72
|
+
// returns the entries in object a.
|
|
73
|
+
for (const key of keysA) {
|
|
74
|
+
filtered[key] = a[key];
|
|
75
|
+
}
|
|
76
|
+
return filtered;
|
|
77
|
+
}
|
|
78
|
+
for (const [key, value] of entries) {
|
|
79
|
+
// On regexp references, keep value as it to avoid loosing pattern and flags
|
|
80
|
+
if (value instanceof RegExp) {
|
|
81
|
+
filtered[key] = value;
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
const subset = b[key];
|
|
85
|
+
// On array references, build a filtered array and filter nested objects inside
|
|
86
|
+
if (Array.isArray(value) && Array.isArray(subset)) {
|
|
87
|
+
filtered[key] = filterArray(value, subset);
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
// On nested objects references, build a filtered object recursively
|
|
91
|
+
if (isObject(value) && isObject(subset)) {
|
|
92
|
+
// When both operands are maps, build a filtered map with common keys and filter nested objects inside
|
|
93
|
+
if ((value instanceof Map) && (subset instanceof Map)) {
|
|
94
|
+
filtered[key] = new Map([...value].filter(([k]) => subset.has(k)).map(([k, v]) => {
|
|
95
|
+
const v2 = subset.get(k);
|
|
96
|
+
if (isObject(v) && isObject(v2)) {
|
|
97
|
+
return [k, filterObject(v, v2)];
|
|
98
|
+
}
|
|
99
|
+
return [k, v];
|
|
100
|
+
}));
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
// When both operands are set, build a filtered set with common values
|
|
104
|
+
if ((value instanceof Set) && (subset instanceof Set)) {
|
|
105
|
+
filtered[key] = value.intersection(subset);
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
filtered[key] = filterObject(value, subset);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
filtered[key] = value;
|
|
112
|
+
}
|
|
113
|
+
return filtered;
|
|
114
|
+
}
|
|
115
|
+
function filterArray(a, b) {
|
|
116
|
+
// Prevent infinite loop with circular references with same filter
|
|
117
|
+
if (seen.has(a) && (seen.get(a) === b)) {
|
|
118
|
+
return a;
|
|
119
|
+
}
|
|
120
|
+
seen.set(a, b);
|
|
121
|
+
const filtered = [];
|
|
122
|
+
const count = Math.min(a.length, b.length);
|
|
123
|
+
for (let i = 0; i < count; ++i) {
|
|
124
|
+
const value = a[i];
|
|
125
|
+
const subset = b[i];
|
|
126
|
+
// On regexp references, keep value as it to avoid loosing pattern and flags
|
|
127
|
+
if (value instanceof RegExp) {
|
|
128
|
+
filtered.push(value);
|
|
129
|
+
continue;
|
|
130
|
+
}
|
|
131
|
+
// On array references, build a filtered array and filter nested objects inside
|
|
132
|
+
if (Array.isArray(value) && Array.isArray(subset)) {
|
|
133
|
+
filtered.push(filterArray(value, subset));
|
|
134
|
+
continue;
|
|
135
|
+
}
|
|
136
|
+
// On nested objects references, build a filtered object recursively
|
|
137
|
+
if (isObject(value) && isObject(subset)) {
|
|
138
|
+
// When both operands are maps, build a filtered map with common keys and filter nested objects inside
|
|
139
|
+
if ((value instanceof Map) && (subset instanceof Map)) {
|
|
140
|
+
const map = new Map([...value].filter(([k]) => subset.has(k))
|
|
141
|
+
.map(([k, v]) => {
|
|
142
|
+
const v2 = subset.get(k);
|
|
143
|
+
if (isObject(v) && isObject(v2)) {
|
|
144
|
+
return [k, filterObject(v, v2)];
|
|
145
|
+
}
|
|
146
|
+
return [k, v];
|
|
147
|
+
}));
|
|
148
|
+
filtered.push(map);
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
// When both operands are set, build a filtered set with common values
|
|
152
|
+
if ((value instanceof Set) && (subset instanceof Set)) {
|
|
153
|
+
filtered.push(value.intersection(subset));
|
|
154
|
+
continue;
|
|
155
|
+
}
|
|
156
|
+
filtered.push(filterObject(value, subset));
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
filtered.push(value);
|
|
160
|
+
}
|
|
161
|
+
return filtered;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executes a function which returns a promise, expecting it to reject.
|
|
3
|
+
*
|
|
4
|
+
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
* ```ts ignore
|
|
8
|
+
* import { assertRejects } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* await assertRejects(async () => Promise.reject(new Error())); // Doesn't throw
|
|
11
|
+
* await assertRejects(async () => console.log("Hello world")); // Throws
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @param fn The function to execute.
|
|
15
|
+
* @param msg The optional message to display if the assertion fails.
|
|
16
|
+
* @returns The promise which resolves to the thrown error.
|
|
17
|
+
*/
|
|
18
|
+
export declare function assertRejects(fn: () => PromiseLike<unknown>, msg?: string): Promise<unknown>;
|
|
19
|
+
/**
|
|
20
|
+
* Executes a function which returns a promise, expecting it to reject.
|
|
21
|
+
* If it does not, then it throws. An error class and a string that should be
|
|
22
|
+
* included in the error message can also be asserted.
|
|
23
|
+
*
|
|
24
|
+
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
|
25
|
+
*
|
|
26
|
+
* @example Usage
|
|
27
|
+
* ```ts ignore
|
|
28
|
+
* import { assertRejects } from "@std/assert";
|
|
29
|
+
*
|
|
30
|
+
* await assertRejects(async () => Promise.reject(new Error()), Error); // Doesn't throw
|
|
31
|
+
* await assertRejects(async () => Promise.reject(new Error()), SyntaxError); // Throws
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @typeParam E The error class to assert.
|
|
35
|
+
* @param fn The function to execute.
|
|
36
|
+
* @param ErrorClass The error class to assert.
|
|
37
|
+
* @param msgIncludes The string that should be included in the error message.
|
|
38
|
+
* @param msg The optional message to display if the assertion fails.
|
|
39
|
+
* @returns The promise which resolves to the thrown error.
|
|
40
|
+
*/
|
|
41
|
+
export declare function assertRejects<E extends Error = Error>(fn: () => PromiseLike<unknown>, ErrorClass: abstract new (...args: any[]) => E, msgIncludes?: string, msg?: string): Promise<E>;
|
|
42
|
+
//# sourceMappingURL=rejects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rejects.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/rejects.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAC9B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAE9B,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertRejects = assertRejects;
|
|
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 is_error_js_1 = require("./is_error.js");
|
|
8
|
+
async function assertRejects(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
|
|
9
|
+
// deno-lint-ignore no-explicit-any
|
|
10
|
+
let ErrorClass;
|
|
11
|
+
let msgIncludes;
|
|
12
|
+
let err;
|
|
13
|
+
if (typeof errorClassOrMsg !== "string") {
|
|
14
|
+
if (errorClassOrMsg === undefined ||
|
|
15
|
+
errorClassOrMsg.prototype instanceof Error ||
|
|
16
|
+
errorClassOrMsg.prototype === Error.prototype) {
|
|
17
|
+
ErrorClass = errorClassOrMsg;
|
|
18
|
+
msgIncludes = msgIncludesOrMsg;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
msg = errorClassOrMsg;
|
|
23
|
+
}
|
|
24
|
+
let doesThrow = false;
|
|
25
|
+
let isPromiseReturned = false;
|
|
26
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
27
|
+
try {
|
|
28
|
+
const possiblePromise = fn();
|
|
29
|
+
if (possiblePromise &&
|
|
30
|
+
typeof possiblePromise === "object" &&
|
|
31
|
+
typeof possiblePromise.then === "function") {
|
|
32
|
+
isPromiseReturned = true;
|
|
33
|
+
await possiblePromise;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
throw new Error();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
if (!isPromiseReturned) {
|
|
41
|
+
throw new assertion_error_js_1.AssertionError(`Function throws when expected to reject${msgSuffix}`);
|
|
42
|
+
}
|
|
43
|
+
if (ErrorClass) {
|
|
44
|
+
if (!(error instanceof Error)) {
|
|
45
|
+
throw new assertion_error_js_1.AssertionError(`A non-Error object was rejected${msgSuffix}`);
|
|
46
|
+
}
|
|
47
|
+
(0, is_error_js_1.assertIsError)(error, ErrorClass, msgIncludes, msg);
|
|
48
|
+
}
|
|
49
|
+
err = error;
|
|
50
|
+
doesThrow = true;
|
|
51
|
+
}
|
|
52
|
+
if (!doesThrow) {
|
|
53
|
+
throw new assertion_error_js_1.AssertionError(`Expected function to reject${msgSuffix}`);
|
|
54
|
+
}
|
|
55
|
+
return err;
|
|
56
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` and `expected` are strictly equal, using
|
|
3
|
+
* {@linkcode Object.is} for equality comparison. If not, then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertStrictEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* const a = {};
|
|
10
|
+
* const b = a;
|
|
11
|
+
* assertStrictEquals(a, b); // Doesn't throw
|
|
12
|
+
*
|
|
13
|
+
* const c = {};
|
|
14
|
+
* const d = {};
|
|
15
|
+
* assertStrictEquals(c, d); // Throws
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @typeParam T The type of the expected value.
|
|
19
|
+
* @param actual The actual value to compare.
|
|
20
|
+
* @param expected The expected value to compare.
|
|
21
|
+
* @param msg The optional message to display if the assertion fails.
|
|
22
|
+
*/
|
|
23
|
+
export declare function assertStrictEquals<T>(actual: unknown, expected: T, msg?: string): asserts actual is T;
|
|
24
|
+
//# sourceMappingURL=strict_equals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../../../src/deps/jsr.io/@std/assert/1.0.10/strict_equals.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,CAAC,CA+BrB"}
|