@sectester/core 0.30.0 → 0.31.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sectester/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.31.0",
|
|
4
4
|
"description": "The core package can be used to obtain a config including credentials from different sources, and provide a simplified abstraction to handle events and commands.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"main": "./src/index.js",
|
|
40
40
|
"typings": "./src/index.d.ts",
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"axios": "^
|
|
43
|
-
"uuid": "^
|
|
42
|
+
"axios": "^1.7.2",
|
|
43
|
+
"uuid": "^10.0.0",
|
|
44
44
|
"reflect-metadata": "^0.1.13",
|
|
45
45
|
"tsyringe": "^4.6.0",
|
|
46
|
-
"axios-rate-limit": "^1.
|
|
46
|
+
"axios-rate-limit": "^1.4.0",
|
|
47
47
|
"form-data": "^4.0.0",
|
|
48
48
|
"chalk": "^4.1.2",
|
|
49
49
|
"tslib": "~2.3.1"
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HttpCommandError = void 0;
|
|
4
4
|
const SecTesterError_1 = require("./SecTesterError");
|
|
5
|
-
const utils_1 = require("../utils");
|
|
6
5
|
class HttpCommandError extends SecTesterError_1.SecTesterError {
|
|
7
6
|
constructor(cause) {
|
|
8
7
|
super();
|
|
9
8
|
this.cause = cause;
|
|
10
9
|
const { message, code, config: { method } = {}, response: { data, status } = {} } = cause;
|
|
11
10
|
this.method = method;
|
|
12
|
-
this.message =
|
|
11
|
+
this.message = data && typeof data === 'string' ? data : message;
|
|
13
12
|
this.status = status;
|
|
14
13
|
this.code = code;
|
|
15
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpCommandError.js","sourceRoot":"","sources":["../../../../../packages/core/src/exceptions/HttpCommandError.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;
|
|
1
|
+
{"version":3,"file":"HttpCommandError.js","sourceRoot":"","sources":["../../../../../packages/core/src/exceptions/HttpCommandError.ts"],"names":[],"mappings":";;;AAAA,qDAAkD;AAGlD,MAAa,gBAAiB,SAAQ,+BAAc;IAKlD,YAA4B,KAAiB;QAC3C,KAAK,EAAE,CAAC;QADkB,UAAK,GAAL,KAAK,CAAY;QAE3C,MAAM,EACJ,OAAO,EACP,IAAI,EACJ,MAAM,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,EACvB,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,EAChC,GAAG,KAAK,CAAC;QAEV,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;QACjE,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC;CACF;AAnBD,4CAmBC"}
|