@ama-sdk/client-fetch 14.6.0-prerelease.9 → 15.1.0-prerelease.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/cjs/api-fetch-client.js +21 -36
- package/cjs/plugins/abort/abort-fetch.js +2 -6
- package/cjs/plugins/abort/abort-fetch.spec.js +2 -5
- package/cjs/plugins/concurrent/concurrent-fetch.js +4 -11
- package/cjs/plugins/concurrent/concurrent-fetch.spec.js +2 -5
- package/cjs/plugins/keepalive/keepalive-request.js +6 -14
- package/cjs/plugins/keepalive/keepalive-request.spec.js +2 -5
- package/cjs/plugins/mock-intercept/mock-intercept-fetch.js +5 -14
- package/cjs/plugins/mock-intercept/mock-intercept-fetch.spec.js +3 -8
- package/cjs/plugins/perf-metric/perf-metric-fetch.js +17 -26
- package/cjs/plugins/retry/retry-fetch.js +5 -14
- package/cjs/plugins/retry/retry-fetch.spec.js +2 -5
- package/cjs/plugins/timeout/timeout-fetch.js +9 -18
- package/cjs/plugins/timeout/timeout-fetch.spec.js +6 -9
- package/cjs/plugins/wait-for/wait-for-fetch.js +6 -14
- package/cjs/plugins/wait-for/wait-for-fetch.spec.js +5 -11
- package/esm2015/api-fetch-client.js +22 -37
- package/esm2015/plugins/abort/abort-fetch.js +2 -6
- package/esm2015/plugins/abort/abort-fetch.spec.js +2 -5
- package/esm2015/plugins/concurrent/concurrent-fetch.js +4 -11
- package/esm2015/plugins/concurrent/concurrent-fetch.spec.js +2 -5
- package/esm2015/plugins/keepalive/keepalive-request.js +6 -14
- package/esm2015/plugins/keepalive/keepalive-request.spec.js +2 -5
- package/esm2015/plugins/mock-intercept/mock-intercept-fetch.js +5 -14
- package/esm2015/plugins/mock-intercept/mock-intercept-fetch.spec.js +3 -8
- package/esm2015/plugins/perf-metric/perf-metric-fetch.js +17 -26
- package/esm2015/plugins/retry/retry-fetch.js +5 -14
- package/esm2015/plugins/retry/retry-fetch.spec.js +2 -5
- package/esm2015/plugins/timeout/timeout-fetch.js +9 -18
- package/esm2015/plugins/timeout/timeout-fetch.spec.js +6 -9
- package/esm2015/plugins/wait-for/wait-for-fetch.js +6 -14
- package/esm2015/plugins/wait-for/wait-for-fetch.spec.js +5 -11
- package/package.json +28 -28
- package/schematics/ng-add/index.js +2 -1
- package/schematics/ng-add/index.js.map +1 -1
- package/src/api-fetch-client.d.ts +1 -5
- package/src/api-fetch-client.d.ts.map +1 -1
- package/src/api-fetch-client.js +3 -7
- package/src/api-fetch-client.js.map +1 -1
- package/src/plugins/perf-metric/perf-metric-fetch.d.ts +0 -11
- package/src/plugins/perf-metric/perf-metric-fetch.d.ts.map +1 -1
- package/src/plugins/perf-metric/perf-metric-fetch.js.map +1 -1
|
@@ -14,11 +14,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
14
14
|
reject(error);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
if (info.done)
|
|
18
|
-
|
|
19
|
-
} else {
|
|
20
|
-
Promise.resolve(value).then(_next, _throw);
|
|
21
|
-
}
|
|
17
|
+
if (info.done) resolve(value);
|
|
18
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
22
19
|
}
|
|
23
20
|
function _async_to_generator(fn) {
|
|
24
21
|
return function() {
|
|
@@ -36,9 +33,7 @@ function _async_to_generator(fn) {
|
|
|
36
33
|
};
|
|
37
34
|
}
|
|
38
35
|
function _class_call_check(instance, Constructor) {
|
|
39
|
-
if (!(instance instanceof Constructor))
|
|
40
|
-
throw new TypeError("Cannot call a class as a function");
|
|
41
|
-
}
|
|
36
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
42
37
|
}
|
|
43
38
|
function _defineProperties(target, props) {
|
|
44
39
|
for(var i = 0; i < props.length; i++){
|
|
@@ -62,24 +57,22 @@ function _define_property(obj, key, value) {
|
|
|
62
57
|
configurable: true,
|
|
63
58
|
writable: true
|
|
64
59
|
});
|
|
65
|
-
} else
|
|
66
|
-
obj[key] = value;
|
|
67
|
-
}
|
|
60
|
+
} else obj[key] = value;
|
|
68
61
|
return obj;
|
|
69
62
|
}
|
|
70
63
|
function _instanceof(left, right) {
|
|
71
64
|
"@swc/helpers - instanceof";
|
|
72
65
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
73
66
|
return !!right[Symbol.hasInstance](left);
|
|
74
|
-
} else
|
|
75
|
-
return left instanceof right;
|
|
76
|
-
}
|
|
67
|
+
} else return left instanceof right;
|
|
77
68
|
}
|
|
78
69
|
function _iterable_to_array(iter) {
|
|
79
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
70
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
71
|
+
return Array.from(iter);
|
|
72
|
+
}
|
|
80
73
|
}
|
|
81
74
|
function _non_iterable_spread() {
|
|
82
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
75
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
83
76
|
}
|
|
84
77
|
function _object_spread(target) {
|
|
85
78
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -111,9 +104,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
111
104
|
}
|
|
112
105
|
function _object_spread_props(target, source) {
|
|
113
106
|
source = source != null ? source : {};
|
|
114
|
-
if (Object.getOwnPropertyDescriptors)
|
|
115
|
-
|
|
116
|
-
} else {
|
|
107
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
108
|
+
else {
|
|
117
109
|
ownKeys(Object(source)).forEach(function(key) {
|
|
118
110
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
119
111
|
});
|
|
@@ -123,14 +115,6 @@ function _object_spread_props(target, source) {
|
|
|
123
115
|
function _to_consumable_array(arr) {
|
|
124
116
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
125
117
|
}
|
|
126
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
127
|
-
if (!o) return;
|
|
128
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
129
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
130
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
131
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
132
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
133
|
-
}
|
|
134
118
|
function _ts_generator(thisArg, body) {
|
|
135
119
|
var f, y, t, _ = {
|
|
136
120
|
label: 0,
|
|
@@ -230,7 +214,15 @@ function _ts_generator(thisArg, body) {
|
|
|
230
214
|
};
|
|
231
215
|
}
|
|
232
216
|
}
|
|
233
|
-
|
|
217
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
218
|
+
if (!o) return;
|
|
219
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
220
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
221
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
222
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
223
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
224
|
+
}
|
|
225
|
+
import { CanceledCallError, EmptyResponseError, ExceptionReply, filterUndefinedValues, getPropertiesFromData, getResponseReviver, prepareUrlWithQueryParams, processFormData, RequestFailedError, ResponseJSONParseError, ReviverReply, serializePathParams, serializeQueryParams, stringifyQueryParams, tokenizeRequestOptions } from '@ama-sdk/core';
|
|
234
226
|
var DEFAULT_OPTIONS = {
|
|
235
227
|
replyPlugins: [
|
|
236
228
|
new ReviverReply(),
|
|
@@ -386,17 +378,10 @@ var DEFAULT_OPTIONS = {
|
|
|
386
378
|
return serializePathParams(pathParams, pathParamSerialization);
|
|
387
379
|
}
|
|
388
380
|
},
|
|
389
|
-
{
|
|
390
|
-
key: "prepareUrl",
|
|
391
|
-
value: /** @inheritdoc */ function prepareUrl1(url) {
|
|
392
|
-
var queryParameters = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
393
|
-
return prepareUrl(url, queryParameters);
|
|
394
|
-
}
|
|
395
|
-
},
|
|
396
381
|
{
|
|
397
382
|
key: "prepareUrlWithQueryParams",
|
|
398
|
-
value: /** @inheritdoc */ function prepareUrlWithQueryParams1(url, serializedQueryParams) {
|
|
399
|
-
return prepareUrlWithQueryParams(url, serializedQueryParams);
|
|
383
|
+
value: /** @inheritdoc */ function prepareUrlWithQueryParams1(url, serializedQueryParams, enableParameterSerialization) {
|
|
384
|
+
return prepareUrlWithQueryParams(url, serializedQueryParams, enableParameterSerialization);
|
|
400
385
|
}
|
|
401
386
|
},
|
|
402
387
|
{
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _class_call_check(instance, Constructor) {
|
|
2
|
-
if (!(instance instanceof Constructor))
|
|
3
|
-
throw new TypeError("Cannot call a class as a function");
|
|
4
|
-
}
|
|
2
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
5
3
|
}
|
|
6
4
|
function _defineProperties(target, props) {
|
|
7
5
|
for(var i = 0; i < props.length; i++){
|
|
@@ -25,9 +23,7 @@ function _define_property(obj, key, value) {
|
|
|
25
23
|
configurable: true,
|
|
26
24
|
writable: true
|
|
27
25
|
});
|
|
28
|
-
} else
|
|
29
|
-
obj[key] = value;
|
|
30
|
-
}
|
|
26
|
+
} else obj[key] = value;
|
|
31
27
|
return obj;
|
|
32
28
|
}
|
|
33
29
|
function _type_of(obj) {
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -28,9 +25,7 @@ function _async_to_generator(fn) {
|
|
|
28
25
|
};
|
|
29
26
|
}
|
|
30
27
|
function _class_call_check(instance, Constructor) {
|
|
31
|
-
if (!(instance instanceof Constructor))
|
|
32
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33
|
-
}
|
|
28
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
34
29
|
}
|
|
35
30
|
function _defineProperties(target, props) {
|
|
36
31
|
for(var i = 0; i < props.length; i++){
|
|
@@ -54,9 +49,7 @@ function _define_property(obj, key, value) {
|
|
|
54
49
|
configurable: true,
|
|
55
50
|
writable: true
|
|
56
51
|
});
|
|
57
|
-
} else
|
|
58
|
-
obj[key] = value;
|
|
59
|
-
}
|
|
52
|
+
} else obj[key] = value;
|
|
60
53
|
return obj;
|
|
61
54
|
}
|
|
62
55
|
function _ts_generator(thisArg, body) {
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -28,9 +25,7 @@ function _async_to_generator(fn) {
|
|
|
28
25
|
};
|
|
29
26
|
}
|
|
30
27
|
function _class_call_check(instance, Constructor) {
|
|
31
|
-
if (!(instance instanceof Constructor))
|
|
32
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33
|
-
}
|
|
28
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
34
29
|
}
|
|
35
30
|
function _defineProperties(target, props) {
|
|
36
31
|
for(var i = 0; i < props.length; i++){
|
|
@@ -54,9 +49,7 @@ function _define_property(obj, key, value) {
|
|
|
54
49
|
configurable: true,
|
|
55
50
|
writable: true
|
|
56
51
|
});
|
|
57
|
-
} else
|
|
58
|
-
obj[key] = value;
|
|
59
|
-
}
|
|
52
|
+
} else obj[key] = value;
|
|
60
53
|
return obj;
|
|
61
54
|
}
|
|
62
55
|
function _object_spread(target) {
|
|
@@ -89,9 +82,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
89
82
|
}
|
|
90
83
|
function _object_spread_props(target, source) {
|
|
91
84
|
source = source != null ? source : {};
|
|
92
|
-
if (Object.getOwnPropertyDescriptors)
|
|
93
|
-
|
|
94
|
-
} else {
|
|
85
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
86
|
+
else {
|
|
95
87
|
ownKeys(Object(source)).forEach(function(key) {
|
|
96
88
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
97
89
|
});
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -28,9 +25,7 @@ function _async_to_generator(fn) {
|
|
|
28
25
|
};
|
|
29
26
|
}
|
|
30
27
|
function _class_call_check(instance, Constructor) {
|
|
31
|
-
if (!(instance instanceof Constructor))
|
|
32
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33
|
-
}
|
|
28
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
34
29
|
}
|
|
35
30
|
function _defineProperties(target, props) {
|
|
36
31
|
for(var i = 0; i < props.length; i++){
|
|
@@ -54,18 +49,14 @@ function _define_property(obj, key, value) {
|
|
|
54
49
|
configurable: true,
|
|
55
50
|
writable: true
|
|
56
51
|
});
|
|
57
|
-
} else
|
|
58
|
-
obj[key] = value;
|
|
59
|
-
}
|
|
52
|
+
} else obj[key] = value;
|
|
60
53
|
return obj;
|
|
61
54
|
}
|
|
62
55
|
function _instanceof(left, right) {
|
|
63
56
|
"@swc/helpers - instanceof";
|
|
64
57
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
65
58
|
return !!right[Symbol.hasInstance](left);
|
|
66
|
-
} else
|
|
67
|
-
return left instanceof right;
|
|
68
|
-
}
|
|
59
|
+
} else return left instanceof right;
|
|
69
60
|
}
|
|
70
61
|
function _ts_generator(thisArg, body) {
|
|
71
62
|
var f, y, t, _ = {
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -35,9 +32,7 @@ function _define_property(obj, key, value) {
|
|
|
35
32
|
configurable: true,
|
|
36
33
|
writable: true
|
|
37
34
|
});
|
|
38
|
-
} else
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
35
|
+
} else obj[key] = value;
|
|
41
36
|
return obj;
|
|
42
37
|
}
|
|
43
38
|
function _ts_generator(thisArg, body) {
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
function _assert_this_initialized(self) {
|
|
2
|
-
if (self === void 0)
|
|
3
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
4
|
-
}
|
|
2
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5
3
|
return self;
|
|
6
4
|
}
|
|
7
5
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -12,11 +10,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
12
10
|
reject(error);
|
|
13
11
|
return;
|
|
14
12
|
}
|
|
15
|
-
if (info.done)
|
|
16
|
-
|
|
17
|
-
} else {
|
|
18
|
-
Promise.resolve(value).then(_next, _throw);
|
|
19
|
-
}
|
|
13
|
+
if (info.done) resolve(value);
|
|
14
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
20
15
|
}
|
|
21
16
|
function _async_to_generator(fn) {
|
|
22
17
|
return function() {
|
|
@@ -38,9 +33,7 @@ function _call_super(_this, derived, args) {
|
|
|
38
33
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
39
34
|
}
|
|
40
35
|
function _class_call_check(instance, Constructor) {
|
|
41
|
-
if (!(instance instanceof Constructor))
|
|
42
|
-
throw new TypeError("Cannot call a class as a function");
|
|
43
|
-
}
|
|
36
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
44
37
|
}
|
|
45
38
|
function _defineProperties(target, props) {
|
|
46
39
|
for(var i = 0; i < props.length; i++){
|
|
@@ -75,10 +68,16 @@ function _inherits(subClass, superClass) {
|
|
|
75
68
|
});
|
|
76
69
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
77
70
|
}
|
|
71
|
+
function _is_native_reflect_construct() {
|
|
72
|
+
try {
|
|
73
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
74
|
+
} catch (_) {}
|
|
75
|
+
return (_is_native_reflect_construct = function() {
|
|
76
|
+
return !!result;
|
|
77
|
+
})();
|
|
78
|
+
}
|
|
78
79
|
function _possible_constructor_return(self, call) {
|
|
79
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
80
|
-
return call;
|
|
81
|
-
}
|
|
80
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
82
81
|
return _assert_this_initialized(self);
|
|
83
82
|
}
|
|
84
83
|
function _set_prototype_of(o, p) {
|
|
@@ -88,18 +87,6 @@ function _set_prototype_of(o, p) {
|
|
|
88
87
|
};
|
|
89
88
|
return _set_prototype_of(o, p);
|
|
90
89
|
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
|
-
}
|
|
103
90
|
function _ts_generator(thisArg, body) {
|
|
104
91
|
var f, y, t, _ = {
|
|
105
92
|
label: 0,
|
|
@@ -199,6 +186,10 @@ function _ts_generator(thisArg, body) {
|
|
|
199
186
|
};
|
|
200
187
|
}
|
|
201
188
|
}
|
|
189
|
+
function _type_of(obj) {
|
|
190
|
+
"@swc/helpers - typeof";
|
|
191
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
192
|
+
}
|
|
202
193
|
import { PerformanceMetricService } from '@ama-sdk/core';
|
|
203
194
|
/**
|
|
204
195
|
* Performance metric plugin.
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -28,9 +25,7 @@ function _async_to_generator(fn) {
|
|
|
28
25
|
};
|
|
29
26
|
}
|
|
30
27
|
function _class_call_check(instance, Constructor) {
|
|
31
|
-
if (!(instance instanceof Constructor))
|
|
32
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33
|
-
}
|
|
28
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
34
29
|
}
|
|
35
30
|
function _defineProperties(target, props) {
|
|
36
31
|
for(var i = 0; i < props.length; i++){
|
|
@@ -54,18 +49,14 @@ function _define_property(obj, key, value) {
|
|
|
54
49
|
configurable: true,
|
|
55
50
|
writable: true
|
|
56
51
|
});
|
|
57
|
-
} else
|
|
58
|
-
obj[key] = value;
|
|
59
|
-
}
|
|
52
|
+
} else obj[key] = value;
|
|
60
53
|
return obj;
|
|
61
54
|
}
|
|
62
55
|
function _instanceof(left, right) {
|
|
63
56
|
"@swc/helpers - instanceof";
|
|
64
57
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
65
58
|
return !!right[Symbol.hasInstance](left);
|
|
66
|
-
} else
|
|
67
|
-
return left instanceof right;
|
|
68
|
-
}
|
|
59
|
+
} else return left instanceof right;
|
|
69
60
|
}
|
|
70
61
|
function _ts_generator(thisArg, body) {
|
|
71
62
|
var f, y, t, _ = {
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -28,9 +25,7 @@ function _async_to_generator(fn) {
|
|
|
28
25
|
};
|
|
29
26
|
}
|
|
30
27
|
function _class_call_check(instance, Constructor) {
|
|
31
|
-
if (!(instance instanceof Constructor))
|
|
32
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33
|
-
}
|
|
28
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
34
29
|
}
|
|
35
30
|
function _defineProperties(target, props) {
|
|
36
31
|
for(var i = 0; i < props.length; i++){
|
|
@@ -54,22 +49,14 @@ function _define_property(obj, key, value) {
|
|
|
54
49
|
configurable: true,
|
|
55
50
|
writable: true
|
|
56
51
|
});
|
|
57
|
-
} else
|
|
58
|
-
obj[key] = value;
|
|
59
|
-
}
|
|
52
|
+
} else obj[key] = value;
|
|
60
53
|
return obj;
|
|
61
54
|
}
|
|
62
55
|
function _instanceof(left, right) {
|
|
63
56
|
"@swc/helpers - instanceof";
|
|
64
57
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
65
58
|
return !!right[Symbol.hasInstance](left);
|
|
66
|
-
} else
|
|
67
|
-
return left instanceof right;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
function _type_of(obj) {
|
|
71
|
-
"@swc/helpers - typeof";
|
|
72
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
59
|
+
} else return left instanceof right;
|
|
73
60
|
}
|
|
74
61
|
function _ts_generator(thisArg, body) {
|
|
75
62
|
var f, y, t, _ = {
|
|
@@ -170,6 +157,10 @@ function _ts_generator(thisArg, body) {
|
|
|
170
157
|
};
|
|
171
158
|
}
|
|
172
159
|
}
|
|
160
|
+
function _type_of(obj) {
|
|
161
|
+
"@swc/helpers - typeof";
|
|
162
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
163
|
+
}
|
|
173
164
|
import { ResponseTimeoutError } from '@ama-sdk/core';
|
|
174
165
|
/**
|
|
175
166
|
* Check if a message can be cast as an {@link ImpervaCaptchaMessage}
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -27,10 +24,6 @@ function _async_to_generator(fn) {
|
|
|
27
24
|
});
|
|
28
25
|
};
|
|
29
26
|
}
|
|
30
|
-
function _type_of(obj) {
|
|
31
|
-
"@swc/helpers - typeof";
|
|
32
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
33
|
-
}
|
|
34
27
|
function _ts_generator(thisArg, body) {
|
|
35
28
|
var f, y, t, _ = {
|
|
36
29
|
label: 0,
|
|
@@ -130,6 +123,10 @@ function _ts_generator(thisArg, body) {
|
|
|
130
123
|
};
|
|
131
124
|
}
|
|
132
125
|
}
|
|
126
|
+
function _type_of(obj) {
|
|
127
|
+
"@swc/helpers - typeof";
|
|
128
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
129
|
+
}
|
|
133
130
|
var _this = this;
|
|
134
131
|
import { EmptyResponseError, ResponseTimeoutError } from '@ama-sdk/core';
|
|
135
132
|
import { impervaCaptchaEventHandlerFactory, TimeoutFetch } from './timeout-fetch';
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -28,9 +25,7 @@ function _async_to_generator(fn) {
|
|
|
28
25
|
};
|
|
29
26
|
}
|
|
30
27
|
function _class_call_check(instance, Constructor) {
|
|
31
|
-
if (!(instance instanceof Constructor))
|
|
32
|
-
throw new TypeError("Cannot call a class as a function");
|
|
33
|
-
}
|
|
28
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
34
29
|
}
|
|
35
30
|
function _defineProperties(target, props) {
|
|
36
31
|
for(var i = 0; i < props.length; i++){
|
|
@@ -54,9 +49,7 @@ function _define_property(obj, key, value) {
|
|
|
54
49
|
configurable: true,
|
|
55
50
|
writable: true
|
|
56
51
|
});
|
|
57
|
-
} else
|
|
58
|
-
obj[key] = value;
|
|
59
|
-
}
|
|
52
|
+
} else obj[key] = value;
|
|
60
53
|
return obj;
|
|
61
54
|
}
|
|
62
55
|
function _object_spread(target) {
|
|
@@ -89,9 +82,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
89
82
|
}
|
|
90
83
|
function _object_spread_props(target, source) {
|
|
91
84
|
source = source != null ? source : {};
|
|
92
|
-
if (Object.getOwnPropertyDescriptors)
|
|
93
|
-
|
|
94
|
-
} else {
|
|
85
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
86
|
+
else {
|
|
95
87
|
ownKeys(Object(source)).forEach(function(key) {
|
|
96
88
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
97
89
|
});
|
|
@@ -6,11 +6,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
6
6
|
reject(error);
|
|
7
7
|
return;
|
|
8
8
|
}
|
|
9
|
-
if (info.done)
|
|
10
|
-
|
|
11
|
-
} else {
|
|
12
|
-
Promise.resolve(value).then(_next, _throw);
|
|
13
|
-
}
|
|
9
|
+
if (info.done) resolve(value);
|
|
10
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
14
11
|
}
|
|
15
12
|
function _async_to_generator(fn) {
|
|
16
13
|
return function() {
|
|
@@ -35,9 +32,7 @@ function _define_property(obj, key, value) {
|
|
|
35
32
|
configurable: true,
|
|
36
33
|
writable: true
|
|
37
34
|
});
|
|
38
|
-
} else
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
35
|
+
} else obj[key] = value;
|
|
41
36
|
return obj;
|
|
42
37
|
}
|
|
43
38
|
function _object_spread(target) {
|
|
@@ -70,9 +65,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
70
65
|
}
|
|
71
66
|
function _object_spread_props(target, source) {
|
|
72
67
|
source = source != null ? source : {};
|
|
73
|
-
if (Object.getOwnPropertyDescriptors)
|
|
74
|
-
|
|
75
|
-
} else {
|
|
68
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
69
|
+
else {
|
|
76
70
|
ownKeys(Object(source)).forEach(function(key) {
|
|
77
71
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
78
72
|
});
|