Comparing version 2.0.13 to 2.0.14
{ | ||
"name": "pactum", | ||
"version": "2.0.13", | ||
"version": "2.0.14", | ||
"description": "REST API Testing Tool to write e2e, integration, contract & component or service level tests", | ||
@@ -72,3 +72,3 @@ "main": "./src/index.js", | ||
"json-query": "^2.2.2", | ||
"openapi-fuzzer-core": "^1.0.2", | ||
"openapi-fuzzer-core": "^1.0.3", | ||
"parse-graphql": "^1.0.0", | ||
@@ -75,0 +75,0 @@ "phin": "^3.4.1", |
@@ -14,15 +14,17 @@ const reporters = []; | ||
afterSpec(data) { | ||
reporters.forEach(rpt => { if (rpt['afterSpec']) rpt.afterSpec(data) }); | ||
reporters.forEach(rpt => { if (rpt['afterSpec']) rpt.afterSpec(data); }); | ||
}, | ||
afterStep(data) { | ||
reporters.forEach(rpt => { if (rpt['afterStep']) rpt.afterStep(data) }); | ||
reporters.forEach(rpt => { if (rpt['afterStep']) rpt.afterStep(data); }); | ||
}, | ||
afterTest(data) { | ||
reporters.forEach(rpt => { if (rpt['afterTest']) rpt.afterTest(data) }); | ||
reporters.forEach(rpt => { if (rpt['afterTest']) rpt.afterTest(data); }); | ||
}, | ||
async end() { | ||
await reporters.forEach(async rpt => await rpt.end()); | ||
for (let i = 0; i < reporters.length; i++) { | ||
await reporters[i].end(); | ||
} | ||
} | ||
@@ -29,0 +31,0 @@ |
@@ -19,4 +19,5 @@ const reporter = require('../exports/reporter'); | ||
data.request = { | ||
url: spec._request.url, | ||
method: spec._request.method, | ||
path: spec._request.url, | ||
path: spec._request.path, | ||
headers: spec._request.headers, | ||
@@ -31,3 +32,3 @@ body: spec._request.data | ||
responseTime: spec._response.responseTime | ||
} | ||
}; | ||
} | ||
@@ -50,3 +51,3 @@ data.recorded = spec.recorded; | ||
} | ||
}, | ||
@@ -60,3 +61,3 @@ | ||
steps: test.steps.map(step => step.id) | ||
} | ||
}; | ||
reporter.afterTest(data); | ||
@@ -66,4 +67,4 @@ } | ||
} | ||
}; | ||
module.exports = rlc; |
@@ -71,6 +71,2 @@ const url = require('url'); | ||
} | ||
const bodyType = typeof request.body; | ||
if (bodyType === 'number' || bodyType === 'boolean') { | ||
request.data = request.body.toString(); | ||
} | ||
} | ||
@@ -77,0 +73,0 @@ |
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
189178
5358
Updatedopenapi-fuzzer-core@^1.0.3