@pact-foundation/pact 13.2.0 → 14.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.
- package/CHANGELOG.md +44 -19
- package/MIGRATION.md +9 -9
- package/README.md +5 -6
- package/RELEASING.md +1 -1
- package/package.json +48 -60
- package/scripts/install-plugins +106 -0
- package/src/common/net.js +5 -25
- package/src/common/net.js.map +1 -1
- package/src/common/net.spec.js +36 -3
- package/src/common/net.spec.js.map +1 -1
- package/src/common/request.js +3 -3
- package/src/common/request.js.map +1 -1
- package/src/common/request.spec.js +36 -3
- package/src/common/request.spec.js.map +1 -1
- package/src/common/spec.js.map +1 -1
- package/src/dsl/apolloGraphql.js.map +1 -1
- package/src/dsl/apolloGraphql.spec.js +37 -4
- package/src/dsl/apolloGraphql.spec.js.map +1 -1
- package/src/dsl/graphql.js.map +1 -1
- package/src/dsl/graphql.spec.js +36 -3
- package/src/dsl/graphql.spec.js.map +1 -1
- package/src/dsl/interaction.d.ts +1 -1
- package/src/dsl/interaction.js +1 -1
- package/src/dsl/interaction.js.map +1 -1
- package/src/dsl/interaction.spec.js +36 -3
- package/src/dsl/interaction.spec.js.map +1 -1
- package/src/dsl/matchers.js +24 -24
- package/src/dsl/matchers.js.map +1 -1
- package/src/dsl/matchers.spec.js.map +1 -1
- package/src/dsl/message.d.ts +0 -1
- package/src/dsl/verifier/proxy/hooks.js +71 -77
- package/src/dsl/verifier/proxy/hooks.js.map +1 -1
- package/src/dsl/verifier/proxy/hooks.spec.js +2 -2
- package/src/dsl/verifier/proxy/messages.d.ts +1 -1
- package/src/dsl/verifier/proxy/messages.js.map +1 -1
- package/src/dsl/verifier/proxy/parseBody.d.ts +1 -3
- package/src/dsl/verifier/proxy/parseBody.js +1 -1
- package/src/dsl/verifier/proxy/parseBody.js.map +1 -1
- package/src/dsl/verifier/proxy/parseBody.spec.js +38 -5
- package/src/dsl/verifier/proxy/parseBody.spec.js.map +1 -1
- package/src/dsl/verifier/proxy/proxy.d.ts +1 -1
- package/src/dsl/verifier/proxy/proxy.js +2 -25
- package/src/dsl/verifier/proxy/proxy.js.map +1 -1
- package/src/dsl/verifier/proxy/proxy.spec.js +36 -3
- package/src/dsl/verifier/proxy/proxy.spec.js.map +1 -1
- package/src/dsl/verifier/proxy/proxyRequest.spec.js +35 -5
- package/src/dsl/verifier/proxy/proxyRequest.spec.js.map +1 -1
- package/src/dsl/verifier/proxy/stateHandler/setupStates.js.map +1 -1
- package/src/dsl/verifier/proxy/stateHandler/setupStates.spec.js +38 -5
- package/src/dsl/verifier/proxy/stateHandler/setupStates.spec.js.map +1 -1
- package/src/dsl/verifier/proxy/stateHandler/stateHandler.spec.js +47 -40
- package/src/dsl/verifier/proxy/stateHandler/stateHandler.spec.js.map +1 -1
- package/src/dsl/verifier/proxy/tracer.js.map +1 -1
- package/src/dsl/verifier/proxy/types.d.ts +1 -1
- package/src/dsl/verifier/verifier.js +19 -9
- package/src/dsl/verifier/verifier.js.map +1 -1
- package/src/dsl/verifier/verifier.spec.js +61 -50
- package/src/dsl/verifier/verifier.spec.js.map +1 -1
- package/src/httpPact/ffi.js.map +1 -1
- package/src/httpPact/ffi.spec.js +37 -4
- package/src/httpPact/ffi.spec.js.map +1 -1
- package/src/httpPact/index.js +22 -12
- package/src/httpPact/index.js.map +1 -1
- package/src/httpPact/index.spec.js +39 -6
- package/src/httpPact/index.spec.js.map +1 -1
- package/src/httpPact/tracing.js.map +1 -1
- package/src/index.js +17 -7
- package/src/index.js.map +1 -1
- package/src/messageConsumerPact.d.ts +1 -2
- package/src/messageConsumerPact.js +21 -11
- package/src/messageConsumerPact.js.map +1 -1
- package/src/messageConsumerPact.spec.js +37 -4
- package/src/messageConsumerPact.spec.js.map +1 -1
- package/src/messageProviderPact.d.ts +2 -2
- package/src/messageProviderPact.js +20 -10
- package/src/messageProviderPact.js.map +1 -1
- package/src/messageProviderPact.spec.js +21 -11
- package/src/messageProviderPact.spec.js.map +1 -1
- package/src/pact.integration.spec.js +40 -6
- package/src/pact.integration.spec.js.map +1 -1
- package/src/v3/display.js +6 -7
- package/src/v3/display.js.map +1 -1
- package/src/v3/ffi.js +17 -7
- package/src/v3/ffi.js.map +1 -1
- package/src/v3/index.js +17 -7
- package/src/v3/index.js.map +1 -1
- package/src/v3/matchers.js +19 -19
- package/src/v3/matchers.js.map +1 -1
- package/src/v3/matchers.spec.js +18 -8
- package/src/v3/matchers.spec.js.map +1 -1
- package/src/v3/pact.js +2 -2
- package/src/v3/pact.js.map +1 -1
- package/src/v3/types.js +1 -1
- package/src/v3/types.js.map +1 -1
- package/src/v3/xml/xmlElement.js.map +1 -1
- package/src/v3/xml/xmlElement.spec.js +17 -7
- package/src/v3/xml/xmlElement.spec.js.map +1 -1
- package/src/v3/xml/xmlText.js.map +1 -1
- package/src/v4/http/index.d.ts +0 -1
- package/src/v4/http/index.js +2 -2
- package/src/v4/http/index.js.map +1 -1
- package/src/v4/http/types.d.ts +0 -1
- package/src/v4/message/index.d.ts +0 -1
- package/src/v4/message/index.js +2 -2
- package/src/v4/message/index.js.map +1 -1
- package/src/v4/message/types.d.ts +0 -1
- package/scripts/install-plugins.sh +0 -59
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
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
|
+
## [14.0.0](https://github.com/pact-foundation/pact-js/compare/v13.2.0...v14.0.0) (2025-02-17)
|
|
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 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))
|
|
27
|
+
* examples/graphql/package.json & examples/graphql/package-lock.json to reduce vulnerabilities ([c9ed8fc](https://github.com/pact-foundation/pact-js/commit/c9ed8fcc72e307b787e736fca24dfc130deac880))
|
|
28
|
+
* package.json & package-lock.json to reduce vulnerabilities ([3f535ed](https://github.com/pact-foundation/pact-js/commit/3f535ed070ea837046db7ab59d0418234f33e5d8))
|
|
29
|
+
|
|
5
30
|
## [13.2.0](https://github.com/pact-foundation/pact-js/compare/v13.1.5...v13.2.0) (2024-11-21)
|
|
6
31
|
|
|
7
32
|
|
|
@@ -345,7 +370,7 @@ All notable changes to this project will be documented in this file. See [commit
|
|
|
345
370
|
### Features
|
|
346
371
|
|
|
347
372
|
* drop support for pact web incl. karma examples ([d45f898](https://github.com/pact-foundation/pact-js/commit/d45f898b29a62aa77cecff499a46ce365fd2c79a))
|
|
348
|
-
* modify request body inside of
|
|
373
|
+
* 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
374
|
|
|
350
375
|
|
|
351
376
|
### Fixes and Improvements
|
|
@@ -551,7 +576,7 @@ All notable changes to this project will be documented in this file. See [commit
|
|
|
551
576
|
|
|
552
577
|
### Fixes and Improvements
|
|
553
578
|
|
|
554
|
-
* correct
|
|
579
|
+
* correct VerifierV3Options so that it doesn't clobber VerifierOptions ([5796fde](https://github.com/pact-foundation/pact-js/commit/5796fdeb96c354316fe9606f0a9a7fc0c3d43532))
|
|
555
580
|
* 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
581
|
|
|
557
582
|
## [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 +897,7 @@ different state phases.
|
|
|
872
897
|
|
|
873
898
|
### Features
|
|
874
899
|
|
|
875
|
-
* add some tests around the
|
|
900
|
+
* add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
|
|
876
901
|
* handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
|
|
877
902
|
* implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
|
|
878
903
|
|
|
@@ -931,7 +956,7 @@ different state phases.
|
|
|
931
956
|
|
|
932
957
|
### Fixes and Improvements
|
|
933
958
|
|
|
934
|
-
*
|
|
959
|
+
* accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
|
|
935
960
|
* format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
|
|
936
961
|
* handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
|
|
937
962
|
* throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
|
|
@@ -1102,7 +1127,7 @@ different state phases.
|
|
|
1102
1127
|
### Fixes and Improvements
|
|
1103
1128
|
|
|
1104
1129
|
* broken pact provider test not consistent with types ([29af342](https://github.com/pact-foundation/pact-js/commit/29af34250cdc308a5298553f5ee9bbb9daf182cb))
|
|
1105
|
-
* correct
|
|
1130
|
+
* correct VerifierV3Options so that it doesn't clobber VerifierOptions ([5796fde](https://github.com/pact-foundation/pact-js/commit/5796fdeb96c354316fe9606f0a9a7fc0c3d43532))
|
|
1106
1131
|
* using relative import. fixes problems with intellisense in vscode ([35de1c5](https://github.com/pact-foundation/pact-js/commit/35de1c57d744d5bc747e6af114c8d272b2a8cec4))
|
|
1107
1132
|
* 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
1133
|
|
|
@@ -1422,7 +1447,7 @@ different state phases.
|
|
|
1422
1447
|
|
|
1423
1448
|
### Features
|
|
1424
1449
|
|
|
1425
|
-
* add some tests around the
|
|
1450
|
+
* add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
|
|
1426
1451
|
* handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
|
|
1427
1452
|
* implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
|
|
1428
1453
|
|
|
@@ -1481,7 +1506,7 @@ different state phases.
|
|
|
1481
1506
|
|
|
1482
1507
|
### Fixes and Improvements
|
|
1483
1508
|
|
|
1484
|
-
*
|
|
1509
|
+
* accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
|
|
1485
1510
|
* format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
|
|
1486
1511
|
* handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
|
|
1487
1512
|
* throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
|
|
@@ -1785,7 +1810,7 @@ different state phases.
|
|
|
1785
1810
|
|
|
1786
1811
|
### Features
|
|
1787
1812
|
|
|
1788
|
-
* add some tests around the
|
|
1813
|
+
* add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
|
|
1789
1814
|
* handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
|
|
1790
1815
|
* implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
|
|
1791
1816
|
|
|
@@ -1844,7 +1869,7 @@ different state phases.
|
|
|
1844
1869
|
|
|
1845
1870
|
### Fixes and Improvements
|
|
1846
1871
|
|
|
1847
|
-
*
|
|
1872
|
+
* accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
|
|
1848
1873
|
* format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
|
|
1849
1874
|
* handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
|
|
1850
1875
|
* throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
|
|
@@ -2029,7 +2054,7 @@ different state phases.
|
|
|
2029
2054
|
|
|
2030
2055
|
### Features
|
|
2031
2056
|
|
|
2032
|
-
* add some tests around the
|
|
2057
|
+
* add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
|
|
2033
2058
|
* handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
|
|
2034
2059
|
* implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
|
|
2035
2060
|
|
|
@@ -2088,7 +2113,7 @@ different state phases.
|
|
|
2088
2113
|
|
|
2089
2114
|
### Bug Fixes
|
|
2090
2115
|
|
|
2091
|
-
*
|
|
2116
|
+
* accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
|
|
2092
2117
|
* format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
|
|
2093
2118
|
* handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
|
|
2094
2119
|
* throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
|
|
@@ -2241,7 +2266,7 @@ different state phases.
|
|
|
2241
2266
|
|
|
2242
2267
|
### Features
|
|
2243
2268
|
|
|
2244
|
-
* add some tests around the
|
|
2269
|
+
* add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
|
|
2245
2270
|
* handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
|
|
2246
2271
|
* implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
|
|
2247
2272
|
|
|
@@ -2300,7 +2325,7 @@ different state phases.
|
|
|
2300
2325
|
|
|
2301
2326
|
### Bug Fixes
|
|
2302
2327
|
|
|
2303
|
-
*
|
|
2328
|
+
* accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
|
|
2304
2329
|
* format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
|
|
2305
2330
|
* handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
|
|
2306
2331
|
* throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
|
|
@@ -2430,7 +2455,7 @@ different state phases.
|
|
|
2430
2455
|
|
|
2431
2456
|
### Features
|
|
2432
2457
|
|
|
2433
|
-
* add some tests around the
|
|
2458
|
+
* add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
|
|
2434
2459
|
* handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
|
|
2435
2460
|
* implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
|
|
2436
2461
|
|
|
@@ -2489,7 +2514,7 @@ different state phases.
|
|
|
2489
2514
|
|
|
2490
2515
|
### Bug Fixes
|
|
2491
2516
|
|
|
2492
|
-
*
|
|
2517
|
+
* accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
|
|
2493
2518
|
* format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
|
|
2494
2519
|
* handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
|
|
2495
2520
|
* throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
|
|
@@ -2578,7 +2603,7 @@ different state phases.
|
|
|
2578
2603
|
|
|
2579
2604
|
|
|
2580
2605
|
|
|
2581
|
-
* add some tests around the
|
|
2606
|
+
* add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
|
|
2582
2607
|
* handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
|
|
2583
2608
|
* implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
|
|
2584
2609
|
|
|
@@ -2664,7 +2689,7 @@ different state phases.
|
|
|
2664
2689
|
|
|
2665
2690
|
### Bug Fixes
|
|
2666
2691
|
|
|
2667
|
-
*
|
|
2692
|
+
* accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
|
|
2668
2693
|
* format the error messages in a better way ([0a15772](https://github.com/pact-foundation/pact-js/commit/0a15772a710d3d159648672470084a1c99b45cc8))
|
|
2669
2694
|
* handle error when pact file cannot be written ([82832a8](https://github.com/pact-foundation/pact-js/commit/82832a81c115d06ef2d9c1fadd18c54f6f629e59))
|
|
2670
2695
|
* throw an exception when a request is configured but no interaction defined ([b317da7](https://github.com/pact-foundation/pact-js/commit/b317da79f28dce45102a55bcdcbc415d3fbdb9ab))
|
|
@@ -2730,7 +2755,7 @@ different state phases.
|
|
|
2730
2755
|
|
|
2731
2756
|
### Features
|
|
2732
2757
|
|
|
2733
|
-
* add some tests around the
|
|
2758
|
+
* add some tests around the consumer DSL matchers ([e6a153f](https://github.com/pact-foundation/pact-js/commit/e6a153fd62d48644b97018d69e5f23d1710e510f))
|
|
2734
2759
|
* handle XML matching with different types of child elements ([2143ca4](https://github.com/pact-foundation/pact-js/commit/2143ca4c968969e1c6218dd8e538097733ccfa56))
|
|
2735
2760
|
* implemented consumer DSL URL matcher ([f27a444](https://github.com/pact-foundation/pact-js/commit/f27a44409aed3ece1adbab6af9e853b7684c101c))
|
|
2736
2761
|
* package.json & package-lock.json to reduce vulnerabilities ([0bb8512](https://github.com/pact-foundation/pact-js/commit/0bb851255c0f08d25fd935e5bd164ce99063a9ae))
|
|
@@ -2811,7 +2836,7 @@ different state phases.
|
|
|
2811
2836
|
|
|
2812
2837
|
### Bug Fixes
|
|
2813
2838
|
|
|
2814
|
-
*
|
|
2839
|
+
* accidentally committed development paths in cargo manifest ([03cc16f](https://github.com/pact-foundation/pact-js/commit/03cc16f71d5f6a6cd646cdb6cf5421a134cb159e))
|
|
2815
2840
|
* comments and accidental package ([efe2f4e](https://github.com/pact-foundation/pact-js/commit/efe2f4eef3f05e8ea4a067403c69b75e3236aea9))
|
|
2816
2841
|
* dir file location error ([86ab843](https://github.com/pact-foundation/pact-js/commit/86ab8433a5c4400330c71b6e9a64cfde49c75461))
|
|
2817
2842
|
* 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
|
|
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.
|
|
206
|
-
3. Run all the examples `./runAll.sh`
|
|
205
|
+
2. Run all examples `./run-all`
|
|
207
206
|
|
|
208
207
|

|
|
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
|
|
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": "
|
|
3
|
+
"version": "14.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
|
-
"
|
|
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": "
|
|
21
|
-
"
|
|
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": "^
|
|
105
|
-
"
|
|
106
|
-
"axios": "^1.7.4",
|
|
104
|
+
"@pact-foundation/pact-core": "^16.0.0",
|
|
105
|
+
"axios": "^1.7.8",
|
|
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": "
|
|
126
|
-
"@babel/core": "
|
|
127
|
-
"@babel/preset-env": "
|
|
128
|
-
"@pact-foundation/pact-js-prettier-config": "
|
|
129
|
-
"@types/chai": "
|
|
130
|
-
"@types/chai-as-promised": "
|
|
131
|
-
"@types/
|
|
132
|
-
"@types/
|
|
133
|
-
"@types/lodash
|
|
134
|
-
"@types/mocha": "
|
|
135
|
-
"@types/nock": "
|
|
136
|
-
"@types/node": "
|
|
137
|
-
"@types/ramda": "
|
|
138
|
-
"@types/sinon": "
|
|
139
|
-
"@types/sinon-chai": "
|
|
140
|
-
"@
|
|
141
|
-
"@typescript-eslint/
|
|
142
|
-
"
|
|
143
|
-
"chai": "
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"eslint": "
|
|
148
|
-
"eslint-config-airbnb-
|
|
149
|
-
"eslint-config-
|
|
150
|
-
"eslint-
|
|
151
|
-
"eslint-
|
|
152
|
-
"eslint-plugin-
|
|
153
|
-
"eslint-plugin-
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"
|
|
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.8",
|
|
120
|
+
"@babel/preset-env": "7.26.8",
|
|
121
|
+
"@pact-foundation/pact-js-prettier-config": "1.0.0",
|
|
122
|
+
"@types/chai": "5.0.1",
|
|
123
|
+
"@types/chai-as-promised": "8.0.1",
|
|
124
|
+
"@types/express": "4.17.21",
|
|
125
|
+
"@types/http-proxy": "1.17.16",
|
|
126
|
+
"@types/lodash": "4.17.15",
|
|
127
|
+
"@types/mocha": "10.0.10",
|
|
128
|
+
"@types/nock": "11.1.0",
|
|
129
|
+
"@types/node": "22.13.4",
|
|
130
|
+
"@types/ramda": "0.30.2",
|
|
131
|
+
"@types/sinon": "17.0.3",
|
|
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.1.2",
|
|
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.0.1",
|
|
143
|
+
"eslint-import-resolver-typescript": "3.7.0",
|
|
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.1",
|
|
151
|
+
"proxyquire": "2.1.3",
|
|
152
|
+
"rimraf": "6.0.1",
|
|
153
|
+
"sinon": "19.0.2",
|
|
154
|
+
"sinon-chai": "4.0.0",
|
|
155
|
+
"source-map-support": "0.5.21",
|
|
156
|
+
"tsx": "4.19.2",
|
|
157
|
+
"typescript": "5.7.3"
|
|
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
|
|
8
|
-
|
|
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
|
|
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 =
|
|
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 =
|
|
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') {
|
package/src/common/net.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"net.js","sourceRoot":"","sources":["../../../src/common/net.ts"],"names":[],"mappings":";AAAA;;;;GAIG
|
|
1
|
+
{"version":3,"file":"net.js","sourceRoot":"","sources":["../../../src/common/net.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,4CAAsB;AAET,QAAA,cAAc,GAAG,CAAC,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;AAEpE,IAAM,SAAS,GAAG,UAAC,IAAY,EAAE,IAAY;IAClD,OAAA,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;QAC1B,IAAM,MAAM,GAAG,aAAG;aACf,YAAY,EAAE;aACd,MAAM,CAAC,EAAE,IAAI,MAAA,EAAE,IAAI,MAAA,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;aACvC,EAAE,CAAC,OAAO,EAAE,UAAC,CAAwB;YACpC,IAAI,CAAC,CAAC,IAAI,KAAK,YAAY,EAAE,CAAC;gBAC5B,MAAM,CAAC,IAAI,KAAK,CAAC,eAAQ,IAAI,wCAA8B,IAAI,CAAE,CAAC,CAAC,CAAC;YACtE,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,CAAC,CAAC,CAAC;YACZ,CAAC;QACH,CAAC,CAAC;aACD,EAAE,CAAC,WAAW,EAAE;YACf,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,cAAM,OAAA,OAAO,EAAE,EAAT,CAAS,CAAC,CAAC,KAAK,EAAE,CAAC;QAChD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC;AAdF,CAcE,CAAC;AAfQ,QAAA,SAAS,aAejB;AAEE,IAAM,eAAe,GAAG,UAAC,IAAY,EAAE,IAAY;IACxD,OAAA,OAAO,CAAC,UAAU,CAChB,sBAAc,CAAC,GAAG,CAAC,UAAC,SAAS,IAAK,OAAA,IAAA,iBAAS,EAAC,IAAI,EAAE,SAAS,CAAC,EAA1B,CAA0B,CAAC,CAC9D,CAAC,IAAI,CAAC,UAAC,iBAAiB;QACvB,oEAAoE;QACpE,IAAI,iBAAiB,CAAC,KAAK,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,MAAM,KAAK,UAAU,EAA5B,CAA4B,CAAC,EAAE,CAAC;YACtE,MAAM,IAAI,KAAK,CAAC,2BAAoB,IAAI,gCAA6B,CAAC,CAAC;QACzE,CAAC;QAED,8EAA8E;QAC9E,OAAO,IAAA,iBAAS,EAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IAC/B,CAAC,CAAC;AAVF,CAUE,CAAC;AAXQ,QAAA,eAAe,mBAWvB;AAEE,IAAM,QAAQ,GAAG;IACtB,OAAA,IAAI,OAAO,CAAC,UAAC,GAAG;QACd,IAAM,CAAC,GAAG,aAAG,CAAC,YAAY,EAAE,CAAC;QAC7B,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE;YACV,IAAM,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;YACzB,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gBACtC,IAAA,MAAI,GAAK,IAAI,KAAT,CAAU;gBACtB,CAAC,CAAC,KAAK,CAAC,cAAM,OAAA,GAAG,CAAC,MAAI,CAAC,EAAT,CAAS,CAAC,CAAC;YAC3B,CAAC;iBAAM,CAAC;gBACN,MAAM,KAAK,CAAC,4BAA4B,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AAXF,CAWE,CAAC;AAZQ,QAAA,QAAQ,YAYhB"}
|