@pact-foundation/pact-core 17.0.0 → 17.0.1
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 +8 -0
- package/package.json +35 -35
- package/src/logger/pino.js +11 -7
- package/src/logger/pino.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
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
|
+
## [17.0.1](https://github.com/pact-foundation/pact-js-core/compare/v17.0.0...v17.0.1) (2025-10-18)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Fixes and Improvements
|
|
9
|
+
|
|
10
|
+
* **deps:** update dependency pino to v10 ([#717](https://github.com/pact-foundation/pact-js-core/issues/717)) ([8888877](https://github.com/pact-foundation/pact-js-core/commit/888887719db1bf6cd7137e8bdec534f0432c141b))
|
|
11
|
+
* prevent missing pino logs ([#729](https://github.com/pact-foundation/pact-js-core/issues/729)) ([4f81dfe](https://github.com/pact-foundation/pact-js-core/commit/4f81dfe359da5c40ad7c5310ec1350e2e2cb1d73))
|
|
12
|
+
|
|
5
13
|
## [17.0.0](https://github.com/pact-foundation/pact-js-core/compare/v16.1.1...v17.0.0) (2025-09-15)
|
|
6
14
|
|
|
7
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pact-foundation/pact-core",
|
|
3
|
-
"version": "17.0.
|
|
3
|
+
"version": "17.0.1",
|
|
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",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"check-types": "11.2.3",
|
|
47
47
|
"detect-libc": "^2.0.3",
|
|
48
48
|
"node-gyp-build": "^4.6.0",
|
|
49
|
-
"pino": "^
|
|
49
|
+
"pino": "^10.0.0",
|
|
50
50
|
"pino-pretty": "^13.1.1",
|
|
51
51
|
"underscore": "1.13.7"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@eslint/compat": "
|
|
55
|
-
"@eslint/eslintrc": "
|
|
56
|
-
"@eslint/js": "
|
|
57
|
-
"@grpc/grpc-js": "1.
|
|
58
|
-
"@grpc/proto-loader": "0.
|
|
54
|
+
"@eslint/compat": "1.4.0",
|
|
55
|
+
"@eslint/eslintrc": "3.3.1",
|
|
56
|
+
"@eslint/js": "9.37.0",
|
|
57
|
+
"@grpc/grpc-js": "1.14.0",
|
|
58
|
+
"@grpc/proto-loader": "0.8.0",
|
|
59
59
|
"@pact-foundation/pact-js-prettier-config": "1.0.0",
|
|
60
|
-
"@snyk/protect": "1.
|
|
60
|
+
"@snyk/protect": "1.1300.0",
|
|
61
61
|
"@tsconfig/node14": "14.1.5",
|
|
62
62
|
"@types/basic-auth": "1.1.8",
|
|
63
63
|
"@types/chai": "5.2.2",
|
|
@@ -68,47 +68,47 @@
|
|
|
68
68
|
"@types/express": "5.0.3",
|
|
69
69
|
"@types/mocha": "10.0.10",
|
|
70
70
|
"@types/needle": "3.3.0",
|
|
71
|
-
"@types/node": "24.
|
|
71
|
+
"@types/node": "24.8.1",
|
|
72
72
|
"@types/rimraf": "3.0.2",
|
|
73
73
|
"@types/sinon": "17.0.4",
|
|
74
74
|
"@types/tar": "6.1.13",
|
|
75
75
|
"@types/underscore": "1.13.0",
|
|
76
76
|
"@types/unixify": "1.0.2",
|
|
77
77
|
"@types/url-join": "5.0.0",
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
79
|
-
"@typescript-eslint/parser": "8.
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "8.46.1",
|
|
79
|
+
"@typescript-eslint/parser": "8.46.1",
|
|
80
80
|
"axios": "1.12.2",
|
|
81
81
|
"basic-auth": "2.0.1",
|
|
82
82
|
"body-parser": "2.2.0",
|
|
83
|
-
"chai": "
|
|
84
|
-
"chai-as-promised": "8.0.
|
|
85
|
-
"commit-and-tag-version": "12.
|
|
83
|
+
"chai": "6.2.0",
|
|
84
|
+
"chai-as-promised": "8.0.2",
|
|
85
|
+
"commit-and-tag-version": "12.6.0",
|
|
86
86
|
"cors": "2.8.5",
|
|
87
|
-
"cross-env": "
|
|
88
|
-
"decamelize": "6.0.
|
|
89
|
-
"eslint": "
|
|
90
|
-
"eslint-config-prettier": "10.1.
|
|
91
|
-
"eslint-import-resolver-typescript": "4.4.
|
|
92
|
-
"eslint-plugin-chai-friendly": "1.0
|
|
93
|
-
"eslint-plugin-import": "2.
|
|
94
|
-
"eslint-plugin-mocha": "11.
|
|
87
|
+
"cross-env": "10.1.0",
|
|
88
|
+
"decamelize": "6.0.1",
|
|
89
|
+
"eslint": "9.37.0",
|
|
90
|
+
"eslint-config-prettier": "10.1.8",
|
|
91
|
+
"eslint-import-resolver-typescript": "4.4.4",
|
|
92
|
+
"eslint-plugin-chai-friendly": "1.1.0",
|
|
93
|
+
"eslint-plugin-import": "2.32.0",
|
|
94
|
+
"eslint-plugin-mocha": "11.2.0",
|
|
95
95
|
"express": "5.1.0",
|
|
96
96
|
"form-data": "4.0.4",
|
|
97
|
-
"globals": "
|
|
97
|
+
"globals": "16.4.0",
|
|
98
98
|
"grpc-promise": "1.4.0",
|
|
99
|
-
"mocha": "11.7.
|
|
99
|
+
"mocha": "11.7.4",
|
|
100
100
|
"node-addon-api": "8.5.0",
|
|
101
101
|
"nodemon": "3.1.10",
|
|
102
|
-
"prettier": "3.
|
|
102
|
+
"prettier": "3.6.2",
|
|
103
103
|
"protobufjs": "7.5.4",
|
|
104
104
|
"rimraf": "6.0.1",
|
|
105
105
|
"sinon": "21.0.0",
|
|
106
106
|
"ts-node": "10.9.2",
|
|
107
|
-
"typescript": "
|
|
108
|
-
"typescript-eslint": "
|
|
107
|
+
"typescript": "5.9.3",
|
|
108
|
+
"typescript-eslint": "8.46.1"
|
|
109
109
|
},
|
|
110
110
|
"overrides": {
|
|
111
|
-
"semver": "7.7.
|
|
111
|
+
"semver": "7.7.3"
|
|
112
112
|
},
|
|
113
113
|
"scripts": {
|
|
114
114
|
"clean": "rimraf -g '{src,test}/**/*.{js,map,d.ts}' 'package.zip' '.tmp' 'tmp'",
|
|
@@ -163,12 +163,12 @@
|
|
|
163
163
|
]
|
|
164
164
|
},
|
|
165
165
|
"optionalDependencies": {
|
|
166
|
-
"@pact-foundation/pact-core-darwin-arm64": "17.0.
|
|
167
|
-
"@pact-foundation/pact-core-darwin-x64": "17.0.
|
|
168
|
-
"@pact-foundation/pact-core-linux-arm64-glibc": "17.0.
|
|
169
|
-
"@pact-foundation/pact-core-linux-arm64-musl": "17.0.
|
|
170
|
-
"@pact-foundation/pact-core-linux-x64-glibc": "17.0.
|
|
171
|
-
"@pact-foundation/pact-core-linux-x64-musl": "17.0.
|
|
172
|
-
"@pact-foundation/pact-core-windows-x64": "17.0.
|
|
166
|
+
"@pact-foundation/pact-core-darwin-arm64": "17.0.1",
|
|
167
|
+
"@pact-foundation/pact-core-darwin-x64": "17.0.1",
|
|
168
|
+
"@pact-foundation/pact-core-linux-arm64-glibc": "17.0.1",
|
|
169
|
+
"@pact-foundation/pact-core-linux-arm64-musl": "17.0.1",
|
|
170
|
+
"@pact-foundation/pact-core-linux-x64-glibc": "17.0.1",
|
|
171
|
+
"@pact-foundation/pact-core-linux-x64-musl": "17.0.1",
|
|
172
|
+
"@pact-foundation/pact-core-windows-x64": "17.0.1"
|
|
173
173
|
}
|
|
174
174
|
}
|
package/src/logger/pino.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.createLogger = void 0;
|
|
7
4
|
const pino_1 = require("pino");
|
|
8
|
-
const pino_pretty_1 =
|
|
9
|
-
const createLogger = (level) =>
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
const pino_pretty_1 = require("pino-pretty");
|
|
6
|
+
const createLogger = (level) => {
|
|
7
|
+
const prettify = (0, pino_pretty_1.prettyFactory)({ sync: true });
|
|
8
|
+
return (0, pino_1.pino)({
|
|
9
|
+
level: level.toLowerCase(),
|
|
10
|
+
}, {
|
|
11
|
+
write(data) {
|
|
12
|
+
console.log(prettify(data));
|
|
13
|
+
},
|
|
14
|
+
});
|
|
15
|
+
};
|
|
12
16
|
exports.createLogger = createLogger;
|
|
13
17
|
//# sourceMappingURL=pino.js.map
|
package/src/logger/pino.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pino.js","sourceRoot":"","sources":["pino.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pino.js","sourceRoot":"","sources":["pino.ts"],"names":[],"mappings":";;;AAAA,+BAAoC;AACpC,6CAA4C;AAIrC,MAAM,YAAY,GAAG,CAAC,KAAe,EAAU,EAAE;IACtD,MAAM,QAAQ,GAAG,IAAA,2BAAa,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IAI/C,OAAO,IAAA,WAAI,EACT;QACE,KAAK,EAAE,KAAK,CAAC,WAAW,EAAE;KAC3B,EACD;QACE,KAAK,CAAC,IAAa;YACjB,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9B,CAAC;KACF,CACF,CAAC;AACJ,CAAC,CAAC;AAfW,QAAA,YAAY,gBAevB"}
|