@sdods/core 0.13.2 → 0.14.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/dist/steps/index.d.ts
CHANGED
|
@@ -22,4 +22,5 @@ import './canvas.steps.js';
|
|
|
22
22
|
import '../shots/hooks.js';
|
|
23
23
|
import '../quality/hooks.js';
|
|
24
24
|
export { coreStepsGlob, coreStepsPatterns, coreStepNames, coreStepsDir } from './glob.js';
|
|
25
|
+
export { rawResponseOf, type RawSnapshot } from './net.steps.js';
|
|
25
26
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/steps/index.js
CHANGED
|
@@ -22,4 +22,5 @@ import './canvas.steps.js';
|
|
|
22
22
|
import '../shots/hooks.js';
|
|
23
23
|
import '../quality/hooks.js';
|
|
24
24
|
export { coreStepsGlob, coreStepsPatterns, coreStepNames, coreStepsDir } from './glob.js';
|
|
25
|
+
export { rawResponseOf } from './net.steps.js';
|
|
25
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -16,6 +16,12 @@ export interface RawSnapshot {
|
|
|
16
16
|
setCookies: string[];
|
|
17
17
|
body: string;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* The last raw (redirect-preserving, unredacted) response sent in this scenario, or `undefined`
|
|
21
|
+
* when none has been sent. For project steps that assert something the core raw family does not
|
|
22
|
+
* phrase; they must share this snapshot rather than send their own request.
|
|
23
|
+
*/
|
|
24
|
+
export declare function rawResponseOf(apiContext: ApiContext): RawSnapshot | undefined;
|
|
19
25
|
interface RawDeps {
|
|
20
26
|
request: APIRequestContext;
|
|
21
27
|
/** The scenario's ApiClient; supplies the isolated request context when one is in use. */
|
package/dist/steps/net.steps.js
CHANGED
|
@@ -53,6 +53,14 @@ async function attachEvidence(testInfo, name, payload) {
|
|
|
53
53
|
}
|
|
54
54
|
const RAW = new WeakMap();
|
|
55
55
|
const RAW_BODIES = new WeakMap();
|
|
56
|
+
/**
|
|
57
|
+
* The last raw (redirect-preserving, unredacted) response sent in this scenario, or `undefined`
|
|
58
|
+
* when none has been sent. For project steps that assert something the core raw family does not
|
|
59
|
+
* phrase; they must share this snapshot rather than send their own request.
|
|
60
|
+
*/
|
|
61
|
+
export function rawResponseOf(apiContext) {
|
|
62
|
+
return RAW.get(apiContext);
|
|
63
|
+
}
|
|
56
64
|
function rawOf(apiContext) {
|
|
57
65
|
const snap = RAW.get(apiContext);
|
|
58
66
|
if (!snap)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sdods/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.1",
|
|
4
4
|
"description": "SDODS runtime: configuration, project registry, fixtures, step libraries, data providers, screenshot narratives and self-healing locators.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"funding": "https://sdods.com/sponsor/",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"playwright-bdd": ">=9"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@sdods/contracts": "0.
|
|
49
|
+
"@sdods/contracts": "0.14.1",
|
|
50
50
|
"@cucumber/cucumber-expressions": "19.0.0",
|
|
51
51
|
"@cucumber/gherkin": "^42.0.1",
|
|
52
52
|
"@cucumber/messages": "^34.2.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"tsx": "^4.23.15",
|
|
65
65
|
"yaml": "^2.9.1",
|
|
66
66
|
"zod": "^4.6.5",
|
|
67
|
-
"@sdods/db": "0.
|
|
67
|
+
"@sdods/db": "0.14.1"
|
|
68
68
|
},
|
|
69
69
|
"homepage": "https://sdods.com",
|
|
70
70
|
"bugs": {
|