@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,138 +0,0 @@
|
|
|
1
|
-
let nextId = 0;
|
|
2
|
-
function createSchemaBase(schema) {
|
|
3
|
-
var _a, _b, _c, _d, _e, _f;
|
|
4
|
-
const name = (_a = schema.name) !== null && _a !== void 0 ? _a : `schema-${nextId++}`;
|
|
5
|
-
return {
|
|
6
|
-
...schema,
|
|
7
|
-
name,
|
|
8
|
-
$src: schema.$src,
|
|
9
|
-
id: (_b = schema.id) !== null && _b !== void 0 ? _b : name,
|
|
10
|
-
isNameGenerated: (_c = schema.isNameGenerated) !== null && _c !== void 0 ? _c : schema.id !== undefined,
|
|
11
|
-
deprecated: (_d = schema.deprecated) !== null && _d !== void 0 ? _d : false,
|
|
12
|
-
accessibility: (_e = schema.accessibility) !== null && _e !== void 0 ? _e : 'all',
|
|
13
|
-
required: new Set((_f = schema.required) !== null && _f !== void 0 ? _f : []),
|
|
14
|
-
custom: {},
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export function createOneOfSchema(schema = {}) {
|
|
18
|
-
var _a;
|
|
19
|
-
return {
|
|
20
|
-
...createSchemaBase(schema),
|
|
21
|
-
kind: 'oneOf',
|
|
22
|
-
oneOf: (_a = schema.oneOf) !== null && _a !== void 0 ? _a : [],
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
export function createMultiTypeSchema(schema = {}) {
|
|
26
|
-
var _a, _b, _c, _d;
|
|
27
|
-
return {
|
|
28
|
-
...createSchemaBase(schema),
|
|
29
|
-
kind: 'multi-type',
|
|
30
|
-
type: (_a = schema.type) !== null && _a !== void 0 ? _a : [],
|
|
31
|
-
properties: new Map(((_b = schema.properties) !== null && _b !== void 0 ? _b : []).map((p) => [p.name, p])),
|
|
32
|
-
allOf: (_c = schema.allOf) !== null && _c !== void 0 ? _c : [],
|
|
33
|
-
anyOf: (_d = schema.anyOf) !== null && _d !== void 0 ? _d : [],
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export function createStringSchema(schema = {}) {
|
|
37
|
-
return {
|
|
38
|
-
...createSchemaBase(schema),
|
|
39
|
-
kind: 'string',
|
|
40
|
-
type: 'string',
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export function createBooleanSchema(schema = {}) {
|
|
44
|
-
return {
|
|
45
|
-
...createSchemaBase(schema),
|
|
46
|
-
kind: 'boolean',
|
|
47
|
-
type: 'boolean',
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export function createNullSchema(schema = {}) {
|
|
51
|
-
return {
|
|
52
|
-
...createSchemaBase(schema),
|
|
53
|
-
kind: 'null',
|
|
54
|
-
type: 'null',
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
export function createNumberSchema(schema = {}) {
|
|
58
|
-
return {
|
|
59
|
-
...createSchemaBase(schema),
|
|
60
|
-
kind: 'number',
|
|
61
|
-
type: 'number',
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
export function createIntegerSchema(schema = {}) {
|
|
65
|
-
return {
|
|
66
|
-
...createSchemaBase(schema),
|
|
67
|
-
kind: 'integer',
|
|
68
|
-
type: 'integer',
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
export function createArraySchema(schema = {}) {
|
|
72
|
-
var _a;
|
|
73
|
-
return {
|
|
74
|
-
...createSchemaBase(schema),
|
|
75
|
-
kind: 'array',
|
|
76
|
-
type: 'array',
|
|
77
|
-
items: (_a = schema.items) !== null && _a !== void 0 ? _a : undefined,
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
export function createObjectSchema(schema = {}) {
|
|
81
|
-
var _a, _b, _c;
|
|
82
|
-
return {
|
|
83
|
-
...createSchemaBase(schema),
|
|
84
|
-
kind: 'object',
|
|
85
|
-
type: 'object',
|
|
86
|
-
properties: new Map(((_a = schema.properties) !== null && _a !== void 0 ? _a : []).map((p) => [p.name, p])),
|
|
87
|
-
allOf: (_b = schema.allOf) !== null && _b !== void 0 ? _b : [],
|
|
88
|
-
anyOf: (_c = schema.anyOf) !== null && _c !== void 0 ? _c : [],
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
export function createCombinedSchema(schema = {}) {
|
|
92
|
-
var _a, _b;
|
|
93
|
-
return {
|
|
94
|
-
...createSchemaBase(schema),
|
|
95
|
-
kind: 'combined',
|
|
96
|
-
allOf: (_a = schema.allOf) !== null && _a !== void 0 ? _a : [],
|
|
97
|
-
anyOf: (_b = schema.anyOf) !== null && _b !== void 0 ? _b : [],
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
export function createUnknownSchema(schema = {}) {
|
|
101
|
-
return {
|
|
102
|
-
...createSchemaBase(schema),
|
|
103
|
-
kind: 'unknown',
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
export function createOneOfProperty(name, schema = {}) {
|
|
107
|
-
return { name, schema: createOneOfSchema(schema) };
|
|
108
|
-
}
|
|
109
|
-
export function createMultiTypeProperty(name, schema = {}) {
|
|
110
|
-
return { name, schema: createMultiTypeSchema(schema) };
|
|
111
|
-
}
|
|
112
|
-
export function createStringProperty(name, schema = {}) {
|
|
113
|
-
return { name, schema: createStringSchema(schema) };
|
|
114
|
-
}
|
|
115
|
-
export function createBooleanProperty(name, schema = {}) {
|
|
116
|
-
return { name, schema: createBooleanSchema(schema) };
|
|
117
|
-
}
|
|
118
|
-
export function createNullProperty(name, schema = {}) {
|
|
119
|
-
return { name, schema: createNullSchema(schema) };
|
|
120
|
-
}
|
|
121
|
-
export function createNumberProperty(name, schema = {}) {
|
|
122
|
-
return { name, schema: createNumberSchema(schema) };
|
|
123
|
-
}
|
|
124
|
-
export function createIntegerProperty(name, schema = {}) {
|
|
125
|
-
return { name, schema: createIntegerSchema(schema) };
|
|
126
|
-
}
|
|
127
|
-
export function createArrayProperty(name, schema = {}) {
|
|
128
|
-
return { name, schema: createArraySchema(schema) };
|
|
129
|
-
}
|
|
130
|
-
export function createObjectProperty(name, schema = {}) {
|
|
131
|
-
return { name, schema: createObjectSchema(schema) };
|
|
132
|
-
}
|
|
133
|
-
export function createCombinedProperty(name, schema = {}) {
|
|
134
|
-
return { name, schema: createCombinedSchema(schema) };
|
|
135
|
-
}
|
|
136
|
-
export function createUnknownProperty(name, schema = {}) {
|
|
137
|
-
return { name, schema: createUnknownSchema(schema) };
|
|
138
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
interface Object {
|
|
3
|
-
/**
|
|
4
|
-
* Determines whether an object has a property with the specified name.
|
|
5
|
-
* @param o An object.
|
|
6
|
-
* @param v A property name.
|
|
7
|
-
*/
|
|
8
|
-
hasOwn(o: object, v: PropertyKey): boolean;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
12
|
-
declare global {
|
|
13
|
-
interface String {
|
|
14
|
-
/**
|
|
15
|
-
* Replace all instances of a substring in a string, using a regular expression or search string.
|
|
16
|
-
* @param searchValue A string to search for.
|
|
17
|
-
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
|
|
18
|
-
*/
|
|
19
|
-
replaceAll(searchValue: string | RegExp, replaceValue: string): string;
|
|
20
|
-
/**
|
|
21
|
-
* Replace all instances of a substring in a string, using a regular expression or search string.
|
|
22
|
-
* @param searchValue A string to search for.
|
|
23
|
-
* @param replacer A function that returns the replacement text.
|
|
24
|
-
*/
|
|
25
|
-
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=_dnt.test_polyfills.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.test_polyfills.d.ts","sourceRoot":"","sources":["../src/_dnt.test_polyfills.ts"],"names":[],"mappings":"AAeA,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd;;;;WAIG;QACH,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;KAC5C;CACF;AAED,OAAO,EAAE,CAAC;AACV,OAAO,CAAC,MAAM,CAAC;IAEb,UAAU,MAAM;QACd;;;;WAIG;QACH,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAAC;QAEvE;;;;WAIG;QACH,UAAU,CACR,WAAW,EAAE,MAAM,GAAG,MAAM,EAC5B,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,MAAM,GACtD,MAAM,CAAC;KACX;CACF;AAsBD,OAAO,EAAE,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
4
|
-
if (!Object.hasOwn) {
|
|
5
|
-
Object.defineProperty(Object, "hasOwn", {
|
|
6
|
-
value: function (object, property) {
|
|
7
|
-
if (object == null) {
|
|
8
|
-
throw new TypeError("Cannot convert undefined or null to object");
|
|
9
|
-
}
|
|
10
|
-
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
11
|
-
},
|
|
12
|
-
configurable: true,
|
|
13
|
-
enumerable: false,
|
|
14
|
-
writable: true,
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* String.prototype.replaceAll() polyfill
|
|
19
|
-
* https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/
|
|
20
|
-
* @author Chris Ferdinandi
|
|
21
|
-
* @license MIT
|
|
22
|
-
*/
|
|
23
|
-
if (!String.prototype.replaceAll) {
|
|
24
|
-
String.prototype.replaceAll = function (str, newStr) {
|
|
25
|
-
// If a regex pattern
|
|
26
|
-
if (Object.prototype.toString.call(str).toLowerCase() === "[object regexp]") {
|
|
27
|
-
return this.replace(str, newStr);
|
|
28
|
-
}
|
|
29
|
-
// If a string
|
|
30
|
-
return this.replace(new RegExp(str, "g"), newStr);
|
|
31
|
-
};
|
|
32
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Deno } from "@deno/shim-deno-test";
|
|
2
|
-
export { Deno } from "@deno/shim-deno-test";
|
|
3
|
-
import { fetch, File, FormData, Headers, Request, Response } from "undici";
|
|
4
|
-
export { fetch, File, FormData, Headers, Request, Response, type BodyInit, type HeadersInit, type ReferrerPolicy, type RequestInit, type RequestCache, type RequestMode, type RequestRedirect, type ResponseInit } from "undici";
|
|
5
|
-
export declare const dntGlobalThis: Omit<typeof globalThis, "Response" | "fetch" | "File" | "FormData" | "Headers" | "Request" | "Deno"> & {
|
|
6
|
-
Deno: typeof Deno;
|
|
7
|
-
fetch: typeof fetch;
|
|
8
|
-
File: typeof File;
|
|
9
|
-
FormData: typeof FormData;
|
|
10
|
-
Headers: typeof Headers;
|
|
11
|
-
Request: typeof Request;
|
|
12
|
-
Response: typeof Response;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=_dnt.test_shims.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.test_shims.d.ts","sourceRoot":"","sources":["../src/_dnt.test_shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AAWjO,eAAO,MAAM,aAAa;;;;;;;;CAA2C,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.dntGlobalThis = exports.Response = exports.Request = exports.Headers = exports.FormData = exports.File = exports.fetch = exports.Deno = void 0;
|
|
4
|
-
const shim_deno_test_1 = require("@deno/shim-deno-test");
|
|
5
|
-
var shim_deno_test_2 = require("@deno/shim-deno-test");
|
|
6
|
-
Object.defineProperty(exports, "Deno", { enumerable: true, get: function () { return shim_deno_test_2.Deno; } });
|
|
7
|
-
const undici_1 = require("undici");
|
|
8
|
-
var undici_2 = require("undici");
|
|
9
|
-
Object.defineProperty(exports, "fetch", { enumerable: true, get: function () { return undici_2.fetch; } });
|
|
10
|
-
Object.defineProperty(exports, "File", { enumerable: true, get: function () { return undici_2.File; } });
|
|
11
|
-
Object.defineProperty(exports, "FormData", { enumerable: true, get: function () { return undici_2.FormData; } });
|
|
12
|
-
Object.defineProperty(exports, "Headers", { enumerable: true, get: function () { return undici_2.Headers; } });
|
|
13
|
-
Object.defineProperty(exports, "Request", { enumerable: true, get: function () { return undici_2.Request; } });
|
|
14
|
-
Object.defineProperty(exports, "Response", { enumerable: true, get: function () { return undici_2.Response; } });
|
|
15
|
-
const dntGlobals = {
|
|
16
|
-
Deno: shim_deno_test_1.Deno,
|
|
17
|
-
fetch: undici_1.fetch,
|
|
18
|
-
File: undici_1.File,
|
|
19
|
-
FormData: undici_1.FormData,
|
|
20
|
-
Headers: undici_1.Headers,
|
|
21
|
-
Request: undici_1.Request,
|
|
22
|
-
Response: undici_1.Response,
|
|
23
|
-
};
|
|
24
|
-
exports.dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
|
|
25
|
-
function createMergeProxy(baseObj, extObj) {
|
|
26
|
-
return new Proxy(baseObj, {
|
|
27
|
-
get(_target, prop, _receiver) {
|
|
28
|
-
if (prop in extObj) {
|
|
29
|
-
return extObj[prop];
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return baseObj[prop];
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
set(_target, prop, value) {
|
|
36
|
-
if (prop in extObj) {
|
|
37
|
-
delete extObj[prop];
|
|
38
|
-
}
|
|
39
|
-
baseObj[prop] = value;
|
|
40
|
-
return true;
|
|
41
|
-
},
|
|
42
|
-
deleteProperty(_target, prop) {
|
|
43
|
-
let success = false;
|
|
44
|
-
if (prop in extObj) {
|
|
45
|
-
delete extObj[prop];
|
|
46
|
-
success = true;
|
|
47
|
-
}
|
|
48
|
-
if (prop in baseObj) {
|
|
49
|
-
delete baseObj[prop];
|
|
50
|
-
success = true;
|
|
51
|
-
}
|
|
52
|
-
return success;
|
|
53
|
-
},
|
|
54
|
-
ownKeys(_target) {
|
|
55
|
-
const baseKeys = Reflect.ownKeys(baseObj);
|
|
56
|
-
const extKeys = Reflect.ownKeys(extObj);
|
|
57
|
-
const extKeysSet = new Set(extKeys);
|
|
58
|
-
return [...baseKeys.filter((k) => !extKeysSet.has(k)), ...extKeys];
|
|
59
|
-
},
|
|
60
|
-
defineProperty(_target, prop, desc) {
|
|
61
|
-
if (prop in extObj) {
|
|
62
|
-
delete extObj[prop];
|
|
63
|
-
}
|
|
64
|
-
Reflect.defineProperty(baseObj, prop, desc);
|
|
65
|
-
return true;
|
|
66
|
-
},
|
|
67
|
-
getOwnPropertyDescriptor(_target, prop) {
|
|
68
|
-
if (prop in extObj) {
|
|
69
|
-
return Reflect.getOwnPropertyDescriptor(extObj, prop);
|
|
70
|
-
}
|
|
71
|
-
else {
|
|
72
|
-
return Reflect.getOwnPropertyDescriptor(baseObj, prop);
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
has(_target, prop) {
|
|
76
|
-
return prop in extObj || prop in baseObj;
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Error thrown when an assertion fails.
|
|
3
|
-
*
|
|
4
|
-
* @example Usage
|
|
5
|
-
* ```ts ignore
|
|
6
|
-
* import { AssertionError } from "@std/assert";
|
|
7
|
-
*
|
|
8
|
-
* try {
|
|
9
|
-
* throw new AssertionError("foo", { cause: "bar" });
|
|
10
|
-
* } catch (error) {
|
|
11
|
-
* if (error instanceof AssertionError) {
|
|
12
|
-
* error.message === "foo"; // true
|
|
13
|
-
* error.cause === "bar"; // true
|
|
14
|
-
* }
|
|
15
|
-
* }
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare class AssertionError extends Error {
|
|
19
|
-
/** Constructs a new instance.
|
|
20
|
-
*
|
|
21
|
-
* @param message The error message.
|
|
22
|
-
* @param options Additional options. This argument is still unstable. It may change in the future release.
|
|
23
|
-
*/
|
|
24
|
-
constructor(message: string, options?: ErrorOptions);
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=assertion_error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.11/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.AssertionError = void 0;
|
|
6
|
-
/**
|
|
7
|
-
* Error thrown when an assertion fails.
|
|
8
|
-
*
|
|
9
|
-
* @example Usage
|
|
10
|
-
* ```ts ignore
|
|
11
|
-
* import { AssertionError } from "@std/assert";
|
|
12
|
-
*
|
|
13
|
-
* try {
|
|
14
|
-
* throw new AssertionError("foo", { cause: "bar" });
|
|
15
|
-
* } catch (error) {
|
|
16
|
-
* if (error instanceof AssertionError) {
|
|
17
|
-
* error.message === "foo"; // true
|
|
18
|
-
* error.cause === "bar"; // true
|
|
19
|
-
* }
|
|
20
|
-
* }
|
|
21
|
-
* ```
|
|
22
|
-
*/
|
|
23
|
-
class AssertionError extends Error {
|
|
24
|
-
/** Constructs a new instance.
|
|
25
|
-
*
|
|
26
|
-
* @param message The error message.
|
|
27
|
-
* @param options Additional options. This argument is still unstable. It may change in the future release.
|
|
28
|
-
*/
|
|
29
|
-
constructor(message, options) {
|
|
30
|
-
super(message, options);
|
|
31
|
-
this.name = "AssertionError";
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
exports.AssertionError = AssertionError;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** Assertion condition for {@linkcode assertFalse}. */
|
|
2
|
-
export type Falsy = false | 0 | 0n | "" | null | undefined;
|
|
3
|
-
/**
|
|
4
|
-
* Make an assertion, error will be thrown if `expr` have truthy value.
|
|
5
|
-
*
|
|
6
|
-
* @example Usage
|
|
7
|
-
* ```ts ignore
|
|
8
|
-
* import { assertFalse } from "@std/assert";
|
|
9
|
-
*
|
|
10
|
-
* assertFalse(false); // Doesn't throw
|
|
11
|
-
* assertFalse(true); // Throws
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @param expr The expression to test.
|
|
15
|
-
* @param msg The optional message to display if the assertion fails.
|
|
16
|
-
*/
|
|
17
|
-
export declare function assertFalse(expr: unknown, msg?: string): asserts expr is Falsy;
|
|
18
|
-
//# sourceMappingURL=false.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.11/false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertFalse = assertFalse;
|
|
4
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
|
-
// This module is browser compatible.
|
|
6
|
-
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
-
/**
|
|
8
|
-
* Make an assertion, error will be thrown if `expr` have truthy value.
|
|
9
|
-
*
|
|
10
|
-
* @example Usage
|
|
11
|
-
* ```ts ignore
|
|
12
|
-
* import { assertFalse } from "@std/assert";
|
|
13
|
-
*
|
|
14
|
-
* assertFalse(false); // Doesn't throw
|
|
15
|
-
* assertFalse(true); // Throws
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @param expr The expression to test.
|
|
19
|
-
* @param msg The optional message to display if the assertion fails.
|
|
20
|
-
*/
|
|
21
|
-
function assertFalse(expr, msg = "") {
|
|
22
|
-
if (expr) {
|
|
23
|
-
throw new assertion_error_js_1.AssertionError(msg);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/** Any constructor */
|
|
2
|
-
export type AnyConstructor = new (...args: any[]) => any;
|
|
3
|
-
/** Gets constructor type */
|
|
4
|
-
export type GetConstructorType<T extends AnyConstructor> = InstanceType<T>;
|
|
5
|
-
/**
|
|
6
|
-
* Make an assertion that `obj` is an instance of `type`.
|
|
7
|
-
* If not then throw.
|
|
8
|
-
*
|
|
9
|
-
* @example Usage
|
|
10
|
-
* ```ts ignore
|
|
11
|
-
* import { assertInstanceOf } from "@std/assert";
|
|
12
|
-
*
|
|
13
|
-
* assertInstanceOf(new Date(), Date); // Doesn't throw
|
|
14
|
-
* assertInstanceOf(new Date(), Number); // Throws
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @typeParam T The expected type of the object.
|
|
18
|
-
* @param actual The object to check.
|
|
19
|
-
* @param expectedType The expected class constructor.
|
|
20
|
-
* @param msg The optional message to display if the assertion fails.
|
|
21
|
-
*/
|
|
22
|
-
export declare function assertInstanceOf<T extends abstract new (...args: any[]) => any>(actual: unknown, expectedType: T, msg?: string): asserts actual is InstanceType<T>;
|
|
23
|
-
//# sourceMappingURL=instance_of.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.11/instance_of.ts"],"names":[],"mappings":"AAIA,sBAAsB;AAEtB,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AACzD,4BAA4B;AAC5B,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,cAAc,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC;AAE3E;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAE9B,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAE9C,MAAM,EAAE,OAAO,EACf,YAAY,EAAE,CAAC,EACf,GAAG,SAAK,GACP,OAAO,CAAC,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,CA6BnC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertInstanceOf = assertInstanceOf;
|
|
4
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
|
-
// This module is browser compatible.
|
|
6
|
-
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
-
/**
|
|
8
|
-
* Make an assertion that `obj` is an instance of `type`.
|
|
9
|
-
* If not then throw.
|
|
10
|
-
*
|
|
11
|
-
* @example Usage
|
|
12
|
-
* ```ts ignore
|
|
13
|
-
* import { assertInstanceOf } from "@std/assert";
|
|
14
|
-
*
|
|
15
|
-
* assertInstanceOf(new Date(), Date); // Doesn't throw
|
|
16
|
-
* assertInstanceOf(new Date(), Number); // Throws
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @typeParam T The expected type of the object.
|
|
20
|
-
* @param actual The object to check.
|
|
21
|
-
* @param expectedType The expected class constructor.
|
|
22
|
-
* @param msg The optional message to display if the assertion fails.
|
|
23
|
-
*/
|
|
24
|
-
function assertInstanceOf(actual, expectedType, msg = "") {
|
|
25
|
-
var _a, _b;
|
|
26
|
-
if (actual instanceof expectedType)
|
|
27
|
-
return;
|
|
28
|
-
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
29
|
-
const expectedTypeStr = expectedType.name;
|
|
30
|
-
let actualTypeStr = "";
|
|
31
|
-
if (actual === null) {
|
|
32
|
-
actualTypeStr = "null";
|
|
33
|
-
}
|
|
34
|
-
else if (actual === undefined) {
|
|
35
|
-
actualTypeStr = "undefined";
|
|
36
|
-
}
|
|
37
|
-
else if (typeof actual === "object") {
|
|
38
|
-
actualTypeStr = (_b = (_a = actual.constructor) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "Object";
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
actualTypeStr = typeof actual;
|
|
42
|
-
}
|
|
43
|
-
if (expectedTypeStr === actualTypeStr) {
|
|
44
|
-
msg =
|
|
45
|
-
`Expected object to be an instance of "${expectedTypeStr}"${msgSuffix}`;
|
|
46
|
-
}
|
|
47
|
-
else if (actualTypeStr === "function") {
|
|
48
|
-
msg =
|
|
49
|
-
`Expected object to be an instance of "${expectedTypeStr}" but was not an instanced object${msgSuffix}`;
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
msg =
|
|
53
|
-
`Expected object to be an instance of "${expectedTypeStr}" but was "${actualTypeStr}"${msgSuffix}`;
|
|
54
|
-
}
|
|
55
|
-
throw new assertion_error_js_1.AssertionError(msg);
|
|
56
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Make an assertion that `actual` match RegExp `expected`. If not
|
|
3
|
-
* then throw.
|
|
4
|
-
*
|
|
5
|
-
* @example Usage
|
|
6
|
-
* ```ts ignore
|
|
7
|
-
* import { assertMatch } from "@std/assert";
|
|
8
|
-
*
|
|
9
|
-
* assertMatch("Raptor", /Raptor/); // Doesn't throw
|
|
10
|
-
* assertMatch("Denosaurus", /Raptor/); // Throws
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @param actual The actual value to be matched.
|
|
14
|
-
* @param expected The expected pattern to match.
|
|
15
|
-
* @param msg The optional message to display if the assertion fails.
|
|
16
|
-
*/
|
|
17
|
-
export declare function assertMatch(actual: string, expected: RegExp, msg?: string): void;
|
|
18
|
-
//# sourceMappingURL=match.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.11/match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertMatch = assertMatch;
|
|
4
|
-
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
|
-
// This module is browser compatible.
|
|
6
|
-
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
-
/**
|
|
8
|
-
* Make an assertion that `actual` match RegExp `expected`. If not
|
|
9
|
-
* then throw.
|
|
10
|
-
*
|
|
11
|
-
* @example Usage
|
|
12
|
-
* ```ts ignore
|
|
13
|
-
* import { assertMatch } from "@std/assert";
|
|
14
|
-
*
|
|
15
|
-
* assertMatch("Raptor", /Raptor/); // Doesn't throw
|
|
16
|
-
* assertMatch("Denosaurus", /Raptor/); // Throws
|
|
17
|
-
* ```
|
|
18
|
-
*
|
|
19
|
-
* @param actual The actual value to be matched.
|
|
20
|
-
* @param expected The expected pattern to match.
|
|
21
|
-
* @param msg The optional message to display if the assertion fails.
|
|
22
|
-
*/
|
|
23
|
-
function assertMatch(actual, expected, msg) {
|
|
24
|
-
if (expected.test(actual))
|
|
25
|
-
return;
|
|
26
|
-
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
27
|
-
msg = `Expected actual: "${actual}" to match: "${expected}"${msgSuffix}`;
|
|
28
|
-
throw new assertion_error_js_1.AssertionError(msg);
|
|
29
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"not_instance_of.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.11/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"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertNotInstanceOf = assertNotInstanceOf;
|
|
4
|
-
// Copyright 2018-2025 the Deno authors. 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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"not_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.11/not_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAMb"}
|