@pact-foundation/pact-core 13.4.1-beta.1 → 13.4.1-beta.6

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 (54) hide show
  1. package/binding.gyp +4 -8
  2. package/build/Makefile +352 -0
  3. package/build/binding.Makefile +6 -0
  4. package/build/copy_release_artifacts.target.mk +47 -0
  5. package/build/gyp-mac-tool +777 -0
  6. package/build/pact.target.mk +205 -0
  7. package/build/set_osx_install_name.target.mk +48 -0
  8. package/ffi/libpact_ffi.dylib +0 -0
  9. package/ffi/libpact_ffi.so +0 -0
  10. package/ffi/osxaarch64/libpact_ffi.dylib +0 -0
  11. package/ffi/pact.h +599 -108
  12. package/ffi/pact_ffi.dll +0 -0
  13. package/ffi/pact_ffi.dll.lib +0 -0
  14. package/native/consumer.cc +88 -32
  15. package/package.json +4 -5
  16. package/src/consumer/__testoutput__/foo-consumer-bar-provider.json +255 -0
  17. package/src/consumer/index.d.ts +1 -0
  18. package/src/consumer/index.js +44 -31
  19. package/src/consumer/index.js.map +1 -1
  20. package/src/consumer/types.d.ts +4 -0
  21. package/src/ffi/index.d.ts +1 -6
  22. package/src/ffi/index.js +2 -32
  23. package/src/ffi/index.js.map +1 -1
  24. package/src/ffi/internals/index.d.ts +0 -2
  25. package/src/ffi/internals/index.js +1 -11
  26. package/src/ffi/internals/index.js.map +1 -1
  27. package/src/ffi/internals/types.d.ts +2 -4
  28. package/src/ffi/types.d.ts +12 -0
  29. package/src/ffi/types.js +15 -1
  30. package/src/ffi/types.js.map +1 -1
  31. package/src/publisher.d.ts +1 -0
  32. package/src/publisher.js +11 -4
  33. package/src/publisher.js.map +1 -1
  34. package/src/verifier/nativeVerifier.js +9 -6
  35. package/src/verifier/nativeVerifier.js.map +1 -1
  36. package/src/verifier/types.d.ts +3 -0
  37. package/src/verifier/validateOptions.js +3 -1
  38. package/src/verifier/validateOptions.js.map +1 -1
  39. package/standalone/install.d.ts +1 -1
  40. package/standalone/install.js +1 -1
  41. package/ffi/libpact_ffi.so.gz +0 -0
  42. package/native/consumer.c +0 -210
  43. package/src/ffi/argumentMapper/index.d.ts +0 -2
  44. package/src/ffi/argumentMapper/index.js +0 -47
  45. package/src/ffi/argumentMapper/index.js.map +0 -1
  46. package/src/ffi/argumentMapper/types.d.ts +0 -8
  47. package/src/ffi/argumentMapper/types.js +0 -3
  48. package/src/ffi/argumentMapper/types.js.map +0 -1
  49. package/src/ffi/declarations.d.ts +0 -117
  50. package/src/ffi/declarations.js +0 -66
  51. package/src/ffi/declarations.js.map +0 -1
  52. package/src/verifier/arguments.d.ts +0 -13
  53. package/src/verifier/arguments.js +0 -89
  54. package/src/verifier/arguments.js.map +0 -1
@@ -0,0 +1,205 @@
1
+ # This file is generated by gyp; do not edit.
2
+
3
+ TOOLSET := target
4
+ TARGET := pact
5
+ DEFS_Debug := \
6
+ '-DNODE_GYP_MODULE_NAME=pact' \
7
+ '-DUSING_UV_SHARED=1' \
8
+ '-DUSING_V8_SHARED=1' \
9
+ '-DV8_DEPRECATION_WARNINGS=1' \
10
+ '-DV8_DEPRECATION_WARNINGS' \
11
+ '-DV8_IMMINENT_DEPRECATION_WARNINGS' \
12
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
13
+ '-D_DARWIN_USE_64_BIT_INODE=1' \
14
+ '-D_LARGEFILE_SOURCE' \
15
+ '-D_FILE_OFFSET_BITS=64' \
16
+ '-DOPENSSL_NO_PINSHARED' \
17
+ '-DOPENSSL_THREADS' \
18
+ '-DNAPI_CPP_EXCEPTIONS' \
19
+ '-DBUILDING_NODE_EXTENSION' \
20
+ '-DDEBUG' \
21
+ '-D_DEBUG' \
22
+ '-DV8_ENABLE_CHECKS'
23
+
24
+ # Flags passed to all source files.
25
+ CFLAGS_Debug := \
26
+ -O0 \
27
+ -gdwarf-2 \
28
+ -fvisibility=hidden \
29
+ -Werror \
30
+ -mmacosx-version-min=10.7 \
31
+ -arch x86_64 \
32
+ -Wall \
33
+ -Wendif-labels \
34
+ -W \
35
+ -Wno-unused-parameter
36
+
37
+ # Flags passed to only C files.
38
+ CFLAGS_C_Debug := \
39
+ -fno-strict-aliasing
40
+
41
+ # Flags passed to only C++ files.
42
+ CFLAGS_CC_Debug := \
43
+ -std=gnu++14 \
44
+ -stdlib=libc++ \
45
+ -fno-rtti \
46
+ -fno-strict-aliasing
47
+
48
+ # Flags passed to only ObjC files.
49
+ CFLAGS_OBJC_Debug :=
50
+
51
+ # Flags passed to only ObjC++ files.
52
+ CFLAGS_OBJCC_Debug :=
53
+
54
+ INCS_Debug := \
55
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/include/node \
56
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/src \
57
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/openssl/config \
58
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/openssl/openssl/include \
59
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/uv/include \
60
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/zlib \
61
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/v8/include \
62
+ -I$(srcdir)/node_modules/node-addon-api \
63
+ -I/Users/matthewfellows/development/public/pact-js-core/native
64
+
65
+ DEFS_Release := \
66
+ '-DNODE_GYP_MODULE_NAME=pact' \
67
+ '-DUSING_UV_SHARED=1' \
68
+ '-DUSING_V8_SHARED=1' \
69
+ '-DV8_DEPRECATION_WARNINGS=1' \
70
+ '-DV8_DEPRECATION_WARNINGS' \
71
+ '-DV8_IMMINENT_DEPRECATION_WARNINGS' \
72
+ '-D_GLIBCXX_USE_CXX11_ABI=1' \
73
+ '-D_DARWIN_USE_64_BIT_INODE=1' \
74
+ '-D_LARGEFILE_SOURCE' \
75
+ '-D_FILE_OFFSET_BITS=64' \
76
+ '-DOPENSSL_NO_PINSHARED' \
77
+ '-DOPENSSL_THREADS' \
78
+ '-DNAPI_CPP_EXCEPTIONS' \
79
+ '-DBUILDING_NODE_EXTENSION'
80
+
81
+ # Flags passed to all source files.
82
+ CFLAGS_Release := \
83
+ -O3 \
84
+ -gdwarf-2 \
85
+ -fvisibility=hidden \
86
+ -Werror \
87
+ -mmacosx-version-min=10.7 \
88
+ -arch x86_64 \
89
+ -Wall \
90
+ -Wendif-labels \
91
+ -W \
92
+ -Wno-unused-parameter
93
+
94
+ # Flags passed to only C files.
95
+ CFLAGS_C_Release := \
96
+ -fno-strict-aliasing
97
+
98
+ # Flags passed to only C++ files.
99
+ CFLAGS_CC_Release := \
100
+ -std=gnu++14 \
101
+ -stdlib=libc++ \
102
+ -fno-rtti \
103
+ -fno-strict-aliasing
104
+
105
+ # Flags passed to only ObjC files.
106
+ CFLAGS_OBJC_Release :=
107
+
108
+ # Flags passed to only ObjC++ files.
109
+ CFLAGS_OBJCC_Release :=
110
+
111
+ INCS_Release := \
112
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/include/node \
113
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/src \
114
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/openssl/config \
115
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/openssl/openssl/include \
116
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/uv/include \
117
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/zlib \
118
+ -I/Users/matthewfellows/Library/Caches/node-gyp/16.9.1/deps/v8/include \
119
+ -I$(srcdir)/node_modules/node-addon-api \
120
+ -I/Users/matthewfellows/development/public/pact-js-core/native
121
+
122
+ OBJS := \
123
+ $(obj).target/$(TARGET)/native/addon.o \
124
+ $(obj).target/$(TARGET)/native/ffi.o \
125
+ $(obj).target/$(TARGET)/native/consumer.o \
126
+ $(obj).target/$(TARGET)/native/provider.o \
127
+ $(obj).target/$(TARGET)/native/plugin.o
128
+
129
+ # Add to the list of files we specially track dependencies for.
130
+ all_deps += $(OBJS)
131
+
132
+ # CFLAGS et al overrides must be target-local.
133
+ # See "Target-specific Variable Values" in the GNU Make manual.
134
+ $(OBJS): TOOLSET := $(TOOLSET)
135
+ $(OBJS): GYP_CFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE))
136
+ $(OBJS): GYP_CXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE))
137
+ $(OBJS): GYP_OBJCFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_C_$(BUILDTYPE)) $(CFLAGS_OBJC_$(BUILDTYPE))
138
+ $(OBJS): GYP_OBJCXXFLAGS := $(DEFS_$(BUILDTYPE)) $(INCS_$(BUILDTYPE)) $(CFLAGS_$(BUILDTYPE)) $(CFLAGS_CC_$(BUILDTYPE)) $(CFLAGS_OBJCC_$(BUILDTYPE))
139
+
140
+ # Suffix rules, putting all outputs into $(obj).
141
+
142
+ $(obj).$(TOOLSET)/$(TARGET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
143
+ @$(call do_cmd,cxx,1)
144
+
145
+ # Try building from generated source, too.
146
+
147
+ $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
148
+ @$(call do_cmd,cxx,1)
149
+
150
+ $(obj).$(TOOLSET)/$(TARGET)/%.o: $(obj)/%.cc FORCE_DO_CMD
151
+ @$(call do_cmd,cxx,1)
152
+
153
+ # End of this set of suffix rules
154
+ ### Rules for final target.
155
+ LDFLAGS_Debug := \
156
+ -undefined dynamic_lookup \
157
+ -Wl,-search_paths_first \
158
+ -mmacosx-version-min=10.7 \
159
+ -arch x86_64 \
160
+ -L$(builddir) \
161
+ -stdlib=libc++ \
162
+ -L/Users/matthewfellows/development/public/pact-js-core/native
163
+
164
+ LIBTOOLFLAGS_Debug := \
165
+ -undefined dynamic_lookup \
166
+ -Wl,-search_paths_first
167
+
168
+ LDFLAGS_Release := \
169
+ -undefined dynamic_lookup \
170
+ -Wl,-search_paths_first \
171
+ -mmacosx-version-min=10.7 \
172
+ -arch x86_64 \
173
+ -L$(builddir) \
174
+ -stdlib=libc++ \
175
+ -L/Users/matthewfellows/development/public/pact-js-core/native
176
+
177
+ LIBTOOLFLAGS_Release := \
178
+ -undefined dynamic_lookup \
179
+ -Wl,-search_paths_first
180
+
181
+ LIBS := \
182
+ -lpact_ffi \
183
+ -L/Users/matthewfellows/development/public/pact-js-core/ffi \
184
+ -Wl,-rpath,@loader_path
185
+
186
+ $(builddir)/pact.node: GYP_LDFLAGS := $(LDFLAGS_$(BUILDTYPE))
187
+ $(builddir)/pact.node: LIBS := $(LIBS)
188
+ $(builddir)/pact.node: GYP_LIBTOOLFLAGS := $(LIBTOOLFLAGS_$(BUILDTYPE))
189
+ $(builddir)/pact.node: TOOLSET := $(TOOLSET)
190
+ $(builddir)/pact.node: $(OBJS) FORCE_DO_CMD
191
+ $(call do_cmd,solink_module)
192
+
193
+ all_deps += $(builddir)/pact.node
194
+ # Add target alias
195
+ .PHONY: pact
196
+ pact: $(builddir)/pact.node
197
+
198
+ # Short alias for building this executable.
199
+ .PHONY: pact.node
200
+ pact.node: $(builddir)/pact.node
201
+
202
+ # Add executable to "all" target.
203
+ .PHONY: all
204
+ all: $(builddir)/pact.node
205
+
@@ -0,0 +1,48 @@
1
+ # This file is generated by gyp; do not edit.
2
+
3
+ TOOLSET := target
4
+ TARGET := set_osx_install_name
5
+ ### Rules for action "modify install_name on osx":
6
+ quiet_cmd_binding_gyp_set_osx_install_name_target_modify_install_name_on_osx = ACTION binding_gyp_set_osx_install_name_target_modify_install_name_on_osx $@
7
+ cmd_binding_gyp_set_osx_install_name_target_modify_install_name_on_osx = LD_LIBRARY_PATH=$(builddir)/lib.host:$(builddir)/lib.target:$$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd $(srcdir)/.; mkdir -p /Users/matthewfellows/development/public/pact-js-core/build/Release; install_name_tool -change libpact_ffi.dylib @rpath/libpact_ffi.dylib /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node
8
+
9
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: obj := $(abs_obj)
10
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: builddir := $(abs_builddir)
11
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export BUILT_FRAMEWORKS_DIR := ${abs_builddir}
12
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export BUILT_PRODUCTS_DIR := ${abs_builddir}
13
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export CONFIGURATION := ${BUILDTYPE}
14
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export PRODUCT_NAME := set_osx_install_name
15
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export SDKROOT := /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk
16
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export SRCROOT := ${abs_srcdir}/
17
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export SOURCE_ROOT := ${SRCROOT}
18
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export TARGET_BUILD_DIR := ${abs_builddir}
19
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export TEMP_DIR := ${TMPDIR}
20
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: export XCODE_VERSION_ACTUAL := 1240
21
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: TOOLSET := $(TOOLSET)
22
+ /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node: /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node FORCE_DO_CMD
23
+ $(call do_cmd,binding_gyp_set_osx_install_name_target_modify_install_name_on_osx)
24
+
25
+ all_deps += /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node
26
+ action_binding_gyp_set_osx_install_name_target_modify_install_name_on_osx_outputs := /Users/matthewfellows/development/public/pact-js-core/build/Release/pact.node
27
+
28
+
29
+ ### Rules for final target.
30
+ # Build our special outputs first.
31
+ $(obj).target/set_osx_install_name.stamp: | $(action_binding_gyp_set_osx_install_name_target_modify_install_name_on_osx_outputs)
32
+
33
+ # Preserve order dependency of special output on deps.
34
+ $(action_binding_gyp_set_osx_install_name_target_modify_install_name_on_osx_outputs): | $(builddir)/pact.node $(obj).target/copy_release_artifacts.stamp
35
+
36
+ $(obj).target/set_osx_install_name.stamp: TOOLSET := $(TOOLSET)
37
+ $(obj).target/set_osx_install_name.stamp: $(builddir)/pact.node $(obj).target/copy_release_artifacts.stamp FORCE_DO_CMD
38
+ $(call do_cmd,touch)
39
+
40
+ all_deps += $(obj).target/set_osx_install_name.stamp
41
+ # Add target alias
42
+ .PHONY: set_osx_install_name
43
+ set_osx_install_name: $(obj).target/set_osx_install_name.stamp
44
+
45
+ # Add target alias to "all" target.
46
+ .PHONY: all
47
+ all: set_osx_install_name
48
+
Binary file
Binary file
Binary file