@alwaysmeticulous/sdk-bundles-api 2.245.0 → 2.246.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.
@@ -1,4 +1,4 @@
1
- import { Cookie, HarRequest, HarResponse, StorageEntry, ExpiringImage, WebSocketConnectionData } from "@alwaysmeticulous/api";
1
+ import { Cookie, HarRequest, HarResponse, StorageEntry, ExpiringImage, WebSocketConnectionData, EventSourceConnectionData } from "@alwaysmeticulous/api";
2
2
  /**
3
3
  * Transformations that are applied to a recorder payload before it is sent to Meticulous's servers. This is
4
4
  * useful for redacting sensitive information from the payload before it is sent.
@@ -128,6 +128,19 @@ export interface RecorderMiddleware {
128
128
  * See JSDoc for {@link RecorderMiddleware} before implementing.
129
129
  */
130
130
  transformWebSocketConnectionData?: (entry: Omit<WebSocketConnectionData, "id">) => Omit<WebSocketConnectionData, "id"> | null;
131
+ /**
132
+ * Transforms EventSource messages before they are sent to Meticulous's servers.
133
+ *
134
+ * Returning null will cause the data to be dropped from the payload.
135
+ *
136
+ * Please note that the messages received from a connection to a single URL may be split across multiple payloads.
137
+ *
138
+ * Note: we pass the EventSourceConnectionData to your middleware without the id field, and re-add the id field after
139
+ * you return the transformed data.
140
+ *
141
+ * See JSDoc for {@link RecorderMiddleware} before implementing.
142
+ */
143
+ transformEventSourceConnectionData?: (entry: Omit<EventSourceConnectionData, "id">) => Omit<EventSourceConnectionData, "id"> | null;
131
144
  /**
132
145
  * Defaults to true. Set to false if transformNetworkRequest only transforms the headers and not the URL or body of the request,
133
146
  * and transformNetworkRequest never returns null. Setting to false when not required improves replay performance.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/sdk-bundles-api",
3
- "version": "2.245.0",
3
+ "version": "2.246.0",
4
4
  "description": "Meticulous common types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -19,7 +19,7 @@
19
19
  "depcheck": "depcheck --ignore-patterns=dist"
20
20
  },
21
21
  "dependencies": {
22
- "@alwaysmeticulous/api": "^2.242.6"
22
+ "@alwaysmeticulous/api": "^2.246.0"
23
23
  },
24
24
  "author": {
25
25
  "name": "The Meticulous Team",
@@ -38,5 +38,5 @@
38
38
  "bugs": {
39
39
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
40
40
  },
41
- "gitHead": "6f1c11b95aa72962bf9aa2599f7ee0ebc44e6110"
41
+ "gitHead": "43f341e9b61e2d86371de98ef4fb3dbb07c19707"
42
42
  }