common-rod 1.8.3 → 2.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/lib/http-service2.js +4 -3
- package/package.json +3 -3
- package/readme.md +16 -0
package/lib/http-service2.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
const axios = require('axios');
|
|
2
|
-
const buildURL = require('axios/lib/helpers/buildURL')
|
|
3
2
|
const randomService = require('./random-service');
|
|
4
3
|
const utils = require('./utils');
|
|
5
4
|
const maskCredential = require('./maskCredential');
|
|
6
5
|
const log = require('commonlog-kb');
|
|
6
|
+
// const buildURL = require('./utilAxios');
|
|
7
7
|
|
|
8
8
|
const ERROR_TBL = {
|
|
9
9
|
TIMEOUT : 'TIMEOUT',
|
|
@@ -23,9 +23,10 @@ const ERROR_TBL = {
|
|
|
23
23
|
// return Promise.reject(error);
|
|
24
24
|
// });
|
|
25
25
|
|
|
26
|
-
//reuse utils of
|
|
26
|
+
//reuse utils of axios - custom implementation for URL building
|
|
27
27
|
const getURL = (config) => {
|
|
28
|
-
return buildURL(config.url, config.params, config.paramsSerializer)
|
|
28
|
+
// return buildURL(config.url, config.params, config.paramsSerializer);
|
|
29
|
+
return axios.getUri(config);
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
function InstanceHTTPReq(reqCount){
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "common-rod",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"author": "Thanakhan Iaocharoen",
|
|
10
10
|
"license": "ISC",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"axios": "^
|
|
12
|
+
"axios": "^1.13.5",
|
|
13
13
|
"body-parser": "^1.19.0",
|
|
14
14
|
"cli-table": "^0.3.1",
|
|
15
15
|
"commonlog-kb": "^2.3.0",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"express": "^4.17.1",
|
|
20
20
|
"js-yaml": "^3.14.0",
|
|
21
21
|
"lodash": "^4.17.20",
|
|
22
|
-
"mongodb": "^
|
|
22
|
+
"mongodb": "^7.1.1",
|
|
23
23
|
"randomstring": "^1.1.5",
|
|
24
24
|
"swagger-ui-express": "^4.1.4"
|
|
25
25
|
}
|
package/readme.md
CHANGED
|
@@ -375,4 +375,20 @@ fixed Path Manipulation
|
|
|
375
375
|
```
|
|
376
376
|
change axios from 0.21.4 to 0.30.0
|
|
377
377
|
```
|
|
378
|
+
### Fixed
|
|
379
|
+
|
|
380
|
+
[2.0.0] - 2026-02-16
|
|
381
|
+
### Added
|
|
382
|
+
### Changed
|
|
383
|
+
```
|
|
384
|
+
change axios from 0.30.0 to 1.13.5
|
|
385
|
+
```
|
|
386
|
+
### Fixed
|
|
387
|
+
|
|
388
|
+
[2.0.0] - 2026-02-16
|
|
389
|
+
### Added
|
|
390
|
+
### Changed
|
|
391
|
+
```
|
|
392
|
+
update mongodb dependency to version 7.1.1
|
|
393
|
+
```
|
|
378
394
|
### Fixed
|