@pact-foundation/pact 13.2.0 → 15.0.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.
Files changed (107) hide show
  1. package/CHANGELOG.md +70 -19
  2. package/MIGRATION.md +9 -9
  3. package/README.md +5 -6
  4. package/RELEASING.md +1 -1
  5. package/package.json +48 -60
  6. package/scripts/install-plugins +106 -0
  7. package/src/common/net.js +5 -25
  8. package/src/common/net.js.map +1 -1
  9. package/src/common/net.spec.js +36 -3
  10. package/src/common/net.spec.js.map +1 -1
  11. package/src/common/request.js +3 -3
  12. package/src/common/request.js.map +1 -1
  13. package/src/common/request.spec.js +36 -3
  14. package/src/common/request.spec.js.map +1 -1
  15. package/src/common/spec.js.map +1 -1
  16. package/src/dsl/apolloGraphql.js.map +1 -1
  17. package/src/dsl/apolloGraphql.spec.js +37 -4
  18. package/src/dsl/apolloGraphql.spec.js.map +1 -1
  19. package/src/dsl/graphql.js.map +1 -1
  20. package/src/dsl/graphql.spec.js +36 -3
  21. package/src/dsl/graphql.spec.js.map +1 -1
  22. package/src/dsl/interaction.d.ts +1 -1
  23. package/src/dsl/interaction.js +1 -1
  24. package/src/dsl/interaction.js.map +1 -1
  25. package/src/dsl/interaction.spec.js +36 -3
  26. package/src/dsl/interaction.spec.js.map +1 -1
  27. package/src/dsl/matchers.js +24 -24
  28. package/src/dsl/matchers.js.map +1 -1
  29. package/src/dsl/matchers.spec.js.map +1 -1
  30. package/src/dsl/message.d.ts +0 -1
  31. package/src/dsl/verifier/proxy/hooks.js +71 -77
  32. package/src/dsl/verifier/proxy/hooks.js.map +1 -1
  33. package/src/dsl/verifier/proxy/hooks.spec.js +2 -2
  34. package/src/dsl/verifier/proxy/messages.d.ts +1 -1
  35. package/src/dsl/verifier/proxy/messages.js.map +1 -1
  36. package/src/dsl/verifier/proxy/parseBody.d.ts +1 -3
  37. package/src/dsl/verifier/proxy/parseBody.js +1 -1
  38. package/src/dsl/verifier/proxy/parseBody.js.map +1 -1
  39. package/src/dsl/verifier/proxy/parseBody.spec.js +38 -5
  40. package/src/dsl/verifier/proxy/parseBody.spec.js.map +1 -1
  41. package/src/dsl/verifier/proxy/proxy.d.ts +1 -1
  42. package/src/dsl/verifier/proxy/proxy.js +2 -25
  43. package/src/dsl/verifier/proxy/proxy.js.map +1 -1
  44. package/src/dsl/verifier/proxy/proxy.spec.js +36 -3
  45. package/src/dsl/verifier/proxy/proxy.spec.js.map +1 -1
  46. package/src/dsl/verifier/proxy/proxyRequest.spec.js +35 -5
  47. package/src/dsl/verifier/proxy/proxyRequest.spec.js.map +1 -1
  48. package/src/dsl/verifier/proxy/stateHandler/setupStates.js.map +1 -1
  49. package/src/dsl/verifier/proxy/stateHandler/setupStates.spec.js +38 -5
  50. package/src/dsl/verifier/proxy/stateHandler/setupStates.spec.js.map +1 -1
  51. package/src/dsl/verifier/proxy/stateHandler/stateHandler.spec.js +47 -40
  52. package/src/dsl/verifier/proxy/stateHandler/stateHandler.spec.js.map +1 -1
  53. package/src/dsl/verifier/proxy/tracer.js.map +1 -1
  54. package/src/dsl/verifier/proxy/types.d.ts +1 -1
  55. package/src/dsl/verifier/verifier.js +19 -9
  56. package/src/dsl/verifier/verifier.js.map +1 -1
  57. package/src/dsl/verifier/verifier.spec.js +61 -50
  58. package/src/dsl/verifier/verifier.spec.js.map +1 -1
  59. package/src/httpPact/ffi.js.map +1 -1
  60. package/src/httpPact/ffi.spec.js +37 -4
  61. package/src/httpPact/ffi.spec.js.map +1 -1
  62. package/src/httpPact/index.js +22 -12
  63. package/src/httpPact/index.js.map +1 -1
  64. package/src/httpPact/index.spec.js +39 -6
  65. package/src/httpPact/index.spec.js.map +1 -1
  66. package/src/httpPact/tracing.js.map +1 -1
  67. package/src/index.js +17 -7
  68. package/src/index.js.map +1 -1
  69. package/src/messageConsumerPact.d.ts +1 -2
  70. package/src/messageConsumerPact.js +21 -11
  71. package/src/messageConsumerPact.js.map +1 -1
  72. package/src/messageConsumerPact.spec.js +37 -4
  73. package/src/messageConsumerPact.spec.js.map +1 -1
  74. package/src/messageProviderPact.d.ts +2 -2
  75. package/src/messageProviderPact.js +20 -10
  76. package/src/messageProviderPact.js.map +1 -1
  77. package/src/messageProviderPact.spec.js +21 -11
  78. package/src/messageProviderPact.spec.js.map +1 -1
  79. package/src/pact.integration.spec.js +40 -6
  80. package/src/pact.integration.spec.js.map +1 -1
  81. package/src/v3/display.js +6 -7
  82. package/src/v3/display.js.map +1 -1
  83. package/src/v3/ffi.js +17 -7
  84. package/src/v3/ffi.js.map +1 -1
  85. package/src/v3/index.js +17 -7
  86. package/src/v3/index.js.map +1 -1
  87. package/src/v3/matchers.js +19 -19
  88. package/src/v3/matchers.js.map +1 -1
  89. package/src/v3/matchers.spec.js +18 -8
  90. package/src/v3/matchers.spec.js.map +1 -1
  91. package/src/v3/pact.js +2 -2
  92. package/src/v3/pact.js.map +1 -1
  93. package/src/v3/types.js +1 -1
  94. package/src/v3/types.js.map +1 -1
  95. package/src/v3/xml/xmlElement.js.map +1 -1
  96. package/src/v3/xml/xmlElement.spec.js +17 -7
  97. package/src/v3/xml/xmlElement.spec.js.map +1 -1
  98. package/src/v3/xml/xmlText.js.map +1 -1
  99. package/src/v4/http/index.d.ts +0 -1
  100. package/src/v4/http/index.js +2 -2
  101. package/src/v4/http/index.js.map +1 -1
  102. package/src/v4/http/types.d.ts +0 -1
  103. package/src/v4/message/index.d.ts +0 -1
  104. package/src/v4/message/index.js +2 -2
  105. package/src/v4/message/index.js.map +1 -1
  106. package/src/v4/message/types.d.ts +0 -1
  107. package/scripts/install-plugins.sh +0 -59
package/CHANGELOG.md CHANGED
@@ -2,6 +2,57 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [15.0.0](https://github.com/pact-foundation/pact-js/compare/v13.2.0...v15.0.0) (2025-03-24)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * **deps:** - Contains platform/architecture specific optional dependencies in pact-core v16+. Users should not need to do anything manually as long as they are running supported platforms
11
+
12
+ - `linux-x64-glibc`
13
+ - `linux-arm64-glibc`
14
+ - `linux-x64-musl`
15
+ - `linux-arm64-musl`
16
+ - `darwin-x64`
17
+ - `darwin-arm64`
18
+ - `windows-x64`
19
+
20
+ * **deps:** update pact-core to v16 ([c5ca6ae](https://github.com/pact-foundation/pact-js/commit/c5ca6ae2df1574d7019f7a7262d2a3b964e7a228))
21
+
22
+
23
+ ### Fixes and Improvements
24
+
25
+ * code coverage ([c0bb760](https://github.com/pact-foundation/pact-js/commit/c0bb7600d132d22ad1057a74c943993a5e7b23c6))
26
+ * **deps:** update dependency axios to v1.8.2 [security] ([#1395](https://github.com/pact-foundation/pact-js/issues/1395)) ([53f456a](https://github.com/pact-foundation/pact-js/commit/53f456a370b45d9cab4c90aec2e19c59b66b4e05))
27
+ * **deps:** update dependency lodash.isfunction to v3.0.9 ([#1268](https://github.com/pact-foundation/pact-js/issues/1268)) ([fb08af3](https://github.com/pact-foundation/pact-js/commit/fb08af37923c8c802ac5d272ee8512307d42f690))
28
+ * examples/graphql/package.json & examples/graphql/package-lock.json to reduce vulnerabilities ([c9ed8fc](https://github.com/pact-foundation/pact-js/commit/c9ed8fcc72e307b787e736fca24dfc130deac880))
29
+ * package.json & package-lock.json to reduce vulnerabilities ([3f535ed](https://github.com/pact-foundation/pact-js/commit/3f535ed070ea837046db7ab59d0418234f33e5d8))
30
+
31
+ ## [14.0.0](https://github.com/pact-foundation/pact-js/compare/v13.2.0...v14.0.0) (2025-02-17)
32
+
33
+
34
+ ### ⚠ BREAKING CHANGES
35
+
36
+ * **deps:** - Contains platform/architecture specific optional dependencies in pact-core v16+. Users should not need to do anything manually as long as they are running supported platforms
37
+
38
+ - `linux-x64-glibc`
39
+ - `linux-arm64-glibc`
40
+ - `linux-x64-musl`
41
+ - `linux-arm64-musl`
42
+ - `darwin-x64`
43
+ - `darwin-arm64`
44
+ - `windows-x64`
45
+
46
+ * **deps:** update pact-core to v16 ([c5ca6ae](https://github.com/pact-foundation/pact-js/commit/c5ca6ae2df1574d7019f7a7262d2a3b964e7a228))
47
+
48
+
49
+ ### Fixes and Improvements
50
+
51
+ * code coverage ([c0bb760](https://github.com/pact-foundation/pact-js/commit/c0bb7600d132d22ad1057a74c943993a5e7b23c6))
52
+ * **deps:** update dependency lodash.isfunction to v3.0.9 ([#1268](https://github.com/pact-foundation/pact-js/issues/1268)) ([fb08af3](https://github.com/pact-foundation/pact-js/commit/fb08af37923c8c802ac5d272ee8512307d42f690))
53
+ * examples/graphql/package.json & examples/graphql/package-lock.json to reduce vulnerabilities ([c9ed8fc](https://github.com/pact-foundation/pact-js/commit/c9ed8fcc72e307b787e736fca24dfc130deac880))
54
+ * package.json & package-lock.json to reduce vulnerabilities ([3f535ed](https://github.com/pact-foundation/pact-js/commit/3f535ed070ea837046db7ab59d0418234f33e5d8))
55
+
5
56
  ## [13.2.0](https://github.com/pact-foundation/pact-js/compare/v13.1.5...v13.2.0) (2024-11-21)
6
57
 
7
58
 
@@ -345,7 +396,7 @@ All notable changes to this project will be documented in this file. See [commit
345
396
  ### Features
346
397
 
347
398
  * drop support for pact web incl. karma examples ([d45f898](https://github.com/pact-foundation/pact-js/commit/d45f898b29a62aa77cecff499a46ce365fd2c79a))
348
- * modify request body inside of verifer ([#873](https://github.com/pact-foundation/pact-js/issues/873)) ([be8ed15](https://github.com/pact-foundation/pact-js/commit/be8ed151c607b69bcf07670df211156887adb29e))
399
+ * modify request body inside of verifier ([#873](https://github.com/pact-foundation/pact-js/issues/873)) ([be8ed15](https://github.com/pact-foundation/pact-js/commit/be8ed151c607b69bcf07670df211156887adb29e))
349
400
 
350
401
 
351
402
  ### Fixes and Improvements
@@ -551,7 +602,7 @@ All notable changes to this project will be documented in this file. See [commit
551
602
 
552
603
  ### Fixes and Improvements
553
604
 
554
- * correct VerfierV3Options so that it doesn't clobber VeriferOptions ([5796fde](https://github.com/pact-foundation/pact-js/commit/5796fdeb96c354316fe9606f0a9a7fc0c3d43532))
605
+ * correct VerifierV3Options so that it doesn't clobber VerifierOptions ([5796fde](https://github.com/pact-foundation/pact-js/commit/5796fdeb96c354316fe9606f0a9a7fc0c3d43532))
555
606
  * You no longer need to import the verifier from /v3, it can be imported directly from @pact-foundation/pact ([c268497](https://github.com/pact-foundation/pact-js/commit/c268497e1fd848d3423d379a2671361ea56c9b53))
556
607
 
557
608
  ## [10.0.0-beta.44](https://github.com/pact-foundation/pact-js/compare/v10.0.0-beta.43...v10.0.0-beta.44) (2021-07-22)
@@ -872,7 +923,7 @@ different state phases.
872
923
 
873
924
  ### Features
874
925
 
875
- * add some tests around the conusmer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
926
+ * add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
876
927
  * handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
877
928
  * implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
878
929
 
@@ -931,7 +982,7 @@ different state phases.
931
982
 
932
983
  ### Fixes and Improvements
933
984
 
934
- * accidentially commited development paths in cargo manefest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
985
+ * accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
935
986
  * format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
936
987
  * handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
937
988
  * throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
@@ -1102,7 +1153,7 @@ different state phases.
1102
1153
  ### Fixes and Improvements
1103
1154
 
1104
1155
  * broken pact provider test not consistent with types ([29af342](https://github.com/pact-foundation/pact-js/commit/29af34250cdc308a5298553f5ee9bbb9daf182cb))
1105
- * correct VerfierV3Options so that it doesn't clobber VeriferOptions ([5796fde](https://github.com/pact-foundation/pact-js/commit/5796fdeb96c354316fe9606f0a9a7fc0c3d43532))
1156
+ * correct VerifierV3Options so that it doesn't clobber VerifierOptions ([5796fde](https://github.com/pact-foundation/pact-js/commit/5796fdeb96c354316fe9606f0a9a7fc0c3d43532))
1106
1157
  * using relative import. fixes problems with intellisense in vscode ([35de1c5](https://github.com/pact-foundation/pact-js/commit/35de1c57d744d5bc747e6af114c8d272b2a8cec4))
1107
1158
  * You no longer need to import the verifier from /v3, it can be imported directly from @pact-foundation/pact ([c268497](https://github.com/pact-foundation/pact-js/commit/c268497e1fd848d3423d379a2671361ea56c9b53))
1108
1159
 
@@ -1422,7 +1473,7 @@ different state phases.
1422
1473
 
1423
1474
  ### Features
1424
1475
 
1425
- * add some tests around the conusmer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
1476
+ * add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
1426
1477
  * handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
1427
1478
  * implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
1428
1479
 
@@ -1481,7 +1532,7 @@ different state phases.
1481
1532
 
1482
1533
  ### Fixes and Improvements
1483
1534
 
1484
- * accidentially commited development paths in cargo manefest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
1535
+ * accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
1485
1536
  * format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
1486
1537
  * handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
1487
1538
  * throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
@@ -1785,7 +1836,7 @@ different state phases.
1785
1836
 
1786
1837
  ### Features
1787
1838
 
1788
- * add some tests around the conusmer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
1839
+ * add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
1789
1840
  * handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
1790
1841
  * implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
1791
1842
 
@@ -1844,7 +1895,7 @@ different state phases.
1844
1895
 
1845
1896
  ### Fixes and Improvements
1846
1897
 
1847
- * accidentially commited development paths in cargo manefest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
1898
+ * accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
1848
1899
  * format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
1849
1900
  * handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
1850
1901
  * throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
@@ -2029,7 +2080,7 @@ different state phases.
2029
2080
 
2030
2081
  ### Features
2031
2082
 
2032
- * add some tests around the conusmer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2083
+ * add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2033
2084
  * handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
2034
2085
  * implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
2035
2086
 
@@ -2088,7 +2139,7 @@ different state phases.
2088
2139
 
2089
2140
  ### Bug Fixes
2090
2141
 
2091
- * accidentially commited development paths in cargo manefest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2142
+ * accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2092
2143
  * format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
2093
2144
  * handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
2094
2145
  * throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
@@ -2241,7 +2292,7 @@ different state phases.
2241
2292
 
2242
2293
  ### Features
2243
2294
 
2244
- * add some tests around the conusmer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2295
+ * add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2245
2296
  * handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
2246
2297
  * implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
2247
2298
 
@@ -2300,7 +2351,7 @@ different state phases.
2300
2351
 
2301
2352
  ### Bug Fixes
2302
2353
 
2303
- * accidentially commited development paths in cargo manefest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2354
+ * accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2304
2355
  * format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
2305
2356
  * handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
2306
2357
  * throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
@@ -2430,7 +2481,7 @@ different state phases.
2430
2481
 
2431
2482
  ### Features
2432
2483
 
2433
- * add some tests around the conusmer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2484
+ * add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2434
2485
  * handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
2435
2486
  * implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
2436
2487
 
@@ -2489,7 +2540,7 @@ different state phases.
2489
2540
 
2490
2541
  ### Bug Fixes
2491
2542
 
2492
- * accidentially commited development paths in cargo manefest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2543
+ * accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2493
2544
  * format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
2494
2545
  * handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
2495
2546
  * throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
@@ -2578,7 +2629,7 @@ different state phases.
2578
2629
 
2579
2630
 
2580
2631
 
2581
- * add some tests around the conusmer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2632
+ * add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2582
2633
  * handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
2583
2634
  * implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
2584
2635
 
@@ -2664,7 +2715,7 @@ different state phases.
2664
2715
 
2665
2716
  ### Bug Fixes
2666
2717
 
2667
- * accidentially commited development paths in cargo manefest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2718
+ * accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2668
2719
  * format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
2669
2720
  * handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
2670
2721
  * throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
@@ -2730,7 +2781,7 @@ different state phases.
2730
2781
 
2731
2782
  ### Features
2732
2783
 
2733
- * add some tests around the conusmer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2784
+ * add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
2734
2785
  * handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
2735
2786
  * implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
2736
2787
  * package.json & package-lock.json to reduce vulnerabilities ([0bb8512](https://github.com/pact-foundation/pact-js/commit/0bb851255c0f08d25fd935e5bd164ce99063a9ae))
@@ -2811,7 +2862,7 @@ different state phases.
2811
2862
 
2812
2863
  ### Bug Fixes
2813
2864
 
2814
- * accidentially commited development paths in cargo manefest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2865
+ * accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
2815
2866
  * comments and accidental package ([efe2f4e](https://github.com/pact-foundation/pact-js/commit/efe2f4eef3f05e8ea4a067403c69b75e3236aea9))
2816
2867
  * dir file location error ([86ab843](https://github.com/pact-foundation/pact-js/commit/86ab8433a5c4400330c71b6e9a64cfde49c75461))
2817
2868
  * format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
package/MIGRATION.md CHANGED
@@ -5,21 +5,21 @@
5
5
  ## Breaking Changes
6
6
 
7
7
  All CLI/API functionality provided by the Pact CLI tools (ruby based) now migrated to
8
-
8
+
9
9
  * Repo
10
-
10
+
11
11
  * https://github.com/pact-foundation/pact-js-cli/
12
-
12
+
13
13
  * NPM Package
14
-
14
+
15
15
  * https://www.npmjs.com/package/@pact-foundation/pact-cli
16
-
16
+
17
17
  * imports
18
-
19
- * `@pact-foundation/pact-core` imports will now become `@pact-foundation/pact-cli` for programatic usage of the CLI tools
18
+
19
+ * `@pact-foundation/pact-core` imports will now become `@pact-foundation/pact-cli` for programmatic usage of the CLI tools
20
20
 
21
21
  * npx usage
22
-
22
+
23
23
  * `npx --package=@pact-foundation/pact-cli@15.0.0 -c pact-broker`
24
24
 
25
25
  # 11.x.x -> 12.x.x
@@ -53,7 +53,7 @@ Removed the default export for v3 in the root package in preparation for a relea
53
53
  * add binary content support to messages via `WithBinaryContent`
54
54
  * add text content support to messages via `WithTextContent`
55
55
  * Remove all Ruby dependencies in DSLs
56
- * `pactfileWriteMode` still supports the same options, however the behaviour of `overwrite` is such now that it will overwrite the pact file _per test_, not pact run of Pact. This is because there is no longer a single long running mock server as per previous versions. Set to `merge` or leave blank for a sensible default.
56
+ * `pactfileWriteMode` still supports the same options, however the behaviour of `overwrite` is such now that it will overwrite the pact file _per test_, not pact run of Pact. This is because there is no longer a single long running mock server as per previous versions. Set to `merge` or leave blank for a sensible default.
57
57
  * As per the change to `pactfileWriteMode` this also means pact files should be cleared out prior to each test, to avoid extraneous interactions in a pact file.
58
58
  * Array matcher currently doesn't work on query strings (see https://github.com/pact-foundation/pact-reference/issues/205). However, an array with matchers is supported (see jest spec)
59
59
  * the `mockService` property on the `Pact` class is no longer an actual `MockService`, but supports the `baseUrl` property.
package/README.md CHANGED
@@ -96,7 +96,7 @@ npm i -S @pact-foundation/pact@latest
96
96
  # 🚀 now write some tests!
97
97
  ```
98
98
 
99
- Looking for the previous [stable 9.x.x release](https://github.com/pact-foundation/pact-js/tree/9.x.x)?
99
+ Looking for the previous [stable 9.x.x release](https://github.com/pact-foundation/pact-js/tree/9.x.x)?
100
100
 
101
101
  ### Requirements
102
102
 
@@ -136,7 +136,7 @@ const provider = new PactV3({
136
136
  provider: 'MyProvider',
137
137
  });
138
138
 
139
- // API Client that will fetch dogs from the Dog API
139
+ // API Client that will fetch dogs from the Dog API
140
140
  // This is the target of our Pact test
141
141
  public getMeDogs = (from: string): AxiosPromise => {
142
142
  return axios.request({
@@ -174,8 +174,8 @@ describe('GET /dogs', () => {
174
174
  return provider.executeTest((mockserver) => {
175
175
  // Act: test our API client behaves correctly
176
176
  //
177
- // Note we configure the DogService API client dynamically to
178
- // point to the mock service Pact created for us, instead of
177
+ // Note we configure the DogService API client dynamically to
178
+ // point to the mock service Pact created for us, instead of
179
179
  // the real one
180
180
  dogService = new DogService(mockserver.url);
181
181
  const response = await dogService.getMeDogs('today')
@@ -202,8 +202,7 @@ Run a single example
202
202
  Run all examples
203
203
 
204
204
  1. Change into the examples folder `cd examples`
205
- 2. Install all the examples dependencies `./installAll.sh`
206
- 3. Run all the examples `./runAll.sh`
205
+ 2. Run all examples `./run-all`
207
206
 
208
207
  ![----------](https://user-images.githubusercontent.com/53900/182992715-aa63e421-170b-41cf-8f95-82fe4b0846c2.png)
209
208
 
package/RELEASING.md CHANGED
@@ -4,7 +4,7 @@ We've moved to GitHub Actions for releases.
4
4
 
5
5
  ## How a release works
6
6
 
7
- Releases trigger when the repository recieves the custom repository_dispatch event
7
+ Releases trigger when the repository receives the custom repository_dispatch event
8
8
  `release-triggered`.
9
9
 
10
10
  This triggers the `publish.yml` workflow, which in turn
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@pact-foundation/pact",
3
- "version": "13.2.0",
3
+ "version": "15.0.0",
4
4
  "description": "Pact for all things Javascript",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
7
7
  "scripts": {
8
8
  "compile": "rimraf dist && tsc",
9
9
  "clean": "rimraf dist coverage .nyc_output logs pacts",
10
- "coverage": "nyc report --reporter=lcov",
10
+ "predist": "npm run clean",
11
11
  "dist": "tsc && copyfiles package.json ./dist",
12
+ "install-plugins": "./scripts/install-plugins",
12
13
  "lint": "eslint --config .eslintrc.json \"{src,test}/**/*.ts\"",
13
14
  "lint:fix": "npm run lint -- --fix",
14
15
  "format:base": "prettier \"{src,test,examples}/**/*.{ts,js}\"",
15
16
  "format:fix": "npm run format:base -- --write",
16
17
  "format:check": "npm run format:base -- --check",
17
- "postdist": "npm test",
18
- "predist": "npm run clean && npm run format:check && npm run lint",
19
18
  "release": "commit-and-tag-version",
20
- "test": "nyc --check-coverage --reporter=html --reporter=text-summary mocha -t 120000",
21
- "pretest": "bash scripts/install-plugins.sh",
19
+ "test": "mocha",
20
+ "coverage": "nyc npm run test",
21
+ "pretest": "npm run install-plugins",
22
22
  "docker:alpine:build": "docker build --build-arg NODE_VERSION=${NODE_VERSION:-current} -f Dockerfile.alpine -t pact-js:alpine .",
23
23
  "docker:debian:build": "docker build --build-arg NODE_VERSION=${NODE_VERSION:-current} -f Dockerfile.debian -t pact-js:debian .",
24
24
  "docker:alpine:run": "docker run -e LOG_LEVEL=${LOG_LEVEL:-info} -e GIT_REF=${GIT_REF:-test} -e GITHUB_ACTIONS=${GITHUB_ACTIONS:-false} -e SKIP_EXAMPLES=${SKIP_EXAMPLES:-''} -e PACT_BROKER_BASE_URL -e PACT_BROKER_TOKEN -w /home -v $(pwd):/home --rm pact-js:alpine",
@@ -101,71 +101,59 @@
101
101
  ]
102
102
  },
103
103
  "dependencies": {
104
- "@pact-foundation/pact-core": "^15.1.0",
105
- "@types/express": "^4.17.11",
106
- "axios": "^1.7.4",
104
+ "@pact-foundation/pact-core": "^16.0.0",
105
+ "axios": "^1.8.4",
107
106
  "body-parser": "^1.20.3",
108
107
  "chalk": "4.1.2",
109
108
  "express": "^4.21.1",
110
- "graphql": "^14.0.0",
111
109
  "graphql-tag": "^2.9.1",
112
110
  "http-proxy": "^1.18.1",
113
111
  "https-proxy-agent": "^7.0.4",
114
112
  "js-base64": "^3.6.1",
115
113
  "lodash": "^4.17.21",
116
- "lodash.isfunction": "3.0.8",
117
- "lodash.isnil": "4.0.0",
118
- "lodash.isundefined": "3.0.1",
119
- "lodash.omit": "^4.5.0",
120
- "pkginfo": "^0.4.1",
121
114
  "ramda": "^0.30.0",
122
115
  "randexp": "^0.5.3"
123
116
  },
124
117
  "devDependencies": {
125
- "@babel/cli": "^7.18.6",
126
- "@babel/core": "^7.18.6",
127
- "@babel/preset-env": "^7.18.6",
128
- "@pact-foundation/pact-js-prettier-config": "^1.0.0",
129
- "@types/chai": "^4.3.1",
130
- "@types/chai-as-promised": "^7.1.1",
131
- "@types/http-proxy": "^1.17.9",
132
- "@types/lodash": "^4.14.182",
133
- "@types/lodash.isnil": "^4.0.7",
134
- "@types/mocha": "^8.0.4",
135
- "@types/nock": "^9.1.2",
136
- "@types/node": "^18.11.9",
137
- "@types/ramda": "^0.26.43",
138
- "@types/sinon": "^7.0.6",
139
- "@types/sinon-chai": "^2.7.29",
140
- "@types/tough-cookie": "^2.3.2",
141
- "@typescript-eslint/eslint-plugin": "^5.30.4",
142
- "@typescript-eslint/parser": "^5.30.4",
143
- "chai": "~4.1.2",
144
- "chai-as-promised": "^7.1.1",
145
- "commit-and-tag-version": "^10.1.0",
146
- "copyfiles": "^2.4.1",
147
- "eslint": "^8.19.0",
148
- "eslint-config-airbnb-base": "^15.0.0",
149
- "eslint-config-airbnb-typescript": "^17.0.0",
150
- "eslint-config-prettier": "^8.5.0",
151
- "eslint-import-resolver-typescript": "^3.2.1",
152
- "eslint-plugin-chai-friendly": "^0.7.2",
153
- "eslint-plugin-import": "^2.26.0",
154
- "eslint-plugin-mocha": "^10.0.5",
155
- "lodash.clone": "^4.5.0",
156
- "mocha": "^9.1.1",
157
- "mocha-lcov-reporter": "^1.3.0",
158
- "neon-cli": "^0.9.1",
159
- "nock": "^9.1.6",
160
- "nyc": "^15.1.0",
161
- "prettier": "^2.7.1",
162
- "proxyquire": "^2.0.1",
163
- "rimraf": "^2.7.1",
164
- "sinon": "^7.2.4",
165
- "sinon-chai": "^3.3.0",
166
- "source-map-support": "^0.4.18",
167
- "ts-mock-imports": "^1.2.6",
168
- "ts-node": "^3.3.0",
169
- "typescript": "^4.7.4"
118
+ "@babel/cli": "7.26.4",
119
+ "@babel/core": "7.26.10",
120
+ "@babel/preset-env": "7.26.9",
121
+ "@pact-foundation/pact-js-prettier-config": "1.0.0",
122
+ "@types/chai": "5.2.1",
123
+ "@types/chai-as-promised": "8.0.2",
124
+ "@types/express": "4.17.21",
125
+ "@types/http-proxy": "1.17.16",
126
+ "@types/lodash": "4.17.16",
127
+ "@types/mocha": "10.0.10",
128
+ "@types/nock": "11.1.0",
129
+ "@types/node": "22.13.13",
130
+ "@types/ramda": "0.30.2",
131
+ "@types/sinon": "17.0.4",
132
+ "@types/sinon-chai": "2.7.42",
133
+ "@typescript-eslint/eslint-plugin": "5.62.0",
134
+ "@typescript-eslint/parser": "5.62.0",
135
+ "chai": "5.2.0",
136
+ "chai-as-promised": "8.0.1",
137
+ "commit-and-tag-version": "12.5.0",
138
+ "copyfiles": "2.4.1",
139
+ "eslint": "8.57.1",
140
+ "eslint-config-airbnb-base": "15.0.0",
141
+ "eslint-config-airbnb-typescript": "17.1.0",
142
+ "eslint-config-prettier": "10.1.1",
143
+ "eslint-import-resolver-typescript": "4.2.2",
144
+ "eslint-plugin-chai-friendly": "1.0.1",
145
+ "eslint-plugin-import": "2.31.0",
146
+ "eslint-plugin-mocha": "10.5.0",
147
+ "mocha": "11.1.0",
148
+ "nock": "14.0.1",
149
+ "nyc": "17.1.0",
150
+ "prettier": "3.5.3",
151
+ "proxyquire": "2.1.3",
152
+ "rimraf": "6.0.1",
153
+ "sinon": "19.0.4",
154
+ "sinon-chai": "4.0.0",
155
+ "source-map-support": "0.5.21",
156
+ "tsx": "4.19.3",
157
+ "typescript": "5.8.2"
170
158
  }
171
159
  }
@@ -0,0 +1,106 @@
1
+ #!/bin/sh
2
+ #
3
+ # Usage:
4
+ # $ curl -fsSL https://raw.githubusercontent.com/pact-foundation/pact-plugins/master/install-cli.sh | bash
5
+ # or
6
+ # $ wget -q https://raw.githubusercontent.com/pact-foundation/pact-plugins/master/install-cli.sh -O- | bash
7
+
8
+ # While most shells support `local`, it technically isn't POSIX. This will check
9
+ # for `local` and alias it to `typeset` if it doesn't exist.
10
+ # shellcheck disable=SC3043
11
+ # If a shell does not support `local`, it will be aliased to
12
+ # `typeset`, so this check is not needed.
13
+ has_local() {
14
+ local _has_local
15
+ }
16
+ has_local 2>/dev/null || alias local=typeset
17
+
18
+ set -o errexit # Exit on error
19
+ set -o nounset # Treat unset variables as an error
20
+
21
+ # Colours
22
+ WHITE_BOLD='\033[1;37m'
23
+ RESET='\033[0m'
24
+
25
+ detect_osarch() {
26
+ case $(uname -sm) in
27
+ 'Linux x86_64')
28
+ os='linux'
29
+ arch='x86_64'
30
+ ext=''
31
+ ;;
32
+ 'Linux aarch64')
33
+ os='linux'
34
+ arch='aarch64'
35
+ ext=''
36
+ ;;
37
+ 'Darwin x86' | 'Darwin x86_64')
38
+ os='osx'
39
+ arch='x86_64'
40
+ ext=''
41
+ ;;
42
+ 'Darwin arm64')
43
+ os='osx'
44
+ arch='aarch64'
45
+ ext=''
46
+ ;;
47
+ CYGWIN* | MINGW32* | MSYS* | MINGW*)
48
+ os="windows"
49
+ arch='x86_64'
50
+ ext='.exe'
51
+ ;;
52
+ *)
53
+ echo "Sorry, you'll need to install the plugin CLI manually."
54
+ exit 1
55
+ ;;
56
+ esac
57
+ }
58
+
59
+ install_pact_plugin_cli() {
60
+ [ -f ~/.pact/bin/pact-plugin-cli ] && \
61
+ echo "${WHITE_BOLD}=> Plugin CLI already installed${RESET}" && \
62
+ return
63
+
64
+ local version="0.1.2"
65
+ detect_osarch
66
+ local url="https://github.com/pact-foundation/pact-plugins/releases/download/pact-plugin-cli-v${version}/pact-plugin-cli-${os}-${arch}${ext}.gz"
67
+
68
+ echo "${WHITE_BOLD}=> Installing plugins CLI version '${version}'${RESET}"
69
+ echo " - OS: ${os}"
70
+ echo " - Arch: ${arch}"
71
+ echo " - Version: ${version}"
72
+ echo " - URL: ${url}"
73
+ echo " - Downloading into: ~/.pact/bin/"
74
+
75
+ mkdir -p ~/.pact/bin
76
+
77
+ if command -v curl >/dev/null 2>&1; then
78
+ curl -sSL "$url" | gunzip -c > ~/.pact/bin/pact-plugin-cli
79
+ elif command -v wget >/dev/null 2>&1; then
80
+ wget -qO- "$url" | gunzip -c > ~/.pact/bin/pact-plugin-cli
81
+ else
82
+ echo "Neither curl nor wget found. Please install one of these packages."
83
+ exit 1
84
+ fi
85
+ chmod +x ~/.pact/bin/pact-plugin-cli
86
+ }
87
+
88
+ install_matt_plugin() {
89
+ [ -d ~/.pact/plugins/matt-0.1.1 ] && \
90
+ echo "${WHITE_BOLD}=> MATT plugin already installed${RESET}" && \
91
+ return
92
+
93
+ local version="0.1.1"
94
+ local url="https://github.com/mefellows/pact-matt-plugin/releases/tag/v${version}"
95
+
96
+ echo "${WHITE_BOLD}=> Installing MATT plugin version '${version}'${RESET}"
97
+ ~/.pact/bin/pact-plugin-cli install "$url"
98
+
99
+ }
100
+
101
+ main() {
102
+ install_pact_plugin_cli
103
+ install_matt_plugin
104
+ }
105
+
106
+ main
package/src/common/net.js CHANGED
@@ -4,36 +4,16 @@
4
4
  * @module net
5
5
  * @private
6
6
  */
7
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
- if (k2 === undefined) k2 = k;
9
- var desc = Object.getOwnPropertyDescriptor(m, k);
10
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
- desc = { enumerable: true, get: function() { return m[k]; } };
12
- }
13
- Object.defineProperty(o, k2, desc);
14
- }) : (function(o, m, k, k2) {
15
- if (k2 === undefined) k2 = k;
16
- o[k2] = m[k];
17
- }));
18
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
19
- Object.defineProperty(o, "default", { enumerable: true, value: v });
20
- }) : function(o, v) {
21
- o["default"] = v;
22
- });
23
- var __importStar = (this && this.__importStar) || function (mod) {
24
- if (mod && mod.__esModule) return mod;
25
- var result = {};
26
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
27
- __setModuleDefault(result, mod);
28
- return result;
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
29
9
  };
30
10
  Object.defineProperty(exports, "__esModule", { value: true });
31
11
  exports.freePort = exports.isPortAvailable = exports.portCheck = exports.localAddresses = void 0;
32
- var net = __importStar(require("net"));
12
+ var net_1 = __importDefault(require("net"));
33
13
  exports.localAddresses = ['127.0.0.1', 'localhost', '0.0.0.0', '::1'];
34
14
  var portCheck = function (port, host) {
35
15
  return new Promise(function (resolve, reject) {
36
- var server = net
16
+ var server = net_1.default
37
17
  .createServer()
38
18
  .listen({ port: port, host: host, exclusive: true })
39
19
  .on('error', function (e) {
@@ -63,7 +43,7 @@ var isPortAvailable = function (port, host) {
63
43
  exports.isPortAvailable = isPortAvailable;
64
44
  var freePort = function () {
65
45
  return new Promise(function (res) {
66
- var s = net.createServer();
46
+ var s = net_1.default.createServer();
67
47
  s.listen(0, function () {
68
48
  var addr = s.address();
69
49
  if (addr !== null && typeof addr !== 'string') {
@@ -1 +1 @@
1
- {"version":3,"file":"net.js","sourceRoot":"","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