@openfn/language-common 3.0.1 → 3.0.2
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 -2
- package/dist/index.js +2 -2
- package/dist/util.cjs +2 -2
- package/dist/util.js +2 -2
- package/package.json +1 -1
- package/types/util/http.d.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -285,7 +285,7 @@ var assertOK = async (response, errorMap, fullUrl, method, startTime) => {
|
|
|
285
285
|
throw error;
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
var ERROR_ABSOLUTE_URL = "Absolute URLs not
|
|
288
|
+
var ERROR_ABSOLUTE_URL = "Absolute URLs not supported";
|
|
289
289
|
var assertRelativeUrl = (path2) => {
|
|
290
290
|
if (/https?:\/\//.test(path2)) {
|
|
291
291
|
const e = new Error("UNEXPECTED_ABSOLUTE_URL");
|
|
@@ -421,7 +421,7 @@ async function readResponseBody(response, parseAs) {
|
|
|
421
421
|
throw_error_default(response.statusCode, {
|
|
422
422
|
description: "Error parsing the response body",
|
|
423
423
|
parseAs,
|
|
424
|
-
contentType
|
|
424
|
+
contentType,
|
|
425
425
|
bodyLength: contentLength,
|
|
426
426
|
error: error.message
|
|
427
427
|
});
|
package/dist/index.js
CHANGED
|
@@ -220,7 +220,7 @@ var assertOK = async (response, errorMap, fullUrl, method, startTime) => {
|
|
|
220
220
|
throw error;
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
|
-
var ERROR_ABSOLUTE_URL = "Absolute URLs not
|
|
223
|
+
var ERROR_ABSOLUTE_URL = "Absolute URLs not supported";
|
|
224
224
|
var assertRelativeUrl = (path2) => {
|
|
225
225
|
if (/https?:\/\//.test(path2)) {
|
|
226
226
|
const e = new Error("UNEXPECTED_ABSOLUTE_URL");
|
|
@@ -356,7 +356,7 @@ async function readResponseBody(response, parseAs) {
|
|
|
356
356
|
throw_error_default(response.statusCode, {
|
|
357
357
|
description: "Error parsing the response body",
|
|
358
358
|
parseAs,
|
|
359
|
-
contentType
|
|
359
|
+
contentType,
|
|
360
360
|
bodyLength: contentLength,
|
|
361
361
|
error: error.message
|
|
362
362
|
});
|
package/dist/util.cjs
CHANGED
|
@@ -192,7 +192,7 @@ var assertOK = async (response, errorMap, fullUrl, method, startTime) => {
|
|
|
192
192
|
throw error;
|
|
193
193
|
}
|
|
194
194
|
};
|
|
195
|
-
var ERROR_ABSOLUTE_URL = "Absolute URLs not
|
|
195
|
+
var ERROR_ABSOLUTE_URL = "Absolute URLs not supported";
|
|
196
196
|
var assertRelativeUrl = (path2) => {
|
|
197
197
|
if (/https?:\/\//.test(path2)) {
|
|
198
198
|
const e = new Error("UNEXPECTED_ABSOLUTE_URL");
|
|
@@ -328,7 +328,7 @@ async function readResponseBody(response, parseAs) {
|
|
|
328
328
|
throw_error_default(response.statusCode, {
|
|
329
329
|
description: "Error parsing the response body",
|
|
330
330
|
parseAs,
|
|
331
|
-
contentType
|
|
331
|
+
contentType,
|
|
332
332
|
bodyLength: contentLength,
|
|
333
333
|
error: error.message
|
|
334
334
|
});
|
package/dist/util.js
CHANGED
|
@@ -143,7 +143,7 @@ var assertOK = async (response, errorMap, fullUrl, method, startTime) => {
|
|
|
143
143
|
throw error;
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
|
-
var ERROR_ABSOLUTE_URL = "Absolute URLs not
|
|
146
|
+
var ERROR_ABSOLUTE_URL = "Absolute URLs not supported";
|
|
147
147
|
var assertRelativeUrl = (path2) => {
|
|
148
148
|
if (/https?:\/\//.test(path2)) {
|
|
149
149
|
const e = new Error("UNEXPECTED_ABSOLUTE_URL");
|
|
@@ -279,7 +279,7 @@ async function readResponseBody(response, parseAs) {
|
|
|
279
279
|
throw_error_default(response.statusCode, {
|
|
280
280
|
description: "Error parsing the response body",
|
|
281
281
|
parseAs,
|
|
282
|
-
contentType
|
|
282
|
+
contentType,
|
|
283
283
|
bodyLength: contentLength,
|
|
284
284
|
error: error.message
|
|
285
285
|
});
|
package/package.json
CHANGED
package/types/util/http.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export function makeBasicAuthHeader(username: any, password: any): {
|
|
|
29
29
|
};
|
|
30
30
|
export function logResponse(response: any): any;
|
|
31
31
|
export function enableMockClient(baseUrl: any, options?: {}): import("undici/types/mock-interceptor").Interceptable;
|
|
32
|
-
export const ERROR_ABSOLUTE_URL: "Absolute URLs not
|
|
32
|
+
export const ERROR_ABSOLUTE_URL: "Absolute URLs not supported";
|
|
33
33
|
export function assertRelativeUrl(path: any): void;
|
|
34
34
|
export const ERROR_URL_MISMATCH: "Target origin does not match baseUrl origin";
|
|
35
35
|
export function parseUrl(pathOrUrl: string, baseUrl: any): {
|