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 3.3.0 to 3.3.1

4

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

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