@pact-foundation/pact 12.4.0 → 12.5.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 +16 -0
- package/README.md +1 -0
- package/package.json +3 -7
- package/src/v3/types.d.ts +1 -1
- package/test/helper.js +0 -26
- package/test/helper.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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
|
+
## [12.5.0](https://github.com/pact-foundation/pact-js/compare/v12.3.1...v12.5.0) (2024-04-26)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **corporate proxy:** support in verifier ([f3ec1be](https://github.com/pact-foundation/pact-js/commit/f3ec1be2029c365e1888798f8a78935a0ed3f74c))
|
|
11
|
+
* support matching numbers, bool in query strings ([d2237bd](https://github.com/pact-foundation/pact-js/commit/d2237bd633ee17be8c3e80931fed429af9bf8256))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Fixes and Improvements
|
|
15
|
+
|
|
16
|
+
* broken `eachLike` V3 documentation. ([68e5013](https://github.com/pact-foundation/pact-js/commit/68e50136abaf1f1522c7be19bc005d6655eb7d43))
|
|
17
|
+
* package.json & package-lock.json to reduce vulnerabilities ([7c2e119](https://github.com/pact-foundation/pact-js/commit/7c2e11991b7c73d71736b785b17b4e04a2655503))
|
|
18
|
+
* update to latest pact-core 14.3.4 ([1b56a73](https://github.com/pact-foundation/pact-js/commit/1b56a7317c657ad2f89ed037532b84a58681e0e6))
|
|
19
|
+
* updated deprecated `eachLike` V3 description. ([1e7b7ae](https://github.com/pact-foundation/pact-js/commit/1e7b7ae366e8e4dcccb2fcd048526021bba7a853))
|
|
20
|
+
|
|
5
21
|
## [12.4.0](https://github.com/pact-foundation/pact-js/compare/v12.3.1...v12.4.0) (2024-03-25)
|
|
6
22
|
|
|
7
23
|
|
package/README.md
CHANGED
|
@@ -71,6 +71,7 @@ This readme offers a basic introduction to the library. The full documentation f
|
|
|
71
71
|
- [Matching](/docs/matching.md)
|
|
72
72
|
- [Provider Testing](/docs/provider.md)
|
|
73
73
|
- [Event Driven Systems](/docs/messages.md)
|
|
74
|
+
- [Plugins](/docs/plugins.md)
|
|
74
75
|
- [GraphQL](/docs/graphql.md)
|
|
75
76
|
- [XML](/docs/xml.md)
|
|
76
77
|
- [Examples](https://github.com/pact-foundation/pact-js/tree/master/examples/)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pact-foundation/pact",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.5.0",
|
|
4
4
|
"description": "Pact for all things Javascript",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
@@ -95,12 +95,12 @@
|
|
|
95
95
|
]
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@pact-foundation/pact-core": "^14.3.
|
|
98
|
+
"@pact-foundation/pact-core": "^14.3.4",
|
|
99
99
|
"@types/express": "^4.17.11",
|
|
100
100
|
"axios": "^1.6.1",
|
|
101
101
|
"body-parser": "^1.20.0",
|
|
102
102
|
"cli-color": "^2.0.1",
|
|
103
|
-
"express": "^4.
|
|
103
|
+
"express": "^4.19.2",
|
|
104
104
|
"graphql": "^14.0.0",
|
|
105
105
|
"graphql-tag": "^2.9.1",
|
|
106
106
|
"http-proxy": "^1.18.1",
|
|
@@ -127,13 +127,11 @@
|
|
|
127
127
|
"@types/lodash": "^4.14.182",
|
|
128
128
|
"@types/lodash.isnil": "^4.0.7",
|
|
129
129
|
"@types/mocha": "^8.0.4",
|
|
130
|
-
"@types/mockery": "^1.4.29",
|
|
131
130
|
"@types/nock": "^9.1.2",
|
|
132
131
|
"@types/node": "^18.11.9",
|
|
133
132
|
"@types/ramda": "^0.26.43",
|
|
134
133
|
"@types/sinon": "^7.0.6",
|
|
135
134
|
"@types/sinon-chai": "^2.7.29",
|
|
136
|
-
"@types/superagent": "^3.5.7",
|
|
137
135
|
"@types/tough-cookie": "^2.3.2",
|
|
138
136
|
"@typescript-eslint/eslint-plugin": "^5.30.4",
|
|
139
137
|
"@typescript-eslint/parser": "^5.30.4",
|
|
@@ -152,7 +150,6 @@
|
|
|
152
150
|
"lodash.clone": "^4.5.0",
|
|
153
151
|
"mocha": "^9.1.1",
|
|
154
152
|
"mocha-lcov-reporter": "^1.3.0",
|
|
155
|
-
"mockery": "^2.1.0",
|
|
156
153
|
"neon-cli": "^0.9.1",
|
|
157
154
|
"nock": "^9.1.6",
|
|
158
155
|
"nyc": "^15.1.0",
|
|
@@ -162,7 +159,6 @@
|
|
|
162
159
|
"sinon": "^7.2.4",
|
|
163
160
|
"sinon-chai": "^3.3.0",
|
|
164
161
|
"source-map-support": "^0.4.18",
|
|
165
|
-
"superagent": "^3.8.2",
|
|
166
162
|
"ts-mock-imports": "^1.2.6",
|
|
167
163
|
"ts-node": "^3.3.0",
|
|
168
164
|
"typescript": "^4.7.4"
|
package/src/v3/types.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export interface V3ProviderState {
|
|
|
98
98
|
export declare type TemplateHeaders = {
|
|
99
99
|
[header: string]: string | Matcher<string> | (Matcher<string> | string)[];
|
|
100
100
|
};
|
|
101
|
-
export type TemplateQuery = Record<string, string | Matcher<string> | Array<string | Matcher<string>>>;
|
|
101
|
+
export type TemplateQuery = Record<string, string | Matcher<string | number | boolean> | Array<string | Matcher<string | number | boolean>>>;
|
|
102
102
|
export interface V3Interaction {
|
|
103
103
|
states?: V3ProviderState[];
|
|
104
104
|
uponReceiving: string;
|
package/test/helper.js
CHANGED
|
@@ -1,37 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
var pact_core_1 = __importDefault(require("@pact-foundation/pact-core"));
|
|
30
|
-
var mockery = __importStar(require("mockery"));
|
|
31
7
|
// used to kill any left over mock server instances
|
|
32
8
|
process.on('SIGINT', function () {
|
|
33
9
|
pact_core_1.default.removeAllServers();
|
|
34
10
|
});
|
|
35
|
-
mockery.enable();
|
|
36
|
-
mockery.warnOnUnregistered(false);
|
|
37
11
|
//# sourceMappingURL=helper.js.map
|
package/test/helper.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../test/helper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../test/helper.ts"],"names":[],"mappings":";;;;;AAAA,yEAA8C;AAE9C,mDAAmD;AACnD,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE;IACnB,mBAAI,CAAC,gBAAgB,EAAE,CAAC;AAC1B,CAAC,CAAC,CAAC"}
|