@pact-foundation/pact-core 13.9.1 → 13.11.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 (39) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +56 -55
  3. package/build/Makefile +1 -1
  4. package/ffi/libpact_ffi.dylib +0 -0
  5. package/ffi/libpact_ffi.so +0 -0
  6. package/ffi/libpact_ffi.so.gz +0 -0
  7. package/ffi/linuxaarch64/libpact_ffi.so +0 -0
  8. package/ffi/osxaarch64/libpact_ffi.dylib +0 -0
  9. package/ffi/pact-cpp.h +20 -0
  10. package/ffi/pact.h +20 -0
  11. package/ffi/pact_ffi.dll +0 -0
  12. package/ffi/pact_ffi.dll.lib +0 -0
  13. package/native/addon.cc +7 -1
  14. package/native/consumer.cc +380 -1
  15. package/native/consumer.h +2 -0
  16. package/native/provider.cc +132 -1
  17. package/native/provider.h +4 -1
  18. package/package.json +4 -1
  19. package/src/consumer/index.d.ts +1 -1
  20. package/src/consumer/index.js +75 -10
  21. package/src/consumer/index.js.map +1 -1
  22. package/src/consumer/types.d.ts +25 -6
  23. package/src/ffi/index.d.ts +1 -1
  24. package/src/ffi/index.js +1 -1
  25. package/src/ffi/types.d.ts +5 -0
  26. package/src/publisher.d.ts +2 -0
  27. package/src/publisher.js +8 -0
  28. package/src/publisher.js.map +1 -1
  29. package/src/verifier/argumentMapper/arguments.d.ts +8 -7
  30. package/src/verifier/argumentMapper/arguments.js +72 -12
  31. package/src/verifier/argumentMapper/arguments.js.map +1 -1
  32. package/src/verifier/argumentMapper/index.js +2 -2
  33. package/src/verifier/argumentMapper/index.js.map +1 -1
  34. package/src/verifier/argumentMapper/types.d.ts +18 -9
  35. package/src/verifier/argumentMapper/types.js.map +1 -1
  36. package/src/verifier/types.d.ts +8 -0
  37. package/src/verifier/validateOptions.d.ts +7 -7
  38. package/src/verifier/validateOptions.js +33 -33
  39. package/src/verifier/validateOptions.js.map +1 -1
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 [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [13.11.0](https://github.com/pact-foundation/pact-js-core/compare/v13.10.0...v13.11.0) (2022-10-31)
6
+
7
+
8
+ ### Features
9
+
10
+ * add additional FFI methods to support plugins ([246e86f](https://github.com/pact-foundation/pact-js-core/commit/246e86f8f41a2228ec656425447e28c6e4227433))
11
+ * support branch/autoDetectVersionProperties when publishing pacts ([64ab2ea](https://github.com/pact-foundation/pact-js-core/commit/64ab2ea110ea78315fb4609ad92a5fb90e96ddc7))
12
+
13
+
14
+ ### Fixes and Improvements
15
+
16
+ * Add error messages to the ignored option debug logs ([8c8386d](https://github.com/pact-foundation/pact-js-core/commit/8c8386ddc356f279f3f7b3c503b403bf9f3b912a))
17
+
18
+ ## [13.10.0](https://github.com/pact-foundation/pact-js-core/compare/v13.9.1...v13.10.0) (2022-10-18)
19
+
20
+
21
+ ### Features
22
+
23
+ * expose faiIfNoPactsFound on the VerifierOptions ([72eeb08](https://github.com/pact-foundation/pact-js-core/commit/72eeb08ab50f64364e5fba38d5d18a5b3e9e5489))
24
+
25
+
26
+ ### Fixes and Improvements
27
+
28
+ * only set failIfNoPactsFound if set by user ([577e49f](https://github.com/pact-foundation/pact-js-core/commit/577e49f41927a48808005da1b7b317f0be9b9ad2))
29
+
5
30
  ### [13.9.1](https://github.com/pact-foundation/pact-js-core/compare/v13.9.0...v13.9.1) (2022-09-28)
6
31
 
7
32
 
package/README.md CHANGED
@@ -55,12 +55,12 @@ In order to get better statistics as to who is using Pact, we have an anonymous
55
55
 
56
56
  ```json
57
57
  {
58
- "name": "some-project",
59
- ...
60
- "config": {
61
- "pact_do_not_track": true
62
- },
63
- ...
58
+ "name": "some-project",
59
+ ...
60
+ "config": {
61
+ "pact_do_not_track": true
62
+ },
63
+ ...
64
64
  }
65
65
  ```
66
66
 
@@ -87,7 +87,7 @@ Simply require the library and call the create function to start the mock servic
87
87
  var pact = require("@pact-foundation/pact-core");
88
88
  var server = pact.createServer({ port: 9999 });
89
89
  server.start().then(function() {
90
- // Do your testing/development here
90
+ // Do your testing/development here
91
91
  });
92
92
  ```
93
93
 
@@ -97,7 +97,7 @@ Or if you're using Typescript instead of plain old Javascript
97
97
  import pact from "@pact-foundation/pact-core";
98
98
  const server = pact.createServer({ port: 9999 });
99
99
  server.start().then(() => {
100
- // Do your testing/development here
100
+ // Do your testing/development here
101
101
  });
102
102
  ```
103
103
 
@@ -127,7 +127,7 @@ Mock servers are used by Pact to record interactions and create pact contracts.
127
127
  ```js
128
128
  var pact = require('@pact-foundation/pact-core');
129
129
  var server = pact.createServer({
130
- ...
130
+ ...
131
131
  });
132
132
  ```
133
133
 
@@ -138,7 +138,7 @@ var server = pact.createServer({
138
138
  | `port` | false | number | Port number that the server runs on, defaults to random available port |
139
139
  | `host` | false | string | Host on which to bind the server on, defaults to 'localhost'. Supports '0.0.0.0' to bind on all IPv4 addresses on the local machine. |
140
140
  | `log` | false | string | File to log output on relative to current working directory, defaults to none |
141
- | `logLevel` | false | LogLevel (string) | Log level to pass to the pact core. One of "DEBUG", "ERROR", "WARN", "INFO" |
141
+ | `logLevel` | false | LogLevel (string) | Log level to pass to the pact core. One of "DEBUG", "ERROR", "WARN", "INFO" |
142
142
  | `ssl` | false | boolean | Create a self-signed SSL cert to run the server over HTTPS , defaults to `false` |
143
143
  | `sslcert` | false | string | Path to a custom self-signed SSL cert file, 'ssl' option must be set to true to use this option, defaults to none |
144
144
  | `sslkey` | false | string | Path a custom key and self-signed SSL cert key file, 'ssl' option must be set to true to use this, defaults to none |
@@ -178,10 +178,10 @@ Start the current server.
178
178
  ```js
179
179
  var pact = require("@pact-foundation/pact-core");
180
180
  pact.createServer()
181
- .start()
182
- .then(function() {
183
- // Do something after it started
184
- });
181
+ .start()
182
+ .then(function() {
183
+ // Do something after it started
184
+ });
185
185
  ```
186
186
 
187
187
  #### Stop a Mock server
@@ -191,10 +191,10 @@ Stop the current server.
191
191
  ```js
192
192
  var pact = require("@pact-foundation/pact-core");
193
193
  pact.createServer()
194
- .stop()
195
- .then(function() {
196
- // Do something after it stopped
197
- });
194
+ .stop()
195
+ .then(function() {
196
+ // Do something after it stopped
197
+ });
198
198
  ```
199
199
 
200
200
  #### Delete a Mock server
@@ -204,10 +204,10 @@ Stop the current server and deletes it from the list.
204
204
  ```js
205
205
  var pact = require("@pact-foundation/pact-core");
206
206
  pact.createServer()
207
- .delete()
208
- .then(function() {
209
- // Do something after it was killed
210
- });
207
+ .delete()
208
+ .then(function() {
209
+ // Do something after it was killed
210
+ });
211
211
  ```
212
212
 
213
213
  #### Check if a Mock server is running
@@ -225,13 +225,13 @@ There's 3 different events available, 'start', 'stop' and 'delete'. They can be
225
225
  var pact = require("@pact-foundation/pact-core");
226
226
  var server = pact.createServer();
227
227
  server.on("start", function() {
228
- console.log("started");
228
+ console.log("started");
229
229
  });
230
230
  server.on("stop", function() {
231
- console.log("stopped");
231
+ console.log("stopped");
232
232
  });
233
233
  server.on("delete", function() {
234
- console.log("deleted");
234
+ console.log("deleted");
235
235
  });
236
236
  ```
237
237
 
@@ -243,7 +243,7 @@ Read more about [Verify Pacts](https://github.com/realestate-com-au/pact/wiki/Ve
243
243
  var pact = require('@pact-foundation/pact-core');
244
244
 
245
245
  pact.verifyPacts({
246
- ...
246
+ ...
247
247
  });
248
248
  ```
249
249
 
@@ -294,11 +294,11 @@ See the [Pact Broker documentation on selectors](https://docs.pact.io/pact_broke
294
294
  ```js
295
295
  var pact = require('@pact-foundation/pact-core');
296
296
  var opts = {
297
- ...
297
+ ...
298
298
  };
299
299
 
300
300
  pact.publishPacts(opts).then(function () {
301
- // do something
301
+ // do something
302
302
  });
303
303
  ```
304
304
 
@@ -313,6 +313,8 @@ pact.publishPacts(opts).then(function () {
313
313
  | `pactBrokerPassword` | false | string | Password for Pact Broker basic authentication. Optional |
314
314
  | `pactBrokerToken` | false | string | Bearer token for Pact Broker authentication. Optional |
315
315
  | `tags` | false | array | An array of Strings to tag the Pacts being published. Optional |
316
+ | `branch` | false | string | The branch to associate with the published pacts. Optional but recommended |
317
+ | `autoDetectVersionProperties` | false | boolean | Automatically detect the repository branch from known CI environment variables or git CLI. Supports Buildkite, Circle CI, Travis CI, GitHub Actions, Jenkins, Hudson, AppVeyor, GitLab, CodeShip, Bitbucket and Azure DevOps. Optional |
316
318
  | `buildUrl` | false | string | The build URL that created the pact. Optional |
317
319
  | `verbose` | false | boolean | Enables verbose output for underlying pact binary. |
318
320
 
@@ -321,30 +323,30 @@ pact.publishPacts(opts).then(function () {
321
323
  ```js
322
324
  var pact = require('@pact-foundation/pact-core');
323
325
  var opts = {
324
- ...
326
+ ...
325
327
  };
326
328
 
327
329
  pact.canDeploy(opts)
328
- .then(function (result) {
329
- // You can deploy this
330
+ .then(function (result) {
331
+ // You can deploy this
330
332
  // If output is not specified or is json, result describes the result of the check.
331
333
  // If outout is 'table', it is the human readable string returned by the check
332
- })
333
- .catch(function(error) {
334
- // You can't deploy this
334
+ })
335
+ .catch(function(error) {
336
+ // You can't deploy this
335
337
  // if output is not specified, or is json, error will be an object describing
336
338
  // the result of the check (if the check failed),
337
339
  // if output is 'table', then the error will be a string describing the output from the binary,
338
340
 
339
341
  // In both cases, `error` will be an Error object if something went wrong during the check.
340
- });
342
+ });
341
343
  ```
342
344
 
343
345
  **Options**:
344
346
 
345
347
  | Parameter | Required? | Type | Description |
346
348
  | -------------------- | --------- | ----------- | ----------------------------------------------------------------------------------- |
347
- | `pacticipants` | true | []objects | An array of version [selectors](docs.pact.io/selectors) in the form `{ name: String, latest?: string | boolean, version?: string }` |
349
+ | `pacticipants` | true | []objects | An array of version [selectors](docs.pact.io/selectors) in the form `{ name: String, latest?: string | boolean, version?: string }` |
348
350
  | | | | specify a tag, use the tagname with latest. Specify one of these per pacticipant |
349
351
  | | | | that you want to deploy |
350
352
  | `pactBroker` | true | string | URL of the Pact Broker to query about deployment. Required. |
@@ -368,7 +370,7 @@ The interface is comparable to the Mock Server API.
368
370
  ```js
369
371
  var pact = require('@pact-foundation/pact-core');
370
372
  var server = pact.createStub({
371
- ...
373
+ ...
372
374
  });
373
375
  ```
374
376
 
@@ -380,14 +382,13 @@ var server = pact.createStub({
380
382
  | port | false | number | Port number that the server runs on, defaults to random available port |
381
383
  | host | false | string | Host on which to bind the server on, defaults to 'localhost'. Supports '0.0.0.0' to bind on all IPv4 addresses on the local machine. |
382
384
  | log | false | string | File to log output on relative to current working directory, defaults to none |
383
- | logLevel | false | LogLevel (string) | Log level to pass to the pact core. One of "DEBUG", "ERROR", "WARN", "INFO" |
385
+ | logLevel | false | LogLevel (string) | Log level to pass to the pact core. One of "DEBUG", "ERROR", "WARN", "INFO" |
384
386
  | ssl | false | boolean | Create a self-signed SSL cert to run the server over HTTPS , defaults to 'false' |
385
387
  | sslcert | false | string | Path to a custom self-signed SSL cert file, 'ssl' option must be set to true to use this option. Defaults false | to none |
386
388
  | sslkey | false | string | Path a custom key and self-signed SSL cert key file, 'ssl' option must be set to true to use this option false. Defaults to none |
387
389
  | cors | false | boolean | Allow CORS OPTION requests to be accepted, defaults to 'false' |
388
390
  | timeout | false | number | How long to wait for the stub server to start up (in milliseconds). Defaults to 30000 (30 seconds) |
389
391
 
390
-
391
392
  ### Message Pacts
392
393
 
393
394
  #### Create Message Pacts
@@ -395,7 +396,7 @@ var server = pact.createStub({
395
396
  ```js
396
397
  var pact = require('@pact-foundation/pact-core');
397
398
  var message = pact.createMessage({
398
- ...
399
+ ...
399
400
  });
400
401
  ```
401
402
 
@@ -412,15 +413,15 @@ var message = pact.createMessage({
412
413
 
413
414
  ```js
414
415
  const messageFactory = messageFactory({
415
- consumer: "consumer",
416
- provider: "provider",
417
- dir: dirname(`${__filename}/pacts`),
418
- content: `{
419
- "description": "a test mesage",
420
- "content": {
421
- "name": "Mary"
422
- }
423
- }`
416
+ consumer: "consumer",
417
+ provider: "provider",
418
+ dir: dirname(`${__filename}/pacts`),
419
+ content: `{
420
+ "description": "a test mesage",
421
+ "content": {
422
+ "name": "Mary"
423
+ }
424
+ }`
424
425
  });
425
426
 
426
427
  messageFactory.createMessage();
@@ -453,12 +454,12 @@ The verification between the latest version of Banana Service (1.0.0) and versio
453
454
 
454
455
  The following are the binaries currently made available:
455
456
 
456
- * `pact-mock-service`
457
- * `pact-broker`
458
- * `pact-stub-service`
459
- * `pact-message`
460
- * `pact-provider-verifier`
461
- * `pact`
457
+ - `pact-mock-service`
458
+ - `pact-broker`
459
+ - `pact-stub-service`
460
+ - `pact-message`
461
+ - `pact-provider-verifier`
462
+ - `pact`
462
463
 
463
464
  ## Windows Issues
464
465
 
package/build/Makefile CHANGED
@@ -319,7 +319,7 @@ endif
319
319
 
320
320
  quiet_cmd_regen_makefile = ACTION Regenerating $@
321
321
  cmd_regen_makefile = cd $(srcdir); /opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/runner/.cache/node-gyp/12.22.12" "-Dnode_gyp_dir=/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/home/runner/.cache/node-gyp/12.22.12/<(target_arch)/node.lib" "-Dmodule_root_dir=/home/runner/work/pact-js-core/pact-js-core" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/home/runner/work/pact-js-core/pact-js-core/build/config.gypi -I/opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/runner/.cache/node-gyp/12.22.12/include/node/common.gypi "--toplevel-dir=." binding.gyp
322
- Makefile: $(srcdir)/binding.gyp $(srcdir)/../../../.cache/node-gyp/12.22.12/include/node/common.gypi $(srcdir)/build/config.gypi $(srcdir)/../../../../../opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi
322
+ Makefile: $(srcdir)/binding.gyp $(srcdir)/../../../.cache/node-gyp/12.22.12/include/node/common.gypi $(srcdir)/../../../../../opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/build/config.gypi
323
323
  $(call do_cmd,regen_makefile)
324
324
 
325
325
  # "all" is a concatenation of the "all" targets from all the included
Binary file
Binary file
Binary file
Binary file
Binary file
package/ffi/pact-cpp.h CHANGED
@@ -2648,6 +2648,26 @@ void pactffi_verifier_set_provider_info(VerifierHandle *handle,
2648
2648
  unsigned short port,
2649
2649
  const char *path);
2650
2650
 
2651
+ /**
2652
+ * Adds a new transport for the given provider. Passing a NULL for any field will
2653
+ * use the default value for that field.
2654
+ *
2655
+ * For non-plugin based message interactions, set protocol to "message" and set scheme
2656
+ * to an empty string or "https" if secure HTTP is required. Communication to the calling
2657
+ * application will be over HTTP to the default provider hostname.
2658
+ *
2659
+ * # Safety
2660
+ *
2661
+ * All string fields must contain valid UTF-8. Invalid UTF-8
2662
+ * will be replaced with U+FFFD REPLACEMENT CHARACTER.
2663
+ *
2664
+ */
2665
+ void pactffi_verifier_add_provider_transport(VerifierHandle *handle,
2666
+ const char *protocol,
2667
+ unsigned short port,
2668
+ const char *path,
2669
+ const char *scheme);
2670
+
2651
2671
  /**
2652
2672
  * Set the filters for the Pact verifier.
2653
2673
  *
package/ffi/pact.h CHANGED
@@ -2646,6 +2646,26 @@ void pactffi_verifier_set_provider_info(struct VerifierHandle *handle,
2646
2646
  unsigned short port,
2647
2647
  const char *path);
2648
2648
 
2649
+ /**
2650
+ * Adds a new transport for the given provider. Passing a NULL for any field will
2651
+ * use the default value for that field.
2652
+ *
2653
+ * For non-plugin based message interactions, set protocol to "message" and set scheme
2654
+ * to an empty string or "https" if secure HTTP is required. Communication to the calling
2655
+ * application will be over HTTP to the default provider hostname.
2656
+ *
2657
+ * # Safety
2658
+ *
2659
+ * All string fields must contain valid UTF-8. Invalid UTF-8
2660
+ * will be replaced with U+FFFD REPLACEMENT CHARACTER.
2661
+ *
2662
+ */
2663
+ void pactffi_verifier_add_provider_transport(struct VerifierHandle *handle,
2664
+ const char *protocol,
2665
+ unsigned short port,
2666
+ const char *path,
2667
+ const char *scheme);
2668
+
2649
2669
  /**
2650
2670
  * Set the filters for the Pact verifier.
2651
2671
  *
package/ffi/pact_ffi.dll CHANGED
Binary file
Binary file
package/native/addon.cc CHANGED
@@ -13,8 +13,10 @@ Napi::Object Init(Napi::Env env, Napi::Object exports) {
13
13
  exports.Set(Napi::String::New(env, "pactffiMockServerMatched"), Napi::Function::New(env, PactffiMockServerMatched));
14
14
  exports.Set(Napi::String::New(env, "pactffiMockServerMismatches"), Napi::Function::New(env, PactffiMockServerMismatches));
15
15
  exports.Set(Napi::String::New(env, "pactffiCreateMockServerForPact"), Napi::Function::New(env, PactffiCreateMockServerForPact));
16
+ exports.Set(Napi::String::New(env, "pactffiCreateMockServerForTransport"), Napi::Function::New(env, PactffiCreateMockServerForTransport));
16
17
  exports.Set(Napi::String::New(env, "pactffiCleanupMockServer"), Napi::Function::New(env, PactffiCleanupMockServer));
17
18
  exports.Set(Napi::String::New(env, "pactffiWritePactFile"), Napi::Function::New(env, PactffiWritePactFile));
19
+ exports.Set(Napi::String::New(env, "pactffiWritePactFileByPort"), Napi::Function::New(env, PactffiWritePactFileByPort));
18
20
  exports.Set(Napi::String::New(env, "pactffiNewPact"), Napi::Function::New(env, PactffiNewPact));
19
21
  exports.Set(Napi::String::New(env, "pactffiNewInteraction"), Napi::Function::New(env, PactffiNewInteraction));
20
22
  exports.Set(Napi::String::New(env, "pactffiUponReceiving"), Napi::Function::New(env, PactffiUponReceiving));
@@ -38,6 +40,7 @@ Napi::Object Init(Napi::Env env, Napi::Object exports) {
38
40
  // exports.Set(Napi::String::New(env, "pactffiWithMessagePactMetadata"), Napi::Function::New(env, PactffiWithMessagePactMetadata));
39
41
  exports.Set(Napi::String::New(env, "pactffiNewAsyncMessage"), Napi::Function::New(env, PactffiNewAsyncMessage));
40
42
  exports.Set(Napi::String::New(env, "pactffiNewSyncMessage"), Napi::Function::New(env, PactffiNewSyncMessage));
43
+ // exports.Set(Napi::String::New(env, "pactffiSyncMessageSetDescription"), Napi::Function::New(env, PactffiSyncMessageSetDescription));
41
44
  // exports.Set(Napi::String::New(env, "pactffiNewMessage"), Napi::Function::New(env, PactffiNewMessage));
42
45
  exports.Set(Napi::String::New(env, "pactffiMessageReify"), Napi::Function::New(env, PactffiMessageReify));
43
46
  exports.Set(Napi::String::New(env, "pactffiMessageGiven"), Napi::Function::New(env, PactffiMessageGiven));
@@ -57,13 +60,16 @@ Napi::Object Init(Napi::Env env, Napi::Object exports) {
57
60
  exports.Set(Napi::String::New(env, "pactffiVerifierSetFilterInfo"), Napi::Function::New(env, PactffiVerifierSetFilterInfo));
58
61
  exports.Set(Napi::String::New(env, "pactffiVerifierSetProviderState"), Napi::Function::New(env, PactffiVerifierSetProviderState));
59
62
  exports.Set(Napi::String::New(env, "pactffiVerifierSetConsumerFilters"), Napi::Function::New(env, PactffiVerifierSetConsumerFilters));
63
+ exports.Set(Napi::String::New(env, "pactffiVerifierSetFailIfNoPactsFound"), Napi::Function::New(env, PactffiVerifierSetFailIfNoPactsFound));
60
64
  exports.Set(Napi::String::New(env, "pactffiVerifierAddCustomHeader"), Napi::Function::New(env, PactffiVerifierAddCustomHeader));
61
65
  exports.Set(Napi::String::New(env, "pactffiVerifierAddFileSource"), Napi::Function::New(env, PactffiVerifierAddFileSource));
62
66
  exports.Set(Napi::String::New(env, "pactffiVerifierAddDirectorySource"), Napi::Function::New(env, PactffiVerifierAddDirectorySource));
63
67
  exports.Set(Napi::String::New(env, "pactffiVerifierUrlSource"), Napi::Function::New(env, PactffiVerifierUrlSource));
64
68
  exports.Set(Napi::String::New(env, "pactffiVerifierBrokerSourceWithSelectors"), Napi::Function::New(env, PactffiVerifierBrokerSourceWithSelectors));
69
+ exports.Set(Napi::String::New(env, "pactffiVerifierAddProviderTransport"), Napi::Function::New(env, PactffiVerifierAddProviderTransport));
70
+ exports.Set(Napi::String::New(env, "pactffiVerifierSetNoPactsIsError"), Napi::Function::New(env, PactffiVerifierSetNoPactsIsError));
65
71
 
66
72
  return exports;
67
73
  }
68
74
 
69
- NODE_API_MODULE(pact, Init)
75
+ NODE_API_MODULE(pact, Init)