@openfn/language-http 5.0.4 → 5.1.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 CHANGED
@@ -256,6 +256,8 @@ function handleResponse(state, response) {
256
256
  response.status,
257
257
  "\u2713"
258
258
  );
259
+ const { method, path, host, protocol, _headers } = response.request;
260
+ response.request = { method, path, host, protocol, _headers };
259
261
  const compatibleResp = {
260
262
  ...response,
261
263
  httpStatus: response.status,
package/dist/index.js CHANGED
@@ -228,6 +228,8 @@ function handleResponse(state, response) {
228
228
  response.status,
229
229
  "\u2713"
230
230
  );
231
+ const { method, path, host, protocol, _headers } = response.request;
232
+ response.request = { method, path, host, protocol, _headers };
231
233
  const compatibleResp = {
232
234
  ...response,
233
235
  httpStatus: response.status,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-http",
3
- "version": "5.0.4",
3
+ "version": "5.1.0",
4
4
  "description": "An HTTP request language package for use with Open Function",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {