@goast/core 0.4.0 → 0.4.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/esm/_dnt.test_polyfills.d.ts +11 -0
- package/esm/_dnt.test_polyfills.d.ts.map +1 -1
- package/esm/_dnt.test_polyfills.js +14 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.js +1 -1
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.js +2 -2
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.js +6 -6
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.js +2 -2
- package/{script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts → esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts} +1 -12
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/{assert/1.0.6/is_error.js → expect/1.0.12/_assert_is_error.js} +8 -19
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.js +3 -3
- package/esm/deps/jsr.io/@std/expect/{1.0.5/_assertion.d.ts → 1.0.12/_assertions.d.ts} +2 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.js +13 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.d.ts +14 -4
- package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.js +54 -17
- package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.js +9 -9
- package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.js +1 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.js +8 -8
- package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.js +1 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.js +1 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.js +714 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.js +1 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +4 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.js +10 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.d.ts +7 -2
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_types.js +3 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.d.ts +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.js +60 -1
- package/{script/deps/jsr.io/@std/expect/1.0.5 → esm/deps/jsr.io/@std/expect/1.0.12}/expect.d.ts +10 -1
- package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/expect.js +101 -3
- package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.js +1 -1
- package/{script/deps/jsr.io/@std/expect/1.0.5 → esm/deps/jsr.io/@std/expect/1.0.12}/mod.d.ts +8 -7
- package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/mod.js +9 -8
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +160 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +199 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.d.ts +6 -1
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.js +45 -5
- package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.d.ts +12 -5
- package/{script/deps/jsr.io/@std/testing/1.0.3 → esm/deps/jsr.io/@std/testing/1.0.9}/bdd.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.js +85 -7
- package/esm/src/collect/helpers.test.js +2 -2
- package/esm/src/transform/helpers.test.js +2 -2
- package/esm/src/utils/action-provider.test.js +2 -2
- 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/common.utils.test.js +2 -2
- package/esm/src/utils/condition.test.js +2 -2
- package/esm/src/utils/endpoint.utils.test.js +2 -2
- package/esm/src/utils/factory.test.js +2 -2
- package/esm/src/utils/generator.utils.test.js +2 -2
- package/esm/src/utils/object.utils.test.js +2 -2
- package/esm/src/utils/schema.utils.test.js +59 -67
- package/esm/src/utils/source-builder.test.js +3 -4
- package/esm/src/utils/string-builder/string-builder.test.js +11 -12
- package/esm/src/utils/string.utils.test.js +2 -2
- package/esm/tests/openapi.test.js +1 -1
- package/package.json +2 -2
- package/script/_dnt.test_polyfills.d.ts +11 -0
- package/script/_dnt.test_polyfills.d.ts.map +1 -1
- package/script/_dnt.test_polyfills.js +14 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.js +1 -1
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.js +2 -2
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.js +6 -6
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.js +2 -2
- package/{esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts → script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts} +1 -12
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/{assert/1.0.6/is_error.js → expect/1.0.12/_assert_is_error.js} +8 -19
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.js +3 -3
- package/script/deps/jsr.io/@std/expect/{1.0.5/_assertion.d.ts → 1.0.12/_assertions.d.ts} +2 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5/_assertion.js → 1.0.12/_assertions.js} +7 -2
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.d.ts +14 -4
- package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.js +61 -18
- package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.js +9 -9
- package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.js +1 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.js +8 -8
- package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.js +1 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.js +1 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.js +748 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.js +1 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +4 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.js +14 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.d.ts +7 -2
- package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.js +1 -1
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.d.ts +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.js +61 -1
- package/{esm/deps/jsr.io/@std/expect/1.0.5 → script/deps/jsr.io/@std/expect/1.0.12}/expect.d.ts +10 -1
- package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/expect.js +103 -5
- package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.js +1 -1
- package/{esm/deps/jsr.io/@std/expect/1.0.5 → script/deps/jsr.io/@std/expect/1.0.12}/mod.d.ts +8 -7
- package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/mod.js +9 -8
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +160 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +204 -0
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.d.ts +6 -1
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.js +46 -6
- package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.d.ts +12 -5
- package/{esm/deps/jsr.io/@std/testing/1.0.3 → script/deps/jsr.io/@std/testing/1.0.9}/bdd.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.js +84 -6
- package/script/src/collect/helpers.test.js +2 -2
- package/script/src/transform/helpers.test.js +2 -2
- package/script/src/utils/action-provider.test.js +2 -2
- 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/common.utils.test.js +2 -2
- package/script/src/utils/condition.test.js +2 -2
- package/script/src/utils/endpoint.utils.test.js +2 -2
- package/script/src/utils/factory.test.js +2 -2
- package/script/src/utils/generator.utils.test.js +2 -2
- package/script/src/utils/object.utils.test.js +2 -2
- package/script/src/utils/schema.utils.test.js +58 -66
- package/script/src/utils/source-builder.test.js +3 -4
- package/script/src/utils/string-builder/string-builder.test.js +11 -12
- package/script/src/utils/string.utils.test.js +2 -2
- package/script/tests/openapi.test.js +1 -1
- package/src/_dnt.test_polyfills.ts +27 -0
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.ts +1 -1
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.ts +2 -2
- package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.ts +6 -6
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.ts +2 -2
- package/src/deps/jsr.io/@std/{assert/1.0.6/is_error.ts → expect/1.0.12/_assert_is_error.ts} +8 -19
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.ts +3 -3
- package/src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts +18 -0
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.ts +69 -18
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.ts +9 -9
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.ts +1 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.ts +10 -9
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.ts +1 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.ts +1 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_matchers.ts +308 -108
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.ts +1 -1
- package/src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts +15 -0
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.ts +9 -3
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.ts +83 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/expect.ts +113 -4
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.ts +1 -1
- package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/mod.ts +9 -8
- package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +214 -0
- package/src/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.ts +68 -9
- package/src/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.ts +98 -12
- package/src/src/collect/helpers.test.ts +2 -2
- package/src/src/transform/helpers.test.ts +2 -2
- package/src/src/utils/action-provider.test.ts +2 -2
- package/src/src/utils/asset-manager.ts +1 -1
- package/src/src/utils/common.utils.test.ts +2 -2
- package/src/src/utils/condition.test.ts +2 -2
- package/src/src/utils/endpoint.utils.test.ts +2 -2
- package/src/src/utils/factory.test.ts +2 -2
- package/src/src/utils/generator.utils.test.ts +2 -2
- package/src/src/utils/object.utils.test.ts +2 -2
- package/src/src/utils/schema.utils.test.ts +68 -67
- package/src/src/utils/source-builder.test.ts +3 -4
- package/src/src/utils/string-builder/string-builder.test.ts +11 -12
- package/src/src/utils/string.utils.test.ts +2 -2
- package/src/tests/openapi.test.ts +1 -1
- 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/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.map +0 -1
- 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/is_error.d.ts.map +0 -1
- 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/not_instance_of.d.ts.map +0 -1
- 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_strict_equals.d.ts.map +0 -1
- 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.map +0 -1
- 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_not_equals.d.ts.map +0 -1
- 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.map +0 -1
- 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/_custom_equality_tester.d.ts.map +0 -1
- 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/_extend.d.ts.map +0 -1
- 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/_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.map +0 -1
- 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.map +0 -1
- 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/fn.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
- 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/testing/1.0.3/_test_suite.d.ts.map +0 -1
- 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/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.map +0 -1
- 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/is_error.d.ts.map +0 -1
- 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/not_instance_of.d.ts.map +0 -1
- 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_strict_equals.d.ts.map +0 -1
- 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.map +0 -1
- 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_not_equals.d.ts.map +0 -1
- 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/_asymmetric_matchers.d.ts.map +0 -1
- 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/_custom_equality_tester.d.ts.map +0 -1
- 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/_extend.d.ts.map +0 -1
- 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/_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.map +0 -1
- 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/_utils.d.ts.map +0 -1
- 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/fn.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
- 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/testing/1.0.3/_test_suite.d.ts.map +0 -1
- 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/object_match.ts +0 -202
- package/src/deps/jsr.io/@std/expect/1.0.5/_assertion.ts +0 -13
- package/src/deps/jsr.io/@std/internal/1.0.4/assertion_state.ts +0 -111
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_matchers.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_matchers.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.ts +0 -0
- /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.ts +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
require("../../_dnt.test_polyfills.js");
|
|
4
|
-
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.
|
|
5
|
-
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.
|
|
4
|
+
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.12/mod.js");
|
|
5
|
+
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.9/bdd.js");
|
|
6
6
|
const factory_js_1 = require("./factory.js");
|
|
7
7
|
(0, bdd_js_1.describe)('Factory', () => {
|
|
8
8
|
(0, bdd_js_1.describe)('create', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
require("../../_dnt.test_polyfills.js");
|
|
4
|
-
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.
|
|
5
|
-
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.
|
|
4
|
+
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.12/mod.js");
|
|
5
|
+
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.9/bdd.js");
|
|
6
6
|
const generator_utils_js_1 = require("./generator.utils.js");
|
|
7
7
|
(0, bdd_js_1.describe)('getInitializedValue', () => {
|
|
8
8
|
(0, bdd_js_1.it)('should return the value if it is not undefined', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
require("../../_dnt.test_polyfills.js");
|
|
4
|
-
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.
|
|
5
|
-
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.
|
|
4
|
+
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.12/mod.js");
|
|
5
|
+
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.9/bdd.js");
|
|
6
6
|
const object_utils_js_1 = require("./object.utils.js");
|
|
7
7
|
(0, bdd_js_1.describe)('createOverwriteProxy', () => {
|
|
8
8
|
(0, bdd_js_1.it)('should return an object that overwrites specified properties', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
require("../../_dnt.test_polyfills.js");
|
|
4
|
-
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.
|
|
5
|
-
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.
|
|
4
|
+
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.12/mod.js");
|
|
5
|
+
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.9/bdd.js");
|
|
6
6
|
const schema_factory_js_1 = require("../../tests/schema-factory.js");
|
|
7
7
|
const schema_utils_js_1 = require("./schema.utils.js");
|
|
8
8
|
(0, bdd_js_1.describe)('resolveAnyOfAndAllOf', () => {
|
|
@@ -13,68 +13,60 @@ const schema_utils_js_1 = require("./schema.utils.js");
|
|
|
13
13
|
const result = (0, schema_utils_js_1.resolveAnyOfAndAllOf)(schema, false);
|
|
14
14
|
(0, mod_js_1.expect)(result).toBeUndefined();
|
|
15
15
|
});
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
// expect.objectContaining(createUnknownProperty('prop3')),
|
|
73
|
-
// ],
|
|
74
|
-
// required: ['prop1'],
|
|
75
|
-
// }),
|
|
76
|
-
// );
|
|
77
|
-
// const result = resolveAnyOfAndAllOf(schema, true);
|
|
78
|
-
// expect(result).toEqual(expectedResult);
|
|
79
|
-
// });
|
|
16
|
+
(0, bdd_js_1.it)('should resolve schema from allOf and anyOf', () => {
|
|
17
|
+
const prop0 = (0, schema_factory_js_1.createUnknownProperty)('prop0');
|
|
18
|
+
const prop1 = (0, schema_factory_js_1.createUnknownProperty)('prop1');
|
|
19
|
+
const prop2 = (0, schema_factory_js_1.createUnknownProperty)('prop2');
|
|
20
|
+
const schema = (0, schema_factory_js_1.createObjectSchema)({
|
|
21
|
+
name: 'root',
|
|
22
|
+
properties: [prop0],
|
|
23
|
+
required: ['prop0'],
|
|
24
|
+
allOf: [(0, schema_factory_js_1.createObjectSchema)({ properties: [prop1], required: ['prop1'] })],
|
|
25
|
+
anyOf: [(0, schema_factory_js_1.createObjectSchema)({ properties: [prop2], required: ['prop2'] })],
|
|
26
|
+
});
|
|
27
|
+
const expectedResult = mod_js_1.expect.objectContaining((0, schema_factory_js_1.createObjectSchema)({
|
|
28
|
+
name: 'root',
|
|
29
|
+
properties: [prop0, prop1, prop2],
|
|
30
|
+
required: ['prop0', 'prop1'],
|
|
31
|
+
}));
|
|
32
|
+
const result = (0, schema_utils_js_1.resolveAnyOfAndAllOf)(schema, true);
|
|
33
|
+
(0, mod_js_1.expect)(result).toEqual(expectedResult);
|
|
34
|
+
});
|
|
35
|
+
(0, bdd_js_1.it)('should merge properties from allOf and anyOf recursively', () => {
|
|
36
|
+
const prop1 = (0, schema_factory_js_1.createUnknownProperty)('prop1');
|
|
37
|
+
const prop2 = (0, schema_factory_js_1.createUnknownProperty)('prop2');
|
|
38
|
+
const prop3 = (0, schema_factory_js_1.createUnknownProperty)('prop3');
|
|
39
|
+
const schema = (0, schema_factory_js_1.createCombinedSchema)({
|
|
40
|
+
name: 'root',
|
|
41
|
+
allOf: [
|
|
42
|
+
(0, schema_factory_js_1.createObjectSchema)({
|
|
43
|
+
properties: [prop1],
|
|
44
|
+
required: ['prop1'],
|
|
45
|
+
}),
|
|
46
|
+
],
|
|
47
|
+
anyOf: [
|
|
48
|
+
(0, schema_factory_js_1.createCombinedSchema)({
|
|
49
|
+
allOf: [
|
|
50
|
+
(0, schema_factory_js_1.createObjectSchema)({
|
|
51
|
+
properties: [prop2],
|
|
52
|
+
required: ['prop2'],
|
|
53
|
+
}),
|
|
54
|
+
],
|
|
55
|
+
anyOf: [
|
|
56
|
+
(0, schema_factory_js_1.createObjectSchema)({
|
|
57
|
+
properties: [prop3],
|
|
58
|
+
required: ['prop3'],
|
|
59
|
+
}),
|
|
60
|
+
],
|
|
61
|
+
}),
|
|
62
|
+
],
|
|
63
|
+
});
|
|
64
|
+
const expectedResult = mod_js_1.expect.objectContaining((0, schema_factory_js_1.createObjectSchema)({
|
|
65
|
+
name: 'root',
|
|
66
|
+
properties: [prop1, prop2, prop3],
|
|
67
|
+
required: ['prop1'],
|
|
68
|
+
}));
|
|
69
|
+
const result = (0, schema_utils_js_1.resolveAnyOfAndAllOf)(schema, true);
|
|
70
|
+
(0, mod_js_1.expect)(result).toEqual(expectedResult);
|
|
71
|
+
});
|
|
80
72
|
});
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
require("../../_dnt.test_polyfills.js");
|
|
4
4
|
const node_os_1 = require("node:os");
|
|
5
|
-
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.
|
|
6
|
-
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.
|
|
5
|
+
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.12/mod.js");
|
|
6
|
+
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.9/bdd.js");
|
|
7
7
|
const source_builder_js_1 = require("./source-builder.js");
|
|
8
8
|
const utils_js_1 = require("./string-builder/utils.js");
|
|
9
9
|
(0, bdd_js_1.describe)('SourceBuilder', () => {
|
|
@@ -32,8 +32,7 @@ const utils_js_1 = require("./string-builder/utils.js");
|
|
|
32
32
|
};
|
|
33
33
|
const sb = source_builder_js_1.SourceBuilder.fromString(str, options);
|
|
34
34
|
(0, mod_js_1.expect)(sb.toString()).toEqual(str);
|
|
35
|
-
|
|
36
|
-
// expect(sb.options).toEqual(expect.objectContaining(options));
|
|
35
|
+
(0, mod_js_1.expect)(sb.options).toEqual(mod_js_1.expect.objectContaining(options));
|
|
37
36
|
});
|
|
38
37
|
});
|
|
39
38
|
(0, bdd_js_1.describe)('build', () => {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
require("../../../_dnt.test_polyfills.js");
|
|
4
4
|
const node_os_1 = require("node:os");
|
|
5
|
-
const mod_js_1 = require("../../../deps/jsr.io/@std/expect/1.0.
|
|
6
|
-
const bdd_js_1 = require("../../../deps/jsr.io/@std/testing/1.0.
|
|
5
|
+
const mod_js_1 = require("../../../deps/jsr.io/@std/expect/1.0.12/mod.js");
|
|
6
|
+
const bdd_js_1 = require("../../../deps/jsr.io/@std/testing/1.0.9/bdd.js");
|
|
7
7
|
const string_builder_js_1 = require("./string-builder.js");
|
|
8
8
|
(0, bdd_js_1.describe)('fromString', () => {
|
|
9
9
|
(0, bdd_js_1.it)('should create a StringBuilder instance with the given string', () => {
|
|
@@ -11,16 +11,15 @@ const string_builder_js_1 = require("./string-builder.js");
|
|
|
11
11
|
const sb = string_builder_js_1.StringBuilder.fromString(str);
|
|
12
12
|
(0, mod_js_1.expect)(sb.toString()).toEqual(str);
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
// });
|
|
14
|
+
(0, bdd_js_1.it)('should create a StringBuilder instance with the given string and options', () => {
|
|
15
|
+
const str = 'test string';
|
|
16
|
+
const options = {
|
|
17
|
+
newLine: '\r\n',
|
|
18
|
+
};
|
|
19
|
+
const sb = string_builder_js_1.StringBuilder.fromString(str, options);
|
|
20
|
+
(0, mod_js_1.expect)(sb.toString()).toEqual(str);
|
|
21
|
+
(0, mod_js_1.expect)(sb.options).toEqual(mod_js_1.expect.objectContaining(options));
|
|
22
|
+
});
|
|
24
23
|
});
|
|
25
24
|
(0, bdd_js_1.describe)('build', () => {
|
|
26
25
|
(0, bdd_js_1.it)('should build a string using a StringBuilder build action', () => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
require("../../_dnt.test_polyfills.js");
|
|
4
|
-
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.
|
|
5
|
-
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.
|
|
4
|
+
const mod_js_1 = require("../../deps/jsr.io/@std/expect/1.0.12/mod.js");
|
|
5
|
+
const bdd_js_1 = require("../../deps/jsr.io/@std/testing/1.0.9/bdd.js");
|
|
6
6
|
const string_utils_js_1 = require("./string.utils.js");
|
|
7
7
|
(0, bdd_js_1.describe)('getWords', () => {
|
|
8
8
|
(0, bdd_js_1.it)('should return an empty array for a nullish string', () => {
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
require("../_dnt.test_polyfills.js");
|
|
4
4
|
const node_path_1 = require("node:path");
|
|
5
5
|
const test_utils_1 = require("@goast/test-utils");
|
|
6
|
-
const bdd_js_1 = require("../deps/jsr.io/@std/testing/1.0.
|
|
6
|
+
const bdd_js_1 = require("../deps/jsr.io/@std/testing/1.0.9/bdd.js");
|
|
7
7
|
const mod_js_1 = require("../mod.js");
|
|
8
8
|
const filePaths = {
|
|
9
9
|
'2.0': test_utils_1.openApiV2FilesDir,
|
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
// https://github.com/tc39/proposal-accessible-object-hasownproperty/blob/main/polyfill.js
|
|
2
|
+
if (!Object.hasOwn) {
|
|
3
|
+
Object.defineProperty(Object, "hasOwn", {
|
|
4
|
+
value: function (object: any, property: any) {
|
|
5
|
+
if (object == null) {
|
|
6
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
|
7
|
+
}
|
|
8
|
+
return Object.prototype.hasOwnProperty.call(Object(object), property);
|
|
9
|
+
},
|
|
10
|
+
configurable: true,
|
|
11
|
+
enumerable: false,
|
|
12
|
+
writable: true,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare global {
|
|
17
|
+
interface Object {
|
|
18
|
+
/**
|
|
19
|
+
* Determines whether an object has a property with the specified name.
|
|
20
|
+
* @param o An object.
|
|
21
|
+
* @param v A property name.
|
|
22
|
+
*/
|
|
23
|
+
hasOwn(o: object, v: PropertyKey): boolean;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {};
|
|
1
28
|
declare global {
|
|
2
29
|
// https://github.com/microsoft/TypeScript/blob/main/lib/lib.es2021.string.d.ts
|
|
3
30
|
interface String {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
3
|
import { AssertionError } from "./assertion_error.js";
|
|
4
|
-
import { format } from "../../internal/1.0.
|
|
4
|
+
import { format } from "../../internal/1.0.5/format.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Make an assertion that `actual` and `expected` are not strictly equal, using
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { buildMessage } from "../../internal/1.0.
|
|
4
|
-
import { diff } from "../../internal/1.0.
|
|
5
|
-
import { diffStr } from "../../internal/1.0.
|
|
6
|
-
import { format } from "../../internal/1.0.
|
|
7
|
-
import { red } from "../../internal/1.0.
|
|
3
|
+
import { buildMessage } from "../../internal/1.0.5/build_message.js";
|
|
4
|
+
import { diff } from "../../internal/1.0.5/diff.js";
|
|
5
|
+
import { diffStr } from "../../internal/1.0.5/diff_str.js";
|
|
6
|
+
import { format } from "../../internal/1.0.5/format.js";
|
|
7
|
+
import { red } from "../../internal/1.0.5/styles.js";
|
|
8
8
|
import { AssertionError } from "./assertion_error.js";
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
|
|
3
3
|
// This file is copied from `std/assert`.
|
|
4
4
|
|
|
5
|
-
import { AssertionError } from "../../assert/1.0.
|
|
5
|
+
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
6
6
|
import { buildEqualErrorMessage } from "./_build_message.js";
|
|
7
7
|
import { equal } from "./_equal.js";
|
|
8
8
|
import type { EqualOptions } from "./_types.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// This module is browser compatible.
|
|
3
|
-
import { AssertionError } from "
|
|
4
|
-
import { stripAnsiCode } from "../../internal/1.0.
|
|
3
|
+
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
4
|
+
import { stripAnsiCode } from "../../internal/1.0.5/styles.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Make an assertion that `error` is an `Error`.
|
|
@@ -9,17 +9,6 @@ import { stripAnsiCode } from "../../internal/1.0.4/styles.js";
|
|
|
9
9
|
* An error class and a string that should be included in the
|
|
10
10
|
* error message can also be asserted.
|
|
11
11
|
*
|
|
12
|
-
* @example Usage
|
|
13
|
-
* ```ts ignore
|
|
14
|
-
* import { assertIsError } from "@std/assert";
|
|
15
|
-
*
|
|
16
|
-
* assertIsError(null); // Throws
|
|
17
|
-
* assertIsError(new RangeError("Out of range")); // Doesn't throw
|
|
18
|
-
* assertIsError(new RangeError("Out of range"), SyntaxError); // Throws
|
|
19
|
-
* assertIsError(new RangeError("Out of range"), SyntaxError, "Out of range"); // Doesn't throw
|
|
20
|
-
* assertIsError(new RangeError("Out of range"), SyntaxError, "Within range"); // Throws
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
12
|
* @typeParam E The type of the error to assert.
|
|
24
13
|
* @param error The error to assert.
|
|
25
14
|
* @param ErrorClass The optional error class to assert.
|
|
@@ -33,15 +22,15 @@ export function assertIsError<E extends Error = Error>(
|
|
|
33
22
|
msgMatches?: string | RegExp,
|
|
34
23
|
msg?: string,
|
|
35
24
|
): asserts error is E {
|
|
36
|
-
const
|
|
25
|
+
const msgPrefix = msg ? `${msg}: ` : "";
|
|
37
26
|
if (!(error instanceof Error)) {
|
|
38
27
|
throw new AssertionError(
|
|
39
|
-
|
|
28
|
+
`${msgPrefix}Expected "error" to be an Error object.`,
|
|
40
29
|
);
|
|
41
30
|
}
|
|
42
31
|
if (ErrorClass && !(error instanceof ErrorClass)) {
|
|
43
32
|
msg =
|
|
44
|
-
|
|
33
|
+
`${msgPrefix}Expected error to be instance of "${ErrorClass.name}", but was "${error?.constructor?.name}".`;
|
|
45
34
|
throw new AssertionError(msg);
|
|
46
35
|
}
|
|
47
36
|
let msgCheck;
|
|
@@ -55,11 +44,11 @@ export function assertIsError<E extends Error = Error>(
|
|
|
55
44
|
}
|
|
56
45
|
|
|
57
46
|
if (msgMatches && !msgCheck) {
|
|
58
|
-
msg =
|
|
47
|
+
msg = `${msgPrefix}Expected error message to include ${
|
|
59
48
|
msgMatches instanceof RegExp
|
|
60
49
|
? msgMatches.toString()
|
|
61
50
|
: JSON.stringify(msgMatches)
|
|
62
|
-
}, but got ${JSON.stringify(error?.message)}
|
|
51
|
+
}, but got ${JSON.stringify(error?.message)}.`;
|
|
63
52
|
throw new AssertionError(msg);
|
|
64
53
|
}
|
|
65
54
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
|
|
3
3
|
// This file is copied from `std/assert`.
|
|
4
4
|
|
|
5
|
-
import { AssertionError } from "../../assert/1.0.
|
|
5
|
+
import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
|
|
6
6
|
import { buildNotEqualErrorMessage } from "./_build_message.js";
|
|
7
7
|
import { equal } from "./_equal.js";
|
|
8
8
|
import type { EqualOptions } from "./_types.js";
|
|
@@ -30,6 +30,6 @@ export function assertNotEquals<T>(
|
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
const message = buildNotEqualErrorMessage(actual, expected, options);
|
|
33
|
+
const message = buildNotEqualErrorMessage(actual, expected, options ?? {});
|
|
34
34
|
throw new AssertionError(message);
|
|
35
35
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
|
+
|
|
3
|
+
import { getAssertionState } from "../../internal/1.0.5/assertion_state.js";
|
|
4
|
+
|
|
5
|
+
const assertionState = getAssertionState();
|
|
6
|
+
|
|
7
|
+
export function hasAssertions() {
|
|
8
|
+
assertionState.setAssertionCheck(true);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function assertions(num: number) {
|
|
12
|
+
assertionState.setAssertionCount(num);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function emitAssertionTrigger() {
|
|
16
|
+
assertionState.setAssertionTriggered(true);
|
|
17
|
+
assertionState.updateAssertionTriggerCount();
|
|
18
|
+
}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
// Copyright 2018-
|
|
1
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
2
2
|
// deno-lint-ignore-file no-explicit-any
|
|
3
3
|
|
|
4
|
+
import { getCustomEqualityTesters } from "./_custom_equality_tester.js";
|
|
5
|
+
import { equal } from "./_equal.js";
|
|
6
|
+
|
|
4
7
|
export abstract class AsymmetricMatcher<T> {
|
|
5
8
|
constructor(
|
|
6
9
|
protected value: T,
|
|
10
|
+
protected inverse: boolean = false,
|
|
7
11
|
) {}
|
|
8
12
|
abstract equals(other: unknown): boolean;
|
|
9
13
|
}
|
|
@@ -67,12 +71,18 @@ export function any(c: unknown): Any {
|
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
export class ArrayContaining extends AsymmetricMatcher<any[]> {
|
|
70
|
-
constructor(arr: any[]) {
|
|
71
|
-
super(arr);
|
|
74
|
+
constructor(arr: any[], inverse = false) {
|
|
75
|
+
super(arr, inverse);
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
equals(other: any[]): boolean {
|
|
75
|
-
|
|
79
|
+
const res = Array.isArray(other) &&
|
|
80
|
+
this.value.every((e) =>
|
|
81
|
+
other.some((another) =>
|
|
82
|
+
equal(e, another, { customTesters: getCustomEqualityTesters() })
|
|
83
|
+
)
|
|
84
|
+
);
|
|
85
|
+
return this.inverse ? !res : res;
|
|
76
86
|
}
|
|
77
87
|
}
|
|
78
88
|
|
|
@@ -80,6 +90,10 @@ export function arrayContaining(c: any[]): ArrayContaining {
|
|
|
80
90
|
return new ArrayContaining(c);
|
|
81
91
|
}
|
|
82
92
|
|
|
93
|
+
export function arrayNotContaining(c: any[]): ArrayContaining {
|
|
94
|
+
return new ArrayContaining(c, true);
|
|
95
|
+
}
|
|
96
|
+
|
|
83
97
|
export class CloseTo extends AsymmetricMatcher<number> {
|
|
84
98
|
readonly #precision: number;
|
|
85
99
|
|
|
@@ -111,16 +125,13 @@ export function closeTo(num: number, numDigits?: number): CloseTo {
|
|
|
111
125
|
}
|
|
112
126
|
|
|
113
127
|
export class StringContaining extends AsymmetricMatcher<string> {
|
|
114
|
-
constructor(str: string) {
|
|
115
|
-
super(str);
|
|
128
|
+
constructor(str: string, inverse = false) {
|
|
129
|
+
super(str, inverse);
|
|
116
130
|
}
|
|
117
131
|
|
|
118
132
|
equals(other: string): boolean {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
return other.includes(this.value);
|
|
133
|
+
const res = typeof other !== "string" ? false : other.includes(this.value);
|
|
134
|
+
return this.inverse ? !res : res;
|
|
124
135
|
}
|
|
125
136
|
}
|
|
126
137
|
|
|
@@ -128,20 +139,60 @@ export function stringContaining(str: string): StringContaining {
|
|
|
128
139
|
return new StringContaining(str);
|
|
129
140
|
}
|
|
130
141
|
|
|
142
|
+
export function stringNotContaining(str: string): StringContaining {
|
|
143
|
+
return new StringContaining(str, true);
|
|
144
|
+
}
|
|
145
|
+
|
|
131
146
|
export class StringMatching extends AsymmetricMatcher<RegExp> {
|
|
132
|
-
constructor(pattern: string | RegExp) {
|
|
133
|
-
super(new RegExp(pattern));
|
|
147
|
+
constructor(pattern: string | RegExp, inverse = false) {
|
|
148
|
+
super(new RegExp(pattern), inverse);
|
|
134
149
|
}
|
|
135
150
|
|
|
136
151
|
equals(other: string): boolean {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return this.value.test(other);
|
|
152
|
+
const res = typeof other !== "string" ? false : this.value.test(other);
|
|
153
|
+
return this.inverse ? !res : res;
|
|
142
154
|
}
|
|
143
155
|
}
|
|
144
156
|
|
|
145
157
|
export function stringMatching(pattern: string | RegExp): StringMatching {
|
|
146
158
|
return new StringMatching(pattern);
|
|
147
159
|
}
|
|
160
|
+
|
|
161
|
+
export function stringNotMatching(pattern: string | RegExp): StringMatching {
|
|
162
|
+
return new StringMatching(pattern, true);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export class ObjectContaining
|
|
166
|
+
extends AsymmetricMatcher<Record<string, unknown>> {
|
|
167
|
+
constructor(obj: Record<string, unknown>, inverse = false) {
|
|
168
|
+
super(obj, inverse);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
equals(other: Record<string, unknown>): boolean {
|
|
172
|
+
const keys = Object.keys(this.value);
|
|
173
|
+
let res = true;
|
|
174
|
+
|
|
175
|
+
for (const key of keys) {
|
|
176
|
+
if (
|
|
177
|
+
!Object.hasOwn(other, key) ||
|
|
178
|
+
!equal(this.value[key], other[key])
|
|
179
|
+
) {
|
|
180
|
+
res = false;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
return this.inverse ? !res : res;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export function objectContaining(
|
|
189
|
+
obj: Record<string, unknown>,
|
|
190
|
+
): ObjectContaining {
|
|
191
|
+
return new ObjectContaining(obj);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function objectNotContaining(
|
|
195
|
+
obj: Record<string, unknown>,
|
|
196
|
+
): ObjectContaining {
|
|
197
|
+
return new ObjectContaining(obj, true);
|
|
198
|
+
}
|