@thymian/core 0.0.0-PLACEHOLDER
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/README.md +59 -0
- package/dist/actions/action.d.ts +5 -0
- package/dist/actions/action.d.ts.map +1 -0
- package/dist/actions/action.js +2 -0
- package/dist/actions/action.js.map +1 -0
- package/dist/actions/close.action.d.ts +3 -0
- package/dist/actions/close.action.d.ts.map +1 -0
- package/dist/actions/close.action.js +2 -0
- package/dist/actions/close.action.js.map +1 -0
- package/dist/actions/core-analyze.action.d.ts +11 -0
- package/dist/actions/core-analyze.action.d.ts.map +1 -0
- package/dist/actions/core-analyze.action.js +2 -0
- package/dist/actions/core-analyze.action.js.map +1 -0
- package/dist/actions/core-lint.action.d.ts +9 -0
- package/dist/actions/core-lint.action.d.ts.map +1 -0
- package/dist/actions/core-lint.action.js +2 -0
- package/dist/actions/core-lint.action.js.map +1 -0
- package/dist/actions/core-request-sample.action.d.ts +9 -0
- package/dist/actions/core-request-sample.action.d.ts.map +1 -0
- package/dist/actions/core-request-sample.action.js +2 -0
- package/dist/actions/core-request-sample.action.js.map +1 -0
- package/dist/actions/core-test.action.d.ts +10 -0
- package/dist/actions/core-test.action.d.ts.map +1 -0
- package/dist/actions/core-test.action.js +2 -0
- package/dist/actions/core-test.action.js.map +1 -0
- package/dist/actions/core-validation-input.d.ts +6 -0
- package/dist/actions/core-validation-input.d.ts.map +1 -0
- package/dist/actions/core-validation-input.js +2 -0
- package/dist/actions/core-validation-input.js.map +1 -0
- package/dist/actions/format-load.action.d.ts +16 -0
- package/dist/actions/format-load.action.d.ts.map +1 -0
- package/dist/actions/format-load.action.js +36 -0
- package/dist/actions/format-load.action.js.map +1 -0
- package/dist/actions/format.action.d.ts +4 -0
- package/dist/actions/format.action.d.ts.map +1 -0
- package/dist/actions/format.action.js +2 -0
- package/dist/actions/format.action.js.map +1 -0
- package/dist/actions/index.d.ts +39 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +14 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/ready.action.d.ts +3 -0
- package/dist/actions/ready.action.d.ts.map +1 -0
- package/dist/actions/ready.action.js +2 -0
- package/dist/actions/ready.action.js.map +1 -0
- package/dist/actions/report-flush.action.d.ts +6 -0
- package/dist/actions/report-flush.action.d.ts.map +1 -0
- package/dist/actions/report-flush.action.js +2 -0
- package/dist/actions/report-flush.action.js.map +1 -0
- package/dist/actions/request-dispatch.action.d.ts +13 -0
- package/dist/actions/request-dispatch.action.d.ts.map +1 -0
- package/dist/actions/request-dispatch.action.js +45 -0
- package/dist/actions/request-dispatch.action.js.map +1 -0
- package/dist/actions/traffic-load.action.d.ts +16 -0
- package/dist/actions/traffic-load.action.d.ts.map +1 -0
- package/dist/actions/traffic-load.action.js +36 -0
- package/dist/actions/traffic-load.action.js.map +1 -0
- package/dist/actions/validation-result.d.ts +18 -0
- package/dist/actions/validation-result.d.ts.map +1 -0
- package/dist/actions/validation-result.js +81 -0
- package/dist/actions/validation-result.js.map +1 -0
- package/dist/ajv.d.ts +5 -0
- package/dist/ajv.d.ts.map +1 -0
- package/dist/ajv.js +9 -0
- package/dist/ajv.js.map +1 -0
- package/dist/chalk.d.ts +2 -0
- package/dist/chalk.d.ts.map +1 -0
- package/dist/chalk.js +2 -0
- package/dist/chalk.js.map +1 -0
- package/dist/constants.d.ts +5 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +6 -0
- package/dist/constants.js.map +1 -0
- package/dist/core-plugin.d.ts +5 -0
- package/dist/core-plugin.d.ts.map +1 -0
- package/dist/core-plugin.js +62 -0
- package/dist/core-plugin.js.map +1 -0
- package/dist/emitter/action-event.d.ts +19 -0
- package/dist/emitter/action-event.d.ts.map +1 -0
- package/dist/emitter/action-event.js +2 -0
- package/dist/emitter/action-event.js.map +1 -0
- package/dist/emitter/error-event.d.ts +13 -0
- package/dist/emitter/error-event.d.ts.map +1 -0
- package/dist/emitter/error-event.js +2 -0
- package/dist/emitter/error-event.js.map +1 -0
- package/dist/emitter/events.d.ts +10 -0
- package/dist/emitter/events.d.ts.map +1 -0
- package/dist/emitter/events.js +2 -0
- package/dist/emitter/events.js.map +1 -0
- package/dist/emitter/index.d.ts +6 -0
- package/dist/emitter/index.d.ts.map +1 -0
- package/dist/emitter/index.js +6 -0
- package/dist/emitter/index.js.map +1 -0
- package/dist/emitter/thymian-emitter.d.ts +61 -0
- package/dist/emitter/thymian-emitter.d.ts.map +1 -0
- package/dist/emitter/thymian-emitter.js +371 -0
- package/dist/emitter/thymian-emitter.js.map +1 -0
- package/dist/emitter/utils.d.ts +8 -0
- package/dist/emitter/utils.d.ts.map +1 -0
- package/dist/emitter/utils.js +16 -0
- package/dist/emitter/utils.js.map +1 -0
- package/dist/events/error.event.d.ts +5 -0
- package/dist/events/error.event.d.ts.map +1 -0
- package/dist/events/error.event.js +49 -0
- package/dist/events/error.event.js.map +1 -0
- package/dist/events/exit.event.d.ts +14 -0
- package/dist/events/exit.event.d.ts.map +1 -0
- package/dist/events/exit.event.js +9 -0
- package/dist/events/exit.event.js.map +1 -0
- package/dist/events/index.d.ts +15 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +4 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/register-plugin.event.d.ts +51 -0
- package/dist/events/register-plugin.event.d.ts.map +1 -0
- package/dist/events/register-plugin.event.js +29 -0
- package/dist/events/register-plugin.event.js.map +1 -0
- package/dist/events/report.event.d.ts +104 -0
- package/dist/events/report.event.d.ts.map +1 -0
- package/dist/events/report.event.js +109 -0
- package/dist/events/report.event.js.map +1 -0
- package/dist/format/circular-references.d.ts +3 -0
- package/dist/format/circular-references.d.ts.map +1 -0
- package/dist/format/circular-references.js +71 -0
- package/dist/format/circular-references.js.map +1 -0
- package/dist/format/edges/edge.d.ts +9 -0
- package/dist/format/edges/edge.d.ts.map +1 -0
- package/dist/format/edges/edge.js +2 -0
- package/dist/format/edges/edge.js.map +1 -0
- package/dist/format/edges/has-sample.edge.d.ts +5 -0
- package/dist/format/edges/has-sample.edge.d.ts.map +1 -0
- package/dist/format/edges/has-sample.edge.js +2 -0
- package/dist/format/edges/has-sample.edge.js.map +1 -0
- package/dist/format/edges/http-link.edge.d.ts +10 -0
- package/dist/format/edges/http-link.edge.d.ts.map +1 -0
- package/dist/format/edges/http-link.edge.js +2 -0
- package/dist/format/edges/http-link.edge.js.map +1 -0
- package/dist/format/edges/http-transaction.edge.d.ts +5 -0
- package/dist/format/edges/http-transaction.edge.d.ts.map +1 -0
- package/dist/format/edges/http-transaction.edge.js +2 -0
- package/dist/format/edges/http-transaction.edge.js.map +1 -0
- package/dist/format/edges/is-secured-with.edge.d.ts +5 -0
- package/dist/format/edges/is-secured-with.edge.d.ts.map +1 -0
- package/dist/format/edges/is-secured-with.edge.js +2 -0
- package/dist/format/edges/is-secured-with.edge.js.map +1 -0
- package/dist/format/edges/sample-http-transaction.edge.d.ts +5 -0
- package/dist/format/edges/sample-http-transaction.edge.d.ts.map +1 -0
- package/dist/format/edges/sample-http-transaction.edge.js +2 -0
- package/dist/format/edges/sample-http-transaction.edge.js.map +1 -0
- package/dist/format/format-location.d.ts +13 -0
- package/dist/format/format-location.d.ts.map +1 -0
- package/dist/format/format-location.js +2 -0
- package/dist/format/format-location.js.map +1 -0
- package/dist/format/http-filter-expression-to-transaction-filter.d.ts +5 -0
- package/dist/format/http-filter-expression-to-transaction-filter.d.ts.map +1 -0
- package/dist/format/http-filter-expression-to-transaction-filter.js +88 -0
- package/dist/format/http-filter-expression-to-transaction-filter.js.map +1 -0
- package/dist/format/index.d.ts +14 -0
- package/dist/format/index.d.ts.map +1 -0
- package/dist/format/index.js +14 -0
- package/dist/format/index.js.map +1 -0
- package/dist/format/nodes/http-request.node.d.ts +29 -0
- package/dist/format/nodes/http-request.node.d.ts.map +1 -0
- package/dist/format/nodes/http-request.node.js +2 -0
- package/dist/format/nodes/http-request.node.js.map +1 -0
- package/dist/format/nodes/http-response.node.d.ts +12 -0
- package/dist/format/nodes/http-response.node.d.ts.map +1 -0
- package/dist/format/nodes/http-response.node.js +2 -0
- package/dist/format/nodes/http-response.node.js.map +1 -0
- package/dist/format/nodes/node.d.ts +9 -0
- package/dist/format/nodes/node.d.ts.map +1 -0
- package/dist/format/nodes/node.js +2 -0
- package/dist/format/nodes/node.js.map +1 -0
- package/dist/format/nodes/sample-http-request.node.d.ts +7 -0
- package/dist/format/nodes/sample-http-request.node.d.ts.map +1 -0
- package/dist/format/nodes/sample-http-request.node.js +2 -0
- package/dist/format/nodes/sample-http-request.node.js.map +1 -0
- package/dist/format/nodes/sample-http-response.node.d.ts +7 -0
- package/dist/format/nodes/sample-http-response.node.d.ts.map +1 -0
- package/dist/format/nodes/sample-http-response.node.js +2 -0
- package/dist/format/nodes/sample-http-response.node.js.map +1 -0
- package/dist/format/nodes/security-scheme.node.d.ts +17 -0
- package/dist/format/nodes/security-scheme.node.d.ts.map +1 -0
- package/dist/format/nodes/security-scheme.node.js +2 -0
- package/dist/format/nodes/security-scheme.node.js.map +1 -0
- package/dist/format/parameter.d.ts +10 -0
- package/dist/format/parameter.d.ts.map +1 -0
- package/dist/format/parameter.js +2 -0
- package/dist/format/parameter.js.map +1 -0
- package/dist/format/serialization-style/cookie.serialization-style.d.ts +5 -0
- package/dist/format/serialization-style/cookie.serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/cookie.serialization-style.js +7 -0
- package/dist/format/serialization-style/cookie.serialization-style.js.map +1 -0
- package/dist/format/serialization-style/header.serialization-style.d.ts +5 -0
- package/dist/format/serialization-style/header.serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/header.serialization-style.js +7 -0
- package/dist/format/serialization-style/header.serialization-style.js.map +1 -0
- package/dist/format/serialization-style/index.d.ts +6 -0
- package/dist/format/serialization-style/index.d.ts.map +1 -0
- package/dist/format/serialization-style/index.js +6 -0
- package/dist/format/serialization-style/index.js.map +1 -0
- package/dist/format/serialization-style/path.serialization-style.d.ts +5 -0
- package/dist/format/serialization-style/path.serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/path.serialization-style.js +7 -0
- package/dist/format/serialization-style/path.serialization-style.js.map +1 -0
- package/dist/format/serialization-style/query.serialization-style.d.ts +5 -0
- package/dist/format/serialization-style/query.serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/query.serialization-style.js +7 -0
- package/dist/format/serialization-style/query.serialization-style.js.map +1 -0
- package/dist/format/serialization-style/serialization-style.d.ts +13 -0
- package/dist/format/serialization-style/serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/serialization-style.js +25 -0
- package/dist/format/serialization-style/serialization-style.js.map +1 -0
- package/dist/format/thymian-format.d.ts +109 -0
- package/dist/format/thymian-format.d.ts.map +1 -0
- package/dist/format/thymian-format.js +437 -0
- package/dist/format/thymian-format.js.map +1 -0
- package/dist/format/thymian-schema.d.ts +56 -0
- package/dist/format/thymian-schema.d.ts.map +1 -0
- package/dist/format/thymian-schema.js +2 -0
- package/dist/format/thymian-schema.js.map +1 -0
- package/dist/format/utils.d.ts +12 -0
- package/dist/format/utils.d.ts.map +1 -0
- package/dist/format/utils.js +85 -0
- package/dist/format/utils.js.map +1 -0
- package/dist/http-filter-visitor.d.ts +76 -0
- package/dist/http-filter-visitor.d.ts.map +1 -0
- package/dist/http-filter-visitor.js +168 -0
- package/dist/http-filter-visitor.js.map +1 -0
- package/dist/http-filter.d.ts +140 -0
- package/dist/http-filter.d.ts.map +1 -0
- package/dist/http-filter.js +137 -0
- package/dist/http-filter.js.map +1 -0
- package/dist/http-status-codes/1xx/index.d.ts +15 -0
- package/dist/http-status-codes/1xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/1xx/index.js +15 -0
- package/dist/http-status-codes/1xx/index.js.map +1 -0
- package/dist/http-status-codes/1xx/informational.phrases.d.ts +4 -0
- package/dist/http-status-codes/1xx/informational.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/1xx/informational.phrases.js +10 -0
- package/dist/http-status-codes/1xx/informational.phrases.js.map +1 -0
- package/dist/http-status-codes/1xx/informational.status-codes.d.ts +4 -0
- package/dist/http-status-codes/1xx/informational.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/1xx/informational.status-codes.js +5 -0
- package/dist/http-status-codes/1xx/informational.status-codes.js.map +1 -0
- package/dist/http-status-codes/2xx/index.d.ts +25 -0
- package/dist/http-status-codes/2xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/2xx/index.js +25 -0
- package/dist/http-status-codes/2xx/index.js.map +1 -0
- package/dist/http-status-codes/2xx/successful.phrases.d.ts +4 -0
- package/dist/http-status-codes/2xx/successful.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/2xx/successful.phrases.js +15 -0
- package/dist/http-status-codes/2xx/successful.phrases.js.map +1 -0
- package/dist/http-status-codes/2xx/successful.status-codes.d.ts +4 -0
- package/dist/http-status-codes/2xx/successful.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/2xx/successful.status-codes.js +7 -0
- package/dist/http-status-codes/2xx/successful.status-codes.js.map +1 -0
- package/dist/http-status-codes/3xx/index.d.ts +21 -0
- package/dist/http-status-codes/3xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/3xx/index.js +21 -0
- package/dist/http-status-codes/3xx/index.js.map +1 -0
- package/dist/http-status-codes/3xx/redirection.phrases.d.ts +4 -0
- package/dist/http-status-codes/3xx/redirection.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/3xx/redirection.phrases.js +13 -0
- package/dist/http-status-codes/3xx/redirection.phrases.js.map +1 -0
- package/dist/http-status-codes/3xx/redirection.status-codes.d.ts +4 -0
- package/dist/http-status-codes/3xx/redirection.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/3xx/redirection.status-codes.js +7 -0
- package/dist/http-status-codes/3xx/redirection.status-codes.js.map +1 -0
- package/dist/http-status-codes/4xx/client-error.phrases.d.ts +4 -0
- package/dist/http-status-codes/4xx/client-error.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/4xx/client-error.phrases.js +34 -0
- package/dist/http-status-codes/4xx/client-error.phrases.js.map +1 -0
- package/dist/http-status-codes/4xx/client-error.status-codes.d.ts +4 -0
- package/dist/http-status-codes/4xx/client-error.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/4xx/client-error.status-codes.js +8 -0
- package/dist/http-status-codes/4xx/client-error.status-codes.js.map +1 -0
- package/dist/http-status-codes/4xx/index.d.ts +63 -0
- package/dist/http-status-codes/4xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/4xx/index.js +63 -0
- package/dist/http-status-codes/4xx/index.js.map +1 -0
- package/dist/http-status-codes/5xx/index.d.ts +29 -0
- package/dist/http-status-codes/5xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/5xx/index.js +29 -0
- package/dist/http-status-codes/5xx/index.js.map +1 -0
- package/dist/http-status-codes/5xx/server-error.phrases.d.ts +4 -0
- package/dist/http-status-codes/5xx/server-error.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/5xx/server-error.phrases.js +17 -0
- package/dist/http-status-codes/5xx/server-error.phrases.js.map +1 -0
- package/dist/http-status-codes/5xx/server-error.status-codes.d.ts +4 -0
- package/dist/http-status-codes/5xx/server-error.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/5xx/server-error.status-codes.js +7 -0
- package/dist/http-status-codes/5xx/server-error.status-codes.js.map +1 -0
- package/dist/http-status-codes/http-status-code-ranges.d.ts +11 -0
- package/dist/http-status-codes/http-status-code-ranges.d.ts.map +1 -0
- package/dist/http-status-codes/http-status-code-ranges.js +19 -0
- package/dist/http-status-codes/http-status-code-ranges.js.map +1 -0
- package/dist/http-status-codes/http-status-code.d.ts +8 -0
- package/dist/http-status-codes/http-status-code.d.ts.map +1 -0
- package/dist/http-status-codes/http-status-code.js +13 -0
- package/dist/http-status-codes/http-status-code.js.map +1 -0
- package/dist/http-status-codes/http-status-phrase.d.ts +8 -0
- package/dist/http-status-codes/http-status-phrase.d.ts.map +1 -0
- package/dist/http-status-codes/http-status-phrase.js +13 -0
- package/dist/http-status-codes/http-status-phrase.js.map +1 -0
- package/dist/http-status-codes/index.d.ts +10 -0
- package/dist/http-status-codes/index.d.ts.map +1 -0
- package/dist/http-status-codes/index.js +10 -0
- package/dist/http-status-codes/index.js.map +1 -0
- package/dist/http-status-codes/phrase-to-status-code.d.ts +62 -0
- package/dist/http-status-codes/phrase-to-status-code.d.ts.map +1 -0
- package/dist/http-status-codes/phrase-to-status-code.js +13 -0
- package/dist/http-status-codes/phrase-to-status-code.js.map +1 -0
- package/dist/http-status-codes/status-code-to-phrase.d.ts +62 -0
- package/dist/http-status-codes/status-code-to-phrase.d.ts.map +1 -0
- package/dist/http-status-codes/status-code-to-phrase.js +13 -0
- package/dist/http-status-codes/status-code-to-phrase.js.map +1 -0
- package/dist/http-status-codes/validate.d.ts +5 -0
- package/dist/http-status-codes/validate.d.ts.map +1 -0
- package/dist/http-status-codes/validate.js +28 -0
- package/dist/http-status-codes/validate.js.map +1 -0
- package/dist/http-testing/http-test/create-hook-runner.d.ts +21 -0
- package/dist/http-testing/http-test/create-hook-runner.d.ts.map +1 -0
- package/dist/http-testing/http-test/create-hook-runner.js +17 -0
- package/dist/http-testing/http-test/create-hook-runner.js.map +1 -0
- package/dist/http-testing/http-test/create-http-test-context.d.ts +3 -0
- package/dist/http-testing/http-test/create-http-test-context.d.ts.map +1 -0
- package/dist/http-testing/http-test/create-http-test-context.js +24 -0
- package/dist/http-testing/http-test/create-http-test-context.js.map +1 -0
- package/dist/http-testing/http-test/http-test-case-result.d.ts +46 -0
- package/dist/http-testing/http-test/http-test-case-result.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-case-result.js +2 -0
- package/dist/http-testing/http-test/http-test-case-result.js.map +1 -0
- package/dist/http-testing/http-test/http-test-case.d.ts +36 -0
- package/dist/http-testing/http-test/http-test-case.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-case.js +2 -0
- package/dist/http-testing/http-test/http-test-case.js.map +1 -0
- package/dist/http-testing/http-test/http-test-context.d.ts +20 -0
- package/dist/http-testing/http-test/http-test-context.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-context.js +2 -0
- package/dist/http-testing/http-test/http-test-context.js.map +1 -0
- package/dist/http-testing/http-test/http-test-hooks.d.ts +26 -0
- package/dist/http-testing/http-test/http-test-hooks.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-hooks.js +2 -0
- package/dist/http-testing/http-test/http-test-hooks.js.map +1 -0
- package/dist/http-testing/http-test/http-test-pipeline.d.ts +10 -0
- package/dist/http-testing/http-test/http-test-pipeline.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-pipeline.js +2 -0
- package/dist/http-testing/http-test/http-test-pipeline.js.map +1 -0
- package/dist/http-testing/http-test/http-test.d.ts +11 -0
- package/dist/http-testing/http-test/http-test.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test.js +35 -0
- package/dist/http-testing/http-test/http-test.js.map +1 -0
- package/dist/http-testing/http-test/index.d.ts +10 -0
- package/dist/http-testing/http-test/index.d.ts.map +1 -0
- package/dist/http-testing/http-test/index.js +10 -0
- package/dist/http-testing/http-test/index.js.map +1 -0
- package/dist/http-testing/http-test/utils.d.ts +11 -0
- package/dist/http-testing/http-test/utils.d.ts.map +1 -0
- package/dist/http-testing/http-test/utils.js +16 -0
- package/dist/http-testing/http-test/utils.js.map +1 -0
- package/dist/http-testing/index.d.ts +7 -0
- package/dist/http-testing/index.d.ts.map +1 -0
- package/dist/http-testing/index.js +7 -0
- package/dist/http-testing/index.js.map +1 -0
- package/dist/http-testing/operators/expect-for-transaction.operator.d.ts +5 -0
- package/dist/http-testing/operators/expect-for-transaction.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/expect-for-transaction.operator.js +39 -0
- package/dist/http-testing/operators/expect-for-transaction.operator.js.map +1 -0
- package/dist/http-testing/operators/expect-headers.operator.d.ts +4 -0
- package/dist/http-testing/operators/expect-headers.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/expect-headers.operator.js +37 -0
- package/dist/http-testing/operators/expect-headers.operator.js.map +1 -0
- package/dist/http-testing/operators/expect-status-code.operator.d.ts +5 -0
- package/dist/http-testing/operators/expect-status-code.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/expect-status-code.operator.js +55 -0
- package/dist/http-testing/operators/expect-status-code.operator.js.map +1 -0
- package/dist/http-testing/operators/expect.operator.d.ts +4 -0
- package/dist/http-testing/operators/expect.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/expect.operator.js +31 -0
- package/dist/http-testing/operators/expect.operator.js.map +1 -0
- package/dist/http-testing/operators/fail.operator.d.ts +4 -0
- package/dist/http-testing/operators/fail.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/fail.operator.js +8 -0
- package/dist/http-testing/operators/fail.operator.js.map +1 -0
- package/dist/http-testing/operators/filter-http-transactions.operator.d.ts +10 -0
- package/dist/http-testing/operators/filter-http-transactions.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/filter-http-transactions.operator.js +18 -0
- package/dist/http-testing/operators/filter-http-transactions.operator.js.map +1 -0
- package/dist/http-testing/operators/generate-requests.operator.d.ts +10 -0
- package/dist/http-testing/operators/generate-requests.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/generate-requests.operator.js +44 -0
- package/dist/http-testing/operators/generate-requests.operator.js.map +1 -0
- package/dist/http-testing/operators/index.d.ts +21 -0
- package/dist/http-testing/operators/index.d.ts.map +1 -0
- package/dist/http-testing/operators/index.js +21 -0
- package/dist/http-testing/operators/index.js.map +1 -0
- package/dist/http-testing/operators/map-to-grouped-test-case.operator.d.ts +7 -0
- package/dist/http-testing/operators/map-to-grouped-test-case.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/map-to-grouped-test-case.operator.js +32 -0
- package/dist/http-testing/operators/map-to-grouped-test-case.operator.js.map +1 -0
- package/dist/http-testing/operators/map-to-test-case.operator.d.ts +7 -0
- package/dist/http-testing/operators/map-to-test-case.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/map-to-test-case.operator.js +21 -0
- package/dist/http-testing/operators/map-to-test-case.operator.js.map +1 -0
- package/dist/http-testing/operators/override-headers.operator.d.ts +5 -0
- package/dist/http-testing/operators/override-headers.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/override-headers.operator.js +18 -0
- package/dist/http-testing/operators/override-headers.operator.js.map +1 -0
- package/dist/http-testing/operators/override-with-previous.operator.d.ts +5 -0
- package/dist/http-testing/operators/override-with-previous.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/override-with-previous.operator.js +23 -0
- package/dist/http-testing/operators/override-with-previous.operator.js.map +1 -0
- package/dist/http-testing/operators/replay-previous-step.operator.d.ts +5 -0
- package/dist/http-testing/operators/replay-previous-step.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/replay-previous-step.operator.js +27 -0
- package/dist/http-testing/operators/replay-previous-step.operator.js.map +1 -0
- package/dist/http-testing/operators/reply-previous-but-expect-response.operator.d.ts +7 -0
- package/dist/http-testing/operators/reply-previous-but-expect-response.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/reply-previous-but-expect-response.operator.js +61 -0
- package/dist/http-testing/operators/reply-previous-but-expect-response.operator.js.map +1 -0
- package/dist/http-testing/operators/requires-authorization.operator.d.ts +5 -0
- package/dist/http-testing/operators/requires-authorization.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/requires-authorization.operator.js +9 -0
- package/dist/http-testing/operators/requires-authorization.operator.js.map +1 -0
- package/dist/http-testing/operators/run-requests.operator.d.ts +14 -0
- package/dist/http-testing/operators/run-requests.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/run-requests.operator.js +139 -0
- package/dist/http-testing/operators/run-requests.operator.js.map +1 -0
- package/dist/http-testing/operators/single-step-for-transaction.operator.d.ts +5 -0
- package/dist/http-testing/operators/single-step-for-transaction.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/single-step-for-transaction.operator.js +43 -0
- package/dist/http-testing/operators/single-step-for-transaction.operator.js.map +1 -0
- package/dist/http-testing/operators/skip.operator.d.ts +5 -0
- package/dist/http-testing/operators/skip.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/skip.operator.js +11 -0
- package/dist/http-testing/operators/skip.operator.js.map +1 -0
- package/dist/http-testing/operators/step.operator.d.ts +5 -0
- package/dist/http-testing/operators/step.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/step.operator.js +20 -0
- package/dist/http-testing/operators/step.operator.js.map +1 -0
- package/dist/http-testing/operators/utils.d.ts +10 -0
- package/dist/http-testing/operators/utils.d.ts.map +1 -0
- package/dist/http-testing/operators/utils.js +17 -0
- package/dist/http-testing/operators/utils.js.map +1 -0
- package/dist/http-testing/operators/validate-responses.operator.d.ts +4 -0
- package/dist/http-testing/operators/validate-responses.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/validate-responses.operator.js +33 -0
- package/dist/http-testing/operators/validate-responses.operator.js.map +1 -0
- package/dist/http-testing/serialize-parameter.d.ts +6 -0
- package/dist/http-testing/serialize-parameter.d.ts.map +1 -0
- package/dist/http-testing/serialize-parameter.js +51 -0
- package/dist/http-testing/serialize-parameter.js.map +1 -0
- package/dist/http-testing/serialize-request.d.ts +7 -0
- package/dist/http-testing/serialize-request.d.ts.map +1 -0
- package/dist/http-testing/serialize-request.js +112 -0
- package/dist/http-testing/serialize-request.js.map +1 -0
- package/dist/http-testing/test-builder/builder-pipeline.d.ts +4 -0
- package/dist/http-testing/test-builder/builder-pipeline.d.ts.map +1 -0
- package/dist/http-testing/test-builder/builder-pipeline.js +2 -0
- package/dist/http-testing/test-builder/builder-pipeline.js.map +1 -0
- package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.d.ts +9 -0
- package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.d.ts.map +1 -0
- package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.js +114 -0
- package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.js.map +1 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.d.ts +4 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.d.ts.map +1 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.js +36 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.js.map +1 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.d.ts +4 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.d.ts.map +1 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.js +65 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.js.map +1 -0
- package/dist/http-testing/test-builder/extract-value-from-response.d.ts +4 -0
- package/dist/http-testing/test-builder/extract-value-from-response.d.ts.map +1 -0
- package/dist/http-testing/test-builder/extract-value-from-response.js +16 -0
- package/dist/http-testing/test-builder/extract-value-from-response.js.map +1 -0
- package/dist/http-testing/test-builder/override-request-template.d.ts +4 -0
- package/dist/http-testing/test-builder/override-request-template.d.ts.map +1 -0
- package/dist/http-testing/test-builder/override-request-template.js +33 -0
- package/dist/http-testing/test-builder/override-request-template.js.map +1 -0
- package/dist/http-testing/test-builder/reply-step-builder.d.ts +10 -0
- package/dist/http-testing/test-builder/reply-step-builder.d.ts.map +1 -0
- package/dist/http-testing/test-builder/reply-step-builder.js +39 -0
- package/dist/http-testing/test-builder/reply-step-builder.js.map +1 -0
- package/dist/http-testing/test-builder/single-step-test-builder.d.ts +42 -0
- package/dist/http-testing/test-builder/single-step-test-builder.d.ts.map +1 -0
- package/dist/http-testing/test-builder/single-step-test-builder.js +112 -0
- package/dist/http-testing/test-builder/single-step-test-builder.js.map +1 -0
- package/dist/http-testing/validate/ajv.d.ts +3 -0
- package/dist/http-testing/validate/ajv.d.ts.map +1 -0
- package/dist/http-testing/validate/ajv.js +7 -0
- package/dist/http-testing/validate/ajv.js.map +1 -0
- package/dist/http-testing/validate/index.d.ts +9 -0
- package/dist/http-testing/validate/index.d.ts.map +1 -0
- package/dist/http-testing/validate/index.js +9 -0
- package/dist/http-testing/validate/index.js.map +1 -0
- package/dist/http-testing/validate/validate-body.d.ts +5 -0
- package/dist/http-testing/validate/validate-body.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-body.js +62 -0
- package/dist/http-testing/validate/validate-body.js.map +1 -0
- package/dist/http-testing/validate/validate-headers.d.ts +8 -0
- package/dist/http-testing/validate/validate-headers.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-headers.js +101 -0
- package/dist/http-testing/validate/validate-headers.js.map +1 -0
- package/dist/http-testing/validate/validate-request-body.d.ts +5 -0
- package/dist/http-testing/validate/validate-request-body.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-request-body.js +71 -0
- package/dist/http-testing/validate/validate-request-body.js.map +1 -0
- package/dist/http-testing/validate/validate-request-headers.d.ts +8 -0
- package/dist/http-testing/validate/validate-request-headers.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-request-headers.js +93 -0
- package/dist/http-testing/validate/validate-request-headers.js.map +1 -0
- package/dist/http-testing/validate/validate-request-path-parameters.d.ts +6 -0
- package/dist/http-testing/validate/validate-request-path-parameters.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-request-path-parameters.js +69 -0
- package/dist/http-testing/validate/validate-request-path-parameters.js.map +1 -0
- package/dist/http-testing/validate/validate-request-query-parameters.d.ts +7 -0
- package/dist/http-testing/validate/validate-request-query-parameters.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-request-query-parameters.js +91 -0
- package/dist/http-testing/validate/validate-request-query-parameters.js.map +1 -0
- package/dist/http-testing/validate/validate-response.d.ts +7 -0
- package/dist/http-testing/validate/validate-response.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-response.js +15 -0
- package/dist/http-testing/validate/validate-response.js.map +1 -0
- package/dist/http-testing/validate/validate-status-code.d.ts +3 -0
- package/dist/http-testing/validate/validate-status-code.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-status-code.js +25 -0
- package/dist/http-testing/validate/validate-status-code.js.map +1 -0
- package/dist/http.d.ts +29 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +2 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/logger/log-level.d.ts +5 -0
- package/dist/logger/log-level.d.ts.map +1 -0
- package/dist/logger/log-level.js +24 -0
- package/dist/logger/log-level.js.map +1 -0
- package/dist/logger/logger.d.ts +13 -0
- package/dist/logger/logger.d.ts.map +1 -0
- package/dist/logger/logger.js +2 -0
- package/dist/logger/logger.js.map +1 -0
- package/dist/logger/noop.logger.d.ts +15 -0
- package/dist/logger/noop.logger.d.ts.map +1 -0
- package/dist/logger/noop.logger.js +18 -0
- package/dist/logger/noop.logger.js.map +1 -0
- package/dist/logger/text.logger.d.ts +16 -0
- package/dist/logger/text.logger.d.ts.map +1 -0
- package/dist/logger/text.logger.js +51 -0
- package/dist/logger/text.logger.js.map +1 -0
- package/dist/report-sorter.d.ts +16 -0
- package/dist/report-sorter.d.ts.map +1 -0
- package/dist/report-sorter.js +193 -0
- package/dist/report-sorter.js.map +1 -0
- package/dist/rules/ajv-validate.d.ts +2 -0
- package/dist/rules/ajv-validate.d.ts.map +1 -0
- package/dist/rules/ajv-validate.js +4 -0
- package/dist/rules/ajv-validate.js.map +1 -0
- package/dist/rules/captured-trace-to-string.d.ts +3 -0
- package/dist/rules/captured-trace-to-string.d.ts.map +1 -0
- package/dist/rules/captured-trace-to-string.js +27 -0
- package/dist/rules/captured-trace-to-string.js.map +1 -0
- package/dist/rules/common-http-converters.d.ts +8 -0
- package/dist/rules/common-http-converters.d.ts.map +1 -0
- package/dist/rules/common-http-converters.js +58 -0
- package/dist/rules/common-http-converters.js.map +1 -0
- package/dist/rules/contexts.d.ts +63 -0
- package/dist/rules/contexts.d.ts.map +1 -0
- package/dist/rules/contexts.js +2 -0
- package/dist/rules/contexts.js.map +1 -0
- package/dist/rules/index.d.ts +16 -0
- package/dist/rules/index.d.ts.map +1 -0
- package/dist/rules/index.js +16 -0
- package/dist/rules/index.js.map +1 -0
- package/dist/rules/rule-builder.d.ts +34 -0
- package/dist/rules/rule-builder.d.ts.map +1 -0
- package/dist/rules/rule-builder.js +112 -0
- package/dist/rules/rule-builder.js.map +1 -0
- package/dist/rules/rule-configuration.d.ts +10 -0
- package/dist/rules/rule-configuration.d.ts.map +1 -0
- package/dist/rules/rule-configuration.js +2 -0
- package/dist/rules/rule-configuration.js.map +1 -0
- package/dist/rules/rule-filter.d.ts +9 -0
- package/dist/rules/rule-filter.d.ts.map +1 -0
- package/dist/rules/rule-filter.js +12 -0
- package/dist/rules/rule-filter.js.map +1 -0
- package/dist/rules/rule-fn.d.ts +7 -0
- package/dist/rules/rule-fn.d.ts.map +1 -0
- package/dist/rules/rule-fn.js +2 -0
- package/dist/rules/rule-fn.js.map +1 -0
- package/dist/rules/rule-loader.d.ts +8 -0
- package/dist/rules/rule-loader.d.ts.map +1 -0
- package/dist/rules/rule-loader.js +124 -0
- package/dist/rules/rule-loader.js.map +1 -0
- package/dist/rules/rule-meta.d.ts +20 -0
- package/dist/rules/rule-meta.d.ts.map +1 -0
- package/dist/rules/rule-meta.js +18 -0
- package/dist/rules/rule-meta.js.map +1 -0
- package/dist/rules/rule-runner.d.ts +30 -0
- package/dist/rules/rule-runner.d.ts.map +1 -0
- package/dist/rules/rule-runner.js +129 -0
- package/dist/rules/rule-runner.js.map +1 -0
- package/dist/rules/rule-set.d.ts +9 -0
- package/dist/rules/rule-set.d.ts.map +1 -0
- package/dist/rules/rule-set.js +2 -0
- package/dist/rules/rule-set.js.map +1 -0
- package/dist/rules/rule-severity.d.ts +10 -0
- package/dist/rules/rule-severity.d.ts.map +1 -0
- package/dist/rules/rule-severity.js +12 -0
- package/dist/rules/rule-severity.js.map +1 -0
- package/dist/rules/rule-violation.d.ts +22 -0
- package/dist/rules/rule-violation.d.ts.map +1 -0
- package/dist/rules/rule-violation.js +2 -0
- package/dist/rules/rule-violation.js.map +1 -0
- package/dist/rules/rule.d.ts +10 -0
- package/dist/rules/rule.d.ts.map +1 -0
- package/dist/rules/rule.js +2 -0
- package/dist/rules/rule.js.map +1 -0
- package/dist/rules/traffic.d.ts +25 -0
- package/dist/rules/traffic.d.ts.map +1 -0
- package/dist/rules/traffic.js +2 -0
- package/dist/rules/traffic.js.map +1 -0
- package/dist/thymian-plugin.d.ts +38 -0
- package/dist/thymian-plugin.d.ts.map +1 -0
- package/dist/thymian-plugin.js +24 -0
- package/dist/thymian-plugin.js.map +1 -0
- package/dist/thymian.d.ts +85 -0
- package/dist/thymian.d.ts.map +1 -0
- package/dist/thymian.error.d.ts +26 -0
- package/dist/thymian.error.d.ts.map +1 -0
- package/dist/thymian.error.js +34 -0
- package/dist/thymian.error.js.map +1 -0
- package/dist/thymian.js +322 -0
- package/dist/thymian.js.map +1 -0
- package/dist/utils.d.ts +40 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +139 -0
- package/dist/utils.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { informationalStatusCodes, } from './1xx/index.js';
|
|
2
|
+
import { successfulStatusCodes, } from './2xx/index.js';
|
|
3
|
+
import { redirectionStatusCodes, } from './3xx/index.js';
|
|
4
|
+
import { clientErrorStatusCodes, } from './4xx/index.js';
|
|
5
|
+
import { serverErrorStatusCodes, } from './5xx/index.js';
|
|
6
|
+
export const httpStatusCodes = [
|
|
7
|
+
...informationalStatusCodes,
|
|
8
|
+
...successfulStatusCodes,
|
|
9
|
+
...redirectionStatusCodes,
|
|
10
|
+
...clientErrorStatusCodes,
|
|
11
|
+
...serverErrorStatusCodes,
|
|
12
|
+
];
|
|
13
|
+
//# sourceMappingURL=http-status-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-status-code.js","sourceRoot":"","sources":["../../src/http-status-codes/http-status-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AASxB,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,GAAG,wBAAwB;IAC3B,GAAG,qBAAqB;IACxB,GAAG,sBAAsB;IACzB,GAAG,sBAAsB;IACzB,GAAG,sBAAsB;CACjB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type InformationalPhrase } from './1xx/index.js';
|
|
2
|
+
import { type SuccessfulPhrase } from './2xx/index.js';
|
|
3
|
+
import { type RedirectionPhrase } from './3xx/index.js';
|
|
4
|
+
import { type ClientErrorPhrase } from './4xx/index.js';
|
|
5
|
+
import { type ServerErrorPhrase } from './5xx/index.js';
|
|
6
|
+
export type HttpStatusPhrase = InformationalPhrase | SuccessfulPhrase | RedirectionPhrase | ClientErrorPhrase | ServerErrorPhrase;
|
|
7
|
+
export declare const httpPhrases: readonly ["continue", "switching protocols", "processing", "early hints", "ok", "created", "accepted", "non-authoritative information", "no content", "reset content", "partial content", "multi-status", "already reported", "multiple choices", "moved permanently", "found", "see other", "not modified", "temporary redirect", "permanent redirect", "bad request", "unauthorized", "payment required", "forbidden", "not found", "method not allowed", "not acceptable", "proxy authentication required", "request timeout", "conflict", "gone", "length required", "precondition failed", "payload too large", "uri too long", "unsupported media type", "range not satisfiable", "expectation failed", "misdirected request", "unprocessable entity", "locked", "failed dependency", "too early", "upgrade required", "precondition required", "too many requests", "request header fields too large", "unavailable for legal reasons", "internal server error", "not implemented", "bad gateway", "service unavailable", "gateway timeout", "http version not supported", "variant also negotiates", "insufficient storage", "loop detected", "not extended", "network authentication required"];
|
|
8
|
+
//# sourceMappingURL=http-status-phrase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-status-phrase.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/http-status-phrase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAwB,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,KAAK,gBAAgB,EAAqB,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,KAAK,iBAAiB,EAAsB,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,KAAK,iBAAiB,EAAsB,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,KAAK,iBAAiB,EAAsB,MAAM,gBAAgB,CAAC;AAE5E,MAAM,MAAM,gBAAgB,GACxB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,eAAO,MAAM,WAAW,0oCAMd,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { informationalPhrases } from './1xx/index.js';
|
|
2
|
+
import { successfulPhrases } from './2xx/index.js';
|
|
3
|
+
import { redirectionPhrases } from './3xx/index.js';
|
|
4
|
+
import { clientErrorPhrases } from './4xx/index.js';
|
|
5
|
+
import { serverErrorPhrases } from './5xx/index.js';
|
|
6
|
+
export const httpPhrases = [
|
|
7
|
+
...informationalPhrases,
|
|
8
|
+
...successfulPhrases,
|
|
9
|
+
...redirectionPhrases,
|
|
10
|
+
...clientErrorPhrases,
|
|
11
|
+
...serverErrorPhrases,
|
|
12
|
+
];
|
|
13
|
+
//# sourceMappingURL=http-status-phrase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-status-phrase.js","sourceRoot":"","sources":["../../src/http-status-codes/http-status-phrase.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAyB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAA0B,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAA0B,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAA0B,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAS5E,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,oBAAoB;IACvB,GAAG,iBAAiB;IACpB,GAAG,kBAAkB;IACrB,GAAG,kBAAkB;IACrB,GAAG,kBAAkB;CACb,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './1xx/index.js';
|
|
2
|
+
export * from './2xx/index.js';
|
|
3
|
+
export * from './3xx/index.js';
|
|
4
|
+
export * from './4xx/index.js';
|
|
5
|
+
export * from './5xx/index.js';
|
|
6
|
+
export * from './http-status-code.js';
|
|
7
|
+
export * from './http-status-code-ranges.js';
|
|
8
|
+
export * from './status-code-to-phrase.js';
|
|
9
|
+
export * from './validate.js';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './1xx/index.js';
|
|
2
|
+
export * from './2xx/index.js';
|
|
3
|
+
export * from './3xx/index.js';
|
|
4
|
+
export * from './4xx/index.js';
|
|
5
|
+
export * from './5xx/index.js';
|
|
6
|
+
export * from './http-status-code.js';
|
|
7
|
+
export * from './http-status-code-ranges.js';
|
|
8
|
+
export * from './status-code-to-phrase.js';
|
|
9
|
+
export * from './validate.js';
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http-status-codes/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const httpStatusPhraseToStatusCode: {
|
|
2
|
+
readonly "internal server error": 500;
|
|
3
|
+
readonly "not implemented": 501;
|
|
4
|
+
readonly "bad gateway": 502;
|
|
5
|
+
readonly "service unavailable": 503;
|
|
6
|
+
readonly "gateway timeout": 504;
|
|
7
|
+
readonly "http version not supported": 505;
|
|
8
|
+
readonly "variant also negotiates": 506;
|
|
9
|
+
readonly "insufficient storage": 507;
|
|
10
|
+
readonly "loop detected": 508;
|
|
11
|
+
readonly "not extended": 510;
|
|
12
|
+
readonly "network authentication required": 511;
|
|
13
|
+
readonly "bad request": 400;
|
|
14
|
+
readonly unauthorized: 401;
|
|
15
|
+
readonly "payment required": 402;
|
|
16
|
+
readonly forbidden: 403;
|
|
17
|
+
readonly "not found": 404;
|
|
18
|
+
readonly "method not allowed": 405;
|
|
19
|
+
readonly "not acceptable": 406;
|
|
20
|
+
readonly "proxy authentication required": 407;
|
|
21
|
+
readonly "request timeout": 408;
|
|
22
|
+
readonly conflict: 409;
|
|
23
|
+
readonly gone: 410;
|
|
24
|
+
readonly "length required": 411;
|
|
25
|
+
readonly "precondition failed": 412;
|
|
26
|
+
readonly "payload too large": 413;
|
|
27
|
+
readonly "uri too long": 414;
|
|
28
|
+
readonly "unsupported media type": 415;
|
|
29
|
+
readonly "range not satisfiable": 416;
|
|
30
|
+
readonly "expectation failed": 417;
|
|
31
|
+
readonly "misdirected request": 421;
|
|
32
|
+
readonly "unprocessable entity": 422;
|
|
33
|
+
readonly locked: 423;
|
|
34
|
+
readonly "failed dependency": 424;
|
|
35
|
+
readonly "too early": 425;
|
|
36
|
+
readonly "upgrade required": 426;
|
|
37
|
+
readonly "precondition required": 428;
|
|
38
|
+
readonly "too many requests": 429;
|
|
39
|
+
readonly "request header fields too large": 431;
|
|
40
|
+
readonly "unavailable for legal reasons": 451;
|
|
41
|
+
readonly "multiple choices": 300;
|
|
42
|
+
readonly "moved permanently": 301;
|
|
43
|
+
readonly found: 302;
|
|
44
|
+
readonly "see other": 303;
|
|
45
|
+
readonly "not modified": 304;
|
|
46
|
+
readonly "temporary redirect": 307;
|
|
47
|
+
readonly "permanent redirect": 308;
|
|
48
|
+
readonly ok: 200;
|
|
49
|
+
readonly created: 201;
|
|
50
|
+
readonly accepted: 202;
|
|
51
|
+
readonly "non-authoritative information": 203;
|
|
52
|
+
readonly "no content": 204;
|
|
53
|
+
readonly "reset content": 205;
|
|
54
|
+
readonly "partial content": 206;
|
|
55
|
+
readonly "multi-status": 207;
|
|
56
|
+
readonly "already reported": 208;
|
|
57
|
+
readonly continue: 100;
|
|
58
|
+
readonly "switching protocols": 101;
|
|
59
|
+
readonly processing: 102;
|
|
60
|
+
readonly 'early hints': 103;
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=phrase-to-status-code.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phrase-to-status-code.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/phrase-to-status-code.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM/B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { informationalPhraseToStatusCode } from './1xx/index.js';
|
|
2
|
+
import { successfulPhraseToStatusCode } from './2xx/index.js';
|
|
3
|
+
import { redirectionPhraseToStatusCode } from './3xx/index.js';
|
|
4
|
+
import { clientErrorPhraseToStatusCOde } from './4xx/index.js';
|
|
5
|
+
import { serverErrorPhraseToStatusCode } from './5xx/index.js';
|
|
6
|
+
export const httpStatusPhraseToStatusCode = {
|
|
7
|
+
...informationalPhraseToStatusCode,
|
|
8
|
+
...successfulPhraseToStatusCode,
|
|
9
|
+
...redirectionPhraseToStatusCode,
|
|
10
|
+
...clientErrorPhraseToStatusCOde,
|
|
11
|
+
...serverErrorPhraseToStatusCode,
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=phrase-to-status-code.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"phrase-to-status-code.js","sourceRoot":"","sources":["../../src/http-status-codes/phrase-to-status-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,GAAG,+BAA+B;IAClC,GAAG,4BAA4B;IAC/B,GAAG,6BAA6B;IAChC,GAAG,6BAA6B;IAChC,GAAG,6BAA6B;CACxB,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const httpStatusCodeToPhrase: {
|
|
2
|
+
readonly 500: "internal server error";
|
|
3
|
+
readonly 501: "not implemented";
|
|
4
|
+
readonly 502: "bad gateway";
|
|
5
|
+
readonly 503: "service unavailable";
|
|
6
|
+
readonly 504: "gateway timeout";
|
|
7
|
+
readonly 505: "http version not supported";
|
|
8
|
+
readonly 506: "variant also negotiates";
|
|
9
|
+
readonly 507: "insufficient storage";
|
|
10
|
+
readonly 508: "loop detected";
|
|
11
|
+
readonly 510: "not extended";
|
|
12
|
+
readonly 511: "network authentication required";
|
|
13
|
+
readonly 400: "bad request";
|
|
14
|
+
readonly 401: "unauthorized";
|
|
15
|
+
readonly 402: "payment required";
|
|
16
|
+
readonly 403: "forbidden";
|
|
17
|
+
readonly 404: "not found";
|
|
18
|
+
readonly 405: "method not allowed";
|
|
19
|
+
readonly 406: "not acceptable";
|
|
20
|
+
readonly 407: "proxy authentication required";
|
|
21
|
+
readonly 408: "request timeout";
|
|
22
|
+
readonly 409: "conflict";
|
|
23
|
+
readonly 410: "gone";
|
|
24
|
+
readonly 411: "length required";
|
|
25
|
+
readonly 412: "precondition failed";
|
|
26
|
+
readonly 413: "payload too large";
|
|
27
|
+
readonly 414: "uri too long";
|
|
28
|
+
readonly 415: "unsupported media type";
|
|
29
|
+
readonly 416: "range not satisfiable";
|
|
30
|
+
readonly 417: "expectation failed";
|
|
31
|
+
readonly 421: "misdirected request";
|
|
32
|
+
readonly 422: "unprocessable entity";
|
|
33
|
+
readonly 423: "locked";
|
|
34
|
+
readonly 424: "failed dependency";
|
|
35
|
+
readonly 425: "too early";
|
|
36
|
+
readonly 426: "upgrade required";
|
|
37
|
+
readonly 428: "precondition required";
|
|
38
|
+
readonly 429: "too many requests";
|
|
39
|
+
readonly 431: "request header fields too large";
|
|
40
|
+
readonly 451: "unavailable for legal reasons";
|
|
41
|
+
readonly 300: "multiple choices";
|
|
42
|
+
readonly 301: "moved permanently";
|
|
43
|
+
readonly 302: "found";
|
|
44
|
+
readonly 303: "see other";
|
|
45
|
+
readonly 304: "not modified";
|
|
46
|
+
readonly 307: "temporary redirect";
|
|
47
|
+
readonly 308: "permanent redirect";
|
|
48
|
+
readonly 200: "ok";
|
|
49
|
+
readonly 201: "created";
|
|
50
|
+
readonly 202: "accepted";
|
|
51
|
+
readonly 203: "non-authoritative information";
|
|
52
|
+
readonly 204: "no content";
|
|
53
|
+
readonly 205: "reset content";
|
|
54
|
+
readonly 206: "partial content";
|
|
55
|
+
readonly 207: "multi-status";
|
|
56
|
+
readonly 208: "already reported";
|
|
57
|
+
readonly 100: "continue";
|
|
58
|
+
readonly 101: "switching protocols";
|
|
59
|
+
readonly 102: "processing";
|
|
60
|
+
readonly 103: "early hints";
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=status-code-to-phrase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-code-to-phrase.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/status-code-to-phrase.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMzB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { informationalStatusCodeToPhrase } from './1xx/index.js';
|
|
2
|
+
import { successfulStatusCodeToPhrase } from './2xx/index.js';
|
|
3
|
+
import { redirectionStatusCodeToPhrase } from './3xx/index.js';
|
|
4
|
+
import { clientErrorStatusCodeToPhrase } from './4xx/index.js';
|
|
5
|
+
import { serverErrorStatusCodeToPhrase } from './5xx/index.js';
|
|
6
|
+
export const httpStatusCodeToPhrase = {
|
|
7
|
+
...informationalStatusCodeToPhrase,
|
|
8
|
+
...successfulStatusCodeToPhrase,
|
|
9
|
+
...redirectionStatusCodeToPhrase,
|
|
10
|
+
...clientErrorStatusCodeToPhrase,
|
|
11
|
+
...serverErrorStatusCodeToPhrase,
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=status-code-to-phrase.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-code-to-phrase.js","sourceRoot":"","sources":["../../src/http-status-codes/status-code-to-phrase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,GAAG,+BAA+B;IAClC,GAAG,4BAA4B;IAC/B,GAAG,6BAA6B;IAChC,GAAG,6BAA6B;IAChC,GAAG,6BAA6B;CACxB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HttpStatusCode } from './http-status-code.js';
|
|
2
|
+
import type { HttpStatusPhrase } from './http-status-phrase.js';
|
|
3
|
+
export declare function isValidHttpStatusCode(code: unknown): code is HttpStatusCode;
|
|
4
|
+
export declare function isValidHttpStatusPhrase(phrase: string): phrase is HttpStatusPhrase;
|
|
5
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/validate.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,cAAc,CAiB3E;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,GACb,MAAM,IAAI,gBAAgB,CAQ5B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { isValidInformationalPhrase, isValidInformationalStatusCode, } from './1xx/index.js';
|
|
2
|
+
import { isValidSuccessfulPhrase, isValidSuccessfulStatusCode, } from './2xx/index.js';
|
|
3
|
+
import { isValidRedirectionPhrase, isValidRedirectionStatusCode, } from './3xx/index.js';
|
|
4
|
+
import { isValidClientErrorPhrase, isValidClientErrorStatusCode, } from './4xx/index.js';
|
|
5
|
+
import { isValidServerErrorPhrase, isValidServerErrorStatusCode, } from './5xx/index.js';
|
|
6
|
+
export function isValidHttpStatusCode(code) {
|
|
7
|
+
let codeNum;
|
|
8
|
+
if (typeof code === 'number') {
|
|
9
|
+
codeNum = code;
|
|
10
|
+
}
|
|
11
|
+
else if (typeof code === 'string' && !isNaN(+code)) {
|
|
12
|
+
codeNum = +code;
|
|
13
|
+
}
|
|
14
|
+
return (typeof codeNum !== 'undefined' &&
|
|
15
|
+
(isValidInformationalStatusCode(codeNum) ||
|
|
16
|
+
isValidSuccessfulStatusCode(codeNum) ||
|
|
17
|
+
isValidRedirectionStatusCode(codeNum) ||
|
|
18
|
+
isValidClientErrorStatusCode(codeNum) ||
|
|
19
|
+
isValidServerErrorStatusCode(codeNum)));
|
|
20
|
+
}
|
|
21
|
+
export function isValidHttpStatusPhrase(phrase) {
|
|
22
|
+
return (isValidInformationalPhrase(phrase) ||
|
|
23
|
+
isValidSuccessfulPhrase(phrase) ||
|
|
24
|
+
isValidRedirectionPhrase(phrase) ||
|
|
25
|
+
isValidClientErrorPhrase(phrase) ||
|
|
26
|
+
isValidServerErrorPhrase(phrase));
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=validate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../src/http-status-codes/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAIxB,MAAM,UAAU,qBAAqB,CAAC,IAAa;IACjD,IAAI,OAA2B,CAAC;IAEhC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,GAAG,IAAI,CAAC;IACjB,CAAC;SAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;QACrD,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,OAAO,CACL,OAAO,OAAO,KAAK,WAAW;QAC9B,CAAC,8BAA8B,CAAC,OAAO,CAAC;YACtC,2BAA2B,CAAC,OAAO,CAAC;YACpC,4BAA4B,CAAC,OAAO,CAAC;YACrC,4BAA4B,CAAC,OAAO,CAAC;YACrC,4BAA4B,CAAC,OAAO,CAAC,CAAC,CACzC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,MAAc;IAEd,OAAO,CACL,0BAA0B,CAAC,MAAM,CAAC;QAClC,uBAAuB,CAAC,MAAM,CAAC;QAC/B,wBAAwB,CAAC,MAAM,CAAC;QAChC,wBAAwB,CAAC,MAAM,CAAC;QAChC,wBAAwB,CAAC,MAAM,CAAC,CACjC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ThymianEmitter } from '../../index.js';
|
|
2
|
+
import type { HttpTestContext } from './http-test-context.js';
|
|
3
|
+
import type { HttpTestHooks } from './http-test-hooks.js';
|
|
4
|
+
declare module '@thymian/core' {
|
|
5
|
+
interface ThymianActions {
|
|
6
|
+
'http-testing.beforeRequest': {
|
|
7
|
+
event: HttpTestHooks['beforeRequest']['arg'];
|
|
8
|
+
response: HttpTestHooks['beforeRequest']['return'];
|
|
9
|
+
};
|
|
10
|
+
'http-testing.afterResponse': {
|
|
11
|
+
event: HttpTestHooks['afterResponse']['arg'];
|
|
12
|
+
response: HttpTestHooks['afterResponse']['return'];
|
|
13
|
+
};
|
|
14
|
+
'http-testing.authorize': {
|
|
15
|
+
event: HttpTestHooks['authorize']['arg'];
|
|
16
|
+
response: HttpTestHooks['authorize']['return'];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export declare function createHttpTestHookRunnerFromThymianEmitter(emitter: ThymianEmitter): HttpTestContext['runHook'];
|
|
21
|
+
//# sourceMappingURL=create-hook-runner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-hook-runner.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/create-hook-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,QAAQ,eAAe,CAAC;IAC7B,UAAU,cAAc;QACtB,4BAA4B,EAAE;YAC5B,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC;YAC7C,QAAQ,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC;SACpD,CAAC;QAEF,4BAA4B,EAAE;YAC5B,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC;YAC7C,QAAQ,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC;SACpD,CAAC;QAEF,wBAAwB,EAAE;YACxB,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC;YACzC,QAAQ,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;SAChD,CAAC;KACH;CACF;AAID,wBAAgB,0CAA0C,CACxD,OAAO,EAAE,cAAc,GACtB,eAAe,CAAC,SAAS,CAAC,CAe5B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ThymianEmitter } from '../../index.js';
|
|
2
|
+
import { deepmerge } from '../../utils.js';
|
|
3
|
+
const dm = deepmerge();
|
|
4
|
+
export function createHttpTestHookRunnerFromThymianEmitter(emitter) {
|
|
5
|
+
return async function runHook(name, payload) {
|
|
6
|
+
const actionName = `http-testing.${name}`;
|
|
7
|
+
const result = await emitter.emitAction(actionName, payload, {
|
|
8
|
+
strategy: 'deep-merge',
|
|
9
|
+
});
|
|
10
|
+
const value = dm(payload, result.result ?? {});
|
|
11
|
+
return {
|
|
12
|
+
...result,
|
|
13
|
+
value,
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=create-hook-runner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-hook-runner.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/create-hook-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAuB3C,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;AAEvB,MAAM,UAAU,0CAA0C,CACxD,OAAuB;IAEvB,OAAO,KAAK,UAAU,OAAO,CAAC,IAAI,EAAE,OAAO;QACzC,MAAM,UAAU,GAA0C,gBAAgB,IAAI,EAAE,CAAC;QAEjF,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE;YAC3D,QAAQ,EAAE,YAAY;SACvB,CAAC,CAAC;QAEH,MAAM,KAAK,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;QAE/C,OAAO;YACL,GAAG,MAAM;YACT,KAAK;SACN,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { HttpTestContext, HttpTestContextLocals } from './http-test-context.js';
|
|
2
|
+
export declare function createHttpTestContext<Locals extends HttpTestContextLocals = HttpTestContextLocals>(context: Omit<HttpTestContext<Locals>, 'skip' | 'fail'>): HttpTestContext<Locals>;
|
|
3
|
+
//# sourceMappingURL=create-http-test-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-http-test-context.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/create-http-test-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAGhC,wBAAgB,qBAAqB,CACnC,MAAM,SAAS,qBAAqB,GAAG,qBAAqB,EAE5D,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GACtD,eAAe,CAAC,MAAM,CAAC,CA8BzB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export function createHttpTestContext(context) {
|
|
2
|
+
return {
|
|
3
|
+
...context,
|
|
4
|
+
skip(testCase, reason) {
|
|
5
|
+
testCase.status = 'skipped';
|
|
6
|
+
testCase.reason = reason;
|
|
7
|
+
testCase.end = performance.now();
|
|
8
|
+
return {
|
|
9
|
+
ctx: this,
|
|
10
|
+
current: testCase,
|
|
11
|
+
};
|
|
12
|
+
},
|
|
13
|
+
fail(testCase, reason) {
|
|
14
|
+
testCase.status = 'failed';
|
|
15
|
+
testCase.reason = reason;
|
|
16
|
+
testCase.end = performance.now();
|
|
17
|
+
return {
|
|
18
|
+
ctx: this,
|
|
19
|
+
current: testCase,
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=create-http-test-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-http-test-context.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/create-http-test-context.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,qBAAqB,CAGnC,OAAuD;IAEvD,OAAO;QACL,GAAG,OAAO;QACV,IAAI,CACF,QAA6B,EAC7B,MAAe;YAEf,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;YAC5B,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;YACzB,QAAQ,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;YAEjC,OAAO;gBACL,GAAG,EAAE,IAAI;gBACT,OAAO,EAAE,QAAQ;aAClB,CAAC;QACJ,CAAC;QACD,IAAI,CACF,QAA6B,EAC7B,MAAe;YAEf,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC;YAC3B,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;YACzB,QAAQ,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;YAEjC,OAAO;gBACL,GAAG,EAAE,IAAI;gBACT,OAAO,EAAE,QAAQ;aAClB,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ThymianHttpTransaction } from '../../index.js';
|
|
2
|
+
export type HttpTestCaseResult = {
|
|
3
|
+
message: string;
|
|
4
|
+
timestamp?: number;
|
|
5
|
+
location?: {
|
|
6
|
+
stepIdx: number;
|
|
7
|
+
transactionIdx: number;
|
|
8
|
+
};
|
|
9
|
+
} & (AssertionSuccess | AssertionFailure | ExecutionError | Timeout | Skip | Warning | Info | InvalidTransaction);
|
|
10
|
+
export type AssertionSuccess = {
|
|
11
|
+
type: 'assertion-success';
|
|
12
|
+
assertion?: string;
|
|
13
|
+
};
|
|
14
|
+
export type AssertionFailure = {
|
|
15
|
+
type: 'assertion-failure';
|
|
16
|
+
assertion?: string;
|
|
17
|
+
expected?: unknown;
|
|
18
|
+
actual?: unknown;
|
|
19
|
+
transaction?: ThymianHttpTransaction;
|
|
20
|
+
};
|
|
21
|
+
export type ExecutionError = {
|
|
22
|
+
type: 'execution-error';
|
|
23
|
+
error: string;
|
|
24
|
+
};
|
|
25
|
+
export type Timeout = {
|
|
26
|
+
type: 'timeout';
|
|
27
|
+
durationMs: number;
|
|
28
|
+
};
|
|
29
|
+
export type Skip = {
|
|
30
|
+
type: 'skip';
|
|
31
|
+
reason?: string;
|
|
32
|
+
};
|
|
33
|
+
export type Warning = {
|
|
34
|
+
type: 'warning';
|
|
35
|
+
details?: string;
|
|
36
|
+
};
|
|
37
|
+
export type Info = {
|
|
38
|
+
type: 'info';
|
|
39
|
+
details?: string;
|
|
40
|
+
};
|
|
41
|
+
export type InvalidTransaction = {
|
|
42
|
+
type: 'invalid-transaction';
|
|
43
|
+
details?: string;
|
|
44
|
+
transaction?: ThymianHttpTransaction;
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=http-test-case-result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-case-result.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-case-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC;CACxD,GAAG,CACA,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,OAAO,GACP,IAAI,GACJ,OAAO,GACP,IAAI,GACJ,kBAAkB,CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-case-result.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-case-result.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { HttpRequest, HttpRequestTemplate, HttpResponse, ThymianHttpTransaction } from '../../index.js';
|
|
2
|
+
import type { HttpTestCaseResult } from './http-test-case-result.js';
|
|
3
|
+
export interface GroupedHttpTestCaseStep<Transactions extends HttpTestCaseStepTransaction[] = HttpTestCaseStepTransaction[]> extends HttpTestCaseStep<{
|
|
4
|
+
key: string;
|
|
5
|
+
transactions: ThymianHttpTransaction[];
|
|
6
|
+
}, Transactions> {
|
|
7
|
+
type: 'grouped';
|
|
8
|
+
}
|
|
9
|
+
export interface SingleHttpTestCaseStep<Transactions extends HttpTestCaseStepTransaction[] = HttpTestCaseStepTransaction[]> extends HttpTestCaseStep<ThymianHttpTransaction, Transactions> {
|
|
10
|
+
type: 'single';
|
|
11
|
+
}
|
|
12
|
+
export interface CustomHttpTestCaseStep<Source = unknown> extends HttpTestCaseStep<Source> {
|
|
13
|
+
type: 'custom';
|
|
14
|
+
}
|
|
15
|
+
export type HttpTestCaseStepTransaction = {
|
|
16
|
+
requestTemplate: HttpRequestTemplate;
|
|
17
|
+
request?: HttpRequest;
|
|
18
|
+
response?: HttpResponse;
|
|
19
|
+
source?: ThymianHttpTransaction;
|
|
20
|
+
};
|
|
21
|
+
export interface HttpTestCaseStep<Source = unknown, Transactions extends HttpTestCaseStepTransaction[] = HttpTestCaseStepTransaction[]> {
|
|
22
|
+
type: 'single' | 'grouped' | 'custom';
|
|
23
|
+
source: Source;
|
|
24
|
+
transactions: Transactions;
|
|
25
|
+
}
|
|
26
|
+
export type HttpTestCaseStatus = 'running' | 'skipped' | 'failed' | 'passed';
|
|
27
|
+
export type HttpTestCase<Steps extends HttpTestCaseStep[] = HttpTestCaseStep[]> = {
|
|
28
|
+
start: number;
|
|
29
|
+
end?: number;
|
|
30
|
+
status: HttpTestCaseStatus;
|
|
31
|
+
reason?: string;
|
|
32
|
+
name: string;
|
|
33
|
+
readonly steps: Steps;
|
|
34
|
+
readonly results: HttpTestCaseResult[];
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=http-test-case.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-case.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-case.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,uBAAuB,CACtC,YAAY,SAAS,2BAA2B,EAAE,GAChD,2BAA2B,EAAE,CAC/B,SAAQ,gBAAgB,CACxB;IACE,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,sBAAsB,EAAE,CAAC;CACxC,EACD,YAAY,CACb;IACC,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB,CACrC,YAAY,SAAS,2BAA2B,EAAE,GAChD,2BAA2B,EAAE,CAC/B,SAAQ,gBAAgB,CAAC,sBAAsB,EAAE,YAAY,CAAC;IAC9D,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB,CACrC,MAAM,GAAG,OAAO,CAChB,SAAQ,gBAAgB,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,eAAe,EAAE,mBAAmB,CAAC;IACrC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACjC,CAAC;AAEF,MAAM,WAAW,gBAAgB,CAC/B,MAAM,GAAG,OAAO,EAChB,YAAY,SAAS,2BAA2B,EAAE,GAChD,2BAA2B,EAAE;IAE/B,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7E,MAAM,MAAM,YAAY,CACtB,KAAK,SAAS,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,IACnD;IACF,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,EAAE,CAAC;CACxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-case.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-case.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HttpRequest, HttpRequestTemplate, HttpResponse, Logger, ThymianFormat, ThymianHttpTransaction } from '../../index.js';
|
|
2
|
+
import type { HttpTestCase, HttpTestCaseStep } from './http-test-case.js';
|
|
3
|
+
import type { HttpTestHooks } from './http-test-hooks.js';
|
|
4
|
+
import type { PipelineItem } from './http-test-pipeline.js';
|
|
5
|
+
export type GenerateRequestsOptions = {
|
|
6
|
+
authenticate?: boolean;
|
|
7
|
+
validCredentials?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type HttpTestContextLocals = Record<PropertyKey, unknown>;
|
|
10
|
+
export interface HttpTestContext<Locals extends HttpTestContextLocals = HttpTestContextLocals> {
|
|
11
|
+
format: ThymianFormat;
|
|
12
|
+
logger: Logger;
|
|
13
|
+
locals: Locals;
|
|
14
|
+
sampleRequest(transaction: ThymianHttpTransaction): Promise<HttpRequestTemplate>;
|
|
15
|
+
runRequest(req: HttpRequest): Promise<HttpResponse>;
|
|
16
|
+
runHook<Hook extends keyof HttpTestHooks>(name: Hook, payload: HttpTestHooks[Hook]['arg']): Promise<HttpTestHooks[Hook]['return']>;
|
|
17
|
+
skip<Steps extends HttpTestCaseStep[]>(testCase: HttpTestCase<Steps>, reason?: string): PipelineItem<HttpTestCase<Steps>, Locals>;
|
|
18
|
+
fail<Steps extends HttpTestCaseStep[]>(testCase: HttpTestCase<Steps>, reason?: string): PipelineItem<HttpTestCase<Steps>, Locals>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=http-test-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-context.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,MAAM,EACN,aAAa,EACb,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAEjE,MAAM,WAAW,eAAe,CAC9B,MAAM,SAAS,qBAAqB,GAAG,qBAAqB;IAE5D,MAAM,EAAE,aAAa,CAAC;IAEtB,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,EAAE,MAAM,CAAC;IAEf,aAAa,CACX,WAAW,EAAE,sBAAsB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC,UAAU,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAEpD,OAAO,CAAC,IAAI,SAAS,MAAM,aAAa,EACtC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAClC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAE1C,IAAI,CAAC,KAAK,SAAS,gBAAgB,EAAE,EACnC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,EAC7B,MAAM,CAAC,EAAE,MAAM,GACd,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IAE7C,IAAI,CAAC,KAAK,SAAS,gBAAgB,EAAE,EACnC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,EAC7B,MAAM,CAAC,EAAE,MAAM,GACd,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;CAC9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-context.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-context.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { HttpRequest, HttpRequestTemplate, HttpResponse, ThymianHttpTransaction } from '../../index.js';
|
|
2
|
+
import type { HttpTestCaseResult } from './http-test-case-result.js';
|
|
3
|
+
export type HttpTestHookReturnType<T> = {
|
|
4
|
+
result: T;
|
|
5
|
+
testResults?: HttpTestCaseResult[];
|
|
6
|
+
skip?: string;
|
|
7
|
+
fail?: string;
|
|
8
|
+
};
|
|
9
|
+
export type HttpTestHookArg<T, Ctx> = {
|
|
10
|
+
value: T;
|
|
11
|
+
ctx: Ctx;
|
|
12
|
+
};
|
|
13
|
+
export type HttpTestHook<T, Ctx> = {
|
|
14
|
+
arg: HttpTestHookArg<T, Ctx>;
|
|
15
|
+
return: HttpTestHookReturnType<T>;
|
|
16
|
+
};
|
|
17
|
+
export interface HttpTestHooks {
|
|
18
|
+
beforeRequest: HttpTestHook<HttpRequestTemplate, ThymianHttpTransaction | undefined>;
|
|
19
|
+
afterResponse: HttpTestHook<HttpResponse, {
|
|
20
|
+
requestTemplate: HttpRequestTemplate;
|
|
21
|
+
request: HttpRequest;
|
|
22
|
+
thymianTransaction?: ThymianHttpTransaction;
|
|
23
|
+
}>;
|
|
24
|
+
authorize: HttpTestHook<HttpRequestTemplate, ThymianHttpTransaction | undefined>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=http-test-hooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-hooks.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI;IACtC,MAAM,EAAE,CAAC,CAAC;IACV,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,CAAC,EAAE,GAAG,IAAI;IACpC,KAAK,EAAE,CAAC,CAAC;IACT,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,GAAG,IAAI;IACjC,GAAG,EAAE,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,YAAY,CACzB,mBAAmB,EACnB,sBAAsB,GAAG,SAAS,CACnC,CAAC;IAEF,aAAa,EAAE,YAAY,CACzB,YAAY,EACZ;QACE,eAAe,EAAE,mBAAmB,CAAC;QACrC,OAAO,EAAE,WAAW,CAAC;QACrB,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;KAC7C,CACF,CAAC;IAEF,SAAS,EAAE,YAAY,CACrB,mBAAmB,EACnB,sBAAsB,GAAG,SAAS,CACnC,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-hooks.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-hooks.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
import type { ThymianHttpTransaction } from '../../index.js';
|
|
3
|
+
import type { HttpTestCase } from './http-test-case.js';
|
|
4
|
+
import type { HttpTestContext, HttpTestContextLocals } from './http-test-context.js';
|
|
5
|
+
export type PipelineItem<Current, Locals extends HttpTestContextLocals = HttpTestContextLocals> = {
|
|
6
|
+
current: Current;
|
|
7
|
+
ctx: HttpTestContext<Locals>;
|
|
8
|
+
};
|
|
9
|
+
export type HttpTestPipeline<Locals extends HttpTestContextLocals> = (transactions: Observable<PipelineItem<ThymianHttpTransaction, Locals>>) => Observable<PipelineItem<HttpTestCase, Locals>>;
|
|
10
|
+
//# sourceMappingURL=http-test-pipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-pipeline.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,YAAY,CACtB,OAAO,EACP,MAAM,SAAS,qBAAqB,GAAG,qBAAqB,IAC1D;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,qBAAqB,IAAI,CACnE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,KACnE,UAAU,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test-pipeline.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-pipeline.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type HttpTestCase } from './http-test-case.js';
|
|
2
|
+
import type { HttpTestContext, HttpTestContextLocals } from './http-test-context.js';
|
|
3
|
+
import type { HttpTestPipeline } from './http-test-pipeline.js';
|
|
4
|
+
export type HttpTestResult = {
|
|
5
|
+
name: string;
|
|
6
|
+
duration: number;
|
|
7
|
+
cases: HttpTestCase[];
|
|
8
|
+
};
|
|
9
|
+
export type HttpTestRunnerFn<Locals extends HttpTestContextLocals> = (ctx: HttpTestContext<Locals>) => Promise<HttpTestResult>;
|
|
10
|
+
export declare function httpTest<Locals extends HttpTestContextLocals = HttpTestContextLocals>(name: string, fn: HttpTestPipeline<Locals>): HttpTestRunnerFn<Locals>;
|
|
11
|
+
//# sourceMappingURL=http-test.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-test.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAgB,MAAM,yBAAyB,CAAC;AAE9E,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,qBAAqB,IAAI,CACnE,GAAG,EAAE,eAAe,CAAC,MAAM,CAAC,KACzB,OAAO,CAAC,cAAc,CAAC,CAAC;AAE7B,wBAAgB,QAAQ,CACtB,MAAM,SAAS,qBAAqB,GAAG,qBAAqB,EAC5D,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAmCtE"}
|