@pactflow/openapi-pact-comparator 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +21 -14
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/cli.cjs
CHANGED
|
@@ -4321,7 +4321,7 @@ const {
|
|
|
4321
4321
|
Help,
|
|
4322
4322
|
} = commander;
|
|
4323
4323
|
|
|
4324
|
-
/*! js-yaml 4.1.
|
|
4324
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
4325
4325
|
function isNothing(subject) {
|
|
4326
4326
|
return (typeof subject === 'undefined') || (subject === null);
|
|
4327
4327
|
}
|
|
@@ -5532,6 +5532,22 @@ function charFromCodepoint(c) {
|
|
|
5532
5532
|
);
|
|
5533
5533
|
}
|
|
5534
5534
|
|
|
5535
|
+
// set a property of a literal object, while protecting against prototype pollution,
|
|
5536
|
+
// see https://github.com/nodeca/js-yaml/issues/164 for more details
|
|
5537
|
+
function setProperty(object, key, value) {
|
|
5538
|
+
// used for this specific key only because Object.defineProperty is slow
|
|
5539
|
+
if (key === '__proto__') {
|
|
5540
|
+
Object.defineProperty(object, key, {
|
|
5541
|
+
configurable: true,
|
|
5542
|
+
enumerable: true,
|
|
5543
|
+
writable: true,
|
|
5544
|
+
value: value
|
|
5545
|
+
});
|
|
5546
|
+
} else {
|
|
5547
|
+
object[key] = value;
|
|
5548
|
+
}
|
|
5549
|
+
}
|
|
5550
|
+
|
|
5535
5551
|
var simpleEscapeCheck = new Array(256); // integer, for fast access
|
|
5536
5552
|
var simpleEscapeMap = new Array(256);
|
|
5537
5553
|
for (var i = 0; i < 256; i++) {
|
|
@@ -5710,7 +5726,7 @@ function mergeMappings(state, destination, source, overridableKeys) {
|
|
|
5710
5726
|
key = sourceKeys[index];
|
|
5711
5727
|
|
|
5712
5728
|
if (!_hasOwnProperty$1.call(destination, key)) {
|
|
5713
|
-
destination
|
|
5729
|
+
setProperty(destination, key, source[key]);
|
|
5714
5730
|
overridableKeys[key] = true;
|
|
5715
5731
|
}
|
|
5716
5732
|
}
|
|
@@ -5770,17 +5786,7 @@ function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valu
|
|
|
5770
5786
|
throwError(state, 'duplicated mapping key');
|
|
5771
5787
|
}
|
|
5772
5788
|
|
|
5773
|
-
|
|
5774
|
-
if (keyNode === '__proto__') {
|
|
5775
|
-
Object.defineProperty(_result, keyNode, {
|
|
5776
|
-
configurable: true,
|
|
5777
|
-
enumerable: true,
|
|
5778
|
-
writable: true,
|
|
5779
|
-
value: valueNode
|
|
5780
|
-
});
|
|
5781
|
-
} else {
|
|
5782
|
-
_result[keyNode] = valueNode;
|
|
5783
|
-
}
|
|
5789
|
+
setProperty(_result, keyNode, valueNode);
|
|
5784
5790
|
delete overridableKeys[keyNode];
|
|
5785
5791
|
}
|
|
5786
5792
|
|
|
@@ -32437,6 +32443,7 @@ function setupRouter(oas, config) {
|
|
|
32437
32443
|
"";
|
|
32438
32444
|
const path = basePath +
|
|
32439
32445
|
oasPath
|
|
32446
|
+
.replaceAll(":", "::")
|
|
32440
32447
|
.replaceAll(/{.*?}/g, cleanPathParameter)
|
|
32441
32448
|
.replaceAll(/{([.;]?)([^*]+?)\*?}/g, "$1:$2(.+)");
|
|
32442
32449
|
for (const method in oas.paths[oasPath]) {
|
|
@@ -32557,7 +32564,7 @@ class Comparator {
|
|
|
32557
32564
|
}
|
|
32558
32565
|
}
|
|
32559
32566
|
|
|
32560
|
-
var version = "1.
|
|
32567
|
+
var version = "1.10.0";
|
|
32561
32568
|
var packageJson = {
|
|
32562
32569
|
version: version};
|
|
32563
32570
|
|