@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
package/cjs/api-fetch-client.js
CHANGED
|
@@ -25,11 +25,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
25
25
|
reject(error);
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
if (info.done)
|
|
29
|
-
|
|
30
|
-
} else {
|
|
31
|
-
Promise.resolve(value).then(_next, _throw);
|
|
32
|
-
}
|
|
28
|
+
if (info.done) resolve(value);
|
|
29
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
33
30
|
}
|
|
34
31
|
function _async_to_generator(fn) {
|
|
35
32
|
return function() {
|
|
@@ -47,9 +44,7 @@ function _async_to_generator(fn) {
|
|
|
47
44
|
};
|
|
48
45
|
}
|
|
49
46
|
function _class_call_check(instance, Constructor) {
|
|
50
|
-
if (!(instance instanceof Constructor))
|
|
51
|
-
throw new TypeError("Cannot call a class as a function");
|
|
52
|
-
}
|
|
47
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
53
48
|
}
|
|
54
49
|
function _defineProperties(target, props) {
|
|
55
50
|
for(var i = 0; i < props.length; i++){
|
|
@@ -73,24 +68,22 @@ function _define_property(obj, key, value) {
|
|
|
73
68
|
configurable: true,
|
|
74
69
|
writable: true
|
|
75
70
|
});
|
|
76
|
-
} else
|
|
77
|
-
obj[key] = value;
|
|
78
|
-
}
|
|
71
|
+
} else obj[key] = value;
|
|
79
72
|
return obj;
|
|
80
73
|
}
|
|
81
74
|
function _instanceof(left, right) {
|
|
82
75
|
"@swc/helpers - instanceof";
|
|
83
76
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
84
77
|
return !!right[Symbol.hasInstance](left);
|
|
85
|
-
} else
|
|
86
|
-
return left instanceof right;
|
|
87
|
-
}
|
|
78
|
+
} else return left instanceof right;
|
|
88
79
|
}
|
|
89
80
|
function _iterable_to_array(iter) {
|
|
90
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
81
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
82
|
+
return Array.from(iter);
|
|
83
|
+
}
|
|
91
84
|
}
|
|
92
85
|
function _non_iterable_spread() {
|
|
93
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
86
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
94
87
|
}
|
|
95
88
|
function _object_spread(target) {
|
|
96
89
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -122,9 +115,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
122
115
|
}
|
|
123
116
|
function _object_spread_props(target, source) {
|
|
124
117
|
source = source != null ? source : {};
|
|
125
|
-
if (Object.getOwnPropertyDescriptors)
|
|
126
|
-
|
|
127
|
-
} else {
|
|
118
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
119
|
+
else {
|
|
128
120
|
ownKeys(Object(source)).forEach(function(key) {
|
|
129
121
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
130
122
|
});
|
|
@@ -134,14 +126,6 @@ function _object_spread_props(target, source) {
|
|
|
134
126
|
function _to_consumable_array(arr) {
|
|
135
127
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
136
128
|
}
|
|
137
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
138
|
-
if (!o) return;
|
|
139
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
140
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
141
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
142
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
143
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
144
|
-
}
|
|
145
129
|
function _ts_generator(thisArg, body) {
|
|
146
130
|
var f, y, t, _ = {
|
|
147
131
|
label: 0,
|
|
@@ -241,6 +225,14 @@ function _ts_generator(thisArg, body) {
|
|
|
241
225
|
};
|
|
242
226
|
}
|
|
243
227
|
}
|
|
228
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
229
|
+
if (!o) return;
|
|
230
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
231
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
232
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
233
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
234
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
235
|
+
}
|
|
244
236
|
var DEFAULT_OPTIONS = {
|
|
245
237
|
replyPlugins: [
|
|
246
238
|
new _core.ReviverReply(),
|
|
@@ -396,17 +388,10 @@ var ApiFetchClient = /*#__PURE__*/ function() {
|
|
|
396
388
|
return (0, _core.serializePathParams)(pathParams, pathParamSerialization);
|
|
397
389
|
}
|
|
398
390
|
},
|
|
399
|
-
{
|
|
400
|
-
key: "prepareUrl",
|
|
401
|
-
value: /** @inheritdoc */ function prepareUrl(url) {
|
|
402
|
-
var queryParameters = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
403
|
-
return (0, _core.prepareUrl)(url, queryParameters);
|
|
404
|
-
}
|
|
405
|
-
},
|
|
406
391
|
{
|
|
407
392
|
key: "prepareUrlWithQueryParams",
|
|
408
|
-
value: /** @inheritdoc */ function prepareUrlWithQueryParams(url, serializedQueryParams) {
|
|
409
|
-
return (0, _core.prepareUrlWithQueryParams)(url, serializedQueryParams);
|
|
393
|
+
value: /** @inheritdoc */ function prepareUrlWithQueryParams(url, serializedQueryParams, enableParameterSerialization) {
|
|
394
|
+
return (0, _core.prepareUrlWithQueryParams)(url, serializedQueryParams, enableParameterSerialization);
|
|
410
395
|
}
|
|
411
396
|
},
|
|
412
397
|
{
|
|
@@ -9,9 +9,7 @@ Object.defineProperty(exports, "AbortFetch", {
|
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
11
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
12
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
13
|
}
|
|
16
14
|
function _defineProperties(target, props) {
|
|
17
15
|
for(var i = 0; i < props.length; i++){
|
|
@@ -35,9 +33,7 @@ function _define_property(obj, key, value) {
|
|
|
35
33
|
configurable: true,
|
|
36
34
|
writable: true
|
|
37
35
|
});
|
|
38
|
-
} else
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
36
|
+
} else obj[key] = value;
|
|
41
37
|
return obj;
|
|
42
38
|
}
|
|
43
39
|
function _type_of(obj) {
|
|
@@ -11,11 +11,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
11
11
|
reject(error);
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
|
-
if (info.done)
|
|
15
|
-
|
|
16
|
-
} else {
|
|
17
|
-
Promise.resolve(value).then(_next, _throw);
|
|
18
|
-
}
|
|
14
|
+
if (info.done) resolve(value);
|
|
15
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
19
16
|
}
|
|
20
17
|
function _async_to_generator(fn) {
|
|
21
18
|
return function() {
|
|
@@ -16,11 +16,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
16
16
|
reject(error);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
if (info.done)
|
|
20
|
-
|
|
21
|
-
} else {
|
|
22
|
-
Promise.resolve(value).then(_next, _throw);
|
|
23
|
-
}
|
|
19
|
+
if (info.done) resolve(value);
|
|
20
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
24
21
|
}
|
|
25
22
|
function _async_to_generator(fn) {
|
|
26
23
|
return function() {
|
|
@@ -38,9 +35,7 @@ function _async_to_generator(fn) {
|
|
|
38
35
|
};
|
|
39
36
|
}
|
|
40
37
|
function _class_call_check(instance, Constructor) {
|
|
41
|
-
if (!(instance instanceof Constructor))
|
|
42
|
-
throw new TypeError("Cannot call a class as a function");
|
|
43
|
-
}
|
|
38
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
44
39
|
}
|
|
45
40
|
function _defineProperties(target, props) {
|
|
46
41
|
for(var i = 0; i < props.length; i++){
|
|
@@ -64,9 +59,7 @@ function _define_property(obj, key, value) {
|
|
|
64
59
|
configurable: true,
|
|
65
60
|
writable: true
|
|
66
61
|
});
|
|
67
|
-
} else
|
|
68
|
-
obj[key] = value;
|
|
69
|
-
}
|
|
62
|
+
} else obj[key] = value;
|
|
70
63
|
return obj;
|
|
71
64
|
}
|
|
72
65
|
function _ts_generator(thisArg, body) {
|
|
@@ -11,11 +11,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
11
11
|
reject(error);
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
|
-
if (info.done)
|
|
15
|
-
|
|
16
|
-
} else {
|
|
17
|
-
Promise.resolve(value).then(_next, _throw);
|
|
18
|
-
}
|
|
14
|
+
if (info.done) resolve(value);
|
|
15
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
19
16
|
}
|
|
20
17
|
function _async_to_generator(fn) {
|
|
21
18
|
return function() {
|
|
@@ -16,11 +16,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
16
16
|
reject(error);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
if (info.done)
|
|
20
|
-
|
|
21
|
-
} else {
|
|
22
|
-
Promise.resolve(value).then(_next, _throw);
|
|
23
|
-
}
|
|
19
|
+
if (info.done) resolve(value);
|
|
20
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
24
21
|
}
|
|
25
22
|
function _async_to_generator(fn) {
|
|
26
23
|
return function() {
|
|
@@ -38,9 +35,7 @@ function _async_to_generator(fn) {
|
|
|
38
35
|
};
|
|
39
36
|
}
|
|
40
37
|
function _class_call_check(instance, Constructor) {
|
|
41
|
-
if (!(instance instanceof Constructor))
|
|
42
|
-
throw new TypeError("Cannot call a class as a function");
|
|
43
|
-
}
|
|
38
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
44
39
|
}
|
|
45
40
|
function _defineProperties(target, props) {
|
|
46
41
|
for(var i = 0; i < props.length; i++){
|
|
@@ -64,9 +59,7 @@ function _define_property(obj, key, value) {
|
|
|
64
59
|
configurable: true,
|
|
65
60
|
writable: true
|
|
66
61
|
});
|
|
67
|
-
} else
|
|
68
|
-
obj[key] = value;
|
|
69
|
-
}
|
|
62
|
+
} else obj[key] = value;
|
|
70
63
|
return obj;
|
|
71
64
|
}
|
|
72
65
|
function _object_spread(target) {
|
|
@@ -99,9 +92,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
99
92
|
}
|
|
100
93
|
function _object_spread_props(target, source) {
|
|
101
94
|
source = source != null ? source : {};
|
|
102
|
-
if (Object.getOwnPropertyDescriptors)
|
|
103
|
-
|
|
104
|
-
} else {
|
|
95
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
96
|
+
else {
|
|
105
97
|
ownKeys(Object(source)).forEach(function(key) {
|
|
106
98
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
107
99
|
});
|
|
@@ -11,11 +11,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
11
11
|
reject(error);
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
|
-
if (info.done)
|
|
15
|
-
|
|
16
|
-
} else {
|
|
17
|
-
Promise.resolve(value).then(_next, _throw);
|
|
18
|
-
}
|
|
14
|
+
if (info.done) resolve(value);
|
|
15
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
19
16
|
}
|
|
20
17
|
function _async_to_generator(fn) {
|
|
21
18
|
return function() {
|
|
@@ -17,11 +17,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
17
17
|
reject(error);
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
if (info.done)
|
|
21
|
-
|
|
22
|
-
} else {
|
|
23
|
-
Promise.resolve(value).then(_next, _throw);
|
|
24
|
-
}
|
|
20
|
+
if (info.done) resolve(value);
|
|
21
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
25
22
|
}
|
|
26
23
|
function _async_to_generator(fn) {
|
|
27
24
|
return function() {
|
|
@@ -39,9 +36,7 @@ function _async_to_generator(fn) {
|
|
|
39
36
|
};
|
|
40
37
|
}
|
|
41
38
|
function _class_call_check(instance, Constructor) {
|
|
42
|
-
if (!(instance instanceof Constructor))
|
|
43
|
-
throw new TypeError("Cannot call a class as a function");
|
|
44
|
-
}
|
|
39
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
45
40
|
}
|
|
46
41
|
function _defineProperties(target, props) {
|
|
47
42
|
for(var i = 0; i < props.length; i++){
|
|
@@ -65,18 +60,14 @@ function _define_property(obj, key, value) {
|
|
|
65
60
|
configurable: true,
|
|
66
61
|
writable: true
|
|
67
62
|
});
|
|
68
|
-
} else
|
|
69
|
-
obj[key] = value;
|
|
70
|
-
}
|
|
63
|
+
} else obj[key] = value;
|
|
71
64
|
return obj;
|
|
72
65
|
}
|
|
73
66
|
function _instanceof(left, right) {
|
|
74
67
|
"@swc/helpers - instanceof";
|
|
75
68
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
76
69
|
return !!right[Symbol.hasInstance](left);
|
|
77
|
-
} else
|
|
78
|
-
return left instanceof right;
|
|
79
|
-
}
|
|
70
|
+
} else return left instanceof right;
|
|
80
71
|
}
|
|
81
72
|
function _ts_generator(thisArg, body) {
|
|
82
73
|
var f, y, t, _ = {
|
|
@@ -12,11 +12,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
12
12
|
reject(error);
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
if (info.done)
|
|
16
|
-
|
|
17
|
-
} else {
|
|
18
|
-
Promise.resolve(value).then(_next, _throw);
|
|
19
|
-
}
|
|
15
|
+
if (info.done) resolve(value);
|
|
16
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
20
17
|
}
|
|
21
18
|
function _async_to_generator(fn) {
|
|
22
19
|
return function() {
|
|
@@ -41,9 +38,7 @@ function _define_property(obj, key, value) {
|
|
|
41
38
|
configurable: true,
|
|
42
39
|
writable: true
|
|
43
40
|
});
|
|
44
|
-
} else
|
|
45
|
-
obj[key] = value;
|
|
46
|
-
}
|
|
41
|
+
} else obj[key] = value;
|
|
47
42
|
return obj;
|
|
48
43
|
}
|
|
49
44
|
function _ts_generator(thisArg, body) {
|
|
@@ -10,9 +10,7 @@ Object.defineProperty(exports, "PerformanceMetricPlugin", {
|
|
|
10
10
|
});
|
|
11
11
|
var _core = require("@ama-sdk/core");
|
|
12
12
|
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0)
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
13
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
14
|
return self;
|
|
17
15
|
}
|
|
18
16
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
@@ -23,11 +21,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
23
21
|
reject(error);
|
|
24
22
|
return;
|
|
25
23
|
}
|
|
26
|
-
if (info.done)
|
|
27
|
-
|
|
28
|
-
} else {
|
|
29
|
-
Promise.resolve(value).then(_next, _throw);
|
|
30
|
-
}
|
|
24
|
+
if (info.done) resolve(value);
|
|
25
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
31
26
|
}
|
|
32
27
|
function _async_to_generator(fn) {
|
|
33
28
|
return function() {
|
|
@@ -49,9 +44,7 @@ function _call_super(_this, derived, args) {
|
|
|
49
44
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
50
45
|
}
|
|
51
46
|
function _class_call_check(instance, Constructor) {
|
|
52
|
-
if (!(instance instanceof Constructor))
|
|
53
|
-
throw new TypeError("Cannot call a class as a function");
|
|
54
|
-
}
|
|
47
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
55
48
|
}
|
|
56
49
|
function _defineProperties(target, props) {
|
|
57
50
|
for(var i = 0; i < props.length; i++){
|
|
@@ -86,10 +79,16 @@ function _inherits(subClass, superClass) {
|
|
|
86
79
|
});
|
|
87
80
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
88
81
|
}
|
|
82
|
+
function _is_native_reflect_construct() {
|
|
83
|
+
try {
|
|
84
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
85
|
+
} catch (_) {}
|
|
86
|
+
return (_is_native_reflect_construct = function() {
|
|
87
|
+
return !!result;
|
|
88
|
+
})();
|
|
89
|
+
}
|
|
89
90
|
function _possible_constructor_return(self, call) {
|
|
90
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
91
|
-
return call;
|
|
92
|
-
}
|
|
91
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
93
92
|
return _assert_this_initialized(self);
|
|
94
93
|
}
|
|
95
94
|
function _set_prototype_of(o, p) {
|
|
@@ -99,18 +98,6 @@ function _set_prototype_of(o, p) {
|
|
|
99
98
|
};
|
|
100
99
|
return _set_prototype_of(o, p);
|
|
101
100
|
}
|
|
102
|
-
function _type_of(obj) {
|
|
103
|
-
"@swc/helpers - typeof";
|
|
104
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
105
|
-
}
|
|
106
|
-
function _is_native_reflect_construct() {
|
|
107
|
-
try {
|
|
108
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
109
|
-
} catch (_) {}
|
|
110
|
-
return (_is_native_reflect_construct = function() {
|
|
111
|
-
return !!result;
|
|
112
|
-
})();
|
|
113
|
-
}
|
|
114
101
|
function _ts_generator(thisArg, body) {
|
|
115
102
|
var f, y, t, _ = {
|
|
116
103
|
label: 0,
|
|
@@ -210,6 +197,10 @@ function _ts_generator(thisArg, body) {
|
|
|
210
197
|
};
|
|
211
198
|
}
|
|
212
199
|
}
|
|
200
|
+
function _type_of(obj) {
|
|
201
|
+
"@swc/helpers - typeof";
|
|
202
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
203
|
+
}
|
|
213
204
|
var PerformanceMetricPlugin = /*#__PURE__*/ function(PerformanceMetricService) {
|
|
214
205
|
"use strict";
|
|
215
206
|
_inherits(PerformanceMetricPlugin, PerformanceMetricService);
|
|
@@ -17,11 +17,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
17
17
|
reject(error);
|
|
18
18
|
return;
|
|
19
19
|
}
|
|
20
|
-
if (info.done)
|
|
21
|
-
|
|
22
|
-
} else {
|
|
23
|
-
Promise.resolve(value).then(_next, _throw);
|
|
24
|
-
}
|
|
20
|
+
if (info.done) resolve(value);
|
|
21
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
25
22
|
}
|
|
26
23
|
function _async_to_generator(fn) {
|
|
27
24
|
return function() {
|
|
@@ -39,9 +36,7 @@ function _async_to_generator(fn) {
|
|
|
39
36
|
};
|
|
40
37
|
}
|
|
41
38
|
function _class_call_check(instance, Constructor) {
|
|
42
|
-
if (!(instance instanceof Constructor))
|
|
43
|
-
throw new TypeError("Cannot call a class as a function");
|
|
44
|
-
}
|
|
39
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
45
40
|
}
|
|
46
41
|
function _defineProperties(target, props) {
|
|
47
42
|
for(var i = 0; i < props.length; i++){
|
|
@@ -65,18 +60,14 @@ function _define_property(obj, key, value) {
|
|
|
65
60
|
configurable: true,
|
|
66
61
|
writable: true
|
|
67
62
|
});
|
|
68
|
-
} else
|
|
69
|
-
obj[key] = value;
|
|
70
|
-
}
|
|
63
|
+
} else obj[key] = value;
|
|
71
64
|
return obj;
|
|
72
65
|
}
|
|
73
66
|
function _instanceof(left, right) {
|
|
74
67
|
"@swc/helpers - instanceof";
|
|
75
68
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
76
69
|
return !!right[Symbol.hasInstance](left);
|
|
77
|
-
} else
|
|
78
|
-
return left instanceof right;
|
|
79
|
-
}
|
|
70
|
+
} else return left instanceof right;
|
|
80
71
|
}
|
|
81
72
|
function _ts_generator(thisArg, body) {
|
|
82
73
|
var f, y, t, _ = {
|
|
@@ -11,11 +11,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
11
11
|
reject(error);
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
|
-
if (info.done)
|
|
15
|
-
|
|
16
|
-
} else {
|
|
17
|
-
Promise.resolve(value).then(_next, _throw);
|
|
18
|
-
}
|
|
14
|
+
if (info.done) resolve(value);
|
|
15
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
19
16
|
}
|
|
20
17
|
function _async_to_generator(fn) {
|
|
21
18
|
return function() {
|
|
@@ -25,11 +25,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
25
25
|
reject(error);
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
if (info.done)
|
|
29
|
-
|
|
30
|
-
} else {
|
|
31
|
-
Promise.resolve(value).then(_next, _throw);
|
|
32
|
-
}
|
|
28
|
+
if (info.done) resolve(value);
|
|
29
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
33
30
|
}
|
|
34
31
|
function _async_to_generator(fn) {
|
|
35
32
|
return function() {
|
|
@@ -47,9 +44,7 @@ function _async_to_generator(fn) {
|
|
|
47
44
|
};
|
|
48
45
|
}
|
|
49
46
|
function _class_call_check(instance, Constructor) {
|
|
50
|
-
if (!(instance instanceof Constructor))
|
|
51
|
-
throw new TypeError("Cannot call a class as a function");
|
|
52
|
-
}
|
|
47
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
53
48
|
}
|
|
54
49
|
function _defineProperties(target, props) {
|
|
55
50
|
for(var i = 0; i < props.length; i++){
|
|
@@ -73,22 +68,14 @@ function _define_property(obj, key, value) {
|
|
|
73
68
|
configurable: true,
|
|
74
69
|
writable: true
|
|
75
70
|
});
|
|
76
|
-
} else
|
|
77
|
-
obj[key] = value;
|
|
78
|
-
}
|
|
71
|
+
} else obj[key] = value;
|
|
79
72
|
return obj;
|
|
80
73
|
}
|
|
81
74
|
function _instanceof(left, right) {
|
|
82
75
|
"@swc/helpers - instanceof";
|
|
83
76
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
84
77
|
return !!right[Symbol.hasInstance](left);
|
|
85
|
-
} else
|
|
86
|
-
return left instanceof right;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function _type_of(obj) {
|
|
90
|
-
"@swc/helpers - typeof";
|
|
91
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
78
|
+
} else return left instanceof right;
|
|
92
79
|
}
|
|
93
80
|
function _ts_generator(thisArg, body) {
|
|
94
81
|
var f, y, t, _ = {
|
|
@@ -189,6 +176,10 @@ function _ts_generator(thisArg, body) {
|
|
|
189
176
|
};
|
|
190
177
|
}
|
|
191
178
|
}
|
|
179
|
+
function _type_of(obj) {
|
|
180
|
+
"@swc/helpers - typeof";
|
|
181
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
182
|
+
}
|
|
192
183
|
/**
|
|
193
184
|
* Check if a message can be cast as an {@link ImpervaCaptchaMessage}
|
|
194
185
|
* @param message
|
|
@@ -12,11 +12,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
12
12
|
reject(error);
|
|
13
13
|
return;
|
|
14
14
|
}
|
|
15
|
-
if (info.done)
|
|
16
|
-
|
|
17
|
-
} else {
|
|
18
|
-
Promise.resolve(value).then(_next, _throw);
|
|
19
|
-
}
|
|
15
|
+
if (info.done) resolve(value);
|
|
16
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
20
17
|
}
|
|
21
18
|
function _async_to_generator(fn) {
|
|
22
19
|
return function() {
|
|
@@ -33,10 +30,6 @@ function _async_to_generator(fn) {
|
|
|
33
30
|
});
|
|
34
31
|
};
|
|
35
32
|
}
|
|
36
|
-
function _type_of(obj) {
|
|
37
|
-
"@swc/helpers - typeof";
|
|
38
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
39
|
-
}
|
|
40
33
|
function _ts_generator(thisArg, body) {
|
|
41
34
|
var f, y, t, _ = {
|
|
42
35
|
label: 0,
|
|
@@ -136,6 +129,10 @@ function _ts_generator(thisArg, body) {
|
|
|
136
129
|
};
|
|
137
130
|
}
|
|
138
131
|
}
|
|
132
|
+
function _type_of(obj) {
|
|
133
|
+
"@swc/helpers - typeof";
|
|
134
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
135
|
+
}
|
|
139
136
|
var _this = void 0;
|
|
140
137
|
describe('Timeout Fetch Plugin', function() {
|
|
141
138
|
it('should reject on timeout', function() {
|
|
@@ -16,11 +16,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
16
16
|
reject(error);
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
if (info.done)
|
|
20
|
-
|
|
21
|
-
} else {
|
|
22
|
-
Promise.resolve(value).then(_next, _throw);
|
|
23
|
-
}
|
|
19
|
+
if (info.done) resolve(value);
|
|
20
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
24
21
|
}
|
|
25
22
|
function _async_to_generator(fn) {
|
|
26
23
|
return function() {
|
|
@@ -38,9 +35,7 @@ function _async_to_generator(fn) {
|
|
|
38
35
|
};
|
|
39
36
|
}
|
|
40
37
|
function _class_call_check(instance, Constructor) {
|
|
41
|
-
if (!(instance instanceof Constructor))
|
|
42
|
-
throw new TypeError("Cannot call a class as a function");
|
|
43
|
-
}
|
|
38
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
44
39
|
}
|
|
45
40
|
function _defineProperties(target, props) {
|
|
46
41
|
for(var i = 0; i < props.length; i++){
|
|
@@ -64,9 +59,7 @@ function _define_property(obj, key, value) {
|
|
|
64
59
|
configurable: true,
|
|
65
60
|
writable: true
|
|
66
61
|
});
|
|
67
|
-
} else
|
|
68
|
-
obj[key] = value;
|
|
69
|
-
}
|
|
62
|
+
} else obj[key] = value;
|
|
70
63
|
return obj;
|
|
71
64
|
}
|
|
72
65
|
function _object_spread(target) {
|
|
@@ -99,9 +92,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
99
92
|
}
|
|
100
93
|
function _object_spread_props(target, source) {
|
|
101
94
|
source = source != null ? source : {};
|
|
102
|
-
if (Object.getOwnPropertyDescriptors)
|
|
103
|
-
|
|
104
|
-
} else {
|
|
95
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
96
|
+
else {
|
|
105
97
|
ownKeys(Object(source)).forEach(function(key) {
|
|
106
98
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
107
99
|
});
|
|
@@ -11,11 +11,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
11
11
|
reject(error);
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
|
-
if (info.done)
|
|
15
|
-
|
|
16
|
-
} else {
|
|
17
|
-
Promise.resolve(value).then(_next, _throw);
|
|
18
|
-
}
|
|
14
|
+
if (info.done) resolve(value);
|
|
15
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
19
16
|
}
|
|
20
17
|
function _async_to_generator(fn) {
|
|
21
18
|
return function() {
|
|
@@ -40,9 +37,7 @@ function _define_property(obj, key, value) {
|
|
|
40
37
|
configurable: true,
|
|
41
38
|
writable: true
|
|
42
39
|
});
|
|
43
|
-
} else
|
|
44
|
-
obj[key] = value;
|
|
45
|
-
}
|
|
40
|
+
} else obj[key] = value;
|
|
46
41
|
return obj;
|
|
47
42
|
}
|
|
48
43
|
function _object_spread(target) {
|
|
@@ -75,9 +70,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
75
70
|
}
|
|
76
71
|
function _object_spread_props(target, source) {
|
|
77
72
|
source = source != null ? source : {};
|
|
78
|
-
if (Object.getOwnPropertyDescriptors)
|
|
79
|
-
|
|
80
|
-
} else {
|
|
73
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
74
|
+
else {
|
|
81
75
|
ownKeys(Object(source)).forEach(function(key) {
|
|
82
76
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
83
77
|
});
|