@kronos-integration/interceptor 10.3.8 → 10.3.9
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,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mergeAttributeDefinitions, prepareAttributesDefinitions } from "model-attributes";
|
|
2
2
|
import { Interceptor } from "./interceptor.mjs";
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -25,8 +25,8 @@ export class LimitingInterceptor extends Interceptor {
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
static get configurationAttributes() {
|
|
28
|
-
return
|
|
29
|
-
|
|
28
|
+
return mergeAttributeDefinitions(
|
|
29
|
+
prepareAttributesDefinitions({
|
|
30
30
|
limits: {
|
|
31
31
|
default: [
|
|
32
32
|
{
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Interceptor } from "./interceptor.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
mergeAttributeDefinitions,
|
|
4
|
+
prepareAttributesDefinitions
|
|
5
|
+
} from "model-attributes";
|
|
3
6
|
import { expand } from "./util.mjs";
|
|
4
7
|
|
|
5
8
|
/**
|
|
@@ -14,18 +17,13 @@ export class TemplateInterceptor extends Interceptor {
|
|
|
14
17
|
}
|
|
15
18
|
|
|
16
19
|
static get configurationAttributes() {
|
|
17
|
-
return
|
|
18
|
-
|
|
20
|
+
return mergeAttributeDefinitions(
|
|
21
|
+
prepareAttributesDefinitions({
|
|
19
22
|
request: {
|
|
20
23
|
description: "request template",
|
|
21
24
|
default: {},
|
|
22
25
|
type: "object"
|
|
23
|
-
}
|
|
24
|
-
response: {
|
|
25
|
-
description: "response template",
|
|
26
|
-
default: {},
|
|
27
|
-
type: "object"
|
|
28
|
-
}*/
|
|
26
|
+
}
|
|
29
27
|
}),
|
|
30
28
|
Interceptor.configurationAttributes
|
|
31
29
|
);
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
mergeAttributeDefinitions,
|
|
3
|
+
prepareAttributesDefinitions
|
|
4
|
+
} from "model-attributes";
|
|
2
5
|
import { Interceptor } from "./interceptor.mjs";
|
|
3
6
|
|
|
4
7
|
/**
|
|
@@ -7,8 +10,8 @@ import { Interceptor } from "./interceptor.mjs";
|
|
|
7
10
|
*/
|
|
8
11
|
export class TimeoutInterceptor extends Interceptor {
|
|
9
12
|
static get configurationAttributes() {
|
|
10
|
-
return
|
|
11
|
-
|
|
13
|
+
return mergeAttributeDefinitions(
|
|
14
|
+
prepareAttributesDefinitions({
|
|
12
15
|
timeout: {
|
|
13
16
|
description: "request timeout",
|
|
14
17
|
default: 1,
|