@openfn/language-common 1.13.3 → 1.13.4

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/util.cjs CHANGED
@@ -67,6 +67,7 @@ var getClient = (baseUrl, options) => {
67
67
  };
68
68
  var enableMockClient = (baseUrl) => {
69
69
  const mockAgent = new import_undici.MockAgent({ connections: 1 });
70
+ mockAgent.disableNetConnect();
70
71
  const client = mockAgent.get(baseUrl);
71
72
  if (!clients.has(baseUrl)) {
72
73
  clients.set(baseUrl, client);
@@ -134,7 +135,8 @@ async function request(method, fullUrlOrPath, options = {}) {
134
135
  throwOnError: false,
135
136
  maxRedirections,
136
137
  bodyTimeout: timeout,
137
- headersTimeout: timeout
138
+ headersTimeout: timeout,
139
+ origin: baseUrl
138
140
  });
139
141
  const statusText = (0, import_http_status_codes.getReasonPhrase)(response.statusCode);
140
142
  await assertOK(response, errors, url, method, startTime);
package/dist/util.js CHANGED
@@ -31,6 +31,7 @@ var getClient = (baseUrl, options) => {
31
31
  };
32
32
  var enableMockClient = (baseUrl) => {
33
33
  const mockAgent = new MockAgent({ connections: 1 });
34
+ mockAgent.disableNetConnect();
34
35
  const client = mockAgent.get(baseUrl);
35
36
  if (!clients.has(baseUrl)) {
36
37
  clients.set(baseUrl, client);
@@ -98,7 +99,8 @@ async function request(method, fullUrlOrPath, options = {}) {
98
99
  throwOnError: false,
99
100
  maxRedirections,
100
101
  bodyTimeout: timeout,
101
- headersTimeout: timeout
102
+ headersTimeout: timeout,
103
+ origin: baseUrl
102
104
  });
103
105
  const statusText = getReasonPhrase(response.statusCode);
104
106
  await assertOK(response, errors, url, method, startTime);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-common",
3
- "version": "1.13.3",
3
+ "version": "1.13.4",
4
4
  "description": "Common Expressions for OpenFn",
5
5
  "homepage": "https://docs.openfn.org",
6
6
  "repository": {