@pact-foundation/pact-core 13.4.1-beta.2 → 13.4.1-beta.7

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 (40) hide show
  1. package/binding.gyp +4 -8
  2. package/build/Makefile +5 -5
  3. package/build/gyp-mac-tool +626 -464
  4. package/build/pact.target.mk +20 -20
  5. package/build/set_osx_install_name.target.mk +2 -1
  6. package/ffi/libpact_ffi.dylib +0 -0
  7. package/ffi/libpact_ffi.so +0 -0
  8. package/ffi/osxaarch64/libpact_ffi.dylib +0 -0
  9. package/ffi/pact.h +599 -108
  10. package/ffi/pact_ffi.dll +0 -0
  11. package/ffi/pact_ffi.dll.lib +0 -0
  12. package/native/consumer.cc +88 -32
  13. package/package.json +4 -7
  14. package/src/consumer/__testoutput__/foo-consumer-bar-provider.json +255 -0
  15. package/src/consumer/checkErrors.d.ts +7 -0
  16. package/src/consumer/checkErrors.js +41 -0
  17. package/src/consumer/checkErrors.js.map +1 -0
  18. package/src/consumer/index.d.ts +4 -0
  19. package/src/consumer/index.js +146 -0
  20. package/src/consumer/index.js.map +1 -0
  21. package/src/consumer/types.d.ts +109 -0
  22. package/src/consumer/types.js +3 -0
  23. package/src/consumer/types.js.map +1 -0
  24. package/src/ffi/index.d.ts +1 -0
  25. package/src/ffi/index.js +3 -0
  26. package/src/ffi/index.js.map +1 -1
  27. package/src/ffi/types.d.ts +27 -0
  28. package/src/ffi/types.js +42 -0
  29. package/src/ffi/types.js.map +1 -0
  30. package/src/index.d.ts +1 -0
  31. package/src/index.js +1 -0
  32. package/src/index.js.map +1 -1
  33. package/src/logger/index.d.ts +5 -2
  34. package/src/logger/index.js +15 -2
  35. package/src/logger/index.js.map +1 -1
  36. package/ffi/libpact_ffi.so.gz +0 -0
  37. package/native/consumer.c +0 -210
  38. package/src/ffi/declarations.d.ts +0 -136
  39. package/src/ffi/declarations.js +0 -92
  40. package/src/ffi/declarations.js.map +0 -1
package/binding.gyp CHANGED
@@ -33,12 +33,10 @@
33
33
  [
34
34
  "OS==\"mac\" and target_arch ==\"x64\"",
35
35
  {
36
- "cflags+": [
37
- "-fvisibility=hidden"
38
- ],
39
36
  "xcode_settings": {
40
37
  "GCC_SYMBOLS_PRIVATE_EXTERN": "YES",
41
38
  "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
39
+ "GCC_TREAT_WARNINGS_AS_ERRORS": "YES",
42
40
  "CLANG_CXX_LIBRARY": "libc++",
43
41
  "MACOSX_DEPLOYMENT_TARGET": "10.7"
44
42
  },
@@ -54,12 +52,10 @@
54
52
  [
55
53
  "OS==\"mac\" and target_arch ==\"arm64\"",
56
54
  {
57
- "cflags+": [
58
- "-fvisibility=hidden"
59
- ],
60
55
  "xcode_settings": {
61
56
  "GCC_SYMBOLS_PRIVATE_EXTERN": "YES",
62
57
  "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
58
+ "GCC_TREAT_WARNINGS_AS_ERRORS": "YES",
63
59
  "CLANG_CXX_LIBRARY": "libc++",
64
60
  "MACOSX_DEPLOYMENT_TARGET": "10.7"
65
61
  },
@@ -88,10 +84,10 @@
88
84
  "library_dirs": [
89
85
  "<(module_root_dir)/native"
90
86
  ],
91
- "ldflags" : [ "-Wl,-s", "-Werror" ],
92
87
  "cflags_cc!": [
93
- "-fno-exceptions"
88
+ "-fno-exceptions",
94
89
  ],
90
+ "cflags_cc": [ "-Werror" ],
95
91
  "defines": [
96
92
  "NAPI_CPP_EXCEPTIONS"
97
93
  ]
package/build/Makefile CHANGED
@@ -121,10 +121,10 @@ endef
121
121
  # - quiet_cmd_foo is the brief-output summary of the command.
122
122
 
123
123
  quiet_cmd_cc = CC($(TOOLSET)) $@
124
- cmd_cc = $(CC.$(TOOLSET)) $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c -o $@ $<
124
+ cmd_cc = $(CC.$(TOOLSET)) -o $@ $< $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c
125
125
 
126
126
  quiet_cmd_cxx = CXX($(TOOLSET)) $@
127
- cmd_cxx = $(CXX.$(TOOLSET)) $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c -o $@ $<
127
+ cmd_cxx = $(CXX.$(TOOLSET)) -o $@ $< $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c
128
128
 
129
129
  quiet_cmd_objc = CXX($(TOOLSET)) $@
130
130
  cmd_objc = $(CC.$(TOOLSET)) $(GYP_OBJCFLAGS) $(DEPFLAGS) -c -o $@ $<
@@ -159,7 +159,7 @@ cmd_touch = touch $@
159
159
 
160
160
  quiet_cmd_copy = COPY $@
161
161
  # send stderr to /dev/null to ignore messages when linking directories.
162
- cmd_copy = rm -rf "$@" && cp -af "$<" "$@"
162
+ cmd_copy = ln -f "$<" "$@" 2>/dev/null || (rm -rf "$@" && cp -af "$<" "$@")
163
163
 
164
164
  quiet_cmd_alink = LIBTOOL-STATIC $@
165
165
  cmd_alink = rm -f $@ && ./gyp-mac-tool filter-libtool libtool $(GYP_LIBTOOLFLAGS) -static -o $@ $(filter %.o,$^)
@@ -336,8 +336,8 @@ ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
336
336
  endif
337
337
 
338
338
  quiet_cmd_regen_makefile = ACTION Regenerating $@
339
- cmd_regen_makefile = cd $(srcdir); /Users/matthewfellows/.nvm/versions/node/v12.18.0/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/Users/matthewfellows/Library/Caches/node-gyp/12.18.0" "-Dnode_gyp_dir=/Users/matthewfellows/.nvm/versions/node/v12.18.0/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/Users/matthewfellows/Library/Caches/node-gyp/12.18.0/<(target_arch)/node.lib" "-Dmodule_root_dir=/Users/matthewfellows/development/public/pact-js-core" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/Users/matthewfellows/development/public/pact-js-core/build/config.gypi -I/Users/matthewfellows/.nvm/versions/node/v12.18.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/Users/matthewfellows/Library/Caches/node-gyp/12.18.0/include/node/common.gypi "--toplevel-dir=." binding.gyp
340
- Makefile: $(srcdir)/binding.gyp $(srcdir)/../../../.nvm/versions/node/v12.18.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/../../../Library/Caches/node-gyp/12.18.0/include/node/common.gypi $(srcdir)/build/config.gypi
339
+ cmd_regen_makefile = cd $(srcdir); /Users/matthewfellows/.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/Users/matthewfellows/Library/Caches/node-gyp/16.9.1" "-Dnode_gyp_dir=/Users/matthewfellows/.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/<(target_arch)/node.lib" "-Dmodule_root_dir=/Users/matthewfellows/development/public/pact-js-core" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/Users/matthewfellows/development/public/pact-js-core/build/config.gypi -I/Users/matthewfellows/.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/include/node/common.gypi "--toplevel-dir=." binding.gyp
340
+ Makefile: $(srcdir)/build/config.gypi $(srcdir)/../../../Library/Caches/node-gyp/16.9.1/include/node/common.gypi $(srcdir)/../../../.nvm/versions/node/v16.9.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/binding.gyp
341
341
  $(call do_cmd,regen_makefile)
342
342
 
343
343
  # "all" is a concatenation of the "all" targets from all the included