@goast/typescript 0.4.3 → 0.4.4
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 +52 -52
- package/assets/client/angular/angular-service.utils.ts +82 -82
- package/assets/client/angular/request-builder.ts +377 -377
- package/assets/client/fetch/fetch-client.utils.ts +52 -52
- package/assets/client/k6/request-builder.js +418 -418
- package/assets/stubs/easy-network-stub/easy-network-stub.utils.ts +259 -259
- package/esm/_dnt.test_polyfills.d.ts +29 -0
- package/esm/_dnt.test_polyfills.d.ts.map +1 -0
- package/esm/_dnt.test_polyfills.js +31 -0
- package/esm/_dnt.test_shims.d.ts +6 -0
- package/esm/_dnt.test_shims.d.ts.map +1 -0
- package/esm/_dnt.test_shims.js +61 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +26 -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.11/assertion_error.js +30 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/equal.d.ts +17 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/equal.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/equal.js +183 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/equals.d.ts +35 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/equals.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/equals.js +58 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts +18 -0
- 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.11/false.js +22 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +23 -0
- 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.11/instance_of.js +53 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts +25 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/is_error.js +54 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts +18 -0
- 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.11/match.js +26 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +20 -0
- 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.11/not_instance_of.js +29 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +18 -0
- 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.11/not_match.js +26 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +23 -0
- 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.11/not_strict_equals.js +32 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts +42 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/rejects.js +53 -0
- package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +24 -0
- 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.11/strict_equals.js +57 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +20 -0
- 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.12/_assert_equals.js +29 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +14 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +43 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +17 -0
- 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.12/_assert_not_equals.js +26 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +4 -0
- 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.12/_asymmetric_matchers.d.ts +46 -0
- 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.12/_asymmetric_matchers.js +161 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +6 -0
- 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.12/_build_message.js +29 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +4 -0
- 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.12/_custom_equality_tester.js +11 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +9 -0
- 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.12/_equal.js +191 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +4 -0
- 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.12/_extend.js +11 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +3 -0
- 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.12/_inspect_args.js +12 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +34 -0
- 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 +11 -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.12/_mock_util.js +10 -0
- 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.12/_types.d.ts +843 -0
- 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.12/_utils.d.ts +9 -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.12/_utils.js +218 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +60 -0
- 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.12/expect.js +523 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +29 -0
- 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.12/fn.js +85 -0
- package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +86 -0
- 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.12/mod.js +88 -0
- 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.5/build_message.d.ts +82 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/build_message.js +111 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +140 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff.js +277 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +99 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/diff_str.js +180 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts +2 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/format.js +37 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +159 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/styles.js +207 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts +16 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.5/types.js +2 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts +15 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/_mock_utils.js +35 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +79 -0
- 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.9/_test_suite.js +380 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +738 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/bdd.js +654 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/mock.d.ts +674 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/mock.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/testing/1.0.9/mock.js +1083 -0
- package/esm/src/assets.js +1 -1
- package/esm/src/ast/nodes/argument.test.d.ts +2 -0
- package/esm/src/ast/nodes/argument.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/argument.test.js +34 -0
- package/esm/src/ast/nodes/array-type.test.d.ts +2 -0
- package/esm/src/ast/nodes/array-type.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/array-type.test.js +26 -0
- package/esm/src/ast/nodes/arrow-function.test.d.ts +2 -0
- package/esm/src/ast/nodes/arrow-function.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/arrow-function.test.js +62 -0
- package/esm/src/ast/nodes/class.test.d.ts +2 -0
- package/esm/src/ast/nodes/class.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/class.test.js +150 -0
- package/esm/src/ast/nodes/constructor-parameter.test.d.ts +2 -0
- package/esm/src/ast/nodes/constructor-parameter.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/constructor-parameter.test.js +99 -0
- package/esm/src/ast/nodes/constructor.test.d.ts +2 -0
- package/esm/src/ast/nodes/constructor.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/constructor.test.js +102 -0
- package/esm/src/ast/nodes/decorator.test.d.ts +2 -0
- package/esm/src/ast/nodes/decorator.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/decorator.test.js +47 -0
- package/esm/src/ast/nodes/doc-tag.test.d.ts +2 -0
- package/esm/src/ast/nodes/doc-tag.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/doc-tag.test.js +30 -0
- package/esm/src/ast/nodes/doc.test.d.ts +2 -0
- package/esm/src/ast/nodes/doc.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/doc.test.js +31 -0
- package/esm/src/ast/nodes/enum-value.test.d.ts +2 -0
- package/esm/src/ast/nodes/enum-value.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/enum-value.test.js +52 -0
- package/esm/src/ast/nodes/enum.test.d.ts +2 -0
- package/esm/src/ast/nodes/enum.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/enum.test.js +66 -0
- package/esm/src/ast/nodes/export.test.d.ts +2 -0
- package/esm/src/ast/nodes/export.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/export.test.js +22 -0
- package/esm/src/ast/nodes/function-type.test.d.ts +2 -0
- package/esm/src/ast/nodes/function-type.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/function-type.test.js +48 -0
- package/esm/src/ast/nodes/function.test.d.ts +2 -0
- package/esm/src/ast/nodes/function.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/function.test.js +108 -0
- package/esm/src/ast/nodes/generic-parameter.test.d.ts +2 -0
- package/esm/src/ast/nodes/generic-parameter.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/generic-parameter.test.js +70 -0
- package/esm/src/ast/nodes/indexer.test.d.ts +2 -0
- package/esm/src/ast/nodes/indexer.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/indexer.test.js +32 -0
- package/esm/src/ast/nodes/interface.test.d.ts +2 -0
- package/esm/src/ast/nodes/interface.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/interface.test.js +115 -0
- package/esm/src/ast/nodes/intersection-type.test.d.ts +2 -0
- package/esm/src/ast/nodes/intersection-type.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/intersection-type.test.js +38 -0
- package/esm/src/ast/nodes/method.test.d.ts +2 -0
- package/esm/src/ast/nodes/method.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/method.test.js +148 -0
- package/esm/src/ast/nodes/object-type.test.d.ts +2 -0
- package/esm/src/ast/nodes/object-type.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/object-type.test.js +30 -0
- package/esm/src/ast/nodes/object.test.d.ts +2 -0
- package/esm/src/ast/nodes/object.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/object.test.js +30 -0
- package/esm/src/ast/nodes/parameter.test.d.ts +2 -0
- package/esm/src/ast/nodes/parameter.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/parameter.test.js +71 -0
- package/esm/src/ast/nodes/property-accessor.test.d.ts +2 -0
- package/esm/src/ast/nodes/property-accessor.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/property-accessor.test.js +102 -0
- package/esm/src/ast/nodes/property.test.d.ts +2 -0
- package/esm/src/ast/nodes/property.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/property.test.js +89 -0
- package/esm/src/ast/nodes/reference.test.d.ts +2 -0
- package/esm/src/ast/nodes/reference.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/reference.test.js +31 -0
- package/esm/src/ast/nodes/string.test.d.ts +2 -0
- package/esm/src/ast/nodes/string.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/string.test.js +28 -0
- package/esm/src/ast/nodes/tuple.test.d.ts +2 -0
- package/esm/src/ast/nodes/tuple.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/tuple.test.js +33 -0
- package/esm/src/ast/nodes/type-alias.test.d.ts +2 -0
- package/esm/src/ast/nodes/type-alias.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/type-alias.test.js +27 -0
- package/esm/src/ast/nodes/union-type.test.d.ts +2 -0
- package/esm/src/ast/nodes/union-type.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/union-type.test.js +38 -0
- package/esm/src/ast/nodes/variable.test.d.ts +2 -0
- package/esm/src/ast/nodes/variable.test.d.ts.map +1 -0
- package/esm/src/ast/nodes/variable.test.js +38 -0
- package/esm/src/generators/services/angular-services/angular-service-generator.js +9 -9
- package/esm/src/generators/services/easy-network-stub/easy-network-stub-generator.js +9 -9
- package/esm/src/generators/services/fetch-clients/fetch-client-generator.js +2 -2
- package/esm/src/generators/services/k6-clients/k6-client-generator.js +6 -6
- package/esm/src/import-collection.test.d.ts +2 -0
- package/esm/src/import-collection.test.d.ts.map +1 -0
- package/esm/src/import-collection.test.js +64 -0
- package/esm/tests/openapi-models.test.d.ts +2 -0
- package/esm/tests/openapi-models.test.d.ts.map +1 -0
- package/esm/tests/openapi-models.test.js +45 -0
- package/package.json +2 -2
- package/script/_dnt.test_polyfills.d.ts +29 -0
- package/script/_dnt.test_polyfills.d.ts.map +1 -0
- package/script/_dnt.test_polyfills.js +32 -0
- package/script/_dnt.test_shims.d.ts +6 -0
- package/script/_dnt.test_shims.d.ts.map +1 -0
- package/script/_dnt.test_shims.js +65 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +26 -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.11/assertion_error.js +34 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/equal.d.ts +17 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/equal.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/equal.js +187 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/equals.d.ts +35 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/equals.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/equals.js +61 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts +18 -0
- 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.11/false.js +25 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts +23 -0
- 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.11/instance_of.js +56 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts +25 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/is_error.js +57 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts +18 -0
- 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.11/match.js +29 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts +20 -0
- 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.11/not_instance_of.js +32 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts +18 -0
- 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.11/not_match.js +29 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts +23 -0
- 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.11/not_strict_equals.js +35 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts +42 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/rejects.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/rejects.js +56 -0
- package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts +24 -0
- 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.11/strict_equals.js +60 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts +20 -0
- 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.12/_assert_equals.js +32 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts +14 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.js +46 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts +17 -0
- 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.12/_assert_not_equals.js +29 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts +4 -0
- 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.12/_assertions.js +18 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts +46 -0
- 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.12/_asymmetric_matchers.js +183 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts +6 -0
- 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.12/_build_message.js +33 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts +4 -0
- 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.12/_custom_equality_tester.js +15 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts +9 -0
- 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.12/_equal.js +194 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts +4 -0
- 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.12/_extend.js +15 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts +3 -0
- 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.12/_inspect_args.js +17 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts +34 -0
- 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 +11 -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.12/_mock_util.js +14 -0
- 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.12/_types.d.ts +843 -0
- 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.12/_types.js +4 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts +9 -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.12/_utils.js +226 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts +60 -0
- 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.12/expect.js +527 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts +29 -0
- 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.12/fn.js +88 -0
- package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts +86 -0
- 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.12/mod.js +91 -0
- 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.5/build_message.d.ts +82 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/build_message.js +116 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts +140 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff.js +284 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts +99 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/diff_str.js +186 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts +2 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/format.js +41 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts +159 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/styles.js +220 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts +16 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/1.0.5/types.js +3 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts +15 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/_mock_utils.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/_mock_utils.js +41 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts +79 -0
- 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.9/_test_suite.js +385 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts +738 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/bdd.js +665 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/mock.d.ts +674 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/mock.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/testing/1.0.9/mock.js +1102 -0
- package/script/src/assets.js +1 -1
- package/script/src/ast/nodes/argument.test.d.ts +2 -0
- package/script/src/ast/nodes/argument.test.d.ts.map +1 -0
- package/script/src/ast/nodes/argument.test.js +36 -0
- package/script/src/ast/nodes/array-type.test.d.ts +2 -0
- package/script/src/ast/nodes/array-type.test.d.ts.map +1 -0
- package/script/src/ast/nodes/array-type.test.js +28 -0
- package/script/src/ast/nodes/arrow-function.test.d.ts +2 -0
- package/script/src/ast/nodes/arrow-function.test.d.ts.map +1 -0
- package/script/src/ast/nodes/arrow-function.test.js +64 -0
- package/script/src/ast/nodes/class.test.d.ts +2 -0
- package/script/src/ast/nodes/class.test.d.ts.map +1 -0
- package/script/src/ast/nodes/class.test.js +152 -0
- package/script/src/ast/nodes/constructor-parameter.test.d.ts +2 -0
- package/script/src/ast/nodes/constructor-parameter.test.d.ts.map +1 -0
- package/script/src/ast/nodes/constructor-parameter.test.js +101 -0
- package/script/src/ast/nodes/constructor.test.d.ts +2 -0
- package/script/src/ast/nodes/constructor.test.d.ts.map +1 -0
- package/script/src/ast/nodes/constructor.test.js +104 -0
- package/script/src/ast/nodes/decorator.test.d.ts +2 -0
- package/script/src/ast/nodes/decorator.test.d.ts.map +1 -0
- package/script/src/ast/nodes/decorator.test.js +49 -0
- package/script/src/ast/nodes/doc-tag.test.d.ts +2 -0
- package/script/src/ast/nodes/doc-tag.test.d.ts.map +1 -0
- package/script/src/ast/nodes/doc-tag.test.js +32 -0
- package/script/src/ast/nodes/doc.test.d.ts +2 -0
- package/script/src/ast/nodes/doc.test.d.ts.map +1 -0
- package/script/src/ast/nodes/doc.test.js +33 -0
- package/script/src/ast/nodes/enum-value.test.d.ts +2 -0
- package/script/src/ast/nodes/enum-value.test.d.ts.map +1 -0
- package/script/src/ast/nodes/enum-value.test.js +54 -0
- package/script/src/ast/nodes/enum.test.d.ts +2 -0
- package/script/src/ast/nodes/enum.test.d.ts.map +1 -0
- package/script/src/ast/nodes/enum.test.js +68 -0
- package/script/src/ast/nodes/export.test.d.ts +2 -0
- package/script/src/ast/nodes/export.test.d.ts.map +1 -0
- package/script/src/ast/nodes/export.test.js +24 -0
- package/script/src/ast/nodes/function-type.test.d.ts +2 -0
- package/script/src/ast/nodes/function-type.test.d.ts.map +1 -0
- package/script/src/ast/nodes/function-type.test.js +50 -0
- package/script/src/ast/nodes/function.test.d.ts +2 -0
- package/script/src/ast/nodes/function.test.d.ts.map +1 -0
- package/script/src/ast/nodes/function.test.js +110 -0
- package/script/src/ast/nodes/generic-parameter.test.d.ts +2 -0
- package/script/src/ast/nodes/generic-parameter.test.d.ts.map +1 -0
- package/script/src/ast/nodes/generic-parameter.test.js +72 -0
- package/script/src/ast/nodes/indexer.test.d.ts +2 -0
- package/script/src/ast/nodes/indexer.test.d.ts.map +1 -0
- package/script/src/ast/nodes/indexer.test.js +34 -0
- package/script/src/ast/nodes/interface.test.d.ts +2 -0
- package/script/src/ast/nodes/interface.test.d.ts.map +1 -0
- package/script/src/ast/nodes/interface.test.js +117 -0
- package/script/src/ast/nodes/intersection-type.test.d.ts +2 -0
- package/script/src/ast/nodes/intersection-type.test.d.ts.map +1 -0
- package/script/src/ast/nodes/intersection-type.test.js +40 -0
- package/script/src/ast/nodes/method.test.d.ts +2 -0
- package/script/src/ast/nodes/method.test.d.ts.map +1 -0
- package/script/src/ast/nodes/method.test.js +150 -0
- package/script/src/ast/nodes/object-type.test.d.ts +2 -0
- package/script/src/ast/nodes/object-type.test.d.ts.map +1 -0
- package/script/src/ast/nodes/object-type.test.js +32 -0
- package/script/src/ast/nodes/object.test.d.ts +2 -0
- package/script/src/ast/nodes/object.test.d.ts.map +1 -0
- package/script/src/ast/nodes/object.test.js +32 -0
- package/script/src/ast/nodes/parameter.test.d.ts +2 -0
- package/script/src/ast/nodes/parameter.test.d.ts.map +1 -0
- package/script/src/ast/nodes/parameter.test.js +73 -0
- package/script/src/ast/nodes/property-accessor.test.d.ts +2 -0
- package/script/src/ast/nodes/property-accessor.test.d.ts.map +1 -0
- package/script/src/ast/nodes/property-accessor.test.js +104 -0
- package/script/src/ast/nodes/property.test.d.ts +2 -0
- package/script/src/ast/nodes/property.test.d.ts.map +1 -0
- package/script/src/ast/nodes/property.test.js +91 -0
- package/script/src/ast/nodes/reference.test.d.ts +2 -0
- package/script/src/ast/nodes/reference.test.d.ts.map +1 -0
- package/script/src/ast/nodes/reference.test.js +33 -0
- package/script/src/ast/nodes/string.test.d.ts +2 -0
- package/script/src/ast/nodes/string.test.d.ts.map +1 -0
- package/script/src/ast/nodes/string.test.js +30 -0
- package/script/src/ast/nodes/tuple.test.d.ts +2 -0
- package/script/src/ast/nodes/tuple.test.d.ts.map +1 -0
- package/script/src/ast/nodes/tuple.test.js +35 -0
- package/script/src/ast/nodes/type-alias.test.d.ts +2 -0
- package/script/src/ast/nodes/type-alias.test.d.ts.map +1 -0
- package/script/src/ast/nodes/type-alias.test.js +29 -0
- package/script/src/ast/nodes/union-type.test.d.ts +2 -0
- package/script/src/ast/nodes/union-type.test.d.ts.map +1 -0
- package/script/src/ast/nodes/union-type.test.js +40 -0
- package/script/src/ast/nodes/variable.test.d.ts +2 -0
- package/script/src/ast/nodes/variable.test.d.ts.map +1 -0
- package/script/src/ast/nodes/variable.test.js +40 -0
- package/script/src/generators/services/angular-services/angular-service-generator.js +9 -9
- package/script/src/generators/services/easy-network-stub/easy-network-stub-generator.js +9 -9
- package/script/src/generators/services/fetch-clients/fetch-client-generator.js +2 -2
- package/script/src/generators/services/k6-clients/k6-client-generator.js +6 -6
- package/script/src/import-collection.test.d.ts +2 -0
- package/script/src/import-collection.test.d.ts.map +1 -0
- package/script/src/import-collection.test.js +66 -0
- package/script/tests/openapi-models.test.d.ts +2 -0
- package/script/tests/openapi-models.test.d.ts.map +1 -0
- package/script/tests/openapi-models.test.js +48 -0
- package/src/_dnt.test_polyfills.ts +70 -0
- package/src/_dnt.test_shims.ts +64 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/assertion_error.ts +31 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/equal.ts +210 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/equals.ts +65 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/false.ts +26 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/instance_of.ts +64 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/is_error.ts +65 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/match.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/not_instance_of.ts +33 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/not_match.ts +30 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.ts +42 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/rejects.ts +123 -0
- package/src/deps/jsr.io/@std/assert/1.0.11/strict_equals.ts +67 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_assert_equals.ts +38 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.ts +54 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.ts +35 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts +18 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.ts +198 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_build_message.ts +51 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.ts +19 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_equal.ts +230 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_extend.ts +16 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_inspect_args.ts +15 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_matchers.ts +1028 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_mock_util.ts +22 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts +15 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_types.ts +923 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/_utils.ts +283 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/expect.ts +620 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/fn.ts +91 -0
- package/src/deps/jsr.io/@std/expect/1.0.12/mod.ts +89 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +214 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/build_message.ts +134 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/diff.ts +317 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/diff_str.ts +204 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/format.ts +39 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/styles.ts +233 -0
- package/src/deps/jsr.io/@std/internal/1.0.5/types.ts +18 -0
- package/src/deps/jsr.io/@std/testing/1.0.9/_mock_utils.ts +43 -0
- package/src/deps/jsr.io/@std/testing/1.0.9/_test_suite.ts +448 -0
- package/src/deps/jsr.io/@std/testing/1.0.9/bdd.ts +1288 -0
- package/src/deps/jsr.io/@std/testing/1.0.9/mock.ts +1807 -0
- package/src/mod.ts +7 -0
- package/src/src/assets.ts +9 -0
- package/src/src/ast/_index.ts +54 -0
- package/src/src/ast/common.ts +1 -0
- package/src/src/ast/index.ts +1 -0
- package/src/src/ast/node.ts +10 -0
- package/src/src/ast/nodes/argument.test.ts +43 -0
- package/src/src/ast/nodes/argument.ts +40 -0
- package/src/src/ast/nodes/array-type.test.ts +34 -0
- package/src/src/ast/nodes/array-type.ts +49 -0
- package/src/src/ast/nodes/arrow-function.test.ts +79 -0
- package/src/src/ast/nodes/arrow-function.ts +91 -0
- package/src/src/ast/nodes/call.ts +55 -0
- package/src/src/ast/nodes/class.test.ts +185 -0
- package/src/src/ast/nodes/class.ts +133 -0
- package/src/src/ast/nodes/constructor-parameter.test.ts +122 -0
- package/src/src/ast/nodes/constructor-parameter.ts +70 -0
- package/src/src/ast/nodes/constructor.test.ts +131 -0
- package/src/src/ast/nodes/constructor.ts +77 -0
- package/src/src/ast/nodes/decorator.test.ts +59 -0
- package/src/src/ast/nodes/decorator.ts +76 -0
- package/src/src/ast/nodes/doc-tag.test.ts +40 -0
- package/src/src/ast/nodes/doc-tag.ts +291 -0
- package/src/src/ast/nodes/doc.test.ts +40 -0
- package/src/src/ast/nodes/doc.ts +102 -0
- package/src/src/ast/nodes/enum-value.test.ts +66 -0
- package/src/src/ast/nodes/enum-value.ts +72 -0
- package/src/src/ast/nodes/enum.test.ts +85 -0
- package/src/src/ast/nodes/enum.ts +77 -0
- package/src/src/ast/nodes/export.test.ts +29 -0
- package/src/src/ast/nodes/export.ts +54 -0
- package/src/src/ast/nodes/function-type.test.ts +61 -0
- package/src/src/ast/nodes/function-type.ts +60 -0
- package/src/src/ast/nodes/function.test.ts +135 -0
- package/src/src/ast/nodes/function.ts +107 -0
- package/src/src/ast/nodes/generic-parameter.test.ts +86 -0
- package/src/src/ast/nodes/generic-parameter.ts +71 -0
- package/src/src/ast/nodes/indexer.test.ts +42 -0
- package/src/src/ast/nodes/indexer.ts +60 -0
- package/src/src/ast/nodes/interface.test.ts +142 -0
- package/src/src/ast/nodes/interface.ts +117 -0
- package/src/src/ast/nodes/intersection-type.test.ts +52 -0
- package/src/src/ast/nodes/intersection-type.ts +67 -0
- package/src/src/ast/nodes/lookup-type.ts +53 -0
- package/src/src/ast/nodes/method.test.ts +185 -0
- package/src/src/ast/nodes/method.ts +138 -0
- package/src/src/ast/nodes/object-type.test.ts +40 -0
- package/src/src/ast/nodes/object-type.ts +52 -0
- package/src/src/ast/nodes/object.test.ts +40 -0
- package/src/src/ast/nodes/object.ts +48 -0
- package/src/src/ast/nodes/parameter.test.ts +88 -0
- package/src/src/ast/nodes/parameter.ts +85 -0
- package/src/src/ast/nodes/property-accessor.test.ts +132 -0
- package/src/src/ast/nodes/property-accessor.ts +173 -0
- package/src/src/ast/nodes/property.test.ts +113 -0
- package/src/src/ast/nodes/property.ts +192 -0
- package/src/src/ast/nodes/reference.test.ts +42 -0
- package/src/src/ast/nodes/reference.ts +194 -0
- package/src/src/ast/nodes/string.test.ts +35 -0
- package/src/src/ast/nodes/string.ts +49 -0
- package/src/src/ast/nodes/tuple.test.ts +45 -0
- package/src/src/ast/nodes/tuple.ts +53 -0
- package/src/src/ast/nodes/type-alias.test.ts +35 -0
- package/src/src/ast/nodes/type-alias.ts +75 -0
- package/src/src/ast/nodes/typeof.ts +42 -0
- package/src/src/ast/nodes/types.ts +40 -0
- package/src/src/ast/nodes/union-type.test.ts +50 -0
- package/src/src/ast/nodes/union-type.ts +62 -0
- package/src/src/ast/nodes/variable.test.ts +49 -0
- package/src/src/ast/nodes/variable.ts +73 -0
- package/src/src/ast/references/angular.ts +24 -0
- package/src/src/ast/references/easy-network-stub.ts +21 -0
- package/src/src/ast/references/index.ts +5 -0
- package/src/src/ast/references/k6.ts +8 -0
- package/src/src/ast/references/rxjs.ts +7 -0
- package/src/src/ast/references/typescript.ts +35 -0
- package/src/src/ast/utils/get-type-script-builder-options.ts +19 -0
- package/src/src/ast/utils/to-ts-node.ts +27 -0
- package/src/src/ast/utils/write-ts-generic-parameters.ts +25 -0
- package/src/src/ast/utils/write-ts-members.ts +28 -0
- package/src/src/ast/utils/write-ts-nodes.ts +35 -0
- package/src/src/ast/utils/write-ts-parameters.ts +25 -0
- package/src/src/common-results.ts +26 -0
- package/src/src/config.ts +89 -0
- package/src/src/file-builder.ts +136 -0
- package/src/src/generators/file-generator.ts +15 -0
- package/src/src/generators/index.ts +6 -0
- package/src/src/generators/models/index.ts +3 -0
- package/src/src/generators/models/model-generator.ts +469 -0
- package/src/src/generators/models/models-generator.ts +108 -0
- package/src/src/generators/models/models.ts +112 -0
- package/src/src/generators/services/angular-services/angular-service-generator.ts +404 -0
- package/src/src/generators/services/angular-services/angular-services-generator.ts +295 -0
- package/src/src/generators/services/angular-services/index.ts +3 -0
- package/src/src/generators/services/angular-services/models.ts +270 -0
- package/src/src/generators/services/angular-services/refs.ts +54 -0
- package/src/src/generators/services/easy-network-stub/easy-network-stub-generator.ts +242 -0
- package/src/src/generators/services/easy-network-stub/easy-network-stubs-generator.ts +211 -0
- package/src/src/generators/services/easy-network-stub/index.ts +3 -0
- package/src/src/generators/services/easy-network-stub/models.ts +124 -0
- package/src/src/generators/services/easy-network-stub/refs.ts +45 -0
- package/src/src/generators/services/fetch-clients/fetch-client-generator.ts +267 -0
- package/src/src/generators/services/fetch-clients/fetch-clients-generator.ts +163 -0
- package/src/src/generators/services/fetch-clients/index.ts +3 -0
- package/src/src/generators/services/fetch-clients/models.ts +130 -0
- package/src/src/generators/services/fetch-clients/refs.ts +21 -0
- package/src/src/generators/services/k6-clients/index.ts +3 -0
- package/src/src/generators/services/k6-clients/k6-client-generator.ts +409 -0
- package/src/src/generators/services/k6-clients/k6-clients-generator.ts +165 -0
- package/src/src/generators/services/k6-clients/models.ts +241 -0
- package/src/src/generators/services/k6-clients/refs.ts +15 -0
- package/src/src/import-collection.test.ts +78 -0
- package/src/src/import-collection.ts +236 -0
- package/src/src/utils.ts +72 -0
- package/src/tests/openapi-models.test.ts +64 -0
- package/test_runner.js +239 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertNotMatch = assertNotMatch;
|
|
4
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
+
/**
|
|
8
|
+
* Make an assertion that `actual` not match RegExp `expected`. If match
|
|
9
|
+
* then throw.
|
|
10
|
+
*
|
|
11
|
+
* @example Usage
|
|
12
|
+
* ```ts ignore
|
|
13
|
+
* import { assertNotMatch } from "@std/assert";
|
|
14
|
+
*
|
|
15
|
+
* assertNotMatch("Denosaurus", /Raptor/); // Doesn't throw
|
|
16
|
+
* assertNotMatch("Raptor", /Raptor/); // Throws
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* @param actual The actual value to match.
|
|
20
|
+
* @param expected The expected value to not match.
|
|
21
|
+
* @param msg The optional message to display if the assertion fails.
|
|
22
|
+
*/
|
|
23
|
+
function assertNotMatch(actual, expected, msg) {
|
|
24
|
+
if (!expected.test(actual))
|
|
25
|
+
return;
|
|
26
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
27
|
+
msg = `Expected actual: "${actual}" to not match: "${expected}"${msgSuffix}`;
|
|
28
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
29
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` and `expected` are not strictly equal, using
|
|
3
|
+
* {@linkcode Object.is} for equality comparison. If the values are strictly
|
|
4
|
+
* equal then throw.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
* ```ts ignore
|
|
8
|
+
* import { assertNotStrictEquals } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* assertNotStrictEquals(1, 1); // Throws
|
|
11
|
+
* assertNotStrictEquals(1, 2); // Doesn't throw
|
|
12
|
+
*
|
|
13
|
+
* assertNotStrictEquals(0, 0); // Throws
|
|
14
|
+
* assertNotStrictEquals(0, -0); // Doesn't throw
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @typeParam T The type of the values to compare.
|
|
18
|
+
* @param actual The actual value to compare.
|
|
19
|
+
* @param expected The expected value to compare.
|
|
20
|
+
* @param msg The optional message to display if the assertion fails.
|
|
21
|
+
*/
|
|
22
|
+
export declare function assertNotStrictEquals<T>(actual: T, expected: T, msg?: string): void;
|
|
23
|
+
//# sourceMappingURL=not_strict_equals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"not_strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,QAYb"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertNotStrictEquals = assertNotStrictEquals;
|
|
4
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
+
const format_js_1 = require("../../internal/1.0.5/format.js");
|
|
8
|
+
/**
|
|
9
|
+
* Make an assertion that `actual` and `expected` are not strictly equal, using
|
|
10
|
+
* {@linkcode Object.is} for equality comparison. If the values are strictly
|
|
11
|
+
* equal then throw.
|
|
12
|
+
*
|
|
13
|
+
* @example Usage
|
|
14
|
+
* ```ts ignore
|
|
15
|
+
* import { assertNotStrictEquals } from "@std/assert";
|
|
16
|
+
*
|
|
17
|
+
* assertNotStrictEquals(1, 1); // Throws
|
|
18
|
+
* assertNotStrictEquals(1, 2); // Doesn't throw
|
|
19
|
+
*
|
|
20
|
+
* assertNotStrictEquals(0, 0); // Throws
|
|
21
|
+
* assertNotStrictEquals(0, -0); // Doesn't throw
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @typeParam T The type of the values to compare.
|
|
25
|
+
* @param actual The actual value to compare.
|
|
26
|
+
* @param expected The expected value to compare.
|
|
27
|
+
* @param msg The optional message to display if the assertion fails.
|
|
28
|
+
*/
|
|
29
|
+
function assertNotStrictEquals(actual, expected, msg) {
|
|
30
|
+
if (!Object.is(actual, expected)) {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
34
|
+
throw new assertion_error_js_1.AssertionError(`Expected "actual" to not be strictly equal to: ${(0, format_js_1.format)(actual)}${msgSuffix}\n`);
|
|
35
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executes a function which returns a promise, expecting it to reject.
|
|
3
|
+
*
|
|
4
|
+
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
|
5
|
+
*
|
|
6
|
+
* @example Usage
|
|
7
|
+
* ```ts ignore
|
|
8
|
+
* import { assertRejects } from "@std/assert";
|
|
9
|
+
*
|
|
10
|
+
* await assertRejects(async () => Promise.reject(new Error())); // Doesn't throw
|
|
11
|
+
* await assertRejects(async () => console.log("Hello world")); // Throws
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* @param fn The function to execute.
|
|
15
|
+
* @param msg The optional message to display if the assertion fails.
|
|
16
|
+
* @returns The promise which resolves to the thrown error.
|
|
17
|
+
*/
|
|
18
|
+
export declare function assertRejects(fn: () => PromiseLike<unknown>, msg?: string): Promise<unknown>;
|
|
19
|
+
/**
|
|
20
|
+
* Executes a function which returns a promise, expecting it to reject.
|
|
21
|
+
* If it does not, then it throws. An error class and a string that should be
|
|
22
|
+
* included in the error message can also be asserted.
|
|
23
|
+
*
|
|
24
|
+
* To assert that a synchronous function throws, use {@linkcode assertThrows}.
|
|
25
|
+
*
|
|
26
|
+
* @example Usage
|
|
27
|
+
* ```ts ignore
|
|
28
|
+
* import { assertRejects } from "@std/assert";
|
|
29
|
+
*
|
|
30
|
+
* await assertRejects(async () => Promise.reject(new Error()), Error); // Doesn't throw
|
|
31
|
+
* await assertRejects(async () => Promise.reject(new Error()), SyntaxError); // Throws
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @typeParam E The error class to assert.
|
|
35
|
+
* @param fn The function to execute.
|
|
36
|
+
* @param ErrorClass The error class to assert.
|
|
37
|
+
* @param msgIncludes The string that should be included in the error message.
|
|
38
|
+
* @param msg The optional message to display if the assertion fails.
|
|
39
|
+
* @returns The promise which resolves to the thrown error.
|
|
40
|
+
*/
|
|
41
|
+
export declare function assertRejects<E extends Error = Error>(fn: () => PromiseLike<unknown>, ErrorClass: abstract new (...args: any[]) => E, msgIncludes?: string, msg?: string): Promise<E>;
|
|
42
|
+
//# sourceMappingURL=rejects.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rejects.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.11/rejects.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAC9B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAAC;AACpB;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,EAAE,EAAE,MAAM,WAAW,CAAC,OAAO,CAAC,EAE9B,UAAU,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC9C,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertRejects = assertRejects;
|
|
4
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
7
|
+
const is_error_js_1 = require("./is_error.js");
|
|
8
|
+
async function assertRejects(fn, errorClassOrMsg, msgIncludesOrMsg, msg) {
|
|
9
|
+
// deno-lint-ignore no-explicit-any
|
|
10
|
+
let ErrorClass;
|
|
11
|
+
let msgIncludes;
|
|
12
|
+
let err;
|
|
13
|
+
if (typeof errorClassOrMsg !== "string") {
|
|
14
|
+
if (errorClassOrMsg === undefined ||
|
|
15
|
+
errorClassOrMsg.prototype instanceof Error ||
|
|
16
|
+
errorClassOrMsg.prototype === Error.prototype) {
|
|
17
|
+
ErrorClass = errorClassOrMsg;
|
|
18
|
+
msgIncludes = msgIncludesOrMsg;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
msg = errorClassOrMsg;
|
|
23
|
+
}
|
|
24
|
+
let doesThrow = false;
|
|
25
|
+
let isPromiseReturned = false;
|
|
26
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
27
|
+
try {
|
|
28
|
+
const possiblePromise = fn();
|
|
29
|
+
if (possiblePromise &&
|
|
30
|
+
typeof possiblePromise === "object" &&
|
|
31
|
+
typeof possiblePromise.then === "function") {
|
|
32
|
+
isPromiseReturned = true;
|
|
33
|
+
await possiblePromise;
|
|
34
|
+
}
|
|
35
|
+
else {
|
|
36
|
+
throw new Error();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (error) {
|
|
40
|
+
if (!isPromiseReturned) {
|
|
41
|
+
throw new assertion_error_js_1.AssertionError(`Function throws when expected to reject${msgSuffix}`);
|
|
42
|
+
}
|
|
43
|
+
if (ErrorClass) {
|
|
44
|
+
if (!(error instanceof Error)) {
|
|
45
|
+
throw new assertion_error_js_1.AssertionError(`A non-Error object was rejected${msgSuffix}`);
|
|
46
|
+
}
|
|
47
|
+
(0, is_error_js_1.assertIsError)(error, ErrorClass, msgIncludes, msg);
|
|
48
|
+
}
|
|
49
|
+
err = error;
|
|
50
|
+
doesThrow = true;
|
|
51
|
+
}
|
|
52
|
+
if (!doesThrow) {
|
|
53
|
+
throw new assertion_error_js_1.AssertionError(`Expected function to reject${msgSuffix}`);
|
|
54
|
+
}
|
|
55
|
+
return err;
|
|
56
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `actual` and `expected` are strictly equal, using
|
|
3
|
+
* {@linkcode Object.is} for equality comparison. If not, then throw.
|
|
4
|
+
*
|
|
5
|
+
* @example Usage
|
|
6
|
+
* ```ts ignore
|
|
7
|
+
* import { assertStrictEquals } from "@std/assert";
|
|
8
|
+
*
|
|
9
|
+
* const a = {};
|
|
10
|
+
* const b = a;
|
|
11
|
+
* assertStrictEquals(a, b); // Doesn't throw
|
|
12
|
+
*
|
|
13
|
+
* const c = {};
|
|
14
|
+
* const d = {};
|
|
15
|
+
* assertStrictEquals(c, d); // Throws
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @typeParam T The type of the expected value.
|
|
19
|
+
* @param actual The actual value to compare.
|
|
20
|
+
* @param expected The expected value to compare.
|
|
21
|
+
* @param msg The optional message to display if the assertion fails.
|
|
22
|
+
*/
|
|
23
|
+
export declare function assertStrictEquals<T>(actual: unknown, expected: T, msg?: string): asserts actual is T;
|
|
24
|
+
//# sourceMappingURL=strict_equals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strict_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.11/strict_equals.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAClC,MAAM,EAAE,OAAO,EACf,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,CAAC,CA+BrB"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertStrictEquals = assertStrictEquals;
|
|
4
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const build_message_js_1 = require("../../internal/1.0.5/build_message.js");
|
|
7
|
+
const diff_js_1 = require("../../internal/1.0.5/diff.js");
|
|
8
|
+
const diff_str_js_1 = require("../../internal/1.0.5/diff_str.js");
|
|
9
|
+
const format_js_1 = require("../../internal/1.0.5/format.js");
|
|
10
|
+
const styles_js_1 = require("../../internal/1.0.5/styles.js");
|
|
11
|
+
const assertion_error_js_1 = require("./assertion_error.js");
|
|
12
|
+
/**
|
|
13
|
+
* Make an assertion that `actual` and `expected` are strictly equal, using
|
|
14
|
+
* {@linkcode Object.is} for equality comparison. If not, then throw.
|
|
15
|
+
*
|
|
16
|
+
* @example Usage
|
|
17
|
+
* ```ts ignore
|
|
18
|
+
* import { assertStrictEquals } from "@std/assert";
|
|
19
|
+
*
|
|
20
|
+
* const a = {};
|
|
21
|
+
* const b = a;
|
|
22
|
+
* assertStrictEquals(a, b); // Doesn't throw
|
|
23
|
+
*
|
|
24
|
+
* const c = {};
|
|
25
|
+
* const d = {};
|
|
26
|
+
* assertStrictEquals(c, d); // Throws
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @typeParam T The type of the expected value.
|
|
30
|
+
* @param actual The actual value to compare.
|
|
31
|
+
* @param expected The expected value to compare.
|
|
32
|
+
* @param msg The optional message to display if the assertion fails.
|
|
33
|
+
*/
|
|
34
|
+
function assertStrictEquals(actual, expected, msg) {
|
|
35
|
+
if (Object.is(actual, expected)) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const msgSuffix = msg ? `: ${msg}` : ".";
|
|
39
|
+
let message;
|
|
40
|
+
const actualString = (0, format_js_1.format)(actual);
|
|
41
|
+
const expectedString = (0, format_js_1.format)(expected);
|
|
42
|
+
if (actualString === expectedString) {
|
|
43
|
+
const withOffset = actualString
|
|
44
|
+
.split("\n")
|
|
45
|
+
.map((l) => ` ${l}`)
|
|
46
|
+
.join("\n");
|
|
47
|
+
message =
|
|
48
|
+
`Values have the same structure but are not reference-equal${msgSuffix}\n\n${(0, styles_js_1.red)(withOffset)}\n`;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const stringDiff = (typeof actual === "string") &&
|
|
52
|
+
(typeof expected === "string");
|
|
53
|
+
const diffResult = stringDiff
|
|
54
|
+
? (0, diff_str_js_1.diffStr)(actual, expected)
|
|
55
|
+
: (0, diff_js_1.diff)(actualString.split("\n"), expectedString.split("\n"));
|
|
56
|
+
const diffMsg = (0, build_message_js_1.buildMessage)(diffResult, { stringDiff }).join("\n");
|
|
57
|
+
message = `Values are not strictly equal${msgSuffix}\n${diffMsg}`;
|
|
58
|
+
}
|
|
59
|
+
throw new assertion_error_js_1.AssertionError(message);
|
|
60
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { EqualOptions } from "./_types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
4
|
+
* deeply equal, then throw.
|
|
5
|
+
*
|
|
6
|
+
* Type parameter can be specified to ensure values under comparison have the
|
|
7
|
+
* same type.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts ignore
|
|
11
|
+
* import { assertEquals } from "@std/assert";
|
|
12
|
+
*
|
|
13
|
+
* assertEquals("world", "world"); // Doesn't throw
|
|
14
|
+
* assertEquals("hello", "world"); // Throws
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* Note: formatter option is experimental and may be removed in the future.
|
|
18
|
+
*/
|
|
19
|
+
export declare function assertEquals<T>(actual: T, expected: T, options?: EqualOptions): void;
|
|
20
|
+
//# sourceMappingURL=_assert_equals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_assert_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_assert_equals.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,OAAO,CAAC,EAAE,YAAY,QAQvB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.assertEquals = assertEquals;
|
|
5
|
+
// This file is copied from `std/assert`.
|
|
6
|
+
const assertion_error_js_1 = require("../../assert/1.0.11/assertion_error.js");
|
|
7
|
+
const _build_message_js_1 = require("./_build_message.js");
|
|
8
|
+
const _equal_js_1 = require("./_equal.js");
|
|
9
|
+
/**
|
|
10
|
+
* Make an assertion that `actual` and `expected` are equal, deeply. If not
|
|
11
|
+
* deeply equal, then throw.
|
|
12
|
+
*
|
|
13
|
+
* Type parameter can be specified to ensure values under comparison have the
|
|
14
|
+
* same type.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts ignore
|
|
18
|
+
* import { assertEquals } from "@std/assert";
|
|
19
|
+
*
|
|
20
|
+
* assertEquals("world", "world"); // Doesn't throw
|
|
21
|
+
* assertEquals("hello", "world"); // Throws
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* Note: formatter option is experimental and may be removed in the future.
|
|
25
|
+
*/
|
|
26
|
+
function assertEquals(actual, expected, options) {
|
|
27
|
+
if ((0, _equal_js_1.equal)(actual, expected, options)) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const message = (0, _build_message_js_1.buildEqualErrorMessage)(actual, expected, options !== null && options !== void 0 ? options : {});
|
|
31
|
+
throw new assertion_error_js_1.AssertionError(message);
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Make an assertion that `error` is an `Error`.
|
|
3
|
+
* If not then an error will be thrown.
|
|
4
|
+
* An error class and a string that should be included in the
|
|
5
|
+
* error message can also be asserted.
|
|
6
|
+
*
|
|
7
|
+
* @typeParam E The type of the error to assert.
|
|
8
|
+
* @param error The error to assert.
|
|
9
|
+
* @param ErrorClass The optional error class to assert.
|
|
10
|
+
* @param msgMatches The optional string or RegExp to assert in the error message.
|
|
11
|
+
* @param msg The optional message to display if the assertion fails.
|
|
12
|
+
*/
|
|
13
|
+
export declare function assertIsError<E extends Error = Error>(error: unknown, ErrorClass?: abstract new (...args: any[]) => E, msgMatches?: string | RegExp, msg?: string): asserts error is E;
|
|
14
|
+
//# sourceMappingURL=_assert_is_error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_assert_is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;GAWG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CA8BpB"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertIsError = assertIsError;
|
|
4
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
5
|
+
// This module is browser compatible.
|
|
6
|
+
const assertion_error_js_1 = require("../../assert/1.0.11/assertion_error.js");
|
|
7
|
+
const styles_js_1 = require("../../internal/1.0.5/styles.js");
|
|
8
|
+
/**
|
|
9
|
+
* Make an assertion that `error` is an `Error`.
|
|
10
|
+
* If not then an error will be thrown.
|
|
11
|
+
* An error class and a string that should be included in the
|
|
12
|
+
* error message can also be asserted.
|
|
13
|
+
*
|
|
14
|
+
* @typeParam E The type of the error to assert.
|
|
15
|
+
* @param error The error to assert.
|
|
16
|
+
* @param ErrorClass The optional error class to assert.
|
|
17
|
+
* @param msgMatches The optional string or RegExp to assert in the error message.
|
|
18
|
+
* @param msg The optional message to display if the assertion fails.
|
|
19
|
+
*/
|
|
20
|
+
function assertIsError(error,
|
|
21
|
+
// deno-lint-ignore no-explicit-any
|
|
22
|
+
ErrorClass, msgMatches, msg) {
|
|
23
|
+
var _a;
|
|
24
|
+
const msgPrefix = msg ? `${msg}: ` : "";
|
|
25
|
+
if (!(error instanceof Error)) {
|
|
26
|
+
throw new assertion_error_js_1.AssertionError(`${msgPrefix}Expected "error" to be an Error object.`);
|
|
27
|
+
}
|
|
28
|
+
if (ErrorClass && !(error instanceof ErrorClass)) {
|
|
29
|
+
msg =
|
|
30
|
+
`${msgPrefix}Expected error to be instance of "${ErrorClass.name}", but was "${(_a = error === null || error === void 0 ? void 0 : error.constructor) === null || _a === void 0 ? void 0 : _a.name}".`;
|
|
31
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
32
|
+
}
|
|
33
|
+
let msgCheck;
|
|
34
|
+
if (typeof msgMatches === "string") {
|
|
35
|
+
msgCheck = (0, styles_js_1.stripAnsiCode)(error.message).includes((0, styles_js_1.stripAnsiCode)(msgMatches));
|
|
36
|
+
}
|
|
37
|
+
if (msgMatches instanceof RegExp) {
|
|
38
|
+
msgCheck = msgMatches.test((0, styles_js_1.stripAnsiCode)(error.message));
|
|
39
|
+
}
|
|
40
|
+
if (msgMatches && !msgCheck) {
|
|
41
|
+
msg = `${msgPrefix}Expected error message to include ${msgMatches instanceof RegExp
|
|
42
|
+
? msgMatches.toString()
|
|
43
|
+
: JSON.stringify(msgMatches)}, but got ${JSON.stringify(error === null || error === void 0 ? void 0 : error.message)}.`;
|
|
44
|
+
throw new assertion_error_js_1.AssertionError(msg);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { EqualOptions } from "./_types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
4
|
+
* If not then throw.
|
|
5
|
+
*
|
|
6
|
+
* Type parameter can be specified to ensure values under comparison have the same type.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts ignore
|
|
10
|
+
* import { assertNotEquals } from "@std/assert";
|
|
11
|
+
*
|
|
12
|
+
* assertNotEquals(1, 2); // Doesn't throw
|
|
13
|
+
* assertNotEquals(1, 1); // Throws
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare function assertNotEquals<T>(actual: T, expected: T, options?: EqualOptions): void;
|
|
17
|
+
//# sourceMappingURL=_assert_not_equals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_assert_not_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAC/B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,OAAO,GAAE,YAAiB,QAQ3B"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.assertNotEquals = assertNotEquals;
|
|
5
|
+
// This file is copied from `std/assert`.
|
|
6
|
+
const assertion_error_js_1 = require("../../assert/1.0.11/assertion_error.js");
|
|
7
|
+
const _build_message_js_1 = require("./_build_message.js");
|
|
8
|
+
const _equal_js_1 = require("./_equal.js");
|
|
9
|
+
/**
|
|
10
|
+
* Make an assertion that `actual` and `expected` are not equal, deeply.
|
|
11
|
+
* If not then throw.
|
|
12
|
+
*
|
|
13
|
+
* Type parameter can be specified to ensure values under comparison have the same type.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts ignore
|
|
17
|
+
* import { assertNotEquals } from "@std/assert";
|
|
18
|
+
*
|
|
19
|
+
* assertNotEquals(1, 2); // Doesn't throw
|
|
20
|
+
* assertNotEquals(1, 1); // Throws
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
function assertNotEquals(actual, expected, options = {}) {
|
|
24
|
+
if (!(0, _equal_js_1.equal)(actual, expected, options)) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const message = (0, _build_message_js_1.buildNotEqualErrorMessage)(actual, expected, options !== null && options !== void 0 ? options : {});
|
|
28
|
+
throw new assertion_error_js_1.AssertionError(message);
|
|
29
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_assertions.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts"],"names":[],"mappings":"AAMA,wBAAgB,aAAa,SAE5B;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,QAErC;AAED,wBAAgB,oBAAoB,SAGnC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.hasAssertions = hasAssertions;
|
|
5
|
+
exports.assertions = assertions;
|
|
6
|
+
exports.emitAssertionTrigger = emitAssertionTrigger;
|
|
7
|
+
const assertion_state_js_1 = require("../../internal/1.0.5/assertion_state.js");
|
|
8
|
+
const assertionState = (0, assertion_state_js_1.getAssertionState)();
|
|
9
|
+
function hasAssertions() {
|
|
10
|
+
assertionState.setAssertionCheck(true);
|
|
11
|
+
}
|
|
12
|
+
function assertions(num) {
|
|
13
|
+
assertionState.setAssertionCount(num);
|
|
14
|
+
}
|
|
15
|
+
function emitAssertionTrigger() {
|
|
16
|
+
assertionState.setAssertionTriggered(true);
|
|
17
|
+
assertionState.updateAssertionTriggerCount();
|
|
18
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare abstract class AsymmetricMatcher<T> {
|
|
2
|
+
protected value: T;
|
|
3
|
+
protected inverse: boolean;
|
|
4
|
+
constructor(value: T, inverse?: boolean);
|
|
5
|
+
abstract equals(other: unknown): boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class Anything extends AsymmetricMatcher<void> {
|
|
8
|
+
equals(other: unknown): boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function anything(): Anything;
|
|
11
|
+
export declare class Any extends AsymmetricMatcher<any> {
|
|
12
|
+
constructor(value: unknown);
|
|
13
|
+
equals(other: unknown): boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function any(c: unknown): Any;
|
|
16
|
+
export declare class ArrayContaining extends AsymmetricMatcher<any[]> {
|
|
17
|
+
constructor(arr: any[], inverse?: boolean);
|
|
18
|
+
equals(other: any[]): boolean;
|
|
19
|
+
}
|
|
20
|
+
export declare function arrayContaining(c: any[]): ArrayContaining;
|
|
21
|
+
export declare function arrayNotContaining(c: any[]): ArrayContaining;
|
|
22
|
+
export declare class CloseTo extends AsymmetricMatcher<number> {
|
|
23
|
+
#private;
|
|
24
|
+
constructor(num: number, precision?: number);
|
|
25
|
+
equals(other: number): boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function closeTo(num: number, numDigits?: number): CloseTo;
|
|
28
|
+
export declare class StringContaining extends AsymmetricMatcher<string> {
|
|
29
|
+
constructor(str: string, inverse?: boolean);
|
|
30
|
+
equals(other: string): boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare function stringContaining(str: string): StringContaining;
|
|
33
|
+
export declare function stringNotContaining(str: string): StringContaining;
|
|
34
|
+
export declare class StringMatching extends AsymmetricMatcher<RegExp> {
|
|
35
|
+
constructor(pattern: string | RegExp, inverse?: boolean);
|
|
36
|
+
equals(other: string): boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare function stringMatching(pattern: string | RegExp): StringMatching;
|
|
39
|
+
export declare function stringNotMatching(pattern: string | RegExp): StringMatching;
|
|
40
|
+
export declare class ObjectContaining extends AsymmetricMatcher<Record<string, unknown>> {
|
|
41
|
+
constructor(obj: Record<string, unknown>, inverse?: boolean);
|
|
42
|
+
equals(other: Record<string, unknown>): boolean;
|
|
43
|
+
}
|
|
44
|
+
export declare function objectContaining(obj: Record<string, unknown>): ObjectContaining;
|
|
45
|
+
export declare function objectNotContaining(obj: Record<string, unknown>): ObjectContaining;
|
|
46
|
+
//# sourceMappingURL=_asymmetric_matchers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_asymmetric_matchers.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.ts"],"names":[],"mappings":"AAMA,8BAAsB,iBAAiB,CAAC,CAAC;IAErC,SAAS,CAAC,KAAK,EAAE,CAAC;IAClB,SAAS,CAAC,OAAO,EAAE,OAAO;gBADhB,KAAK,EAAE,CAAC,EACR,OAAO,GAAE,OAAe;IAEpC,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CACzC;AAED,qBAAa,QAAS,SAAQ,iBAAiB,CAAC,IAAI,CAAC;IACnD,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAGhC;AAED,wBAAgB,QAAQ,IAAI,QAAQ,CAEnC;AAED,qBAAa,GAAI,SAAQ,iBAAiB,CAAC,GAAG,CAAC;gBACjC,KAAK,EAAE,OAAO;IAO1B,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO;CAkChC;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,OAAO,GAAG,GAAG,CAEnC;AAED,qBAAa,eAAgB,SAAQ,iBAAiB,CAAC,GAAG,EAAE,CAAC;gBAC/C,GAAG,EAAE,GAAG,EAAE,EAAE,OAAO,UAAQ;IAIvC,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,OAAO;CAS9B;AAED,wBAAgB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,eAAe,CAEzD;AAED,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,GAAG,EAAE,GAAG,eAAe,CAE5D;AAED,qBAAa,OAAQ,SAAQ,iBAAiB,CAAC,MAAM,CAAC;;gBAGxC,GAAG,EAAE,MAAM,EAAE,SAAS,GAAE,MAAU;IAK9C,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAgB/B;AAED,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAEhE;AAED,qBAAa,gBAAiB,SAAQ,iBAAiB,CAAC,MAAM,CAAC;gBACjD,GAAG,EAAE,MAAM,EAAE,OAAO,UAAQ;IAIxC,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAI/B;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAE9D;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAEjE;AAED,qBAAa,cAAe,SAAQ,iBAAiB,CAAC,MAAM,CAAC;gBAC/C,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,UAAQ;IAIrD,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;CAI/B;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAEvE;AAED,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAE1E;AAED,qBAAa,gBACX,SAAQ,iBAAiB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACtC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,UAAQ;IAIzD,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO;CAehD;AAED,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,gBAAgB,CAElB;AAED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC3B,gBAAgB,CAElB"}
|