Comparing version 3.3.0 to 3.3.1
{ | ||
"name": "pactum", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "REST API Testing Tool for all levels in a Test Pyramid", | ||
@@ -64,3 +64,3 @@ "main": "./src/index.js", | ||
"parse-graphql": "^1.0.0", | ||
"phin": "^3.6.1", | ||
"phin": "^3.7.0", | ||
"polka": "^0.5.2" | ||
@@ -67,0 +67,0 @@ }, |
@@ -5,3 +5,3 @@ import * as Spec from '../models/Spec'; | ||
interface Request { | ||
interface PactumRequest { | ||
url: string; | ||
@@ -13,3 +13,3 @@ method: string; | ||
interface Response extends IncomingMessage { | ||
interface PactumResponse extends IncomingMessage { | ||
json?: object; | ||
@@ -32,4 +32,4 @@ body?: any; | ||
interface RequestResponseContext { | ||
req: Request; | ||
res: Response; | ||
req: PactumRequest; | ||
res: PactumResponse; | ||
} | ||
@@ -36,0 +36,0 @@ |
@@ -211,2 +211,8 @@ import { RequestOptions, IncomingMessage } from 'http'; | ||
/** | ||
* enables compression | ||
* @see https://pactumjs.github.io/api/requests/withCompression.html | ||
*/ | ||
withCompression(): Spec; | ||
/** | ||
* retry request on specific conditions | ||
@@ -213,0 +219,0 @@ * @see https://pactumjs.github.io/api/requests/retry.html |
@@ -296,2 +296,7 @@ const fd = require('../plugins/form.data') | ||
withCompression() { | ||
this._request.compression = true; | ||
return this; | ||
} | ||
retry(options, delay) { | ||
@@ -298,0 +303,0 @@ if (typeof options === 'undefined' || typeof options === 'number') { |
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
163828
4910
Updatedphin@^3.7.0