@pact-foundation/pact-core 13.7.9 → 13.8.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 CHANGED
@@ -2,6 +2,13 @@
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.8.0](https://github.com/pact-foundation/pact-js-core/compare/v13.7.9...v13.8.0) (2022-09-05)
6
+
7
+
8
+ ### Features
9
+
10
+ * Add Linux/arm64 support ([a174d7b](https://github.com/pact-foundation/pact-js-core/commit/a174d7b89105043b21522e56efa1a35f8c8222c4))
11
+
5
12
  ### [13.7.9](https://github.com/pact-foundation/pact-js-core/compare/v13.7.8...v13.7.9) (2022-08-30)
6
13
 
7
14
 
package/binding.gyp CHANGED
@@ -70,7 +70,7 @@
70
70
  }
71
71
  ],
72
72
  [
73
- "OS==\"linux\"",
73
+ "OS==\"linux\" and target_arch ==\"x64\"",
74
74
  {
75
75
  "link_settings": {
76
76
  "libraries": [
@@ -80,6 +80,18 @@
80
80
  ]
81
81
  }
82
82
  }
83
+ ],
84
+ [
85
+ "OS==\"linux\" and target_arch ==\"arm64\"",
86
+ {
87
+ "link_settings": {
88
+ "libraries": [
89
+ "-lpact_ffi",
90
+ "-L<(module_root_dir)/ffi/linuxaarch64",
91
+ "-Wl,-rpath,'$$ORIGIN'/linuxaarch64"
92
+ ]
93
+ }
94
+ }
83
95
  ]
84
96
  ],
85
97
  "library_dirs": [
@@ -113,6 +125,12 @@
113
125
  "<(module_root_dir)/ffi/osxaarch64/libpact_ffi.dylib",
114
126
  ],
115
127
  "destination": "<(PRODUCT_DIR)/osxaarch64"
128
+ },
129
+ {
130
+ "files": [
131
+ "<(module_root_dir)/ffi/linuxaarch64/libpact_ffi.so",
132
+ ],
133
+ "destination": "<(PRODUCT_DIR)/linuxaarch64"
116
134
  }
117
135
  ]
118
136
  },
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)/build/config.gypi $(srcdir)/../../../../../opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/../../../.cache/node-gyp/12.22.12/include/node/common.gypi $(srcdir)/binding.gyp
322
+ Makefile: $(srcdir)/build/config.gypi $(srcdir)/../../../.cache/node-gyp/12.22.12/include/node/common.gypi $(srcdir)/binding.gyp $(srcdir)/../../../../../opt/hostedtoolcache/node/12.22.12/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi
323
323
  $(call do_cmd,regen_makefile)
324
324
 
325
325
  # "all" is a concatenation of the "all" targets from all the included
@@ -23,7 +23,12 @@ $(builddir)/osxaarch64/libpact_ffi.dylib: /home/runner/work/pact-js-core/pact-js
23
23
  $(call do_cmd,copy)
24
24
 
25
25
  all_deps += $(builddir)/osxaarch64/libpact_ffi.dylib
26
- binding_gyp_copy_release_artifacts_target_copies = $(builddir)/libpact_ffi.dylib $(builddir)/libpact_ffi.so $(builddir)/pact_ffi.dll $(builddir)/osxaarch64/libpact_ffi.dylib
26
+ $(builddir)/linuxaarch64/libpact_ffi.so: TOOLSET := $(TOOLSET)
27
+ $(builddir)/linuxaarch64/libpact_ffi.so: /home/runner/work/pact-js-core/pact-js-core/ffi/linuxaarch64/libpact_ffi.so FORCE_DO_CMD
28
+ $(call do_cmd,copy)
29
+
30
+ all_deps += $(builddir)/linuxaarch64/libpact_ffi.so
31
+ binding_gyp_copy_release_artifacts_target_copies = $(builddir)/libpact_ffi.dylib $(builddir)/libpact_ffi.so $(builddir)/pact_ffi.dll $(builddir)/osxaarch64/libpact_ffi.dylib $(builddir)/linuxaarch64/libpact_ffi.so
27
32
 
28
33
  ### Rules for final target.
29
34
  # Build our special outputs first.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pact-foundation/pact-core",
3
- "version": "13.7.9",
3
+ "version": "13.8.0",
4
4
  "description": "Core of @pact-foundation/pact. You almost certainly don't want to depend on this directly.",
5
5
  "main": "src/index.js",
6
6
  "homepage": "https://github.com/pact-foundation/pact-js-core#readme",
@@ -11,11 +11,12 @@ const LIBNAME_PREFIX_LOOKUP = {
11
11
  darwin: 'lib',
12
12
  win32: '',
13
13
  };
14
- const ARCH_LOOKUP = { x64: 'x86_64', arm64: 'aarch64-apple-darwin' };
14
+ const ARCH_LOOKUP = { x64: 'x86_64', arm64: 'aarch64' };
15
15
  const EXTENSION_LOOKUP = {
16
16
  'osx-x86_64': 'dylib',
17
- 'osx-aarch64-apple-darwin': 'dylib',
17
+ 'osx-aarch64': 'dylib',
18
18
  'linux-x86_64': 'so',
19
+ 'linux-aarch64': 'so',
19
20
  'windows-x86_64': 'dll',
20
21
  };
21
22
  const libName = (library, version, processArch = process.arch, processPlatform = process.platform) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;AAEA,MAAM,eAAe,GAAG;I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