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.1.2 to 3.1.3

4

package.json
{
"name": "pactum",
"version": "3.1.2",
"version": "3.1.3",
"description": "REST API Testing Tool for all levels in a Test Pyramid",

@@ -70,3 +70,3 @@ "main": "./src/index.js",

"openapi-fuzzer-core": "^1.0.6",
"pactum-matchers": "^1.0.6",
"pactum-matchers": "^1.1.0",
"parse-graphql": "^1.0.0",

@@ -73,0 +73,0 @@ "phin": "^3.6.0",

@@ -345,3 +345,8 @@ const assert = require('assert');

if (data) {
Object.assign(rules, jmv.getMatchingRules(data, '$.body'));
const current_rules = jmv.getMatchingRules(data, '$.body');
const errors = jmv.validate(actual, jmv.getRawValue(data), current_rules, '$.body');
if (errors) {
this.fail(errors.replace('$.body', '$'));
}
Object.assign(rules, current_rules);
}

@@ -348,0 +353,0 @@ }

@@ -214,8 +214,17 @@ const fd = require('../plugins/form.data')

}
const cookieObject = utils.createCookieObject(key, value);
let cookie;
if (typeof key === 'object') {
cookie = lc.serialize(key);
} else {
if (value) {
cookie = `${key}=${value}`;
} else {
cookie = key;
}
}
const headers = this._request.headers;
if (headers['cookie'] !== undefined) {
headers['cookie'] = headers['cookie'] + ';' + lc.serialize(cookieObject);
headers['cookie'] = headers['cookie'] + ';' + cookie;
} else {
headers['cookie'] = lc.serialize(cookieObject);
headers['cookie'] = cookie;
}

@@ -222,0 +231,0 @@ return this;

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