autotel-message-contract 18.0.0 → 19.0.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/index.cjs +3 -2
- package/dist/index.js +2 -1
- package/dist/serializer.cjs +0 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -20,7 +20,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
}
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
24
24
|
value: mod,
|
|
25
25
|
enumerable: true
|
|
26
26
|
}) : target, mod));
|
|
@@ -369,7 +369,8 @@ var CompatibilityStep = class {
|
|
|
369
369
|
}
|
|
370
370
|
resolveSourceSerialized() {
|
|
371
371
|
if (isApprovedSnapshotSource(this.source)) {
|
|
372
|
-
const
|
|
372
|
+
const location = this.resolveSnapshotLocation(this.source.location);
|
|
373
|
+
const existing = readSnapshot(location);
|
|
373
374
|
if (!existing.exists || existing.content === void 0) throw new ContractViolationError(`Cannot read approved snapshot for compatibility check.\n snapshot: ${existing.path}\n\nRecord it first with .whenSerialized().thenContractIsUnchanged(), or point approvedSnapshot(...) at an existing file.`);
|
|
374
375
|
return existing.content;
|
|
375
376
|
}
|
package/dist/index.js
CHANGED
|
@@ -340,7 +340,8 @@ var CompatibilityStep = class {
|
|
|
340
340
|
}
|
|
341
341
|
resolveSourceSerialized() {
|
|
342
342
|
if (isApprovedSnapshotSource(this.source)) {
|
|
343
|
-
const
|
|
343
|
+
const location = this.resolveSnapshotLocation(this.source.location);
|
|
344
|
+
const existing = readSnapshot(location);
|
|
344
345
|
if (!existing.exists || existing.content === void 0) throw new ContractViolationError(`Cannot read approved snapshot for compatibility check.\n snapshot: ${existing.path}\n\nRecord it first with .whenSerialized().thenContractIsUnchanged(), or point approvedSnapshot(...) at an existing file.`);
|
|
345
346
|
return existing.content;
|
|
346
347
|
}
|
package/dist/serializer.cjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autotel-message-contract",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"description": "Brokerless message contract testing for autotel — pin the serialized shape of your events/commands/messages and prove old and new versions stay compatible, as ordinary unit tests.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"author": "Jag Reehal <jag@jagreehal.com> (https://jagreehal.com)",
|
|
39
39
|
"license": "Apache-2.0",
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"autotel": "7.
|
|
41
|
+
"autotel": "7.8.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependenciesMeta": {
|
|
44
44
|
"autotel": {
|