@lowdefy/connection-axios-http 4.0.0-rc.0 → 4.0.0-rc.10
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -17,7 +17,7 @@ import https from 'https';
|
|
|
17
17
|
import axios from 'axios';
|
|
18
18
|
import { mergeObjects } from '@lowdefy/helpers';
|
|
19
19
|
import schema from '../schema.js';
|
|
20
|
-
async function AxiosHttp({ request
|
|
20
|
+
async function AxiosHttp({ request, connection }) {
|
|
21
21
|
try {
|
|
22
22
|
const config = mergeObjects([
|
|
23
23
|
connection,
|
|
@@ -30,7 +30,7 @@ async function AxiosHttp({ request , connection }) {
|
|
|
30
30
|
config.httpsAgent = new https.Agent(config.httpsAgentOptions);
|
|
31
31
|
}
|
|
32
32
|
const res = await axios(config);
|
|
33
|
-
const { status
|
|
33
|
+
const { status, statusText, headers, method, path, data } = res;
|
|
34
34
|
return {
|
|
35
35
|
status,
|
|
36
36
|
statusText,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Copyright 2020-
|
|
2
|
+
Copyright 2020-2023 Lowdefy, Inc
|
|
3
3
|
|
|
4
4
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
you may not use this file except in compliance with the License.
|
|
@@ -63,14 +63,7 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
data: {
|
|
66
|
-
|
|
67
|
-
'string',
|
|
68
|
-
'object'
|
|
69
|
-
],
|
|
70
|
-
description: "The data to be sent as the request body. Only applicable for request methods 'put', 'post', and 'patch'. Can be an object or a string in the format 'Country=USA&City=New York'.",
|
|
71
|
-
errorMessage: {
|
|
72
|
-
type: 'AxiosHttp property "data" should be an object or string.'
|
|
73
|
-
}
|
|
66
|
+
description: "The data to be sent as the request body. Only applicable for request methods 'put', 'post', and 'patch'. Can be an object, array or a string in the format 'Country=USA&City=New York'."
|
|
74
67
|
},
|
|
75
68
|
timeout: {
|
|
76
69
|
type: 'number',
|
package/dist/connections.js
CHANGED
package/dist/types.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lowdefy/connection-axios-http",
|
|
3
|
-
"version": "4.0.0-rc.
|
|
3
|
+
"version": "4.0.0-rc.10",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "",
|
|
6
6
|
"homepage": "https://lowdefy.com",
|
|
@@ -38,21 +38,21 @@
|
|
|
38
38
|
"build": "swc src --out-dir dist --config-file ../../../../.swcrc --delete-dir-on-start --copy-files",
|
|
39
39
|
"clean": "rm -rf dist",
|
|
40
40
|
"prepublishOnly": "pnpm build",
|
|
41
|
-
"test": "
|
|
41
|
+
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@lowdefy/helpers": "4.0.0-rc.
|
|
45
|
-
"axios": "
|
|
44
|
+
"@lowdefy/helpers": "4.0.0-rc.10",
|
|
45
|
+
"axios": "1.2.2"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@lowdefy/ajv": "4.0.0-rc.
|
|
49
|
-
"@swc/cli": "0.1.
|
|
50
|
-
"@swc/core": "1.
|
|
51
|
-
"@swc/jest": "0.2.
|
|
52
|
-
"jest": "28.1.
|
|
48
|
+
"@lowdefy/ajv": "4.0.0-rc.10",
|
|
49
|
+
"@swc/cli": "0.1.62",
|
|
50
|
+
"@swc/core": "1.3.70",
|
|
51
|
+
"@swc/jest": "0.2.27",
|
|
52
|
+
"jest": "28.1.3"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "537af074f27770e32da9da8d48490f2eda94b406"
|
|
58
58
|
}
|