@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",
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.3+sha512.4085a763162e0e3acd19a4e9d23ad3aa0978e501ccf947dd7233c12a689ae0bb0190763c4ef12366990056b34eec438903ffed38fde4fbd722a17c2a7407ee92"
70
+ "packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45"
71
71
  }
@@ -16,6 +16,10 @@ export class Interceptor {
16
16
  */
17
17
  static attributes = {};
18
18
 
19
+ /**
20
+ *
21
+ * @param {Object?} config
22
+ */
19
23
  constructor(config) {
20
24
  this.configure(config);
21
25
  this.reset();
@@ -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.constructor.attributes.limits.default;
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>}
@@ -12,7 +12,11 @@ export class Interceptor {
12
12
  * @return {Object}
13
13
  */
14
14
  static attributes: {};
15
- constructor(config: any);
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)