@openfn/language-http 6.4.6 → 6.5.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 +14 -3
- package/dist/index.js +16 -3
- package/package.json +2 -2
- package/types/index.d.ts +1 -0
- package/types/{Utils.d.ts → util.d.ts} +1 -0
package/dist/index.cjs
CHANGED
|
@@ -55,7 +55,8 @@ __export(src_exports, {
|
|
|
55
55
|
scrubEmojis: () => import_language_common3.scrubEmojis,
|
|
56
56
|
sourceValue: () => import_language_common3.sourceValue,
|
|
57
57
|
splitKeys: () => import_language_common3.splitKeys,
|
|
58
|
-
toArray: () => import_language_common3.toArray
|
|
58
|
+
toArray: () => import_language_common3.toArray,
|
|
59
|
+
util: () => util_exports
|
|
59
60
|
});
|
|
60
61
|
module.exports = __toCommonJS(src_exports);
|
|
61
62
|
|
|
@@ -95,7 +96,16 @@ __export(Adaptor_exports, {
|
|
|
95
96
|
});
|
|
96
97
|
var import_language_common2 = require("@openfn/language-common");
|
|
97
98
|
|
|
98
|
-
// src/
|
|
99
|
+
// src/util.js
|
|
100
|
+
var util_exports = {};
|
|
101
|
+
__export(util_exports, {
|
|
102
|
+
addAuth: () => addAuth,
|
|
103
|
+
decode: () => import_util.decode,
|
|
104
|
+
encode: () => import_util.encode,
|
|
105
|
+
request: () => request,
|
|
106
|
+
uuid: () => import_util.uuid,
|
|
107
|
+
xmlParser: () => xmlParser
|
|
108
|
+
});
|
|
99
109
|
var import_language_common = require("@openfn/language-common");
|
|
100
110
|
var import_util = require("@openfn/language-common/util");
|
|
101
111
|
var cheerio = __toESM(require("cheerio"), 1);
|
|
@@ -270,5 +280,6 @@ var src_default = Adaptor_exports;
|
|
|
270
280
|
scrubEmojis,
|
|
271
281
|
sourceValue,
|
|
272
282
|
splitKeys,
|
|
273
|
-
toArray
|
|
283
|
+
toArray,
|
|
284
|
+
util
|
|
274
285
|
});
|
package/dist/index.js
CHANGED
|
@@ -40,13 +40,25 @@ __export(Adaptor_exports, {
|
|
|
40
40
|
});
|
|
41
41
|
import { execute as commonExecute } from "@openfn/language-common";
|
|
42
42
|
|
|
43
|
-
// src/
|
|
43
|
+
// src/util.js
|
|
44
|
+
var util_exports = {};
|
|
45
|
+
__export(util_exports, {
|
|
46
|
+
addAuth: () => addAuth,
|
|
47
|
+
decode: () => decode,
|
|
48
|
+
encode: () => encode,
|
|
49
|
+
request: () => request,
|
|
50
|
+
uuid: () => uuid,
|
|
51
|
+
xmlParser: () => xmlParser
|
|
52
|
+
});
|
|
44
53
|
import { composeNextState } from "@openfn/language-common";
|
|
45
54
|
import {
|
|
46
55
|
request as commonRequest,
|
|
56
|
+
makeBasicAuthHeader,
|
|
47
57
|
expandReferences,
|
|
48
58
|
logResponse,
|
|
49
|
-
|
|
59
|
+
encode,
|
|
60
|
+
decode,
|
|
61
|
+
uuid
|
|
50
62
|
} from "@openfn/language-common/util";
|
|
51
63
|
import * as cheerio from "cheerio";
|
|
52
64
|
import cheerioTableparser from "cheerio-tableparser";
|
|
@@ -243,5 +255,6 @@ export {
|
|
|
243
255
|
scrubEmojis,
|
|
244
256
|
sourceValue,
|
|
245
257
|
splitKeys,
|
|
246
|
-
toArray
|
|
258
|
+
toArray,
|
|
259
|
+
util_exports as util
|
|
247
260
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-http",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "An HTTP request language package for use with Open Function",
|
|
5
5
|
"homepage": "https://docs.openfn.org",
|
|
6
6
|
"repository": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"cheerio": "1.0.0-rc.12",
|
|
30
30
|
"cheerio-tableparser": "^1.0.1",
|
|
31
|
-
"@openfn/language-common": "2.0
|
|
31
|
+
"@openfn/language-common": "2.1.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@openfn/simple-ast": "0.4.1",
|
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export function addAuth(configuration: any, headers: any): void;
|
|
2
2
|
export function request(method: any, path: any, params: any, callback?: (s: any) => any): (state: any) => any;
|
|
3
3
|
export function xmlParser(body: any, script: any, callback?: (s: any) => any): (state: any) => any;
|
|
4
|
+
export { encode, decode, uuid };
|