@pact-foundation/pact-core 15.0.0 → 15.1.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 +12 -0
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/libpact_ffi.dylib +0 -0
- package/prebuilds/darwin-arm64/node.napi.node +0 -0
- package/prebuilds/darwin-x64/libpact_ffi.dylib +0 -0
- package/prebuilds/darwin-x64/node.napi.node +0 -0
- package/prebuilds/linux-arm64/libpact_ffi.so +0 -0
- package/prebuilds/linux-arm64/libpact_ffi_musl.so +0 -0
- package/prebuilds/linux-arm64/node.napi.musl.node +0 -0
- package/prebuilds/linux-x64/libpact_ffi.so +0 -0
- package/prebuilds/linux-x64/libpact_ffi_musl.so +0 -0
- package/prebuilds/linux-x64/node.napi.musl.node +0 -0
- package/prebuilds/win32-x64/node.napi.node +0 -0
- package/prebuilds/win32-x64/pact_ffi.dll +0 -0
- package/src/ffi/index.d.ts +1 -1
- package/src/ffi/index.js +1 -1
- package/src/ffi/internals/index.d.ts +0 -2
- package/src/ffi/internals/index.js +0 -40
- package/src/ffi/internals/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [15.1.0](https://github.com/pact-foundation/pact-js-core/compare/v15.0.0...v15.1.0) (2024-06-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* provide musl arm64/x86_64 prebuilds ([2d4db39](https://github.com/pact-foundation/pact-js-core/commit/2d4db3918b28afe25e770ed3fbadca025faed20d))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Fixes and Improvements
|
|
14
|
+
|
|
15
|
+
* update to libpact_ffi 0.4.21 ([34c7612](https://github.com/pact-foundation/pact-js-core/commit/34c7612a4b4c12c324a076d5c0234a9520509d83))
|
|
16
|
+
|
|
5
17
|
## [15.0.0](https://github.com/pact-foundation/pact-js-core/compare/v14.3.8...v15.0.0) (2024-06-17)
|
|
6
18
|
|
|
7
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pact-foundation/pact-core",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.1.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",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/ffi/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LogLevel } from '../logger/types';
|
|
2
2
|
import { Ffi } from './types';
|
|
3
|
-
export declare const PACT_FFI_VERSION = "0.4.
|
|
3
|
+
export declare const PACT_FFI_VERSION = "0.4.21";
|
|
4
4
|
declare let ffiLib: Ffi;
|
|
5
5
|
declare let ffi: typeof ffiLib;
|
|
6
6
|
export declare const getFfiLib: (logLevel?: LogLevel) => typeof ffi;
|
package/src/ffi/index.js
CHANGED
|
@@ -30,7 +30,7 @@ exports.getFfiLib = exports.PACT_FFI_VERSION = void 0;
|
|
|
30
30
|
const node_path_1 = __importDefault(require("node:path"));
|
|
31
31
|
const bindings = require("node-gyp-build");
|
|
32
32
|
const logger_1 = __importStar(require("../logger"));
|
|
33
|
-
exports.PACT_FFI_VERSION = '0.4.
|
|
33
|
+
exports.PACT_FFI_VERSION = '0.4.21';
|
|
34
34
|
const supportedPlatforms = [
|
|
35
35
|
'darwin-arm64',
|
|
36
36
|
'darwin-x64',
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.libName = void 0;
|
|
4
|
-
const PLATFORM_LOOKUP = {
|
|
5
|
-
linux: 'linux',
|
|
6
|
-
darwin: 'osx',
|
|
7
|
-
win32: 'windows',
|
|
8
|
-
};
|
|
9
|
-
const LIBNAME_PREFIX_LOOKUP = {
|
|
10
|
-
linux: 'lib',
|
|
11
|
-
darwin: 'lib',
|
|
12
|
-
win32: '',
|
|
13
|
-
};
|
|
14
|
-
const ARCH_LOOKUP = { x64: 'x86_64', arm64: 'aarch64' };
|
|
15
|
-
const EXTENSION_LOOKUP = {
|
|
16
|
-
'osx-x86_64': 'dylib',
|
|
17
|
-
'osx-aarch64': 'dylib',
|
|
18
|
-
'linux-x86_64': 'so',
|
|
19
|
-
'linux-aarch64': 'so',
|
|
20
|
-
'windows-x86_64': 'dll',
|
|
21
|
-
};
|
|
22
|
-
const libName = (library, version, processArch = process.arch, processPlatform = process.platform) => {
|
|
23
|
-
const arch = ARCH_LOOKUP[processArch];
|
|
24
|
-
const platform = PLATFORM_LOOKUP[processPlatform];
|
|
25
|
-
if (!arch || !platform) {
|
|
26
|
-
throw new Error(`Pact does not currently support the operating system and architecture combination '${processPlatform}/${processArch}'`);
|
|
27
|
-
}
|
|
28
|
-
const target = `${platform}-${arch}`;
|
|
29
|
-
const extension = EXTENSION_LOOKUP[target];
|
|
30
|
-
if (!extension) {
|
|
31
|
-
throw new Error(`Pact doesn't know what extension to use for the libraries in the architecture combination '${target}'`);
|
|
32
|
-
}
|
|
33
|
-
const libnamePrefix = LIBNAME_PREFIX_LOOKUP[processPlatform];
|
|
34
|
-
if (libnamePrefix === undefined) {
|
|
35
|
-
throw new Error(`Pact doesn't know what prefix to use for the libraries on '${processPlatform}'`);
|
|
36
|
-
}
|
|
37
|
-
return `${version}-${libnamePrefix}${library}-${target}.${extension}`;
|
|
38
|
-
};
|
|
39
|
-
exports.libName = libName;
|
|
40
|
-
//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