@alwaysmeticulous/api 2.83.1 → 2.85.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.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export { Replay } from "./replay/replay.types";
|
|
|
10
10
|
export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
|
|
11
11
|
export { NetworkStubbingMode, StubAllRequests, StubNonSSRRequests, NoStubbing, CustomStubbing, RequestFilter, } from "./sdk-bundle-api/sdk-to-bundle/network-stubbing";
|
|
12
12
|
export { ConsoleMessageWithStackTracePointer, VirtualTimeChange, MeticulousConsoleMessage, ApplicationConsoleMessage, ConsoleMessageCoreData, ConsoleMessageType, ConsoleMessageLocation, } from "./sdk-bundle-api/bundle-to-sdk/console-message";
|
|
13
|
+
export { InjectableRequestHeader, StaticHeaderValue, DynamicHeaderValue, AllRequests, AppUrlRequestsOnly, CustomRequests, } from "./sdk-bundle-api/sdk-to-bundle/header-injection";
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { RequestFilter } from "./network-stubbing";
|
|
2
|
+
export interface InjectableRequestHeader {
|
|
3
|
+
name: string;
|
|
4
|
+
value: StaticHeaderValue | DynamicHeaderValue;
|
|
5
|
+
requestTargets: AllRequests | AppUrlRequestsOnly | CustomRequests;
|
|
6
|
+
}
|
|
7
|
+
export interface StaticHeaderValue {
|
|
8
|
+
type: "static";
|
|
9
|
+
value: string;
|
|
10
|
+
}
|
|
11
|
+
export interface DynamicHeaderValue {
|
|
12
|
+
type: "dynamic";
|
|
13
|
+
calculate: (request: HTTPRequest) => Promise<string>;
|
|
14
|
+
}
|
|
15
|
+
export interface AllRequests {
|
|
16
|
+
type: "all";
|
|
17
|
+
}
|
|
18
|
+
export interface AppUrlRequestsOnly {
|
|
19
|
+
type: "app-url-only";
|
|
20
|
+
}
|
|
21
|
+
export interface CustomRequests {
|
|
22
|
+
type: "custom";
|
|
23
|
+
requestsToInjectHeaders: RequestFilter[];
|
|
24
|
+
}
|
|
25
|
+
interface HTTPRequest {
|
|
26
|
+
isNavigationRequest: () => boolean;
|
|
27
|
+
url: () => string;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header-injection.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/header-injection.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.85.0",
|
|
4
4
|
"description": "Meticulous API types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "38fc0244b2c119f69c4ff8007bb8b62d04c3e68a"
|
|
39
39
|
}
|