Comparing version 3.3.1 to 3.3.2
{ | ||
"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); |
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
163899
4911
Updatedpactum-matchers@^1.1.4