@pactflow/openapi-pact-comparator 1.8.1 → 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/index.cjs CHANGED
@@ -12206,18 +12206,18 @@ var hasRequiredCode$1;
12206
12206
  function requireCode$1 () {
12207
12207
  if (hasRequiredCode$1) return code$1;
12208
12208
  hasRequiredCode$1 = 1;
12209
- (function (exports) {
12210
- Object.defineProperty(exports, "__esModule", { value: true });
12211
- exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
12209
+ (function (exports$1) {
12210
+ Object.defineProperty(exports$1, "__esModule", { value: true });
12211
+ exports$1.regexpCode = exports$1.getEsmExportName = exports$1.getProperty = exports$1.safeStringify = exports$1.stringify = exports$1.strConcat = exports$1.addCodeArg = exports$1.str = exports$1._ = exports$1.nil = exports$1._Code = exports$1.Name = exports$1.IDENTIFIER = exports$1._CodeOrName = void 0;
12212
12212
  // eslint-disable-next-line @typescript-eslint/no-extraneous-class
12213
12213
  class _CodeOrName {
12214
12214
  }
12215
- exports._CodeOrName = _CodeOrName;
12216
- exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
12215
+ exports$1._CodeOrName = _CodeOrName;
12216
+ exports$1.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
12217
12217
  class Name extends _CodeOrName {
12218
12218
  constructor(s) {
12219
12219
  super();
12220
- if (!exports.IDENTIFIER.test(s))
12220
+ if (!exports$1.IDENTIFIER.test(s))
12221
12221
  throw new Error("CodeGen: name must be a valid identifier");
12222
12222
  this.str = s;
12223
12223
  }
@@ -12231,7 +12231,7 @@ function requireCode$1 () {
12231
12231
  return { [this.str]: 1 };
12232
12232
  }
12233
12233
  }
12234
- exports.Name = Name;
12234
+ exports$1.Name = Name;
12235
12235
  class _Code extends _CodeOrName {
12236
12236
  constructor(code) {
12237
12237
  super();
@@ -12259,8 +12259,8 @@ function requireCode$1 () {
12259
12259
  }, {})));
12260
12260
  }
12261
12261
  }
12262
- exports._Code = _Code;
12263
- exports.nil = new _Code("");
12262
+ exports$1._Code = _Code;
12263
+ exports$1.nil = new _Code("");
12264
12264
  function _(strs, ...args) {
12265
12265
  const code = [strs[0]];
12266
12266
  let i = 0;
@@ -12270,7 +12270,7 @@ function requireCode$1 () {
12270
12270
  }
12271
12271
  return new _Code(code);
12272
12272
  }
12273
- exports._ = _;
12273
+ exports$1._ = _;
12274
12274
  const plus = new _Code("+");
12275
12275
  function str(strs, ...args) {
12276
12276
  const expr = [safeStringify(strs[0])];
@@ -12283,7 +12283,7 @@ function requireCode$1 () {
12283
12283
  optimize(expr);
12284
12284
  return new _Code(expr);
12285
12285
  }
12286
- exports.str = str;
12286
+ exports$1.str = str;
12287
12287
  function addCodeArg(code, arg) {
12288
12288
  if (arg instanceof _Code)
12289
12289
  code.push(...arg._items);
@@ -12292,7 +12292,7 @@ function requireCode$1 () {
12292
12292
  else
12293
12293
  code.push(interpolate(arg));
12294
12294
  }
12295
- exports.addCodeArg = addCodeArg;
12295
+ exports$1.addCodeArg = addCodeArg;
12296
12296
  function optimize(expr) {
12297
12297
  let i = 1;
12298
12298
  while (i < expr.length - 1) {
@@ -12328,7 +12328,7 @@ function requireCode$1 () {
12328
12328
  function strConcat(c1, c2) {
12329
12329
  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str `${c1}${c2}`;
12330
12330
  }
12331
- exports.strConcat = strConcat;
12331
+ exports$1.strConcat = strConcat;
12332
12332
  // TODO do not allow arrays here
12333
12333
  function interpolate(x) {
12334
12334
  return typeof x == "number" || typeof x == "boolean" || x === null
@@ -12338,29 +12338,29 @@ function requireCode$1 () {
12338
12338
  function stringify(x) {
12339
12339
  return new _Code(safeStringify(x));
12340
12340
  }
12341
- exports.stringify = stringify;
12341
+ exports$1.stringify = stringify;
12342
12342
  function safeStringify(x) {
12343
12343
  return JSON.stringify(x)
12344
12344
  .replace(/\u2028/g, "\\u2028")
12345
12345
  .replace(/\u2029/g, "\\u2029");
12346
12346
  }
12347
- exports.safeStringify = safeStringify;
12347
+ exports$1.safeStringify = safeStringify;
12348
12348
  function getProperty(key) {
12349
- return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`;
12349
+ return typeof key == "string" && exports$1.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _ `[${key}]`;
12350
12350
  }
12351
- exports.getProperty = getProperty;
12351
+ exports$1.getProperty = getProperty;
12352
12352
  //Does best effort to format the name properly
12353
12353
  function getEsmExportName(key) {
12354
- if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
12354
+ if (typeof key == "string" && exports$1.IDENTIFIER.test(key)) {
12355
12355
  return new _Code(`${key}`);
12356
12356
  }
12357
12357
  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
12358
12358
  }
12359
- exports.getEsmExportName = getEsmExportName;
12359
+ exports$1.getEsmExportName = getEsmExportName;
12360
12360
  function regexpCode(rx) {
12361
12361
  return new _Code(rx.toString());
12362
12362
  }
12363
- exports.regexpCode = regexpCode;
12363
+ exports$1.regexpCode = regexpCode;
12364
12364
 
12365
12365
  } (code$1));
12366
12366
  return code$1;
@@ -12373,9 +12373,9 @@ var hasRequiredScope;
12373
12373
  function requireScope () {
12374
12374
  if (hasRequiredScope) return scope;
12375
12375
  hasRequiredScope = 1;
12376
- (function (exports) {
12377
- Object.defineProperty(exports, "__esModule", { value: true });
12378
- exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
12376
+ (function (exports$1) {
12377
+ Object.defineProperty(exports$1, "__esModule", { value: true });
12378
+ exports$1.ValueScope = exports$1.ValueScopeName = exports$1.Scope = exports$1.varKinds = exports$1.UsedValueState = void 0;
12379
12379
  const code_1 = requireCode$1();
12380
12380
  class ValueError extends Error {
12381
12381
  constructor(name) {
@@ -12387,8 +12387,8 @@ function requireScope () {
12387
12387
  (function (UsedValueState) {
12388
12388
  UsedValueState[UsedValueState["Started"] = 0] = "Started";
12389
12389
  UsedValueState[UsedValueState["Completed"] = 1] = "Completed";
12390
- })(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
12391
- exports.varKinds = {
12390
+ })(UsedValueState || (exports$1.UsedValueState = UsedValueState = {}));
12391
+ exports$1.varKinds = {
12392
12392
  const: new code_1.Name("const"),
12393
12393
  let: new code_1.Name("let"),
12394
12394
  var: new code_1.Name("var"),
@@ -12417,7 +12417,7 @@ function requireScope () {
12417
12417
  return (this._names[prefix] = { prefix, index: 0 });
12418
12418
  }
12419
12419
  }
12420
- exports.Scope = Scope;
12420
+ exports$1.Scope = Scope;
12421
12421
  class ValueScopeName extends code_1.Name {
12422
12422
  constructor(prefix, nameStr) {
12423
12423
  super(nameStr);
@@ -12428,7 +12428,7 @@ function requireScope () {
12428
12428
  this.scopePath = (0, code_1._) `.${new code_1.Name(property)}[${itemIndex}]`;
12429
12429
  }
12430
12430
  }
12431
- exports.ValueScopeName = ValueScopeName;
12431
+ exports$1.ValueScopeName = ValueScopeName;
12432
12432
  const line = (0, code_1._) `\n`;
12433
12433
  class ValueScope extends Scope {
12434
12434
  constructor(opts) {
@@ -12499,7 +12499,7 @@ function requireScope () {
12499
12499
  nameSet.set(name, UsedValueState.Started);
12500
12500
  let c = valueCode(name);
12501
12501
  if (c) {
12502
- const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
12502
+ const def = this.opts.es5 ? exports$1.varKinds.var : exports$1.varKinds.const;
12503
12503
  code = (0, code_1._) `${code}${def} ${name} = ${c};${this.opts._n}`;
12504
12504
  }
12505
12505
  else if ((c = getCode === null || getCode === void 0 ? void 0 : getCode(name))) {
@@ -12514,7 +12514,7 @@ function requireScope () {
12514
12514
  return code;
12515
12515
  }
12516
12516
  }
12517
- exports.ValueScope = ValueScope;
12517
+ exports$1.ValueScope = ValueScope;
12518
12518
 
12519
12519
  } (scope));
12520
12520
  return scope;
@@ -12525,26 +12525,26 @@ var hasRequiredCodegen;
12525
12525
  function requireCodegen () {
12526
12526
  if (hasRequiredCodegen) return codegen;
12527
12527
  hasRequiredCodegen = 1;
12528
- (function (exports) {
12529
- Object.defineProperty(exports, "__esModule", { value: true });
12530
- exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
12528
+ (function (exports$1) {
12529
+ Object.defineProperty(exports$1, "__esModule", { value: true });
12530
+ exports$1.or = exports$1.and = exports$1.not = exports$1.CodeGen = exports$1.operators = exports$1.varKinds = exports$1.ValueScopeName = exports$1.ValueScope = exports$1.Scope = exports$1.Name = exports$1.regexpCode = exports$1.stringify = exports$1.getProperty = exports$1.nil = exports$1.strConcat = exports$1.str = exports$1._ = void 0;
12531
12531
  const code_1 = requireCode$1();
12532
12532
  const scope_1 = requireScope();
12533
12533
  var code_2 = requireCode$1();
12534
- Object.defineProperty(exports, "_", { enumerable: true, get: function () { return code_2._; } });
12535
- Object.defineProperty(exports, "str", { enumerable: true, get: function () { return code_2.str; } });
12536
- Object.defineProperty(exports, "strConcat", { enumerable: true, get: function () { return code_2.strConcat; } });
12537
- Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return code_2.nil; } });
12538
- Object.defineProperty(exports, "getProperty", { enumerable: true, get: function () { return code_2.getProperty; } });
12539
- Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return code_2.stringify; } });
12540
- Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function () { return code_2.regexpCode; } });
12541
- Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return code_2.Name; } });
12534
+ Object.defineProperty(exports$1, "_", { enumerable: true, get: function () { return code_2._; } });
12535
+ Object.defineProperty(exports$1, "str", { enumerable: true, get: function () { return code_2.str; } });
12536
+ Object.defineProperty(exports$1, "strConcat", { enumerable: true, get: function () { return code_2.strConcat; } });
12537
+ Object.defineProperty(exports$1, "nil", { enumerable: true, get: function () { return code_2.nil; } });
12538
+ Object.defineProperty(exports$1, "getProperty", { enumerable: true, get: function () { return code_2.getProperty; } });
12539
+ Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function () { return code_2.stringify; } });
12540
+ Object.defineProperty(exports$1, "regexpCode", { enumerable: true, get: function () { return code_2.regexpCode; } });
12541
+ Object.defineProperty(exports$1, "Name", { enumerable: true, get: function () { return code_2.Name; } });
12542
12542
  var scope_2 = requireScope();
12543
- Object.defineProperty(exports, "Scope", { enumerable: true, get: function () { return scope_2.Scope; } });
12544
- Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function () { return scope_2.ValueScope; } });
12545
- Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function () { return scope_2.ValueScopeName; } });
12546
- Object.defineProperty(exports, "varKinds", { enumerable: true, get: function () { return scope_2.varKinds; } });
12547
- exports.operators = {
12543
+ Object.defineProperty(exports$1, "Scope", { enumerable: true, get: function () { return scope_2.Scope; } });
12544
+ Object.defineProperty(exports$1, "ValueScope", { enumerable: true, get: function () { return scope_2.ValueScope; } });
12545
+ Object.defineProperty(exports$1, "ValueScopeName", { enumerable: true, get: function () { return scope_2.ValueScopeName; } });
12546
+ Object.defineProperty(exports$1, "varKinds", { enumerable: true, get: function () { return scope_2.varKinds; } });
12547
+ exports$1.operators = {
12548
12548
  GT: new code_1._Code(">"),
12549
12549
  GTE: new code_1._Code(">="),
12550
12550
  LT: new code_1._Code("<"),
@@ -12958,7 +12958,7 @@ function requireCodegen () {
12958
12958
  }
12959
12959
  // `+=` code
12960
12960
  add(lhs, rhs) {
12961
- return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
12961
+ return this._leafNode(new AssignOp(lhs, exports$1.operators.ADD, rhs));
12962
12962
  }
12963
12963
  // appends passed SafeExpr to code or executes Block
12964
12964
  code(c) {
@@ -13160,7 +13160,7 @@ function requireCodegen () {
13160
13160
  ns[ns.length - 1] = node;
13161
13161
  }
13162
13162
  }
13163
- exports.CodeGen = CodeGen;
13163
+ exports$1.CodeGen = CodeGen;
13164
13164
  function addNames(names, from) {
13165
13165
  for (const n in from)
13166
13166
  names[n] = (names[n] || 0) + (from[n] || 0);
@@ -13202,19 +13202,19 @@ function requireCodegen () {
13202
13202
  function not(x) {
13203
13203
  return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._) `!${par(x)}`;
13204
13204
  }
13205
- exports.not = not;
13206
- const andCode = mappend(exports.operators.AND);
13205
+ exports$1.not = not;
13206
+ const andCode = mappend(exports$1.operators.AND);
13207
13207
  // boolean AND (&&) expression with the passed arguments
13208
13208
  function and(...args) {
13209
13209
  return args.reduce(andCode);
13210
13210
  }
13211
- exports.and = and;
13212
- const orCode = mappend(exports.operators.OR);
13211
+ exports$1.and = and;
13212
+ const orCode = mappend(exports$1.operators.OR);
13213
13213
  // boolean OR (||) expression with the passed arguments
13214
13214
  function or(...args) {
13215
13215
  return args.reduce(orCode);
13216
13216
  }
13217
- exports.or = or;
13217
+ exports$1.or = or;
13218
13218
  function mappend(op) {
13219
13219
  return (x, y) => (x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._) `${par(x)} ${op} ${par(y)}`);
13220
13220
  }
@@ -13455,21 +13455,21 @@ var hasRequiredErrors;
13455
13455
  function requireErrors () {
13456
13456
  if (hasRequiredErrors) return errors;
13457
13457
  hasRequiredErrors = 1;
13458
- (function (exports) {
13459
- Object.defineProperty(exports, "__esModule", { value: true });
13460
- exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
13458
+ (function (exports$1) {
13459
+ Object.defineProperty(exports$1, "__esModule", { value: true });
13460
+ exports$1.extendErrors = exports$1.resetErrorsCount = exports$1.reportExtraError = exports$1.reportError = exports$1.keyword$DataError = exports$1.keywordError = void 0;
13461
13461
  const codegen_1 = requireCodegen();
13462
13462
  const util_1 = requireUtil$1();
13463
13463
  const names_1 = requireNames();
13464
- exports.keywordError = {
13464
+ exports$1.keywordError = {
13465
13465
  message: ({ keyword }) => (0, codegen_1.str) `must pass "${keyword}" keyword validation`,
13466
13466
  };
13467
- exports.keyword$DataError = {
13467
+ exports$1.keyword$DataError = {
13468
13468
  message: ({ keyword, schemaType }) => schemaType
13469
13469
  ? (0, codegen_1.str) `"${keyword}" keyword must be ${schemaType} ($data)`
13470
13470
  : (0, codegen_1.str) `"${keyword}" keyword is invalid ($data)`,
13471
13471
  };
13472
- function reportError(cxt, error = exports.keywordError, errorPaths, overrideAllErrors) {
13472
+ function reportError(cxt, error = exports$1.keywordError, errorPaths, overrideAllErrors) {
13473
13473
  const { it } = cxt;
13474
13474
  const { gen, compositeRule, allErrors } = it;
13475
13475
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -13480,8 +13480,8 @@ function requireErrors () {
13480
13480
  returnErrors(it, (0, codegen_1._) `[${errObj}]`);
13481
13481
  }
13482
13482
  }
13483
- exports.reportError = reportError;
13484
- function reportExtraError(cxt, error = exports.keywordError, errorPaths) {
13483
+ exports$1.reportError = reportError;
13484
+ function reportExtraError(cxt, error = exports$1.keywordError, errorPaths) {
13485
13485
  const { it } = cxt;
13486
13486
  const { gen, compositeRule, allErrors } = it;
13487
13487
  const errObj = errorObjectCode(cxt, error, errorPaths);
@@ -13490,12 +13490,12 @@ function requireErrors () {
13490
13490
  returnErrors(it, names_1.default.vErrors);
13491
13491
  }
13492
13492
  }
13493
- exports.reportExtraError = reportExtraError;
13493
+ exports$1.reportExtraError = reportExtraError;
13494
13494
  function resetErrorsCount(gen, errsCount) {
13495
13495
  gen.assign(names_1.default.errors, errsCount);
13496
13496
  gen.if((0, codegen_1._) `${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._) `${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
13497
13497
  }
13498
- exports.resetErrorsCount = resetErrorsCount;
13498
+ exports$1.resetErrorsCount = resetErrorsCount;
13499
13499
  function extendErrors({ gen, keyword, schemaValue, data, errsCount, it, }) {
13500
13500
  /* istanbul ignore if */
13501
13501
  if (errsCount === undefined)
@@ -13511,7 +13511,7 @@ function requireErrors () {
13511
13511
  }
13512
13512
  });
13513
13513
  }
13514
- exports.extendErrors = extendErrors;
13514
+ exports$1.extendErrors = extendErrors;
13515
13515
  function addError(gen, errObj) {
13516
13516
  const err = gen.const("err", errObj);
13517
13517
  gen.if((0, codegen_1._) `${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._) `[${err}]`), (0, codegen_1._) `${names_1.default.vErrors}.push(${err})`);
@@ -16475,18 +16475,18 @@ var hasRequiredCore$1;
16475
16475
  function requireCore$1 () {
16476
16476
  if (hasRequiredCore$1) return core$1;
16477
16477
  hasRequiredCore$1 = 1;
16478
- (function (exports) {
16479
- Object.defineProperty(exports, "__esModule", { value: true });
16480
- exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
16478
+ (function (exports$1) {
16479
+ Object.defineProperty(exports$1, "__esModule", { value: true });
16480
+ exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = void 0;
16481
16481
  var validate_1 = requireValidate();
16482
- Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });
16482
+ Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });
16483
16483
  var codegen_1 = requireCodegen();
16484
- Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } });
16485
- Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } });
16486
- Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } });
16487
- Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } });
16488
- Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } });
16489
- Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } });
16484
+ Object.defineProperty(exports$1, "_", { enumerable: true, get: function () { return codegen_1._; } });
16485
+ Object.defineProperty(exports$1, "str", { enumerable: true, get: function () { return codegen_1.str; } });
16486
+ Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } });
16487
+ Object.defineProperty(exports$1, "nil", { enumerable: true, get: function () { return codegen_1.nil; } });
16488
+ Object.defineProperty(exports$1, "Name", { enumerable: true, get: function () { return codegen_1.Name; } });
16489
+ Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } });
16490
16490
  const validation_error_1 = requireValidation_error();
16491
16491
  const ref_error_1 = requireRef_error();
16492
16492
  const rules_1 = requireRules();
@@ -16966,7 +16966,7 @@ function requireCore$1 () {
16966
16966
  }
16967
16967
  Ajv.ValidationError = validation_error_1.default;
16968
16968
  Ajv.MissingRefError = ref_error_1.default;
16969
- exports.default = Ajv;
16969
+ exports$1.default = Ajv;
16970
16970
  function checkOptions(checkOpts, options, msg, log = "error") {
16971
16971
  for (const key in checkOpts) {
16972
16972
  const opt = key;
@@ -18115,13 +18115,13 @@ var hasRequiredDependencies;
18115
18115
  function requireDependencies () {
18116
18116
  if (hasRequiredDependencies) return dependencies;
18117
18117
  hasRequiredDependencies = 1;
18118
- (function (exports) {
18119
- Object.defineProperty(exports, "__esModule", { value: true });
18120
- exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
18118
+ (function (exports$1) {
18119
+ Object.defineProperty(exports$1, "__esModule", { value: true });
18120
+ exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
18121
18121
  const codegen_1 = requireCodegen();
18122
18122
  const util_1 = requireUtil$1();
18123
18123
  const code_1 = requireCode();
18124
- exports.error = {
18124
+ exports$1.error = {
18125
18125
  message: ({ params: { property, depsCount, deps } }) => {
18126
18126
  const property_ies = depsCount === 1 ? "property" : "properties";
18127
18127
  return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`;
@@ -18135,7 +18135,7 @@ function requireDependencies () {
18135
18135
  keyword: "dependencies",
18136
18136
  type: "object",
18137
18137
  schemaType: "object",
18138
- error: exports.error,
18138
+ error: exports$1.error,
18139
18139
  code(cxt) {
18140
18140
  const [propDeps, schDeps] = splitDependencies(cxt);
18141
18141
  validatePropertyDeps(cxt, propDeps);
@@ -18182,7 +18182,7 @@ function requireDependencies () {
18182
18182
  }
18183
18183
  }
18184
18184
  }
18185
- exports.validatePropertyDeps = validatePropertyDeps;
18185
+ exports$1.validatePropertyDeps = validatePropertyDeps;
18186
18186
  function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
18187
18187
  const { gen, data, keyword, it } = cxt;
18188
18188
  const valid = gen.name("valid");
@@ -18197,8 +18197,8 @@ function requireDependencies () {
18197
18197
  cxt.ok(valid);
18198
18198
  }
18199
18199
  }
18200
- exports.validateSchemaDeps = validateSchemaDeps;
18201
- exports.default = def;
18200
+ exports$1.validateSchemaDeps = validateSchemaDeps;
18201
+ exports$1.default = def;
18202
18202
 
18203
18203
  } (dependencies));
18204
18204
  return dependencies;
@@ -19373,9 +19373,9 @@ var hasRequiredAjv;
19373
19373
  function requireAjv () {
19374
19374
  if (hasRequiredAjv) return ajv$1.exports;
19375
19375
  hasRequiredAjv = 1;
19376
- (function (module, exports) {
19377
- Object.defineProperty(exports, "__esModule", { value: true });
19378
- exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
19376
+ (function (module, exports$1) {
19377
+ Object.defineProperty(exports$1, "__esModule", { value: true });
19378
+ exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv = void 0;
19379
19379
  const core_1 = requireCore$1();
19380
19380
  const draft7_1 = requireDraft7();
19381
19381
  const discriminator_1 = requireDiscriminator();
@@ -19404,24 +19404,24 @@ function requireAjv () {
19404
19404
  super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined));
19405
19405
  }
19406
19406
  }
19407
- exports.Ajv = Ajv;
19408
- module.exports = exports = Ajv;
19407
+ exports$1.Ajv = Ajv;
19408
+ module.exports = exports$1 = Ajv;
19409
19409
  module.exports.Ajv = Ajv;
19410
- Object.defineProperty(exports, "__esModule", { value: true });
19411
- exports.default = Ajv;
19410
+ Object.defineProperty(exports$1, "__esModule", { value: true });
19411
+ exports$1.default = Ajv;
19412
19412
  var validate_1 = requireValidate();
19413
- Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });
19413
+ Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });
19414
19414
  var codegen_1 = requireCodegen();
19415
- Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } });
19416
- Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } });
19417
- Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } });
19418
- Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } });
19419
- Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } });
19420
- Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } });
19415
+ Object.defineProperty(exports$1, "_", { enumerable: true, get: function () { return codegen_1._; } });
19416
+ Object.defineProperty(exports$1, "str", { enumerable: true, get: function () { return codegen_1.str; } });
19417
+ Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } });
19418
+ Object.defineProperty(exports$1, "nil", { enumerable: true, get: function () { return codegen_1.nil; } });
19419
+ Object.defineProperty(exports$1, "Name", { enumerable: true, get: function () { return codegen_1.Name; } });
19420
+ Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } });
19421
19421
  var validation_error_1 = requireValidation_error();
19422
- Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } });
19422
+ Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } });
19423
19423
  var ref_error_1 = requireRef_error();
19424
- Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } });
19424
+ Object.defineProperty(exports$1, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } });
19425
19425
 
19426
19426
  } (ajv$1, ajv$1.exports));
19427
19427
  return ajv$1.exports;
@@ -19433,7 +19433,7 @@ var Ajv$1 = /*@__PURE__*/getDefaultExportFromCjs(ajvExports);
19433
19433
  // a full schema can be found at https://github.com/pactflow/pact-schemas
19434
19434
  // but we don't use that here, because we try to be permissive with input
19435
19435
  const Interaction = Type.Object({
19436
- _nonHTTP: Type.Optional(Type.Boolean()),
19436
+ _skip: Type.Optional(Type.Boolean()),
19437
19437
  type: Type.Optional(Type.String()),
19438
19438
  description: Type.Optional(Type.String()),
19439
19439
  providerState: Type.Optional(Type.String()),
@@ -19463,10 +19463,6 @@ const Interaction = Type.Object({
19463
19463
  status: Type.Number(),
19464
19464
  }),
19465
19465
  });
19466
- const Message = Type.Object({
19467
- description: Type.Optional(Type.String()),
19468
- providerState: Type.Optional(Type.String()),
19469
- });
19470
19466
  const Pact = Type.Object({
19471
19467
  metadata: Type.Optional(Type.Object({
19472
19468
  pactSpecification: Type.Optional(Type.Object({
@@ -19477,8 +19473,7 @@ const Pact = Type.Object({
19477
19473
  version: Type.String(),
19478
19474
  })),
19479
19475
  })),
19480
- interactions: Type.Optional(Type.Array(Interaction)),
19481
- messages: Type.Optional(Type.Array(Message)),
19476
+ interactions: Type.Array(Interaction),
19482
19477
  });
19483
19478
  const supportedInteractions = (i) => !i.type || i.type.toLowerCase() === "synchronous/http";
19484
19479
  const parseAsPactV4Body = (body) => {
@@ -19549,18 +19544,13 @@ const interactionV4 = (i) => ({
19549
19544
  headers: flattenValues(i.response.headers),
19550
19545
  },
19551
19546
  });
19552
- const interactionNonHTTP = (i) => ({
19553
- ...i,
19554
- _nonHTTP: true,
19555
- });
19556
19547
  const ajv = new Ajv$1();
19557
19548
  const validate = ajv.compile(Pact);
19558
19549
  const parse = (pact) => {
19559
- const { metadata, interactions, messages } = pact;
19550
+ const { metadata, interactions } = pact;
19560
19551
  const isValid = validate({
19561
19552
  metadata,
19562
- interactions: interactions?.filter(supportedInteractions),
19563
- messages,
19553
+ interactions: interactions.filter(supportedInteractions),
19564
19554
  });
19565
19555
  if (!isValid) {
19566
19556
  throw new ParserError(validate.errors);
@@ -19572,8 +19562,9 @@ const parse = (pact) => {
19572
19562
  const interactionParser = version >= 4 ? interactionV4 : version >= 3 ? interactionV3 : interactionV1;
19573
19563
  return {
19574
19564
  metadata,
19575
- interactions: interactions?.map((i) => supportedInteractions(i) ? interactionParser(i) : interactionNonHTTP(i)),
19576
- messages,
19565
+ interactions: interactions.map((i) => supportedInteractions(i)
19566
+ ? interactionParser(i)
19567
+ : { _skip: true }),
19577
19568
  };
19578
19569
  };
19579
19570
  class ParserError extends Error {
@@ -20526,9 +20517,9 @@ var hasRequired_2019;
20526
20517
  function require_2019 () {
20527
20518
  if (hasRequired_2019) return _2019.exports;
20528
20519
  hasRequired_2019 = 1;
20529
- (function (module, exports) {
20530
- Object.defineProperty(exports, "__esModule", { value: true });
20531
- exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv2019 = void 0;
20520
+ (function (module, exports$1) {
20521
+ Object.defineProperty(exports$1, "__esModule", { value: true });
20522
+ exports$1.MissingRefError = exports$1.ValidationError = exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = exports$1.Ajv2019 = void 0;
20532
20523
  const core_1 = requireCore$1();
20533
20524
  const draft7_1 = requireDraft7();
20534
20525
  const dynamic_1 = requireDynamic();
@@ -20568,24 +20559,24 @@ function require_2019 () {
20568
20559
  super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined));
20569
20560
  }
20570
20561
  }
20571
- exports.Ajv2019 = Ajv2019;
20572
- module.exports = exports = Ajv2019;
20562
+ exports$1.Ajv2019 = Ajv2019;
20563
+ module.exports = exports$1 = Ajv2019;
20573
20564
  module.exports.Ajv2019 = Ajv2019;
20574
- Object.defineProperty(exports, "__esModule", { value: true });
20575
- exports.default = Ajv2019;
20565
+ Object.defineProperty(exports$1, "__esModule", { value: true });
20566
+ exports$1.default = Ajv2019;
20576
20567
  var validate_1 = requireValidate();
20577
- Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });
20568
+ Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function () { return validate_1.KeywordCxt; } });
20578
20569
  var codegen_1 = requireCodegen();
20579
- Object.defineProperty(exports, "_", { enumerable: true, get: function () { return codegen_1._; } });
20580
- Object.defineProperty(exports, "str", { enumerable: true, get: function () { return codegen_1.str; } });
20581
- Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } });
20582
- Object.defineProperty(exports, "nil", { enumerable: true, get: function () { return codegen_1.nil; } });
20583
- Object.defineProperty(exports, "Name", { enumerable: true, get: function () { return codegen_1.Name; } });
20584
- Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } });
20570
+ Object.defineProperty(exports$1, "_", { enumerable: true, get: function () { return codegen_1._; } });
20571
+ Object.defineProperty(exports$1, "str", { enumerable: true, get: function () { return codegen_1.str; } });
20572
+ Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function () { return codegen_1.stringify; } });
20573
+ Object.defineProperty(exports$1, "nil", { enumerable: true, get: function () { return codegen_1.nil; } });
20574
+ Object.defineProperty(exports$1, "Name", { enumerable: true, get: function () { return codegen_1.Name; } });
20575
+ Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function () { return codegen_1.CodeGen; } });
20585
20576
  var validation_error_1 = requireValidation_error();
20586
- Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } });
20577
+ Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function () { return validation_error_1.default; } });
20587
20578
  var ref_error_1 = requireRef_error();
20588
- Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } });
20579
+ Object.defineProperty(exports$1, "MissingRefError", { enumerable: true, get: function () { return ref_error_1.default; } });
20589
20580
 
20590
20581
  } (_2019, _2019.exports));
20591
20582
  return _2019.exports;
@@ -20603,13 +20594,13 @@ var hasRequiredFormats;
20603
20594
  function requireFormats () {
20604
20595
  if (hasRequiredFormats) return formats;
20605
20596
  hasRequiredFormats = 1;
20606
- (function (exports) {
20607
- Object.defineProperty(exports, "__esModule", { value: true });
20608
- exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
20597
+ (function (exports$1) {
20598
+ Object.defineProperty(exports$1, "__esModule", { value: true });
20599
+ exports$1.formatNames = exports$1.fastFormats = exports$1.fullFormats = void 0;
20609
20600
  function fmtDef(validate, compare) {
20610
20601
  return { validate, compare };
20611
20602
  }
20612
- exports.fullFormats = {
20603
+ exports$1.fullFormats = {
20613
20604
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
20614
20605
  date: fmtDef(date, compareDate),
20615
20606
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -20656,8 +20647,8 @@ function requireFormats () {
20656
20647
  // unchecked string payload
20657
20648
  binary: true,
20658
20649
  };
20659
- exports.fastFormats = {
20660
- ...exports.fullFormats,
20650
+ exports$1.fastFormats = {
20651
+ ...exports$1.fullFormats,
20661
20652
  date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
20662
20653
  time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
20663
20654
  "date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
@@ -20671,7 +20662,7 @@ function requireFormats () {
20671
20662
  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
20672
20663
  email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,
20673
20664
  };
20674
- exports.formatNames = Object.keys(exports.fullFormats);
20665
+ exports$1.formatNames = Object.keys(exports$1.fullFormats);
20675
20666
  function isLeapYear(year) {
20676
20667
  // https://tools.ietf.org/html/rfc3339#appendix-C
20677
20668
  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
@@ -20822,9 +20813,9 @@ var hasRequiredLimit;
20822
20813
  function requireLimit () {
20823
20814
  if (hasRequiredLimit) return limit;
20824
20815
  hasRequiredLimit = 1;
20825
- (function (exports) {
20826
- Object.defineProperty(exports, "__esModule", { value: true });
20827
- exports.formatLimitDefinition = void 0;
20816
+ (function (exports$1) {
20817
+ Object.defineProperty(exports$1, "__esModule", { value: true });
20818
+ exports$1.formatLimitDefinition = void 0;
20828
20819
  const ajv_1 = requireAjv();
20829
20820
  const codegen_1 = requireCodegen();
20830
20821
  const ops = codegen_1.operators;
@@ -20838,7 +20829,7 @@ function requireLimit () {
20838
20829
  message: ({ keyword, schemaCode }) => (0, codegen_1.str) `should be ${KWDs[keyword].okStr} ${schemaCode}`,
20839
20830
  params: ({ keyword, schemaCode }) => (0, codegen_1._) `{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`,
20840
20831
  };
20841
- exports.formatLimitDefinition = {
20832
+ exports$1.formatLimitDefinition = {
20842
20833
  keyword: Object.keys(KWDs),
20843
20834
  type: "string",
20844
20835
  schemaType: "string",
@@ -20886,10 +20877,10 @@ function requireLimit () {
20886
20877
  dependencies: ["format"],
20887
20878
  };
20888
20879
  const formatLimitPlugin = (ajv) => {
20889
- ajv.addKeyword(exports.formatLimitDefinition);
20880
+ ajv.addKeyword(exports$1.formatLimitDefinition);
20890
20881
  return ajv;
20891
20882
  };
20892
- exports.default = formatLimitPlugin;
20883
+ exports$1.default = formatLimitPlugin;
20893
20884
 
20894
20885
  } (limit));
20895
20886
  return limit;
@@ -20900,8 +20891,8 @@ var hasRequiredDist$1;
20900
20891
  function requireDist$1 () {
20901
20892
  if (hasRequiredDist$1) return dist$2.exports;
20902
20893
  hasRequiredDist$1 = 1;
20903
- (function (module, exports) {
20904
- Object.defineProperty(exports, "__esModule", { value: true });
20894
+ (function (module, exports$1) {
20895
+ Object.defineProperty(exports$1, "__esModule", { value: true });
20905
20896
  const formats_1 = requireFormats();
20906
20897
  const limit_1 = requireLimit();
20907
20898
  const codegen_1 = requireCodegen();
@@ -20933,9 +20924,9 @@ function requireDist$1 () {
20933
20924
  for (const f of list)
20934
20925
  ajv.addFormat(f, fs[f]);
20935
20926
  }
20936
- module.exports = exports = formatsPlugin;
20937
- Object.defineProperty(exports, "__esModule", { value: true });
20938
- exports.default = formatsPlugin;
20927
+ module.exports = exports$1 = formatsPlugin;
20928
+ Object.defineProperty(exports$1, "__esModule", { value: true });
20929
+ exports$1.default = formatsPlugin;
20939
20930
 
20940
20931
  } (dist$2, dist$2.exports));
20941
20932
  return dist$2.exports;
@@ -21437,9 +21428,9 @@ var hasRequiredTypes$1;
21437
21428
  function requireTypes$1 () {
21438
21429
  if (hasRequiredTypes$1) return types;
21439
21430
  hasRequiredTypes$1 = 1;
21440
- (function (exports) {
21441
- Object.defineProperty(exports, "__esModule", { value: true });
21442
- exports.types = void 0;
21431
+ (function (exports$1) {
21432
+ Object.defineProperty(exports$1, "__esModule", { value: true });
21433
+ exports$1.types = void 0;
21443
21434
  (function (types) {
21444
21435
  types[types["ROOT"] = 0] = "ROOT";
21445
21436
  types[types["GROUP"] = 1] = "GROUP";
@@ -21449,7 +21440,7 @@ function requireTypes$1 () {
21449
21440
  types[types["REPETITION"] = 5] = "REPETITION";
21450
21441
  types[types["REFERENCE"] = 6] = "REFERENCE";
21451
21442
  types[types["CHAR"] = 7] = "CHAR";
21452
- })(exports.types || (exports.types = {}));
21443
+ })(exports$1.types || (exports$1.types = {}));
21453
21444
 
21454
21445
  } (types));
21455
21446
  return types;
@@ -21472,7 +21463,7 @@ var hasRequiredTypes;
21472
21463
  function requireTypes () {
21473
21464
  if (hasRequiredTypes) return types$1;
21474
21465
  hasRequiredTypes = 1;
21475
- (function (exports) {
21466
+ (function (exports$1) {
21476
21467
  var __createBinding = (types$1 && types$1.__createBinding) || (Object.create ? (function(o, m, k, k2) {
21477
21468
  if (k2 === undefined) k2 = k;
21478
21469
  Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
@@ -21480,13 +21471,13 @@ function requireTypes () {
21480
21471
  if (k2 === undefined) k2 = k;
21481
21472
  o[k2] = m[k];
21482
21473
  }));
21483
- var __exportStar = (types$1 && types$1.__exportStar) || function(m, exports) {
21484
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
21474
+ var __exportStar = (types$1 && types$1.__exportStar) || function(m, exports$1) {
21475
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
21485
21476
  };
21486
- Object.defineProperty(exports, "__esModule", { value: true });
21487
- __exportStar(requireTokens(), exports);
21488
- __exportStar(requireTypes$1(), exports);
21489
- __exportStar(requireSetLookup(), exports);
21477
+ Object.defineProperty(exports$1, "__esModule", { value: true });
21478
+ __exportStar(requireTokens(), exports$1);
21479
+ __exportStar(requireTypes$1(), exports$1);
21480
+ __exportStar(requireSetLookup(), exports$1);
21490
21481
 
21491
21482
  } (types$1));
21492
21483
  return types$1;
@@ -22189,12 +22180,12 @@ var hasRequiredReconstruct;
22189
22180
  function requireReconstruct () {
22190
22181
  if (hasRequiredReconstruct) return reconstruct;
22191
22182
  hasRequiredReconstruct = 1;
22192
- (function (exports) {
22193
- Object.defineProperty(exports, "__esModule", { value: true });
22194
- exports.reconstruct = void 0;
22183
+ (function (exports$1) {
22184
+ Object.defineProperty(exports$1, "__esModule", { value: true });
22185
+ exports$1.reconstruct = void 0;
22195
22186
  const types_1 = requireTypes();
22196
22187
  const write_set_tokens_1 = requireWriteSetTokens();
22197
- const reduceStack = (stack) => stack.map(exports.reconstruct).join('');
22188
+ const reduceStack = (stack) => stack.map(exports$1.reconstruct).join('');
22198
22189
  const createAlternate = (token) => {
22199
22190
  if ('options' in token) {
22200
22191
  return token.options.map(reduceStack).join('|');
@@ -22206,7 +22197,7 @@ function requireReconstruct () {
22206
22197
  throw new Error(`options or stack must be Root or Group token`);
22207
22198
  }
22208
22199
  };
22209
- exports.reconstruct = (token) => {
22200
+ exports$1.reconstruct = (token) => {
22210
22201
  switch (token.type) {
22211
22202
  case types_1.types.ROOT:
22212
22203
  return createAlternate(token);
@@ -22257,7 +22248,7 @@ function requireReconstruct () {
22257
22248
  else {
22258
22249
  endWith = `{${min},${max}}`;
22259
22250
  }
22260
- return `${exports.reconstruct(token.value)}${endWith}`;
22251
+ return `${exports$1.reconstruct(token.value)}${endWith}`;
22261
22252
  }
22262
22253
  case types_1.types.RANGE:
22263
22254
  return `${write_set_tokens_1.setChar(token.from)}-${write_set_tokens_1.setChar(token.to)}`;
@@ -22277,7 +22268,7 @@ var hasRequiredDist;
22277
22268
  function requireDist () {
22278
22269
  if (hasRequiredDist) return dist$1.exports;
22279
22270
  hasRequiredDist = 1;
22280
- (function (module, exports) {
22271
+ (function (module, exports$1) {
22281
22272
  var __createBinding = (dist && dist.__createBinding) || (Object.create ? (function(o, m, k, k2) {
22282
22273
  if (k2 === undefined) k2 = k;
22283
22274
  Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
@@ -22285,20 +22276,20 @@ function requireDist () {
22285
22276
  if (k2 === undefined) k2 = k;
22286
22277
  o[k2] = m[k];
22287
22278
  }));
22288
- var __exportStar = (dist && dist.__exportStar) || function(m, exports) {
22289
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22279
+ var __exportStar = (dist && dist.__exportStar) || function(m, exports$1) {
22280
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports$1, p)) __createBinding(exports$1, m, p);
22290
22281
  };
22291
- Object.defineProperty(exports, "__esModule", { value: true });
22292
- exports.types = void 0;
22282
+ Object.defineProperty(exports$1, "__esModule", { value: true });
22283
+ exports$1.types = void 0;
22293
22284
  /* istanbul ignore file */
22294
22285
  const types_1 = requireTypes();
22295
- Object.defineProperty(exports, "types", { enumerable: true, get: function () { return types_1.types; } });
22296
- __exportStar(requireTokenizer(), exports);
22297
- __exportStar(requireReconstruct(), exports);
22286
+ Object.defineProperty(exports$1, "types", { enumerable: true, get: function () { return types_1.types; } });
22287
+ __exportStar(requireTokenizer(), exports$1);
22288
+ __exportStar(requireReconstruct(), exports$1);
22298
22289
  const tokenizer_1 = requireTokenizer();
22299
22290
  const reconstruct_1 = requireReconstruct();
22300
- __exportStar(requireTypes(), exports);
22301
- exports.default = tokenizer_1.tokenizer;
22291
+ __exportStar(requireTypes(), exports$1);
22292
+ exports$1.default = tokenizer_1.tokenizer;
22302
22293
  module.exports = tokenizer_1.tokenizer;
22303
22294
  module.exports.types = types_1.types;
22304
22295
  module.exports.reconstruct = reconstruct_1.reconstruct;
@@ -24287,6 +24278,7 @@ function setupRouter(oas, config) {
24287
24278
  "";
24288
24279
  const path = basePath +
24289
24280
  oasPath
24281
+ .replaceAll(":", "::")
24290
24282
  .replaceAll(/{.*?}/g, cleanPathParameter)
24291
24283
  .replaceAll(/{([.;]?)([^*]+?)\*?}/g, "$1:$2(.+)");
24292
24284
  for (const method in oas.paths[oasPath]) {
@@ -24354,19 +24346,9 @@ class Comparator {
24354
24346
  this.#router = setupRouter(this.#oas, this.#config);
24355
24347
  }
24356
24348
  const parsedPact = parse(pact);
24357
- const parsedInteractions = parsedPact.interactions || [];
24358
- for (const [index, interaction] of parsedInteractions.entries()) {
24359
- if (interaction._nonHTTP) {
24360
- yield {
24361
- code: "interaction.type.unsupported",
24362
- mockDetails: {
24363
- ...baseMockDetails(interaction),
24364
- location: `[root].interactions[${index}].type`,
24365
- value: interaction.type,
24366
- },
24367
- message: `Non-HTTP messages cannot be verified against an HTTP-only OpenAPI Document.`,
24368
- type: "warning",
24369
- };
24349
+ for (const [index, interaction] of parsedPact.interactions.entries()) {
24350
+ if (interaction._skip) {
24351
+ // non http/synchronous have been zero-ed out
24370
24352
  continue;
24371
24353
  }
24372
24354
  const { method, path, query } = interaction.request;
@@ -24414,21 +24396,6 @@ class Comparator {
24414
24396
  yield* compareResHeader(this.#ajvCoerce, route, interaction, index, this.#config);
24415
24397
  yield* compareResBody(this.#ajvNocoerce, route, interaction, index, this.#config);
24416
24398
  }
24417
- if (parsedPact.messages) {
24418
- for (const [index, message] of parsedPact.messages.entries()) {
24419
- yield {
24420
- code: "interaction.type.unsupported",
24421
- mockDetails: {
24422
- interactionDescription: message.description,
24423
- interactionState: message.providerState || "[none]",
24424
- location: `[root].messages[${index}]`,
24425
- value: message,
24426
- },
24427
- message: `Non-HTTP messages cannot be verified against an HTTP-only OpenAPI Document.`,
24428
- type: "warning",
24429
- };
24430
- }
24431
- }
24432
24399
  }
24433
24400
  }
24434
24401