@openfn/language-http 5.0.3 → 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 +2 -0
- package/dist/index.js +2 -0
- package/package.json +2 -2
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
|
|
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": {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"configuration-schema.json"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@openfn/language-common": "1.11.
|
|
28
|
+
"@openfn/language-common": "1.11.1",
|
|
29
29
|
"cheerio": "^1.0.0-rc.10",
|
|
30
30
|
"cheerio-tableparser": "^1.0.1",
|
|
31
31
|
"csv-parse": "^4.10.1",
|