@alwaysmeticulous/sdk-bundles-api 2.164.0 → 2.165.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.
@@ -95,16 +95,14 @@ export interface RecorderMiddleware {
95
95
  */
96
96
  transformNetworkRequest?: (request: Omit<HarRequest, "queryString">, metadata: NetworkRequestMetadata) => Omit<HarRequest, "queryString"> | null;
97
97
  /**
98
- * Transforms network requests before they are sent to Meticulous's servers.
98
+ * Transforms network responses before they are sent to Meticulous's servers.
99
99
  *
100
- * Returning null will cause the request and the response to be dropped from the payload.
101
- * If the request/response is dropped from the payload but at replay time your application still makes
102
- * the request then Meticulous will look for another closely matching recorded request, and replay that,
103
- * or if none can be found it will fail the request with 'net::ERR_FAILED'/'Failed to fetch'.
100
+ * If you wish to drop a network response entirely please implement transformNetworkRequest
101
+ * instead and return null for the corresponding request.
104
102
  *
105
103
  * See JSDoc for {@link RecorderMiddleware} before implementing.
106
104
  */
107
- transformNetworkResponse?: (response: HarResponse, metadata: NetworkResponseMetadata) => HarResponse | null;
105
+ transformNetworkResponse?: (response: HarResponse, metadata: NetworkResponseMetadata) => HarResponse;
108
106
  /**
109
107
  * Transforms WebSocket messages before they are sent to Meticulous's servers.
110
108
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/sdk-bundles-api",
3
- "version": "2.164.0",
3
+ "version": "2.165.0",
4
4
  "description": "Meticulous common types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -46,5 +46,5 @@
46
46
  "bugs": {
47
47
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
48
48
  },
49
- "gitHead": "bdd7d1efdfb45a6d49618f369d56000a1eef337e"
49
+ "gitHead": "fb42f552b9ae0d56218c531977db13fb14e94205"
50
50
  }