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

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