@ama-sdk/core 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/fwk/api-helpers.js +10 -19
- package/cjs/fwk/api-helpers.spec.js +79 -10
- package/cjs/fwk/core/api-client.js +1 -1
- package/cjs/fwk/date.js +20 -29
- package/cjs/fwk/errors.js +16 -27
- package/cjs/fwk/mocks/alf-mock-adapter.js +5 -11
- package/cjs/fwk/mocks/base-mock-adapter.js +4 -11
- package/cjs/fwk/mocks/random-mock-adapter.js +12 -20
- package/cjs/fwk/mocks/sequential-mock-adapter.js +12 -20
- package/cjs/fwk/param-deserialization.js +1 -1
- package/cjs/fwk/param-serialization.js +2 -4
- package/cjs/fwk/server.js +1 -1
- package/cjs/plugins/additional-params/additional-params-request.js +17 -24
- package/cjs/plugins/additional-params/additional-params-sync-request.js +3 -7
- package/cjs/plugins/additional-params/additional-params.spec.js +2 -5
- package/cjs/plugins/api-configuration-override/api-configuration-override-request.js +4 -11
- package/cjs/plugins/api-configuration-override/api-configuration-override.spec.js +4 -11
- package/cjs/plugins/api-key/api-key-request.js +4 -11
- package/cjs/plugins/api-key/api-key.spec.js +2 -5
- package/cjs/plugins/bot-protection-fingerprint/bot-protection-fingerprint-request.js +4 -11
- package/cjs/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.js +2 -5
- package/cjs/plugins/client-facts/client-facts-request.js +4 -11
- package/cjs/plugins/client-facts/client-facts.spec.js +3 -8
- package/cjs/plugins/custom-info/custom-info-reply.js +2 -6
- package/cjs/plugins/custom-info/custom-info.spec.js +2 -5
- package/cjs/plugins/exception/exception-reply.js +2 -6
- package/cjs/plugins/exception/exception.spec.js +1 -3
- package/cjs/plugins/fetch-cache/fetch-cache-request.js +4 -9
- package/cjs/plugins/fetch-cache/fetch-cache.spec.js +2 -5
- package/cjs/plugins/fetch-credentials/fetch-credentials-request.js +2 -6
- package/cjs/plugins/fetch-credentials/fetch-credentials.spec.js +2 -5
- package/cjs/plugins/json-token/json-token-reply.js +2 -6
- package/cjs/plugins/json-token/json-token-request.js +2 -6
- package/cjs/plugins/json-token/json-token.spec.js +2 -5
- package/cjs/plugins/mgw-mdw-auth/mgw-mdw-auth-helpers.js +14 -15
- package/cjs/plugins/mgw-mdw-auth/mgw-mdw-auth-request.js +4 -11
- package/cjs/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.js +4 -11
- package/cjs/plugins/mock-intercept/mock-intercept-request.js +6 -14
- package/cjs/plugins/mock-intercept/mock-intercept.spec.js +2 -5
- package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.js +5 -10
- package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.spec.js +2 -5
- package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.js +4 -9
- package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.spec.js +2 -5
- package/cjs/plugins/pii-tokenizer/pii-tokenizer-request.js +4 -11
- package/cjs/plugins/pii-tokenizer/pii-tokenizer.spec.js +13 -30
- package/cjs/plugins/raw-response-info/raw-response-info-reply.js +4 -9
- package/cjs/plugins/raw-response-info/raw-response-info.spec.js +2 -5
- package/cjs/plugins/reviver/reviver-reply.js +2 -6
- package/cjs/plugins/reviver/reviver.spec.js +2 -5
- package/cjs/plugins/session-id/session-id-request.js +2 -6
- package/cjs/plugins/session-id/session-id.spec.js +2 -5
- package/cjs/plugins/si-token/si-token-request.js +12 -20
- package/cjs/plugins/si-token/si-token.spec.js +2 -5
- package/cjs/plugins/simple-api-key-authentication/simple-api-key-authentication-request.js +4 -11
- package/cjs/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.js +2 -5
- package/cjs/plugins/url-rewrite/url-rewrite-request.js +4 -11
- package/cjs/plugins/url-rewrite/url-rewrite.spec.js +2 -5
- package/cjs/utils/crypto.js +2 -5
- package/cjs/utils/encoder.js +6 -8
- package/cjs/utils/generic-api.js +4 -11
- package/cjs/utils/json-token.js +2 -5
- package/cjs/utils/json-token.spec.js +11 -14
- package/cjs/utils/perf/perf-metric.js +4 -9
- package/esm2015/fwk/api-helpers.js +11 -21
- package/esm2015/fwk/api-helpers.spec.js +80 -11
- package/esm2015/fwk/core/api-client.js +1 -1
- package/esm2015/fwk/date.js +20 -29
- package/esm2015/fwk/errors.js +16 -27
- package/esm2015/fwk/mocks/alf-mock-adapter.js +5 -11
- package/esm2015/fwk/mocks/base-mock-adapter.js +4 -11
- package/esm2015/fwk/mocks/random-mock-adapter.js +12 -20
- package/esm2015/fwk/mocks/sequential-mock-adapter.js +12 -20
- package/esm2015/fwk/param-deserialization.js +1 -1
- package/esm2015/fwk/param-serialization.js +2 -4
- package/esm2015/fwk/server.js +1 -1
- package/esm2015/plugins/additional-params/additional-params-request.js +17 -24
- package/esm2015/plugins/additional-params/additional-params-sync-request.js +3 -7
- package/esm2015/plugins/additional-params/additional-params.spec.js +2 -5
- package/esm2015/plugins/api-configuration-override/api-configuration-override-request.js +4 -11
- package/esm2015/plugins/api-configuration-override/api-configuration-override.spec.js +4 -11
- package/esm2015/plugins/api-key/api-key-request.js +4 -11
- package/esm2015/plugins/api-key/api-key.spec.js +2 -5
- package/esm2015/plugins/bot-protection-fingerprint/bot-protection-fingerprint-request.js +4 -11
- package/esm2015/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.js +2 -5
- package/esm2015/plugins/client-facts/client-facts-request.js +4 -11
- package/esm2015/plugins/client-facts/client-facts.spec.js +3 -8
- package/esm2015/plugins/custom-info/custom-info-reply.js +2 -6
- package/esm2015/plugins/custom-info/custom-info.spec.js +2 -5
- package/esm2015/plugins/exception/exception-reply.js +2 -6
- package/esm2015/plugins/exception/exception.spec.js +1 -3
- package/esm2015/plugins/fetch-cache/fetch-cache-request.js +4 -9
- package/esm2015/plugins/fetch-cache/fetch-cache.spec.js +2 -5
- package/esm2015/plugins/fetch-credentials/fetch-credentials-request.js +2 -6
- package/esm2015/plugins/fetch-credentials/fetch-credentials.spec.js +2 -5
- package/esm2015/plugins/json-token/json-token-reply.js +2 -6
- package/esm2015/plugins/json-token/json-token-request.js +2 -6
- package/esm2015/plugins/json-token/json-token.spec.js +2 -5
- package/esm2015/plugins/mgw-mdw-auth/mgw-mdw-auth-helpers.js +14 -15
- package/esm2015/plugins/mgw-mdw-auth/mgw-mdw-auth-request.js +4 -11
- package/esm2015/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.js +4 -11
- package/esm2015/plugins/mock-intercept/mock-intercept-request.js +6 -14
- package/esm2015/plugins/mock-intercept/mock-intercept.spec.js +2 -5
- package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.js +5 -10
- package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.spec.js +2 -5
- package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.js +4 -9
- package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.spec.js +2 -5
- package/esm2015/plugins/pii-tokenizer/pii-tokenizer-request.js +4 -11
- package/esm2015/plugins/pii-tokenizer/pii-tokenizer.spec.js +5 -11
- package/esm2015/plugins/raw-response-info/raw-response-info-reply.js +4 -9
- package/esm2015/plugins/raw-response-info/raw-response-info.spec.js +2 -5
- package/esm2015/plugins/reviver/reviver-reply.js +2 -6
- package/esm2015/plugins/reviver/reviver.spec.js +2 -5
- package/esm2015/plugins/session-id/session-id-request.js +2 -6
- package/esm2015/plugins/session-id/session-id.spec.js +2 -5
- package/esm2015/plugins/si-token/si-token-request.js +12 -20
- package/esm2015/plugins/si-token/si-token.spec.js +2 -5
- package/esm2015/plugins/simple-api-key-authentication/simple-api-key-authentication-request.js +4 -11
- package/esm2015/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.js +2 -5
- package/esm2015/plugins/url-rewrite/url-rewrite-request.js +4 -11
- package/esm2015/plugins/url-rewrite/url-rewrite.spec.js +2 -5
- package/esm2015/utils/crypto.js +2 -5
- package/esm2015/utils/encoder.js +6 -8
- package/esm2015/utils/generic-api.js +4 -11
- package/esm2015/utils/json-token.js +2 -5
- package/esm2015/utils/json-token.spec.js +11 -14
- package/esm2015/utils/perf/perf-metric.js +4 -9
- package/package.json +25 -25
- package/schematics/ng-add/index.js +3 -2
- package/schematics/ng-add/index.js.map +1 -1
- package/src/fwk/api-helpers.d.ts +2 -10
- package/src/fwk/api-helpers.d.ts.map +1 -1
- package/src/fwk/api-helpers.js +8 -16
- package/src/fwk/api-helpers.js.map +1 -1
- package/src/fwk/core/api-client.d.ts +2 -10
- package/src/fwk/core/api-client.d.ts.map +1 -1
- package/src/fwk/core/api-client.js +1 -1
- package/src/fwk/core/api-client.js.map +1 -1
|
@@ -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() {
|
|
@@ -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
|
/**
|
|
@@ -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
|
/**
|
|
@@ -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() {
|
|
@@ -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,22 +33,16 @@ function _async_to_generator(fn) {
|
|
|
36
33
|
};
|
|
37
34
|
}
|
|
38
35
|
function _iterable_to_array(iter) {
|
|
39
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
36
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
37
|
+
return Array.from(iter);
|
|
38
|
+
}
|
|
40
39
|
}
|
|
41
40
|
function _non_iterable_spread() {
|
|
42
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
41
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
43
42
|
}
|
|
44
43
|
function _to_consumable_array(arr) {
|
|
45
44
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
46
45
|
}
|
|
47
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
48
|
-
if (!o) return;
|
|
49
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
50
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
51
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
52
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
53
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
54
|
-
}
|
|
55
46
|
function _ts_generator(thisArg, body) {
|
|
56
47
|
var f, y, t, _ = {
|
|
57
48
|
label: 0,
|
|
@@ -151,6 +142,14 @@ function _ts_generator(thisArg, body) {
|
|
|
151
142
|
};
|
|
152
143
|
}
|
|
153
144
|
}
|
|
145
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
146
|
+
if (!o) return;
|
|
147
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
148
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
149
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
150
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
151
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
152
|
+
}
|
|
154
153
|
/**
|
|
155
154
|
* Computes the SHA256 digest of the given string
|
|
156
155
|
* @param value Value to hash
|
|
@@ -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() {
|
|
@@ -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 _define_property(obj, key, value) {
|
|
36
31
|
if (key in obj) {
|
|
@@ -40,9 +35,7 @@ function _define_property(obj, key, value) {
|
|
|
40
35
|
configurable: true,
|
|
41
36
|
writable: true
|
|
42
37
|
});
|
|
43
|
-
} else
|
|
44
|
-
obj[key] = value;
|
|
45
|
-
}
|
|
38
|
+
} else obj[key] = value;
|
|
46
39
|
return obj;
|
|
47
40
|
}
|
|
48
41
|
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() {
|
|
@@ -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() {
|
|
@@ -7,9 +7,7 @@ function _array_with_holes(arr) {
|
|
|
7
7
|
if (Array.isArray(arr)) return arr;
|
|
8
8
|
}
|
|
9
9
|
function _class_call_check(instance, Constructor) {
|
|
10
|
-
if (!(instance instanceof Constructor))
|
|
11
|
-
throw new TypeError("Cannot call a class as a function");
|
|
12
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
13
11
|
}
|
|
14
12
|
function _defineProperties(target, props) {
|
|
15
13
|
for(var i = 0; i < props.length; i++){
|
|
@@ -33,9 +31,7 @@ function _define_property(obj, key, value) {
|
|
|
33
31
|
configurable: true,
|
|
34
32
|
writable: true
|
|
35
33
|
});
|
|
36
|
-
} else
|
|
37
|
-
obj[key] = value;
|
|
38
|
-
}
|
|
34
|
+
} else obj[key] = value;
|
|
39
35
|
return obj;
|
|
40
36
|
}
|
|
41
37
|
function _iterable_to_array_limit(arr, i) {
|
|
@@ -63,7 +59,7 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
63
59
|
return _arr;
|
|
64
60
|
}
|
|
65
61
|
function _non_iterable_rest() {
|
|
66
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
62
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
67
63
|
}
|
|
68
64
|
function _object_spread(target) {
|
|
69
65
|
for(var i = 1; i < arguments.length; i++){
|
|
@@ -95,9 +91,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
95
91
|
}
|
|
96
92
|
function _object_spread_props(target, source) {
|
|
97
93
|
source = source != null ? source : {};
|
|
98
|
-
if (Object.getOwnPropertyDescriptors)
|
|
99
|
-
|
|
100
|
-
} else {
|
|
94
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
95
|
+
else {
|
|
101
96
|
ownKeys(Object(source)).forEach(function(key) {
|
|
102
97
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
103
98
|
});
|
|
@@ -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() {
|
|
@@ -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 _object_spread(target) {
|
|
@@ -60,9 +56,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
60
56
|
}
|
|
61
57
|
function _object_spread_props(target, source) {
|
|
62
58
|
source = source != null ? source : {};
|
|
63
|
-
if (Object.getOwnPropertyDescriptors)
|
|
64
|
-
|
|
65
|
-
} else {
|
|
59
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
60
|
+
else {
|
|
66
61
|
ownKeys(Object(source)).forEach(function(key) {
|
|
67
62
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
68
63
|
});
|
package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.spec.js
CHANGED
|
@@ -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) {
|
|
@@ -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
|
});
|
|
@@ -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 _object_spread(target) {
|
|
@@ -60,9 +56,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
60
56
|
}
|
|
61
57
|
function _object_spread_props(target, source) {
|
|
62
58
|
source = source != null ? source : {};
|
|
63
|
-
if (Object.getOwnPropertyDescriptors)
|
|
64
|
-
|
|
65
|
-
} else {
|
|
59
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
60
|
+
else {
|
|
66
61
|
ownKeys(Object(source)).forEach(function(key) {
|
|
67
62
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
68
63
|
});
|
|
@@ -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() {
|
|
@@ -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 _object_spread(target) {
|
|
@@ -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() {
|
|
@@ -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
|
import { v4 } from 'uuid';
|
|
@@ -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() {
|
|
@@ -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 _call_super(_this, derived, args) {
|
|
@@ -9,9 +7,7 @@ function _call_super(_this, derived, args) {
|
|
|
9
7
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
10
8
|
}
|
|
11
9
|
function _class_call_check(instance, Constructor) {
|
|
12
|
-
if (!(instance instanceof Constructor))
|
|
13
|
-
throw new TypeError("Cannot call a class as a function");
|
|
14
|
-
}
|
|
10
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
15
11
|
}
|
|
16
12
|
function _define_property(obj, key, value) {
|
|
17
13
|
if (key in obj) {
|
|
@@ -21,9 +17,7 @@ function _define_property(obj, key, value) {
|
|
|
21
17
|
configurable: true,
|
|
22
18
|
writable: true
|
|
23
19
|
});
|
|
24
|
-
} else
|
|
25
|
-
obj[key] = value;
|
|
26
|
-
}
|
|
20
|
+
} else obj[key] = value;
|
|
27
21
|
return obj;
|
|
28
22
|
}
|
|
29
23
|
function _get_prototype_of(o) {
|
|
@@ -45,10 +39,16 @@ function _inherits(subClass, superClass) {
|
|
|
45
39
|
});
|
|
46
40
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
47
41
|
}
|
|
42
|
+
function _is_native_reflect_construct() {
|
|
43
|
+
try {
|
|
44
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
45
|
+
} catch (_) {}
|
|
46
|
+
return (_is_native_reflect_construct = function() {
|
|
47
|
+
return !!result;
|
|
48
|
+
})();
|
|
49
|
+
}
|
|
48
50
|
function _possible_constructor_return(self, call) {
|
|
49
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
50
|
-
return call;
|
|
51
|
-
}
|
|
51
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
52
52
|
return _assert_this_initialized(self);
|
|
53
53
|
}
|
|
54
54
|
function _set_prototype_of(o, p) {
|
|
@@ -62,14 +62,6 @@ function _type_of(obj) {
|
|
|
62
62
|
"@swc/helpers - typeof";
|
|
63
63
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
64
64
|
}
|
|
65
|
-
function _is_native_reflect_construct() {
|
|
66
|
-
try {
|
|
67
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
68
|
-
} catch (_) {}
|
|
69
|
-
return (_is_native_reflect_construct = function() {
|
|
70
|
-
return !!result;
|
|
71
|
-
})();
|
|
72
|
-
}
|
|
73
65
|
import { AdditionalParamsRequest } from '../additional-params';
|
|
74
66
|
/**
|
|
75
67
|
* Plugin to send the SI Tokens with the request
|
|
@@ -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() {
|