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.1 to 3.3.2

4

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

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

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

@@ -65,0 +65,0 @@ "phin": "^3.7.0",

const assert = require('assert');
const jqy = require('json-query');
const lc = require('lightcookie');
const { klona: clone } = require('klona');

@@ -278,3 +279,3 @@ const config = require('../config');

for (let i = 0; i < this.jsonMatch.length; i++) {
const data = this.jsonMatch[i];
const data = clone(this.jsonMatch[i]);
const rules = jmv.getMatchingRules(data, '$.body');

@@ -292,3 +293,3 @@ const value = jmv.getRawValue(data);

for (let i = 0; i < this.jsonMatchQuery.length; i++) {
const jQ = this.jsonMatchQuery[i];
const jQ = clone(this.jsonMatchQuery[i]);
const actualValue = jqy(jQ.path, { data: response.json }).value;

@@ -307,3 +308,3 @@ const rules = jmv.getMatchingRules(jQ.value, jQ.path);

for (let i = 0; i < this.jsonMatchStrict.length; i++) {
const data = this.jsonMatchStrict[i];
const data = clone(this.jsonMatchStrict[i]);
const rules = jmv.getMatchingRules(data, '$.body');

@@ -321,3 +322,3 @@ const value = jmv.getRawValue(data);

for (let i = 0; i < this.jsonMatchStrictQuery.length; i++) {
const jQ = this.jsonMatchStrictQuery[i];
const jQ = clone(this.jsonMatchStrictQuery[i]);
const actualValue = jqy(jQ.path, { data: response.json }).value;

@@ -324,0 +325,0 @@ const rules = jmv.getMatchingRules(jQ.value, jQ.path);

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