@goast/core 0.4.0 → 0.4.1-springwebclient1
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/README.md +67 -67
- package/esm/src/transform/helpers.d.ts.map +1 -1
- package/esm/src/transform/helpers.js +5 -1
- package/esm/src/utils/asset-manager.d.ts +1 -0
- package/esm/src/utils/asset-manager.d.ts.map +1 -1
- package/esm/src/utils/asset-manager.js +1 -1
- 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/src/transform/helpers.d.ts.map +1 -1
- package/script/src/transform/helpers.js +5 -1
- package/script/src/utils/asset-manager.d.ts +1 -0
- package/script/src/utils/asset-manager.d.ts.map +1 -1
- package/script/src/utils/asset-manager.js +1 -1
- 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 -18
- package/esm/_dnt.test_polyfills.d.ts.map +0 -1
- package/esm/_dnt.test_polyfills.js +0 -17
- 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.6/assertion_error.d.ts +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -30
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -136
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -45
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/false.js +0 -22
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -53
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -54
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -29
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -26
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -32
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -159
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -57
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts +0 -20
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts +0 -17
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.js +0 -26
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts +0 -36
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.js +0 -124
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts +0 -6
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.js +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts +0 -9
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.js +0 -191
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts +0 -4
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.js +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.js +0 -12
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts +0 -34
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -564
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts +0 -11
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.js +0 -10
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts +0 -838
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -3
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts +0 -8
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.js +0 -159
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts +0 -51
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/expect.js +0 -425
- package/esm/deps/jsr.io/@std/expect/1.0.5/fn.d.ts +0 -29
- package/esm/deps/jsr.io/@std/expect/1.0.5/fn.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/fn.js +0 -85
- package/esm/deps/jsr.io/@std/expect/1.0.5/mod.d.ts +0 -85
- package/esm/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/mod.js +0 -87
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -101
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -111
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -277
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -180
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/format.js +0 -37
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -207
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.4/types.js +0 -2
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -340
- package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
- package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -576
- 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 -78
- 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 -506
- 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 -164
- 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 -18
- package/script/_dnt.test_polyfills.d.ts.map +0 -1
- package/script/_dnt.test_polyfills.js +0 -18
- 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.6/assertion_error.d.ts +0 -26
- package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.js +0 -34
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -139
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -48
- package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/false.js +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.js +0 -56
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts +0 -25
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/is_error.js +0 -57
- package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts +0 -20
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.js +0 -32
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts +0 -18
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_match.js +0 -29
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts +0 -23
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.js +0 -35
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -162
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts +0 -24
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.js +0 -60
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts +0 -20
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.js +0 -32
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.js +0 -29
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts +0 -3
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -13
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts +0 -36
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.js +0 -140
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts +0 -6
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.js +0 -33
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts +0 -9
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_equal.js +0 -194
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_extend.js +0 -15
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts +0 -3
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.js +0 -17
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts +0 -34
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -598
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts +0 -11
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.js +0 -14
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts +0 -838
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -4
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts +0 -8
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/_utils.js +0 -166
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts +0 -51
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/expect.js +0 -429
- package/script/deps/jsr.io/@std/expect/1.0.5/fn.d.ts +0 -29
- package/script/deps/jsr.io/@std/expect/1.0.5/fn.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/fn.js +0 -88
- package/script/deps/jsr.io/@std/expect/1.0.5/mod.d.ts +0 -85
- package/script/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/mod.js +0 -90
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -106
- package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts +0 -82
- package/script/deps/jsr.io/@std/internal/1.0.4/build_message.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/build_message.js +0 -116
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts +0 -140
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/diff.js +0 -284
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts +0 -99
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/diff_str.js +0 -186
- package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts +0 -2
- package/script/deps/jsr.io/@std/internal/1.0.4/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/format.js +0 -41
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts +0 -159
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/styles.js +0 -220
- package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts +0 -16
- package/script/deps/jsr.io/@std/internal/1.0.4/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/internal/1.0.4/types.js +0 -3
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts +0 -74
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.js +0 -345
- package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts +0 -731
- package/script/deps/jsr.io/@std/testing/1.0.3/bdd.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/testing/1.0.3/bdd.js +0 -587
- 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 -80
- 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 -508
- 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 -166
- 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 -43
- package/src/_dnt.test_shims.ts +0 -72
- package/src/deps/jsr.io/@std/assert/1.0.6/assertion_error.ts +0 -31
- package/src/deps/jsr.io/@std/assert/1.0.6/equal.ts +0 -152
- package/src/deps/jsr.io/@std/assert/1.0.6/equals.ts +0 -52
- package/src/deps/jsr.io/@std/assert/1.0.6/false.ts +0 -26
- package/src/deps/jsr.io/@std/assert/1.0.6/instance_of.ts +0 -64
- package/src/deps/jsr.io/@std/assert/1.0.6/is_error.ts +0 -65
- package/src/deps/jsr.io/@std/assert/1.0.6/match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.6/not_instance_of.ts +0 -33
- package/src/deps/jsr.io/@std/assert/1.0.6/not_match.ts +0 -30
- package/src/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.ts +0 -42
- package/src/deps/jsr.io/@std/assert/1.0.6/object_match.ts +0 -202
- package/src/deps/jsr.io/@std/assert/1.0.6/strict_equals.ts +0 -67
- package/src/deps/jsr.io/@std/expect/1.0.5/_assert_equals.ts +0 -38
- package/src/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.ts +0 -35
- package/src/deps/jsr.io/@std/expect/1.0.5/_assertion.ts +0 -13
- package/src/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.ts +0 -147
- package/src/deps/jsr.io/@std/expect/1.0.5/_build_message.ts +0 -51
- package/src/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.ts +0 -19
- package/src/deps/jsr.io/@std/expect/1.0.5/_equal.ts +0 -229
- package/src/deps/jsr.io/@std/expect/1.0.5/_extend.ts +0 -16
- package/src/deps/jsr.io/@std/expect/1.0.5/_inspect_args.ts +0 -15
- package/src/deps/jsr.io/@std/expect/1.0.5/_matchers.ts +0 -828
- package/src/deps/jsr.io/@std/expect/1.0.5/_mock_util.ts +0 -22
- package/src/deps/jsr.io/@std/expect/1.0.5/_types.ts +0 -917
- package/src/deps/jsr.io/@std/expect/1.0.5/_utils.ts +0 -201
- package/src/deps/jsr.io/@std/expect/1.0.5/expect.ts +0 -511
- package/src/deps/jsr.io/@std/expect/1.0.5/fn.ts +0 -91
- package/src/deps/jsr.io/@std/expect/1.0.5/mod.ts +0 -88
- package/src/deps/jsr.io/@std/internal/1.0.4/assertion_state.ts +0 -111
- package/src/deps/jsr.io/@std/internal/1.0.4/build_message.ts +0 -134
- package/src/deps/jsr.io/@std/internal/1.0.4/diff.ts +0 -317
- package/src/deps/jsr.io/@std/internal/1.0.4/diff_str.ts +0 -204
- package/src/deps/jsr.io/@std/internal/1.0.4/format.ts +0 -39
- package/src/deps/jsr.io/@std/internal/1.0.4/styles.ts +0 -233
- package/src/deps/jsr.io/@std/internal/1.0.4/types.ts +0 -18
- package/src/deps/jsr.io/@std/testing/1.0.3/_test_suite.ts +0 -389
- package/src/deps/jsr.io/@std/testing/1.0.3/bdd.ts +0 -1202
- 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 -87
- package/src/src/utils/schema.utils.ts +0 -142
- package/src/src/utils/source-builder.test.ts +0 -658
- 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 -189
- 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,18 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
interface String {
|
|
3
|
-
/**
|
|
4
|
-
* Replace all instances of a substring in a string, using a regular expression or search string.
|
|
5
|
-
* @param searchValue A string to search for.
|
|
6
|
-
* @param replaceValue A string containing the text to replace for every successful match of searchValue in this string.
|
|
7
|
-
*/
|
|
8
|
-
replaceAll(searchValue: string | RegExp, replaceValue: string): string;
|
|
9
|
-
/**
|
|
10
|
-
* Replace all instances of a substring in a string, using a regular expression or search string.
|
|
11
|
-
* @param searchValue A string to search for.
|
|
12
|
-
* @param replacer A function that returns the replacement text.
|
|
13
|
-
*/
|
|
14
|
-
replaceAll(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export {};
|
|
18
|
-
//# 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":"AAAA,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,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/**
|
|
4
|
-
* String.prototype.replaceAll() polyfill
|
|
5
|
-
* https://gomakethings.com/how-to-replace-a-section-of-a-string-with-another-one-with-vanilla-js/
|
|
6
|
-
* @author Chris Ferdinandi
|
|
7
|
-
* @license MIT
|
|
8
|
-
*/
|
|
9
|
-
if (!String.prototype.replaceAll) {
|
|
10
|
-
String.prototype.replaceAll = function (str, newStr) {
|
|
11
|
-
// If a regex pattern
|
|
12
|
-
if (Object.prototype.toString.call(str).toLowerCase() === "[object regexp]") {
|
|
13
|
-
return this.replace(str, newStr);
|
|
14
|
-
}
|
|
15
|
-
// If a string
|
|
16
|
-
return this.replace(new RegExp(str, "g"), newStr);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
@@ -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.6/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-2024 the Deno authors. All rights reserved. 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,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deep equality comparison used in assertions.
|
|
3
|
-
*
|
|
4
|
-
* @param c The actual value
|
|
5
|
-
* @param d The expected value
|
|
6
|
-
* @returns `true` if the values are deeply equal, `false` otherwise
|
|
7
|
-
*
|
|
8
|
-
* @example Usage
|
|
9
|
-
* ```ts
|
|
10
|
-
* import { equal } from "@std/assert/equal";
|
|
11
|
-
*
|
|
12
|
-
* equal({ foo: "bar" }, { foo: "bar" }); // Returns `true`
|
|
13
|
-
* equal({ foo: "bar" }, { foo: "baz" }); // Returns `false
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare function equal(c: unknown, d: unknown): boolean;
|
|
17
|
-
//# sourceMappingURL=equal.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/equal.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA0HrD"}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.equal = equal;
|
|
6
|
-
function isKeyedCollection(x) {
|
|
7
|
-
return x instanceof Set || x instanceof Map;
|
|
8
|
-
}
|
|
9
|
-
function constructorsEqual(a, b) {
|
|
10
|
-
return a.constructor === b.constructor ||
|
|
11
|
-
a.constructor === Object && !b.constructor ||
|
|
12
|
-
!a.constructor && b.constructor === Object;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Deep equality comparison used in assertions.
|
|
16
|
-
*
|
|
17
|
-
* @param c The actual value
|
|
18
|
-
* @param d The expected value
|
|
19
|
-
* @returns `true` if the values are deeply equal, `false` otherwise
|
|
20
|
-
*
|
|
21
|
-
* @example Usage
|
|
22
|
-
* ```ts
|
|
23
|
-
* import { equal } from "@std/assert/equal";
|
|
24
|
-
*
|
|
25
|
-
* equal({ foo: "bar" }, { foo: "bar" }); // Returns `true`
|
|
26
|
-
* equal({ foo: "bar" }, { foo: "baz" }); // Returns `false
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
function equal(c, d) {
|
|
30
|
-
const seen = new Map();
|
|
31
|
-
return (function compare(a, b) {
|
|
32
|
-
// Have to render RegExp & Date for string comparison
|
|
33
|
-
// unless it's mistreated as object
|
|
34
|
-
if (a &&
|
|
35
|
-
b &&
|
|
36
|
-
((a instanceof RegExp && b instanceof RegExp) ||
|
|
37
|
-
(a instanceof URL && b instanceof URL))) {
|
|
38
|
-
return String(a) === String(b);
|
|
39
|
-
}
|
|
40
|
-
if (a instanceof Date && b instanceof Date) {
|
|
41
|
-
const aTime = a.getTime();
|
|
42
|
-
const bTime = b.getTime();
|
|
43
|
-
// Check for NaN equality manually since NaN is not
|
|
44
|
-
// equal to itself.
|
|
45
|
-
if (Number.isNaN(aTime) && Number.isNaN(bTime)) {
|
|
46
|
-
return true;
|
|
47
|
-
}
|
|
48
|
-
return aTime === bTime;
|
|
49
|
-
}
|
|
50
|
-
if (typeof a === "number" && typeof b === "number") {
|
|
51
|
-
return Number.isNaN(a) && Number.isNaN(b) || a === b;
|
|
52
|
-
}
|
|
53
|
-
if (Object.is(a, b)) {
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
if (a && typeof a === "object" && b && typeof b === "object") {
|
|
57
|
-
if (a && b && !constructorsEqual(a, b)) {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
if (a instanceof WeakMap || b instanceof WeakMap) {
|
|
61
|
-
if (!(a instanceof WeakMap && b instanceof WeakMap))
|
|
62
|
-
return false;
|
|
63
|
-
throw new TypeError("cannot compare WeakMap instances");
|
|
64
|
-
}
|
|
65
|
-
if (a instanceof WeakSet || b instanceof WeakSet) {
|
|
66
|
-
if (!(a instanceof WeakSet && b instanceof WeakSet))
|
|
67
|
-
return false;
|
|
68
|
-
throw new TypeError("cannot compare WeakSet instances");
|
|
69
|
-
}
|
|
70
|
-
if (a instanceof WeakRef || b instanceof WeakRef) {
|
|
71
|
-
if (!(a instanceof WeakRef && b instanceof WeakRef))
|
|
72
|
-
return false;
|
|
73
|
-
return compare(a.deref(), b.deref());
|
|
74
|
-
}
|
|
75
|
-
if (seen.get(a) === b) {
|
|
76
|
-
return true;
|
|
77
|
-
}
|
|
78
|
-
if (Object.keys(a).length !== Object.keys(b).length) {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
seen.set(a, b);
|
|
82
|
-
if (isKeyedCollection(a) && isKeyedCollection(b)) {
|
|
83
|
-
if (a.size !== b.size) {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
const aKeys = [...a.keys()];
|
|
87
|
-
const primitiveKeysFastPath = aKeys.every((k) => {
|
|
88
|
-
return typeof k === "string" ||
|
|
89
|
-
typeof k === "number" ||
|
|
90
|
-
typeof k === "boolean" ||
|
|
91
|
-
typeof k === "bigint" ||
|
|
92
|
-
typeof k === "symbol" ||
|
|
93
|
-
k == null;
|
|
94
|
-
});
|
|
95
|
-
if (primitiveKeysFastPath) {
|
|
96
|
-
if (a instanceof Set) {
|
|
97
|
-
return a.symmetricDifference(b).size === 0;
|
|
98
|
-
}
|
|
99
|
-
for (const key of aKeys) {
|
|
100
|
-
if (!b.has(key) ||
|
|
101
|
-
!compare(a.get(key), b.get(key))) {
|
|
102
|
-
return false;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
return true;
|
|
106
|
-
}
|
|
107
|
-
let unmatchedEntries = a.size;
|
|
108
|
-
for (const [aKey, aValue] of a.entries()) {
|
|
109
|
-
for (const [bKey, bValue] of b.entries()) {
|
|
110
|
-
/* Given that Map keys can be references, we need
|
|
111
|
-
* to ensure that they are also deeply equal */
|
|
112
|
-
if (!compare(aKey, bKey))
|
|
113
|
-
continue;
|
|
114
|
-
if ((aKey === aValue && bKey === bValue) ||
|
|
115
|
-
(compare(aValue, bValue))) {
|
|
116
|
-
unmatchedEntries--;
|
|
117
|
-
break;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return unmatchedEntries === 0;
|
|
122
|
-
}
|
|
123
|
-
const merged = { ...a, ...b };
|
|
124
|
-
for (const key of [
|
|
125
|
-
...Object.getOwnPropertyNames(merged),
|
|
126
|
-
...Object.getOwnPropertySymbols(merged),
|
|
127
|
-
]) {
|
|
128
|
-
if (!compare(a && a[key], b && b[key])) {
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
if (((key in a) && (!(key in b))) || ((key in b) && (!(key in a)))) {
|
|
132
|
-
return false;
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
return true;
|
|
136
|
-
}
|
|
137
|
-
return false;
|
|
138
|
-
})(c, d);
|
|
139
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
3
|
-
* deeply equal, then throw.
|
|
4
|
-
*
|
|
5
|
-
* Type parameter can be specified to ensure values under comparison have the
|
|
6
|
-
* same type.
|
|
7
|
-
*
|
|
8
|
-
* @example Usage
|
|
9
|
-
* ```ts ignore
|
|
10
|
-
* import { assertEquals } from "@std/assert";
|
|
11
|
-
*
|
|
12
|
-
* assertEquals("world", "world"); // Doesn't throw
|
|
13
|
-
* assertEquals("hello", "world"); // Throws
|
|
14
|
-
* ```
|
|
15
|
-
*
|
|
16
|
-
* @typeParam T The type of the values to compare. This is usually inferred.
|
|
17
|
-
* @param actual The actual value to compare.
|
|
18
|
-
* @param expected The expected value to compare.
|
|
19
|
-
* @param msg The optional message to display if the assertion fails.
|
|
20
|
-
*/
|
|
21
|
-
export declare function assertEquals<T>(actual: T, expected: T, msg?: string): void;
|
|
22
|
-
//# sourceMappingURL=equals.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/equals.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAkBb"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.assertEquals = assertEquals;
|
|
4
|
-
// Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
-
// This module is browser compatible.
|
|
6
|
-
const equal_js_1 = require("./equal.js");
|
|
7
|
-
const build_message_js_1 = require("../../internal/1.0.4/build_message.js");
|
|
8
|
-
const diff_js_1 = require("../../internal/1.0.4/diff.js");
|
|
9
|
-
const diff_str_js_1 = require("../../internal/1.0.4/diff_str.js");
|
|
10
|
-
const format_js_1 = require("../../internal/1.0.4/format.js");
|
|
11
|
-
const assertion_error_js_1 = require("./assertion_error.js");
|
|
12
|
-
/**
|
|
13
|
-
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
14
|
-
* deeply equal, then throw.
|
|
15
|
-
*
|
|
16
|
-
* Type parameter can be specified to ensure values under comparison have the
|
|
17
|
-
* same type.
|
|
18
|
-
*
|
|
19
|
-
* @example Usage
|
|
20
|
-
* ```ts ignore
|
|
21
|
-
* import { assertEquals } from "@std/assert";
|
|
22
|
-
*
|
|
23
|
-
* assertEquals("world", "world"); // Doesn't throw
|
|
24
|
-
* assertEquals("hello", "world"); // Throws
|
|
25
|
-
* ```
|
|
26
|
-
*
|
|
27
|
-
* @typeParam T The type of the values to compare. This is usually inferred.
|
|
28
|
-
* @param actual The actual value to compare.
|
|
29
|
-
* @param expected The expected value to compare.
|
|
30
|
-
* @param msg The optional message to display if the assertion fails.
|
|
31
|
-
*/
|
|
32
|
-
function assertEquals(actual, expected, msg) {
|
|
33
|
-
if ((0, equal_js_1.equal)(actual, expected)) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
37
|
-
let message = `Values are not equal${msgSuffix}`;
|
|
38
|
-
const actualString = (0, format_js_1.format)(actual);
|
|
39
|
-
const expectedString = (0, format_js_1.format)(expected);
|
|
40
|
-
const stringDiff = (typeof actual === "string") &&
|
|
41
|
-
(typeof expected === "string");
|
|
42
|
-
const diffResult = stringDiff
|
|
43
|
-
? (0, diff_str_js_1.diffStr)(actual, expected)
|
|
44
|
-
: (0, diff_js_1.diff)(actualString.split("\n"), expectedString.split("\n"));
|
|
45
|
-
const diffMsg = (0, build_message_js_1.buildMessage)(diffResult, { stringDiff }).join("\n");
|
|
46
|
-
message = `${message}\n${diffMsg}`;
|
|
47
|
-
throw new assertion_error_js_1.AssertionError(message);
|
|
48
|
-
}
|
|
@@ -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.6/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-2024 the Deno authors. All rights reserved. MIT license.
|
|
5
|
-
// This module is browser compatible.
|
|
6
|
-
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
-
/**
|
|
8
|
-
* Make an assertion, error will be thrown if `expr` have truthy value.
|
|
9
|
-
*
|
|
10
|
-
* @example Usage
|
|
11
|
-
* ```ts ignore
|
|
12
|
-
* import { assertFalse } from "@std/assert";
|
|
13
|
-
*
|
|
14
|
-
* assertFalse(false); // Doesn't throw
|
|
15
|
-
* assertFalse(true); // Throws
|
|
16
|
-
* ```
|
|
17
|
-
*
|
|
18
|
-
* @param expr The expression to test.
|
|
19
|
-
* @param msg The optional message to display if the assertion fails.
|
|
20
|
-
*/
|
|
21
|
-
function assertFalse(expr, msg = "") {
|
|
22
|
-
if (expr) {
|
|
23
|
-
throw new assertion_error_js_1.AssertionError(msg);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -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.6/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"}
|