Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pactum

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pactum - npm Package Compare versions

Comparing version 2.0.13 to 2.0.14

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc