@pactflow/openapi-pact-comparator 1.7.0 → 1.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/dist/cli.cjs +28 -9
- package/dist/cli.cjs.map +1 -1
- package/dist/index.cjs +26 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +26 -7
- package/dist/index.mjs.map +1 -1
- package/dist/src/documents/pact.d.ts +5 -2
- package/dist/src/results/index.d.ts +1 -1
- package/package.json +15 -15
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Static } from "@sinclair/typebox";
|
|
2
2
|
import { ErrorObject } from "ajv";
|
|
3
3
|
export declare const Interaction: import("@sinclair/typebox").TObject<{
|
|
4
|
+
_skip: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
4
5
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
5
6
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
6
7
|
providerState: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -28,7 +29,8 @@ export declare const Pact: import("@sinclair/typebox").TObject<{
|
|
|
28
29
|
version: import("@sinclair/typebox").TString;
|
|
29
30
|
}>>;
|
|
30
31
|
}>>;
|
|
31
|
-
interactions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
32
|
+
interactions: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TObject<{
|
|
33
|
+
_skip: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TBoolean>;
|
|
32
34
|
type: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
33
35
|
description: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
34
36
|
providerState: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
@@ -44,7 +46,8 @@ export declare const Pact: import("@sinclair/typebox").TObject<{
|
|
|
44
46
|
headers: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNull, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TString>, import("@sinclair/typebox").TRecord<import("@sinclair/typebox").TString, import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>>]>>;
|
|
45
47
|
status: import("@sinclair/typebox").TNumber;
|
|
46
48
|
}>;
|
|
47
|
-
}
|
|
49
|
+
}>>>;
|
|
50
|
+
messages: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnknown>>;
|
|
48
51
|
}>;
|
|
49
52
|
export type Pact = Static<typeof Pact>;
|
|
50
53
|
export declare const parse: (pact: Pact) => Pact;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ErrorObject } from "ajv";
|
|
2
2
|
import type { Interaction } from "../documents/pact";
|
|
3
3
|
type ErrorCode = "request.accept.incompatible" | "request.authorization.missing" | "request.body.incompatible" | "request.content-type.incompatible" | "request.header.incompatible" | "request.path-or-method.unknown" | "request.query.incompatible" | "response.body.incompatible" | "response.body.unknown" | "response.content-type.incompatible" | "response.header.incompatible" | "response.header.unknown" | "response.status.unknown";
|
|
4
|
-
type WarningCode = "pact-broker.no-pacts-found" | "request.accept.unknown" | "request.body.unknown" | "request.content-type.missing" | "request.content-type.unknown" | "request.header.unknown" | "request.query.unknown" | "response.content-type.unknown" | "response.header.undefined" | "response.status.default";
|
|
4
|
+
type WarningCode = "pact-broker.no-pacts-found" | "request.accept.unknown" | "request.body.unknown" | "request.content-type.missing" | "request.content-type.unknown" | "request.header.unknown" | "request.query.unknown" | "response.content-type.unknown" | "response.header.undefined" | "response.status.default" | "interaction.type.unsupported";
|
|
5
5
|
export interface Result {
|
|
6
6
|
code: ErrorCode | WarningCode;
|
|
7
7
|
message: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pactflow/openapi-pact-comparator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "An OpenAPI Specification and Pact Comparison library",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -44,36 +44,36 @@
|
|
|
44
44
|
"type": "module",
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@changesets/cli": "2.29.7",
|
|
47
|
-
"@eslint/js": "9.
|
|
48
|
-
"@rollup/plugin-commonjs": "
|
|
47
|
+
"@eslint/js": "9.39.1",
|
|
48
|
+
"@rollup/plugin-commonjs": "29.0.0",
|
|
49
49
|
"@rollup/plugin-json": "6.1.0",
|
|
50
|
-
"@rollup/plugin-node-resolve": "16.0.
|
|
51
|
-
"@rollup/plugin-typescript": "12.
|
|
50
|
+
"@rollup/plugin-node-resolve": "16.0.3",
|
|
51
|
+
"@rollup/plugin-typescript": "12.3.0",
|
|
52
52
|
"@sinclair/typebox": "0.34.41",
|
|
53
53
|
"@types/js-yaml": "4.0.9",
|
|
54
54
|
"@types/lodash-es": "4.17.12",
|
|
55
|
-
"@types/node": "
|
|
55
|
+
"@types/node": "24.10.0",
|
|
56
56
|
"@types/qs": "6.14.0",
|
|
57
|
-
"@vitest/coverage-v8": "
|
|
57
|
+
"@vitest/coverage-v8": "4.0.7",
|
|
58
58
|
"ajv": "8.17.1",
|
|
59
59
|
"ajv-formats": "3.0.1",
|
|
60
|
-
"commander": "14.0.
|
|
61
|
-
"eslint": "9.
|
|
60
|
+
"commander": "14.0.2",
|
|
61
|
+
"eslint": "9.39.1",
|
|
62
62
|
"eslint-config-prettier": "10.1.8",
|
|
63
63
|
"find-my-way": "9.3.0",
|
|
64
64
|
"js-yaml": "4.1.0",
|
|
65
65
|
"lodash-es": "4.17.21",
|
|
66
66
|
"openapi-types": "12.1.3",
|
|
67
67
|
"parse-multipart-data": "1.5.0",
|
|
68
|
-
"patch-package": "8.0.
|
|
68
|
+
"patch-package": "8.0.1",
|
|
69
69
|
"prettier": "3.6.2",
|
|
70
70
|
"qs": "6.14.0",
|
|
71
|
-
"rollup": "4.52.
|
|
71
|
+
"rollup": "4.52.5",
|
|
72
72
|
"tslib": "2.8.1",
|
|
73
|
-
"tsx": "4.20.
|
|
74
|
-
"typescript": "5.9.
|
|
75
|
-
"typescript-eslint": "8.
|
|
76
|
-
"vitest": "
|
|
73
|
+
"tsx": "4.20.6",
|
|
74
|
+
"typescript": "5.9.3",
|
|
75
|
+
"typescript-eslint": "8.46.3",
|
|
76
|
+
"vitest": "4.0.7"
|
|
77
77
|
},
|
|
78
78
|
"imports": {
|
|
79
79
|
"#compare/*": "./src/compare/*.ts",
|