@pactflow/pact-msw-adapter
Advanced tools
Comparing version 1.1.1 to 1.2.0
@@ -5,2 +5,14 @@ # Changelog | ||
## [1.2.0](https://github.com/pactflow/pact-msw-adapter/compare/v1.1.1...v1.2.0) (2022-06-01) | ||
### Features | ||
* add query to request in the pact file ([1473315](https://github.com/pactflow/pact-msw-adapter/commit/147331570aa37d4b70c06e12dac3039cfdccc4b1)) | ||
### Bug Fixes | ||
* change type ([1cfd279](https://github.com/pactflow/pact-msw-adapter/commit/1cfd27921fd770a5e098255724d015eccad5b70b)) | ||
### [1.1.1](https://github.com/pactflow/pact-msw-adapter/compare/v1.1.0...v1.1.1) (2022-05-21) | ||
@@ -7,0 +19,0 @@ |
@@ -9,5 +9,5 @@ "use strict"; | ||
provider: { name: provider }, | ||
interactions: matches.map((match) => { | ||
interactions: matches.map(match => { | ||
var _a; | ||
return { | ||
return ({ | ||
description: match.request.id, | ||
@@ -21,3 +21,4 @@ providerState: '', | ||
: match.request.headers['_headers'], | ||
body: match.request.body || undefined | ||
body: match.request.body || undefined, | ||
query: match.request.url.search ? match.request.url.search.split('?')[1] : undefined | ||
}, | ||
@@ -35,3 +36,3 @@ response: { | ||
} | ||
}; | ||
}); | ||
}), | ||
@@ -38,0 +39,0 @@ metadata: { |
@@ -52,2 +52,3 @@ /// <reference types="node" /> | ||
body: DefaultRequestBody; | ||
query?: string; | ||
}; | ||
@@ -54,0 +55,0 @@ response: { |
{ | ||
"name": "@pactflow/pact-msw-adapter", | ||
"version": "1.1.1", | ||
"version": "1.2.0", | ||
"main": "./dist/pactMswAdapter.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35486
498