@kronos-integration/interceptor 10.2.27 → 10.2.29
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/README.md +16 -16
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -74,13 +74,13 @@ Calls configure() and reset().
|
|
|
74
74
|
The instance method returning the type.
|
|
75
75
|
Defaults to the constructors name (class name)
|
|
76
76
|
|
|
77
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
77
|
+
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
78
78
|
|
|
79
79
|
### configurationAttributes
|
|
80
80
|
|
|
81
81
|
Meta description of the configuration.
|
|
82
82
|
|
|
83
|
-
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
83
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
84
84
|
|
|
85
85
|
### configure
|
|
86
86
|
|
|
@@ -93,7 +93,7 @@ a setter function or simply assign the attribute value.
|
|
|
93
93
|
|
|
94
94
|
#### Parameters
|
|
95
95
|
|
|
96
|
-
* `config` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
96
|
+
* `config` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
97
97
|
|
|
98
98
|
### toJSONWithOptions
|
|
99
99
|
|
|
@@ -101,7 +101,7 @@ Deliver the json representation.
|
|
|
101
101
|
|
|
102
102
|
#### Parameters
|
|
103
103
|
|
|
104
|
-
* `options`
|
|
104
|
+
* `options`  
|
|
105
105
|
|
|
106
106
|
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** json representation
|
|
107
107
|
|
|
@@ -116,17 +116,17 @@ and calls the trailing interceptor.
|
|
|
116
116
|
|
|
117
117
|
#### Parameters
|
|
118
118
|
|
|
119
|
-
* `endpoint` **Endpoint
|
|
120
|
-
* `next` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)
|
|
119
|
+
* `endpoint` **Endpoint** 
|
|
120
|
+
* `next` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** 
|
|
121
121
|
* `args` **[Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)\<any>** the request from the leading interceptor
|
|
122
122
|
|
|
123
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
123
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** 
|
|
124
124
|
|
|
125
125
|
### configurationAttributes
|
|
126
126
|
|
|
127
127
|
Meta description of the configuration
|
|
128
128
|
|
|
129
|
-
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
129
|
+
Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
130
130
|
|
|
131
131
|
## LimitingInterceptor
|
|
132
132
|
|
|
@@ -148,7 +148,7 @@ default is to reject when more than 10 requests are on the way
|
|
|
148
148
|
|
|
149
149
|
### Parameters
|
|
150
150
|
|
|
151
|
-
* `config`
|
|
151
|
+
* `config`  
|
|
152
152
|
|
|
153
153
|
### name
|
|
154
154
|
|
|
@@ -177,8 +177,8 @@ Logs the time the requests takes
|
|
|
177
177
|
|
|
178
178
|
#### Parameters
|
|
179
179
|
|
|
180
|
-
* `endpoint`
|
|
181
|
-
* `args` **...any
|
|
180
|
+
* `endpoint`  
|
|
181
|
+
* `args` **...any** 
|
|
182
182
|
|
|
183
183
|
### name
|
|
184
184
|
|
|
@@ -210,11 +210,11 @@ Rejects promise when it is not resolved within given timeout.
|
|
|
210
210
|
|
|
211
211
|
### Parameters
|
|
212
212
|
|
|
213
|
-
* `promise` **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
213
|
+
* `promise` **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** 
|
|
214
214
|
* `timeout` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** in miliseconds
|
|
215
|
-
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
215
|
+
* `name` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
|
|
216
216
|
|
|
217
|
-
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)
|
|
217
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)** 
|
|
218
218
|
|
|
219
219
|
## expand
|
|
220
220
|
|
|
@@ -222,8 +222,8 @@ Expands '{{exp}}' expressions.
|
|
|
222
222
|
|
|
223
223
|
### Parameters
|
|
224
224
|
|
|
225
|
-
* `value` **any
|
|
226
|
-
* `params` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
|
|
225
|
+
* `value` **any** 
|
|
226
|
+
* `params` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** 
|
|
227
227
|
|
|
228
228
|
Returns **any** expanded value
|
|
229
229
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kronos-integration/interceptor",
|
|
3
|
-
"version": "10.2.
|
|
3
|
+
"version": "10.2.29",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,24 +25,24 @@
|
|
|
25
25
|
"license": "BSD-2-Clause",
|
|
26
26
|
"scripts": {
|
|
27
27
|
"test": "npm run test:ava",
|
|
28
|
-
"test:ava": "ava --timeout 2m tests
|
|
29
|
-
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests
|
|
28
|
+
"test:ava": "ava --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
29
|
+
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
30
30
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
31
31
|
"lint": "npm run lint:docs",
|
|
32
32
|
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"model-attributes": "^4.1
|
|
35
|
+
"model-attributes": "^4.2.1"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@kronos-integration/test-interceptor": "^7.0.
|
|
39
|
-
"ava": "^
|
|
38
|
+
"@kronos-integration/test-interceptor": "^7.0.26",
|
|
39
|
+
"ava": "^5.1.0",
|
|
40
40
|
"c8": "^7.12.0",
|
|
41
41
|
"documentation": "^14.0.0",
|
|
42
|
-
"semantic-release": "^19.0.
|
|
42
|
+
"semantic-release": "^19.0.5"
|
|
43
43
|
},
|
|
44
44
|
"engines": {
|
|
45
|
-
"node": ">=
|
|
45
|
+
"node": ">=18.12.1"
|
|
46
46
|
},
|
|
47
47
|
"repository": {
|
|
48
48
|
"type": "git",
|