@kronos-integration/interceptor 13.0.3 → 13.0.5
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": "@kronos-integration/interceptor",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.5",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"arlac77/template-typescript"
|
|
68
68
|
]
|
|
69
69
|
},
|
|
70
|
-
"packageManager": "npm@11.6.
|
|
70
|
+
"packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45"
|
|
71
71
|
}
|
package/src/interceptor.mjs
CHANGED
|
@@ -47,9 +47,13 @@ export class LimitingInterceptor extends Interceptor {
|
|
|
47
47
|
Interceptor.attributes
|
|
48
48
|
);
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @param {Object?} config
|
|
53
|
+
*/
|
|
50
54
|
constructor(config) {
|
|
51
55
|
super(config);
|
|
52
|
-
this.limits = config?.limits || this.
|
|
56
|
+
this.limits = config?.limits || this.attributes.limits.default;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
59
|
toJSON() {
|
|
@@ -32,7 +32,7 @@ export class TimeoutInterceptor extends Interceptor {
|
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* Rejects promise when it is not resolved within given timeout.
|
|
35
|
-
* @param {Promise} promise
|
|
35
|
+
* @param {Promise<any>} promise
|
|
36
36
|
* @param {number} timeout in miliseconds
|
|
37
37
|
* @param {Interceptor} source
|
|
38
38
|
* @return {Promise<any>}
|
package/types/interceptor.d.mts
CHANGED
|
@@ -12,7 +12,11 @@ export class Interceptor {
|
|
|
12
12
|
* @return {Object}
|
|
13
13
|
*/
|
|
14
14
|
static attributes: {};
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param {Object?} config
|
|
18
|
+
*/
|
|
19
|
+
constructor(config: any | null);
|
|
16
20
|
/**
|
|
17
21
|
* The instance method returning the type.
|
|
18
22
|
* Defaults to the constructors name (class name)
|