@goast/core 0.4.1 → 0.5.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/esm/mod.d.ts +1 -0
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -0
- package/esm/src/codegen/config.d.ts +11 -0
- package/esm/src/codegen/config.d.ts.map +1 -1
- package/esm/src/codegen/config.js +1 -0
- package/esm/src/transform/helpers.d.ts.map +1 -1
- package/esm/src/transform/helpers.js +5 -1
- package/esm/src/utils/file-system.utils.d.ts +2 -0
- package/esm/src/utils/file-system.utils.d.ts.map +1 -1
- package/esm/src/utils/file-system.utils.js +11 -1
- package/esm/src/utils/schema.utils.d.ts +1 -0
- package/esm/src/utils/schema.utils.d.ts.map +1 -1
- package/esm/src/utils/schema.utils.js +5 -0
- package/esm/src/utils/source-builder.d.ts +2 -0
- package/esm/src/utils/source-builder.d.ts.map +1 -1
- package/esm/src/utils/source-builder.js +7 -1
- package/package.json +2 -5
- package/script/mod.d.ts +1 -0
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -0
- package/script/src/codegen/config.d.ts +11 -0
- package/script/src/codegen/config.d.ts.map +1 -1
- package/script/src/codegen/config.js +1 -0
- package/script/src/transform/helpers.d.ts.map +1 -1
- package/script/src/transform/helpers.js +5 -1
- package/script/src/utils/file-system.utils.d.ts +2 -0
- package/script/src/utils/file-system.utils.d.ts.map +1 -1
- package/script/src/utils/file-system.utils.js +11 -0
- package/script/src/utils/schema.utils.d.ts +1 -0
- package/script/src/utils/schema.utils.d.ts.map +1 -1
- package/script/src/utils/schema.utils.js +6 -0
- package/script/src/utils/source-builder.d.ts +2 -0
- package/script/src/utils/source-builder.d.ts.map +1 -1
- package/script/src/utils/source-builder.js +8 -1
- package/esm/_dnt.test_polyfills.d.ts +0 -29
- package/esm/_dnt.test_polyfills.d.ts.map +0 -1
- package/esm/_dnt.test_polyfills.js +0 -31
- package/esm/_dnt.test_shims.d.ts +0 -14
- package/esm/_dnt.test_shims.d.ts.map +0 -1
- package/esm/_dnt.test_shims.js +0 -69
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -57
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -43
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -26
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -13
- package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
- package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -161
- package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
- package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -191
- package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -12
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -714
- package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -10
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -10
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -218
- package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
- package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -523
- package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -85
- package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
- package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -88
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -199
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +0 -111
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +0 -277
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +0 -180
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +0 -37
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +0 -207
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +0 -2
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -380
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -654
- package/esm/src/collect/helpers.test.d.ts +0 -2
- package/esm/src/collect/helpers.test.d.ts.map +0 -1
- package/esm/src/collect/helpers.test.js +0 -77
- package/esm/src/transform/helpers.test.d.ts +0 -2
- package/esm/src/transform/helpers.test.d.ts.map +0 -1
- package/esm/src/transform/helpers.test.js +0 -265
- package/esm/src/utils/action-provider.test.d.ts +0 -2
- package/esm/src/utils/action-provider.test.d.ts.map +0 -1
- package/esm/src/utils/action-provider.test.js +0 -28
- package/esm/src/utils/common.utils.test.d.ts +0 -2
- package/esm/src/utils/common.utils.test.d.ts.map +0 -1
- package/esm/src/utils/common.utils.test.js +0 -18
- package/esm/src/utils/condition.test.d.ts +0 -2
- package/esm/src/utils/condition.test.d.ts.map +0 -1
- package/esm/src/utils/condition.test.js +0 -31
- package/esm/src/utils/endpoint.utils.test.d.ts +0 -2
- package/esm/src/utils/endpoint.utils.test.d.ts.map +0 -1
- package/esm/src/utils/endpoint.utils.test.js +0 -31
- package/esm/src/utils/factory.test.d.ts +0 -2
- package/esm/src/utils/factory.test.d.ts.map +0 -1
- package/esm/src/utils/factory.test.js +0 -34
- package/esm/src/utils/generator.utils.test.d.ts +0 -2
- package/esm/src/utils/generator.utils.test.d.ts.map +0 -1
- package/esm/src/utils/generator.utils.test.js +0 -13
- package/esm/src/utils/object.utils.test.d.ts +0 -2
- package/esm/src/utils/object.utils.test.d.ts.map +0 -1
- package/esm/src/utils/object.utils.test.js +0 -29
- package/esm/src/utils/schema.utils.test.d.ts +0 -2
- package/esm/src/utils/schema.utils.test.d.ts.map +0 -1
- package/esm/src/utils/schema.utils.test.js +0 -70
- package/esm/src/utils/source-builder.test.d.ts +0 -2
- package/esm/src/utils/source-builder.test.d.ts.map +0 -1
- package/esm/src/utils/source-builder.test.js +0 -505
- package/esm/src/utils/string-builder/string-builder.test.d.ts +0 -2
- package/esm/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
- package/esm/src/utils/string-builder/string-builder.test.js +0 -163
- package/esm/src/utils/string.utils.test.d.ts +0 -2
- package/esm/src/utils/string.utils.test.d.ts.map +0 -1
- package/esm/src/utils/string.utils.test.js +0 -528
- package/esm/tests/openapi.test.d.ts +0 -2
- package/esm/tests/openapi.test.d.ts.map +0 -1
- package/esm/tests/openapi.test.js +0 -33
- package/esm/tests/schema-factory.d.ts +0 -42
- package/esm/tests/schema-factory.d.ts.map +0 -1
- package/esm/tests/schema-factory.js +0 -138
- package/script/_dnt.test_polyfills.d.ts +0 -29
- package/script/_dnt.test_polyfills.d.ts.map +0 -1
- package/script/_dnt.test_polyfills.js +0 -32
- package/script/_dnt.test_shims.d.ts +0 -14
- package/script/_dnt.test_shims.d.ts.map +0 -1
- package/script/_dnt.test_shims.js +0 -79
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +0 -26
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +0 -34
- package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/false.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.js +0 -60
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +0 -20
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.js +0 -32
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +0 -46
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.js +0 -29
- package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.js +0 -18
- package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +0 -46
- package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.js +0 -183
- package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +0 -6
- package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.js +0 -33
- package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +0 -9
- package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_equal.js +0 -194
- package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_extend.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +0 -3
- package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.js +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +0 -34
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.js +0 -748
- package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts +0 -11
- package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.js +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.js +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts +0 -843
- package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_types.js +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +0 -9
- package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_utils.js +0 -226
- package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +0 -60
- package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/expect.js +0 -527
- package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +0 -29
- package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/fn.js +0 -88
- package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +0 -86
- package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/mod.js +0 -91
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +0 -160
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +0 -204
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts +0 -82
- 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/build_message.js +0 -116
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +0 -140
- 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.js +0 -284
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +0 -99
- 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/diff_str.js +0 -186
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +0 -2
- 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/format.js +0 -41
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +0 -159
- 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/styles.js +0 -220
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +0 -16
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.5/types.js +0 -3
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +0 -79
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.js +0 -385
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +0 -738
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.js +0 -665
- package/script/src/collect/helpers.test.d.ts +0 -2
- package/script/src/collect/helpers.test.d.ts.map +0 -1
- package/script/src/collect/helpers.test.js +0 -79
- package/script/src/transform/helpers.test.d.ts +0 -2
- package/script/src/transform/helpers.test.d.ts.map +0 -1
- package/script/src/transform/helpers.test.js +0 -267
- package/script/src/utils/action-provider.test.d.ts +0 -2
- package/script/src/utils/action-provider.test.d.ts.map +0 -1
- package/script/src/utils/action-provider.test.js +0 -30
- package/script/src/utils/common.utils.test.d.ts +0 -2
- package/script/src/utils/common.utils.test.d.ts.map +0 -1
- package/script/src/utils/common.utils.test.js +0 -20
- package/script/src/utils/condition.test.d.ts +0 -2
- package/script/src/utils/condition.test.d.ts.map +0 -1
- package/script/src/utils/condition.test.js +0 -33
- package/script/src/utils/endpoint.utils.test.d.ts +0 -2
- package/script/src/utils/endpoint.utils.test.d.ts.map +0 -1
- package/script/src/utils/endpoint.utils.test.js +0 -33
- package/script/src/utils/factory.test.d.ts +0 -2
- package/script/src/utils/factory.test.d.ts.map +0 -1
- package/script/src/utils/factory.test.js +0 -36
- package/script/src/utils/generator.utils.test.d.ts +0 -2
- package/script/src/utils/generator.utils.test.d.ts.map +0 -1
- package/script/src/utils/generator.utils.test.js +0 -15
- package/script/src/utils/object.utils.test.d.ts +0 -2
- package/script/src/utils/object.utils.test.d.ts.map +0 -1
- package/script/src/utils/object.utils.test.js +0 -31
- package/script/src/utils/schema.utils.test.d.ts +0 -2
- package/script/src/utils/schema.utils.test.d.ts.map +0 -1
- package/script/src/utils/schema.utils.test.js +0 -72
- package/script/src/utils/source-builder.test.d.ts +0 -2
- package/script/src/utils/source-builder.test.d.ts.map +0 -1
- package/script/src/utils/source-builder.test.js +0 -507
- package/script/src/utils/string-builder/string-builder.test.d.ts +0 -2
- package/script/src/utils/string-builder/string-builder.test.d.ts.map +0 -1
- package/script/src/utils/string-builder/string-builder.test.js +0 -165
- package/script/src/utils/string.utils.test.d.ts +0 -2
- package/script/src/utils/string.utils.test.d.ts.map +0 -1
- package/script/src/utils/string.utils.test.js +0 -530
- package/script/tests/openapi.test.d.ts +0 -2
- package/script/tests/openapi.test.d.ts.map +0 -1
- package/script/tests/openapi.test.js +0 -35
- package/script/tests/schema-factory.d.ts +0 -42
- package/script/tests/schema-factory.d.ts.map +0 -1
- package/script/tests/schema-factory.js +0 -162
- package/src/_dnt.shims.ts +0 -69
- package/src/_dnt.test_polyfills.ts +0 -70
- package/src/_dnt.test_shims.ts +0 -72
- package/src/deps/jsr.io/@std/assert/1.0.11/assertion_error.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.11/false.ts +0 -26
- package/src/deps/jsr.io/@std/assert/1.0.11/instance_of.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.11/match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.11/not_instance_of.ts +0 -33
- package/src/deps/jsr.io/@std/assert/1.0.11/not_match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.ts +0 -42
- package/src/deps/jsr.io/@std/assert/1.0.11/strict_equals.ts +0 -67
- package/src/deps/jsr.io/@std/expect/1.0.12/_assert_equals.ts +0 -38
- package/src/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.ts +0 -54
- package/src/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.ts +0 -35
- package/src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts +0 -18
- package/src/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.ts +0 -198
- package/src/deps/jsr.io/@std/expect/1.0.12/_build_message.ts +0 -51
- package/src/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.ts +0 -19
- package/src/deps/jsr.io/@std/expect/1.0.12/_equal.ts +0 -230
- package/src/deps/jsr.io/@std/expect/1.0.12/_extend.ts +0 -16
- package/src/deps/jsr.io/@std/expect/1.0.12/_inspect_args.ts +0 -15
- package/src/deps/jsr.io/@std/expect/1.0.12/_matchers.ts +0 -1028
- package/src/deps/jsr.io/@std/expect/1.0.12/_mock_util.ts +0 -22
- package/src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts +0 -15
- package/src/deps/jsr.io/@std/expect/1.0.12/_types.ts +0 -923
- package/src/deps/jsr.io/@std/expect/1.0.12/_utils.ts +0 -283
- package/src/deps/jsr.io/@std/expect/1.0.12/expect.ts +0 -620
- package/src/deps/jsr.io/@std/expect/1.0.12/fn.ts +0 -91
- package/src/deps/jsr.io/@std/expect/1.0.12/mod.ts +0 -89
- package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +0 -214
- package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +0 -134
- package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +0 -317
- package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +0 -204
- package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +0 -39
- package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +0 -233
- package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +0 -18
- package/src/deps/jsr.io/@std/testing/1.0.9/_test_suite.ts +0 -448
- package/src/deps/jsr.io/@std/testing/1.0.9/bdd.ts +0 -1288
- package/src/mod.ts +0 -33
- package/src/src/ast/node.ts +0 -46
- package/src/src/codegen/config.ts +0 -28
- package/src/src/codegen/endpoints-generator.ts +0 -72
- package/src/src/codegen/generator.ts +0 -181
- package/src/src/codegen/internal-utils.ts +0 -6
- package/src/src/codegen/schemas-generator.ts +0 -87
- package/src/src/codegen/services-generator.ts +0 -77
- package/src/src/codegen/types.ts +0 -37
- package/src/src/collect/collector.ts +0 -142
- package/src/src/collect/helpers.test.ts +0 -91
- package/src/src/collect/helpers.ts +0 -36
- package/src/src/collect/types.ts +0 -21
- package/src/src/internal-utils.ts +0 -5
- package/src/src/parse/deref-proxy.ts +0 -64
- package/src/src/parse/openapi-types.ts +0 -949
- package/src/src/parse/parser.ts +0 -220
- package/src/src/parse/types.ts +0 -27
- package/src/src/transform/api-types.ts +0 -243
- package/src/src/transform/helpers.test.ts +0 -316
- package/src/src/transform/helpers.ts +0 -211
- package/src/src/transform/transform-document.ts +0 -35
- package/src/src/transform/transform-endpoint.ts +0 -331
- package/src/src/transform/transform-schema.ts +0 -217
- package/src/src/transform/transformer.ts +0 -52
- package/src/src/transform/types.ts +0 -52
- package/src/src/utils/action-provider.test.ts +0 -32
- package/src/src/utils/action-provider.ts +0 -58
- package/src/src/utils/array.utils.ts +0 -7
- package/src/src/utils/asset-manager.ts +0 -51
- package/src/src/utils/class.utils.ts +0 -40
- package/src/src/utils/common.utils.test.ts +0 -22
- package/src/src/utils/common.utils.ts +0 -86
- package/src/src/utils/condition.test.ts +0 -36
- package/src/src/utils/condition.ts +0 -7
- package/src/src/utils/endpoint.utils.test.ts +0 -36
- package/src/src/utils/endpoint.utils.ts +0 -10
- package/src/src/utils/error.utils.ts +0 -3
- package/src/src/utils/factory.test.ts +0 -31
- package/src/src/utils/factory.ts +0 -42
- package/src/src/utils/file-system.utils.ts +0 -48
- package/src/src/utils/generator.utils.test.ts +0 -16
- package/src/src/utils/generator.utils.ts +0 -6
- package/src/src/utils/object.utils.test.ts +0 -33
- package/src/src/utils/object.utils.ts +0 -32
- package/src/src/utils/schema.utils.test.ts +0 -88
- package/src/src/utils/schema.utils.ts +0 -142
- package/src/src/utils/source-builder.test.ts +0 -657
- package/src/src/utils/source-builder.ts +0 -589
- package/src/src/utils/string-builder/options.ts +0 -19
- package/src/src/utils/string-builder/string-builder.test.ts +0 -188
- package/src/src/utils/string-builder/string-builder.ts +0 -165
- package/src/src/utils/string-builder/utils.ts +0 -69
- package/src/src/utils/string.utils.test.ts +0 -691
- package/src/src/utils/string.utils.ts +0 -369
- package/src/src/utils/string.utils.types.ts +0 -179
- package/src/src/utils/type.utils.ts +0 -93
- package/src/tests/openapi.test.ts +0 -50
- package/src/tests/schema-factory.ts +0 -185
- package/test_runner.js +0 -221
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
// This file is copied from `std/assert`.
|
|
3
|
-
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
4
|
-
import { buildEqualErrorMessage } from "./_build_message.js";
|
|
5
|
-
import { equal } from "./_equal.js";
|
|
6
|
-
/**
|
|
7
|
-
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
8
|
-
* deeply equal, then throw.
|
|
9
|
-
*
|
|
10
|
-
* Type parameter can be specified to ensure values under comparison have the
|
|
11
|
-
* same type.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts ignore
|
|
15
|
-
* import { assertEquals } from "@std/assert";
|
|
16
|
-
*
|
|
17
|
-
* assertEquals("world", "world"); // Doesn't throw
|
|
18
|
-
* assertEquals("hello", "world"); // Throws
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* Note: formatter option is experimental and may be removed in the future.
|
|
22
|
-
*/
|
|
23
|
-
export function assertEquals(actual, expected, options) {
|
|
24
|
-
if (equal(actual, expected, options)) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
const message = buildEqualErrorMessage(actual, expected, options !== null && options !== void 0 ? options : {});
|
|
28
|
-
throw new AssertionError(message);
|
|
29
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
* @typeParam E The type of the error to assert.
|
|
8
|
-
* @param error The error to assert.
|
|
9
|
-
* @param ErrorClass The optional error class to assert.
|
|
10
|
-
* @param msgMatches The optional string or RegExp to assert in the error message.
|
|
11
|
-
* @param msg The optional message to display if the assertion fails.
|
|
12
|
-
*/
|
|
13
|
-
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;
|
|
14
|
-
//# sourceMappingURL=_assert_is_error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_assert_is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;GAWG;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"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
// This module is browser compatible.
|
|
3
|
-
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
4
|
-
import { stripAnsiCode } from "../../internal/1.0.5/styles.js";
|
|
5
|
-
/**
|
|
6
|
-
* Make an assertion that `error` is an `Error`.
|
|
7
|
-
* If not then an error will be thrown.
|
|
8
|
-
* An error class and a string that should be included in the
|
|
9
|
-
* error message can also be asserted.
|
|
10
|
-
*
|
|
11
|
-
* @typeParam E The type of the error to assert.
|
|
12
|
-
* @param error The error to assert.
|
|
13
|
-
* @param ErrorClass The optional error class to assert.
|
|
14
|
-
* @param msgMatches The optional string or RegExp to assert in the error message.
|
|
15
|
-
* @param msg The optional message to display if the assertion fails.
|
|
16
|
-
*/
|
|
17
|
-
export function assertIsError(error,
|
|
18
|
-
// deno-lint-ignore no-explicit-any
|
|
19
|
-
ErrorClass, msgMatches, msg) {
|
|
20
|
-
var _a;
|
|
21
|
-
const msgPrefix = msg ? `${msg}: ` : "";
|
|
22
|
-
if (!(error instanceof Error)) {
|
|
23
|
-
throw new AssertionError(`${msgPrefix}Expected "error" to be an Error object.`);
|
|
24
|
-
}
|
|
25
|
-
if (ErrorClass && !(error instanceof ErrorClass)) {
|
|
26
|
-
msg =
|
|
27
|
-
`${msgPrefix}Expected error to be instance of "${ErrorClass.name}", but was "${(_a = error === null || error === void 0 ? void 0 : error.constructor) === null || _a === void 0 ? void 0 : _a.name}".`;
|
|
28
|
-
throw new AssertionError(msg);
|
|
29
|
-
}
|
|
30
|
-
let msgCheck;
|
|
31
|
-
if (typeof msgMatches === "string") {
|
|
32
|
-
msgCheck = stripAnsiCode(error.message).includes(stripAnsiCode(msgMatches));
|
|
33
|
-
}
|
|
34
|
-
if (msgMatches instanceof RegExp) {
|
|
35
|
-
msgCheck = msgMatches.test(stripAnsiCode(error.message));
|
|
36
|
-
}
|
|
37
|
-
if (msgMatches && !msgCheck) {
|
|
38
|
-
msg = `${msgPrefix}Expected error message to include ${msgMatches instanceof RegExp
|
|
39
|
-
? msgMatches.toString()
|
|
40
|
-
: JSON.stringify(msgMatches)}, but got ${JSON.stringify(error === null || error === void 0 ? void 0 : error.message)}.`;
|
|
41
|
-
throw new AssertionError(msg);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { EqualOptions } from "./_types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
4
|
-
* If not then throw.
|
|
5
|
-
*
|
|
6
|
-
* Type parameter can be specified to ensure values under comparison have the same type.
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts ignore
|
|
10
|
-
* import { assertNotEquals } from "@std/assert";
|
|
11
|
-
*
|
|
12
|
-
* assertNotEquals(1, 2); // Doesn't throw
|
|
13
|
-
* assertNotEquals(1, 1); // Throws
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare function assertNotEquals<T>(actual: T, expected: T, options?: EqualOptions): void;
|
|
17
|
-
//# sourceMappingURL=_assert_not_equals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_assert_not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC/B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,OAAO,GAAE,YAAiB,QAQ3B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
// This file is copied from `std/assert`.
|
|
3
|
-
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
4
|
-
import { buildNotEqualErrorMessage } from "./_build_message.js";
|
|
5
|
-
import { equal } from "./_equal.js";
|
|
6
|
-
/**
|
|
7
|
-
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
8
|
-
* If not then throw.
|
|
9
|
-
*
|
|
10
|
-
* Type parameter can be specified to ensure values under comparison have the same type.
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```ts ignore
|
|
14
|
-
* import { assertNotEquals } from "@std/assert";
|
|
15
|
-
*
|
|
16
|
-
* assertNotEquals(1, 2); // Doesn't throw
|
|
17
|
-
* assertNotEquals(1, 1); // Throws
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export function assertNotEquals(actual, expected, options = {}) {
|
|
21
|
-
if (!equal(actual, expected, options)) {
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const message = buildNotEqualErrorMessage(actual, expected, options !== null && options !== void 0 ? options : {});
|
|
25
|
-
throw new AssertionError(message);
|
|
26
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_assertions.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts"],"names":[],"mappings":"AAMA,wBAAgB,aAAa,SAE5B;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,QAErC;AAED,wBAAgB,oBAAoB,SAGnC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
import { getAssertionState } from "../../internal/1.0.5/assertion_state.js";
|
|
3
|
-
const assertionState = getAssertionState();
|
|
4
|
-
export function hasAssertions() {
|
|
5
|
-
assertionState.setAssertionCheck(true);
|
|
6
|
-
}
|
|
7
|
-
export function assertions(num) {
|
|
8
|
-
assertionState.setAssertionCount(num);
|
|
9
|
-
}
|
|
10
|
-
export function emitAssertionTrigger() {
|
|
11
|
-
assertionState.setAssertionTriggered(true);
|
|
12
|
-
assertionState.updateAssertionTriggerCount();
|
|
13
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export declare abstract class AsymmetricMatcher<T> {
|
|
2
|
-
protected value: T;
|
|
3
|
-
protected inverse: boolean;
|
|
4
|
-
constructor(value: T, inverse?: boolean);
|
|
5
|
-
abstract equals(other: unknown): boolean;
|
|
6
|
-
}
|
|
7
|
-
export declare class Anything extends AsymmetricMatcher<void> {
|
|
8
|
-
equals(other: unknown): boolean;
|
|
9
|
-
}
|
|
10
|
-
export declare function anything(): Anything;
|
|
11
|
-
export declare class Any extends AsymmetricMatcher<any> {
|
|
12
|
-
constructor(value: unknown);
|
|
13
|
-
equals(other: unknown): boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare function any(c: unknown): Any;
|
|
16
|
-
export declare class ArrayContaining extends AsymmetricMatcher<any[]> {
|
|
17
|
-
constructor(arr: any[], inverse?: boolean);
|
|
18
|
-
equals(other: any[]): boolean;
|
|
19
|
-
}
|
|
20
|
-
export declare function arrayContaining(c: any[]): ArrayContaining;
|
|
21
|
-
export declare function arrayNotContaining(c: any[]): ArrayContaining;
|
|
22
|
-
export declare class CloseTo extends AsymmetricMatcher<number> {
|
|
23
|
-
#private;
|
|
24
|
-
constructor(num: number, precision?: number);
|
|
25
|
-
equals(other: number): boolean;
|
|
26
|
-
}
|
|
27
|
-
export declare function closeTo(num: number, numDigits?: number): CloseTo;
|
|
28
|
-
export declare class StringContaining extends AsymmetricMatcher<string> {
|
|
29
|
-
constructor(str: string, inverse?: boolean);
|
|
30
|
-
equals(other: string): boolean;
|
|
31
|
-
}
|
|
32
|
-
export declare function stringContaining(str: string): StringContaining;
|
|
33
|
-
export declare function stringNotContaining(str: string): StringContaining;
|
|
34
|
-
export declare class StringMatching extends AsymmetricMatcher<RegExp> {
|
|
35
|
-
constructor(pattern: string | RegExp, inverse?: boolean);
|
|
36
|
-
equals(other: string): boolean;
|
|
37
|
-
}
|
|
38
|
-
export declare function stringMatching(pattern: string | RegExp): StringMatching;
|
|
39
|
-
export declare function stringNotMatching(pattern: string | RegExp): StringMatching;
|
|
40
|
-
export declare class ObjectContaining extends AsymmetricMatcher<Record<string, unknown>> {
|
|
41
|
-
constructor(obj: Record<string, unknown>, inverse?: boolean);
|
|
42
|
-
equals(other: Record<string, unknown>): boolean;
|
|
43
|
-
}
|
|
44
|
-
export declare function objectContaining(obj: Record<string, unknown>): ObjectContaining;
|
|
45
|
-
export declare function objectNotContaining(obj: Record<string, unknown>): ObjectContaining;
|
|
46
|
-
//# sourceMappingURL=_asymmetric_matchers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_asymmetric_matchers.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.ts"],"names":[],"mappings":"AAMA,8BAAsB,iBAAiB,CAAC,CAAC;IAErC,SAAS,CAAC,KAAK,EAAE,CAAC;IAClB,SAAS,CAAC,OAAO,EAAE,OAAO;gBADhB,KAAK,EAAE,CAAC,EACR,OAAO,GAAE,OAAe;IAEpC,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CACzC;AAED,qBAAa,QAAS,SAAQ,iBAAiB,CAAC,IAAI,CAAC;IACnD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAGhC;AAED,wBAAgB,QAAQ,IAAI,QAAQ,CAEnC;AAED,qBAAa,GAAI,SAAQ,iBAAiB,CAAC,GAAG,CAAC;gBACjC,KAAK,EAAE,OAAO;IAO1B,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAkChC;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,GAAG,CAEnC;AAED,qBAAa,eAAgB,SAAQ,iBAAiB,CAAC,GAAG,EAAE,CAAC;gBAC/C,GAAG,EAAE,GAAG,EAAE,EAAE,OAAO,UAAQ;IAIvC,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO;CAS9B;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,eAAe,CAEzD;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,eAAe,CAE5D;AAED,qBAAa,OAAQ,SAAQ,iBAAiB,CAAC,MAAM,CAAC;;gBAGxC,GAAG,EAAE,MAAM,EAAE,SAAS,GAAE,MAAU;IAK9C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAgB/B;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAEhE;AAED,qBAAa,gBAAiB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;gBACjD,GAAG,EAAE,MAAM,EAAE,OAAO,UAAQ;IAIxC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAI/B;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAE9D;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAEjE;AAED,qBAAa,cAAe,SAAQ,iBAAiB,CAAC,MAAM,CAAC;gBAC/C,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,UAAQ;IAIrD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAI/B;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAEvE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAE1E;AAED,qBAAa,gBACX,SAAQ,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,UAAQ;IAIzD,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO;CAehD;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,gBAAgB,CAElB;AAED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,gBAAgB,CAElB"}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
// deno-lint-ignore-file no-explicit-any
|
|
3
|
-
var _CloseTo_precision;
|
|
4
|
-
import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
|
|
5
|
-
import { getCustomEqualityTesters } from "./_custom_equality_tester.js";
|
|
6
|
-
import { equal } from "./_equal.js";
|
|
7
|
-
export class AsymmetricMatcher {
|
|
8
|
-
constructor(value, inverse = false) {
|
|
9
|
-
Object.defineProperty(this, "value", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
configurable: true,
|
|
12
|
-
writable: true,
|
|
13
|
-
value: value
|
|
14
|
-
});
|
|
15
|
-
Object.defineProperty(this, "inverse", {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
configurable: true,
|
|
18
|
-
writable: true,
|
|
19
|
-
value: inverse
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
export class Anything extends AsymmetricMatcher {
|
|
24
|
-
equals(other) {
|
|
25
|
-
return other !== null && other !== undefined;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export function anything() {
|
|
29
|
-
return new Anything();
|
|
30
|
-
}
|
|
31
|
-
export class Any extends AsymmetricMatcher {
|
|
32
|
-
constructor(value) {
|
|
33
|
-
if (value === undefined) {
|
|
34
|
-
throw new TypeError("Expected a constructor function");
|
|
35
|
-
}
|
|
36
|
-
super(value);
|
|
37
|
-
}
|
|
38
|
-
equals(other) {
|
|
39
|
-
if (typeof other === "object") {
|
|
40
|
-
return other instanceof this.value;
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
if (this.value === Number) {
|
|
44
|
-
return typeof other === "number";
|
|
45
|
-
}
|
|
46
|
-
if (this.value === String) {
|
|
47
|
-
return typeof other === "string";
|
|
48
|
-
}
|
|
49
|
-
if (this.value === Number) {
|
|
50
|
-
return typeof other === "number";
|
|
51
|
-
}
|
|
52
|
-
if (this.value === Function) {
|
|
53
|
-
return typeof other === "function";
|
|
54
|
-
}
|
|
55
|
-
if (this.value === Boolean) {
|
|
56
|
-
return typeof other === "boolean";
|
|
57
|
-
}
|
|
58
|
-
if (this.value === BigInt) {
|
|
59
|
-
return typeof other === "bigint";
|
|
60
|
-
}
|
|
61
|
-
if (this.value === Symbol) {
|
|
62
|
-
return typeof other === "symbol";
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
export function any(c) {
|
|
69
|
-
return new Any(c);
|
|
70
|
-
}
|
|
71
|
-
export class ArrayContaining extends AsymmetricMatcher {
|
|
72
|
-
constructor(arr, inverse = false) {
|
|
73
|
-
super(arr, inverse);
|
|
74
|
-
}
|
|
75
|
-
equals(other) {
|
|
76
|
-
const res = Array.isArray(other) &&
|
|
77
|
-
this.value.every((e) => other.some((another) => equal(e, another, { customTesters: getCustomEqualityTesters() })));
|
|
78
|
-
return this.inverse ? !res : res;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
export function arrayContaining(c) {
|
|
82
|
-
return new ArrayContaining(c);
|
|
83
|
-
}
|
|
84
|
-
export function arrayNotContaining(c) {
|
|
85
|
-
return new ArrayContaining(c, true);
|
|
86
|
-
}
|
|
87
|
-
export class CloseTo extends AsymmetricMatcher {
|
|
88
|
-
constructor(num, precision = 2) {
|
|
89
|
-
super(num);
|
|
90
|
-
_CloseTo_precision.set(this, void 0);
|
|
91
|
-
__classPrivateFieldSet(this, _CloseTo_precision, precision, "f");
|
|
92
|
-
}
|
|
93
|
-
equals(other) {
|
|
94
|
-
if (typeof other !== "number") {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
if ((this.value === Number.POSITIVE_INFINITY &&
|
|
98
|
-
other === Number.POSITIVE_INFINITY) ||
|
|
99
|
-
(this.value === Number.NEGATIVE_INFINITY &&
|
|
100
|
-
other === Number.NEGATIVE_INFINITY)) {
|
|
101
|
-
return true;
|
|
102
|
-
}
|
|
103
|
-
return Math.abs(this.value - other) < Math.pow(10, -__classPrivateFieldGet(this, _CloseTo_precision, "f")) / 2;
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
_CloseTo_precision = new WeakMap();
|
|
107
|
-
export function closeTo(num, numDigits) {
|
|
108
|
-
return new CloseTo(num, numDigits);
|
|
109
|
-
}
|
|
110
|
-
export class StringContaining extends AsymmetricMatcher {
|
|
111
|
-
constructor(str, inverse = false) {
|
|
112
|
-
super(str, inverse);
|
|
113
|
-
}
|
|
114
|
-
equals(other) {
|
|
115
|
-
const res = typeof other !== "string" ? false : other.includes(this.value);
|
|
116
|
-
return this.inverse ? !res : res;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
export function stringContaining(str) {
|
|
120
|
-
return new StringContaining(str);
|
|
121
|
-
}
|
|
122
|
-
export function stringNotContaining(str) {
|
|
123
|
-
return new StringContaining(str, true);
|
|
124
|
-
}
|
|
125
|
-
export class StringMatching extends AsymmetricMatcher {
|
|
126
|
-
constructor(pattern, inverse = false) {
|
|
127
|
-
super(new RegExp(pattern), inverse);
|
|
128
|
-
}
|
|
129
|
-
equals(other) {
|
|
130
|
-
const res = typeof other !== "string" ? false : this.value.test(other);
|
|
131
|
-
return this.inverse ? !res : res;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
export function stringMatching(pattern) {
|
|
135
|
-
return new StringMatching(pattern);
|
|
136
|
-
}
|
|
137
|
-
export function stringNotMatching(pattern) {
|
|
138
|
-
return new StringMatching(pattern, true);
|
|
139
|
-
}
|
|
140
|
-
export class ObjectContaining extends AsymmetricMatcher {
|
|
141
|
-
constructor(obj, inverse = false) {
|
|
142
|
-
super(obj, inverse);
|
|
143
|
-
}
|
|
144
|
-
equals(other) {
|
|
145
|
-
const keys = Object.keys(this.value);
|
|
146
|
-
let res = true;
|
|
147
|
-
for (const key of keys) {
|
|
148
|
-
if (!Object.hasOwn(other, key) ||
|
|
149
|
-
!equal(this.value[key], other[key])) {
|
|
150
|
-
res = false;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
return this.inverse ? !res : res;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
export function objectContaining(obj) {
|
|
157
|
-
return new ObjectContaining(obj);
|
|
158
|
-
}
|
|
159
|
-
export function objectNotContaining(obj) {
|
|
160
|
-
return new ObjectContaining(obj, true);
|
|
161
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { EqualOptions } from "./_types.js";
|
|
2
|
-
type EqualErrorMessageOptions = Pick<EqualOptions, "formatter" | "msg">;
|
|
3
|
-
export declare function buildEqualErrorMessage<T>(actual: T, expected: T, options: EqualErrorMessageOptions): string;
|
|
4
|
-
export declare function buildNotEqualErrorMessage<T>(actual: T, expected: T, options: EqualErrorMessageOptions): string;
|
|
5
|
-
export {};
|
|
6
|
-
//# sourceMappingURL=_build_message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_build_message.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_build_message.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,KAAK,wBAAwB,GAAG,IAAI,CAClC,YAAY,EACZ,WAAW,GAAG,KAAK,CACpB,CAAC;AAMF,wBAAgB,sBAAsB,CAAC,CAAC,EACtC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,wBAAwB,GAChC,MAAM,CAgBR;AAED,wBAAgB,yBAAyB,CAAC,CAAC,EACzC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,wBAAwB,GAChC,MAAM,CAOR"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
import { buildMessage } from "../../internal/1.0.5/build_message.js";
|
|
3
|
-
import { diff } from "../../internal/1.0.5/diff.js";
|
|
4
|
-
import { diffStr } from "../../internal/1.0.5/diff_str.js";
|
|
5
|
-
import { format } from "../../internal/1.0.5/format.js";
|
|
6
|
-
function isString(value) {
|
|
7
|
-
return typeof value === "string";
|
|
8
|
-
}
|
|
9
|
-
export function buildEqualErrorMessage(actual, expected, options) {
|
|
10
|
-
const { formatter = format, msg } = options !== null && options !== void 0 ? options : {};
|
|
11
|
-
const msgPrefix = msg ? `${msg}: ` : "";
|
|
12
|
-
const actualString = formatter(actual);
|
|
13
|
-
const expectedString = formatter(expected);
|
|
14
|
-
let message = `${msgPrefix}Values are not equal.`;
|
|
15
|
-
const stringDiff = isString(actual) && isString(expected);
|
|
16
|
-
const diffResult = stringDiff
|
|
17
|
-
? diffStr(actual, expected)
|
|
18
|
-
: diff(actualString.split("\n"), expectedString.split("\n"));
|
|
19
|
-
const diffMsg = buildMessage(diffResult, { stringDiff }).join("\n");
|
|
20
|
-
message = `${message}\n${diffMsg}`;
|
|
21
|
-
return message;
|
|
22
|
-
}
|
|
23
|
-
export function buildNotEqualErrorMessage(actual, expected, options) {
|
|
24
|
-
const { msg } = options !== null && options !== void 0 ? options : {};
|
|
25
|
-
const actualString = String(actual);
|
|
26
|
-
const expectedString = String(expected);
|
|
27
|
-
const msgPrefix = msg ? `${msg}: ` : "";
|
|
28
|
-
return `${msgPrefix}Expected actual: ${actualString} not to be: ${expectedString}.`;
|
|
29
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_custom_equality_tester.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAI1C,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,EAAE,QAQ5D;AAED,wBAAgB,wBAAwB,aAEvC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
const customEqualityTesters = [];
|
|
3
|
-
export function addCustomEqualityTesters(newTesters) {
|
|
4
|
-
if (!Array.isArray(newTesters)) {
|
|
5
|
-
throw new TypeError(`customEqualityTester expects an array of Testers. But got ${typeof newTesters}`);
|
|
6
|
-
}
|
|
7
|
-
customEqualityTesters.push(...newTesters);
|
|
8
|
-
}
|
|
9
|
-
export function getCustomEqualityTesters() {
|
|
10
|
-
return customEqualityTesters;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { EqualOptions } from "./_types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Deep equality comparison used in assertions
|
|
4
|
-
* @param c actual value
|
|
5
|
-
* @param d expected value
|
|
6
|
-
* @param options for the equality check
|
|
7
|
-
*/
|
|
8
|
-
export declare function equal(c: unknown, d: unknown, options?: EqualOptions): boolean;
|
|
9
|
-
//# sourceMappingURL=_equal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_equal.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AA+BhD;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CA4L7E"}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
-
import { AsymmetricMatcher } from "./_asymmetric_matchers.js";
|
|
3
|
-
function isKeyedCollection(x) {
|
|
4
|
-
return x instanceof Set || x instanceof Map;
|
|
5
|
-
}
|
|
6
|
-
function constructorsEqual(a, b) {
|
|
7
|
-
return a.constructor === b.constructor ||
|
|
8
|
-
a.constructor === Object && !b.constructor ||
|
|
9
|
-
!a.constructor && b.constructor === Object;
|
|
10
|
-
}
|
|
11
|
-
function asymmetricEqual(a, b) {
|
|
12
|
-
const asymmetricA = a instanceof AsymmetricMatcher;
|
|
13
|
-
const asymmetricB = b instanceof AsymmetricMatcher;
|
|
14
|
-
if (asymmetricA && asymmetricB) {
|
|
15
|
-
return undefined;
|
|
16
|
-
}
|
|
17
|
-
if (asymmetricA) {
|
|
18
|
-
return a.equals(b);
|
|
19
|
-
}
|
|
20
|
-
if (asymmetricB) {
|
|
21
|
-
return b.equals(a);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Deep equality comparison used in assertions
|
|
26
|
-
* @param c actual value
|
|
27
|
-
* @param d expected value
|
|
28
|
-
* @param options for the equality check
|
|
29
|
-
*/
|
|
30
|
-
export function equal(c, d, options) {
|
|
31
|
-
const { customTesters = [], strictCheck } = options !== null && options !== void 0 ? options : {};
|
|
32
|
-
const seen = new Map();
|
|
33
|
-
return (function compare(a, b) {
|
|
34
|
-
const asymmetric = asymmetricEqual(a, b);
|
|
35
|
-
if (asymmetric !== undefined) {
|
|
36
|
-
return asymmetric;
|
|
37
|
-
}
|
|
38
|
-
if (customTesters === null || customTesters === void 0 ? void 0 : customTesters.length) {
|
|
39
|
-
for (const customTester of customTesters) {
|
|
40
|
-
const testContext = {
|
|
41
|
-
equal,
|
|
42
|
-
};
|
|
43
|
-
const pass = customTester.call(testContext, a, b, customTesters);
|
|
44
|
-
if (pass !== undefined) {
|
|
45
|
-
return pass;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
// Have to render RegExp & Date for string comparison
|
|
50
|
-
// unless it's mistreated as object
|
|
51
|
-
if (a &&
|
|
52
|
-
b &&
|
|
53
|
-
((a instanceof RegExp && b instanceof RegExp) ||
|
|
54
|
-
(a instanceof URL && b instanceof URL))) {
|
|
55
|
-
return String(a) === String(b);
|
|
56
|
-
}
|
|
57
|
-
if (a instanceof Date && b instanceof Date) {
|
|
58
|
-
const aTime = a.getTime();
|
|
59
|
-
const bTime = b.getTime();
|
|
60
|
-
// Check for NaN equality manually since NaN is not
|
|
61
|
-
// equal to itself.
|
|
62
|
-
if (Number.isNaN(aTime) && Number.isNaN(bTime)) {
|
|
63
|
-
return true;
|
|
64
|
-
}
|
|
65
|
-
return aTime === bTime;
|
|
66
|
-
}
|
|
67
|
-
if (a instanceof Error && b instanceof Error) {
|
|
68
|
-
return a.message === b.message;
|
|
69
|
-
}
|
|
70
|
-
if (typeof a === "number" && typeof b === "number") {
|
|
71
|
-
return Number.isNaN(a) && Number.isNaN(b) || a === b;
|
|
72
|
-
}
|
|
73
|
-
if (a === null || b === null) {
|
|
74
|
-
return a === b;
|
|
75
|
-
}
|
|
76
|
-
const className = Object.prototype.toString.call(a);
|
|
77
|
-
if (className !== Object.prototype.toString.call(b)) {
|
|
78
|
-
return false;
|
|
79
|
-
}
|
|
80
|
-
if (Object.is(a, b)) {
|
|
81
|
-
return true;
|
|
82
|
-
}
|
|
83
|
-
if (a && typeof a === "object" && b && typeof b === "object") {
|
|
84
|
-
if (strictCheck && a && b && !constructorsEqual(a, b)) {
|
|
85
|
-
return false;
|
|
86
|
-
}
|
|
87
|
-
if (a instanceof WeakMap || b instanceof WeakMap) {
|
|
88
|
-
if (!(a instanceof WeakMap && b instanceof WeakMap))
|
|
89
|
-
return false;
|
|
90
|
-
throw new TypeError("Cannot compare WeakMap instances");
|
|
91
|
-
}
|
|
92
|
-
if (a instanceof WeakSet || b instanceof WeakSet) {
|
|
93
|
-
if (!(a instanceof WeakSet && b instanceof WeakSet))
|
|
94
|
-
return false;
|
|
95
|
-
throw new TypeError("Cannot compare WeakSet instances");
|
|
96
|
-
}
|
|
97
|
-
if (seen.get(a) === b) {
|
|
98
|
-
return true;
|
|
99
|
-
}
|
|
100
|
-
const aKeys = Object.keys(a !== null && a !== void 0 ? a : {});
|
|
101
|
-
const bKeys = Object.keys(b !== null && b !== void 0 ? b : {});
|
|
102
|
-
let aLen = aKeys.length;
|
|
103
|
-
let bLen = bKeys.length;
|
|
104
|
-
if (strictCheck && aLen !== bLen) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
if (!strictCheck) {
|
|
108
|
-
if (aLen > 0) {
|
|
109
|
-
for (let i = 0; i < aKeys.length; i += 1) {
|
|
110
|
-
const key = aKeys[i];
|
|
111
|
-
if ((key in a) && (a[key] === undefined) &&
|
|
112
|
-
!(key in b)) {
|
|
113
|
-
aLen -= 1;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
if (bLen > 0) {
|
|
118
|
-
for (let i = 0; i < bKeys.length; i += 1) {
|
|
119
|
-
const key = bKeys[i];
|
|
120
|
-
if ((key in b) && (b[key] === undefined) &&
|
|
121
|
-
!(key in a)) {
|
|
122
|
-
bLen -= 1;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
seen.set(a, b);
|
|
128
|
-
if (isKeyedCollection(a) && isKeyedCollection(b)) {
|
|
129
|
-
if (a.size !== b.size) {
|
|
130
|
-
return false;
|
|
131
|
-
}
|
|
132
|
-
const aKeys = [...a.keys()];
|
|
133
|
-
const primitiveKeysFastPath = aKeys.every((k) => {
|
|
134
|
-
return typeof k === "string" ||
|
|
135
|
-
typeof k === "number" ||
|
|
136
|
-
typeof k === "boolean" ||
|
|
137
|
-
typeof k === "bigint" ||
|
|
138
|
-
typeof k === "symbol" ||
|
|
139
|
-
k == null;
|
|
140
|
-
});
|
|
141
|
-
if (primitiveKeysFastPath) {
|
|
142
|
-
if (a instanceof Set) {
|
|
143
|
-
return a.symmetricDifference(b).size === 0;
|
|
144
|
-
}
|
|
145
|
-
for (const key of aKeys) {
|
|
146
|
-
if (!b.has(key) ||
|
|
147
|
-
!compare(a.get(key), b.get(key))) {
|
|
148
|
-
return false;
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
return true;
|
|
152
|
-
}
|
|
153
|
-
let unmatchedEntries = a.size;
|
|
154
|
-
for (const [aKey, aValue] of a.entries()) {
|
|
155
|
-
for (const [bKey, bValue] of b.entries()) {
|
|
156
|
-
/* Given that Map keys can be references, we need
|
|
157
|
-
* to ensure that they are also deeply equal */
|
|
158
|
-
if (!compare(aKey, bKey))
|
|
159
|
-
continue;
|
|
160
|
-
if ((aKey === aValue && bKey === bValue) ||
|
|
161
|
-
(compare(aValue, bValue))) {
|
|
162
|
-
unmatchedEntries--;
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
return unmatchedEntries === 0;
|
|
168
|
-
}
|
|
169
|
-
const merged = { ...a, ...b };
|
|
170
|
-
for (const key of [
|
|
171
|
-
...Object.getOwnPropertyNames(merged),
|
|
172
|
-
...Object.getOwnPropertySymbols(merged),
|
|
173
|
-
]) {
|
|
174
|
-
if (!compare(a && a[key], b && b[key])) {
|
|
175
|
-
return false;
|
|
176
|
-
}
|
|
177
|
-
if (((key in a) && (a[key] !== undefined) && (!(key in b))) ||
|
|
178
|
-
((key in b) && (b[key] !== undefined) && (!(key in a)))) {
|
|
179
|
-
return false;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
if (a instanceof WeakRef || b instanceof WeakRef) {
|
|
183
|
-
if (!(a instanceof WeakRef && b instanceof WeakRef))
|
|
184
|
-
return false;
|
|
185
|
-
return compare(a.deref(), b.deref());
|
|
186
|
-
}
|
|
187
|
-
return true;
|
|
188
|
-
}
|
|
189
|
-
return false;
|
|
190
|
-
})(c, d);
|
|
191
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_extend.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_extend.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAI5C,wBAAgB,iBAAiB,OAEhC;AAED,wBAAgB,iBAAiB,CAAC,iBAAiB,EAAE,QAAQ,QAK5D"}
|