@ama-sdk/core 14.6.0-prerelease.66 → 14.6.0-prerelease.68
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 +2 -4
- 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 +2 -4
- 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 +7 -7
|
@@ -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() {
|
|
@@ -28,11 +28,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
28
28
|
reject(error);
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
31
|
-
if (info.done)
|
|
32
|
-
|
|
33
|
-
} else {
|
|
34
|
-
Promise.resolve(value).then(_next, _throw);
|
|
35
|
-
}
|
|
31
|
+
if (info.done) resolve(value);
|
|
32
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
36
33
|
}
|
|
37
34
|
function _async_to_generator(fn) {
|
|
38
35
|
return function() {
|
|
@@ -50,9 +47,7 @@ function _async_to_generator(fn) {
|
|
|
50
47
|
};
|
|
51
48
|
}
|
|
52
49
|
function _class_call_check(instance, Constructor) {
|
|
53
|
-
if (!(instance instanceof Constructor))
|
|
54
|
-
throw new TypeError("Cannot call a class as a function");
|
|
55
|
-
}
|
|
50
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
56
51
|
}
|
|
57
52
|
function _defineProperties(target, props) {
|
|
58
53
|
for(var i = 0; i < props.length; i++){
|
|
@@ -76,9 +71,7 @@ function _define_property(obj, key, value) {
|
|
|
76
71
|
configurable: true,
|
|
77
72
|
writable: true
|
|
78
73
|
});
|
|
79
|
-
} else
|
|
80
|
-
obj[key] = value;
|
|
81
|
-
}
|
|
74
|
+
} else obj[key] = value;
|
|
82
75
|
return obj;
|
|
83
76
|
}
|
|
84
77
|
function _object_spread(target) {
|
|
@@ -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 _getRequireWildcardCache(nodeInterop) {
|
|
@@ -55,18 +50,12 @@ function _getRequireWildcardCache(nodeInterop) {
|
|
|
55
50
|
})(nodeInterop);
|
|
56
51
|
}
|
|
57
52
|
function _interop_require_wildcard(obj, nodeInterop) {
|
|
58
|
-
if (!nodeInterop && obj && obj.__esModule)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
return {
|
|
63
|
-
default: obj
|
|
64
|
-
};
|
|
65
|
-
}
|
|
53
|
+
if (!nodeInterop && obj && obj.__esModule) return obj;
|
|
54
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") return {
|
|
55
|
+
default: obj
|
|
56
|
+
};
|
|
66
57
|
var cache = _getRequireWildcardCache(nodeInterop);
|
|
67
|
-
if (cache && cache.has(obj))
|
|
68
|
-
return cache.get(obj);
|
|
69
|
-
}
|
|
58
|
+
if (cache && cache.has(obj)) return cache.get(obj);
|
|
70
59
|
var newObj = {
|
|
71
60
|
__proto__: null
|
|
72
61
|
};
|
|
@@ -74,17 +63,12 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
74
63
|
for(var key in obj){
|
|
75
64
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
76
65
|
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
77
|
-
if (desc && (desc.get || desc.set))
|
|
78
|
-
|
|
79
|
-
} else {
|
|
80
|
-
newObj[key] = obj[key];
|
|
81
|
-
}
|
|
66
|
+
if (desc && (desc.get || desc.set)) Object.defineProperty(newObj, key, desc);
|
|
67
|
+
else newObj[key] = obj[key];
|
|
82
68
|
}
|
|
83
69
|
}
|
|
84
70
|
newObj.default = obj;
|
|
85
|
-
if (cache)
|
|
86
|
-
cache.set(obj, newObj);
|
|
87
|
-
}
|
|
71
|
+
if (cache) cache.set(obj, newObj);
|
|
88
72
|
return newObj;
|
|
89
73
|
}
|
|
90
74
|
function _object_spread(target) {
|
|
@@ -117,9 +101,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
117
101
|
}
|
|
118
102
|
function _object_spread_props(target, source) {
|
|
119
103
|
source = source != null ? source : {};
|
|
120
|
-
if (Object.getOwnPropertyDescriptors)
|
|
121
|
-
|
|
122
|
-
} else {
|
|
104
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
105
|
+
else {
|
|
123
106
|
ownKeys(Object(source)).forEach(function(key) {
|
|
124
107
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
125
108
|
});
|
|
@@ -9,9 +9,7 @@ Object.defineProperty(exports, "RawResponseInfoReply", {
|
|
|
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 _object_spread(target) {
|
|
@@ -70,9 +66,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
70
66
|
}
|
|
71
67
|
function _object_spread_props(target, source) {
|
|
72
68
|
source = source != null ? source : {};
|
|
73
|
-
if (Object.getOwnPropertyDescriptors)
|
|
74
|
-
|
|
75
|
-
} else {
|
|
69
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
70
|
+
else {
|
|
76
71
|
ownKeys(Object(source)).forEach(function(key) {
|
|
77
72
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
78
73
|
});
|
|
@@ -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() {
|
|
@@ -9,9 +9,7 @@ Object.defineProperty(exports, "ReviverReply", {
|
|
|
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 _object_spread(target) {
|
|
@@ -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() {
|
|
@@ -10,9 +10,7 @@ Object.defineProperty(exports, "SessionIdRequest", {
|
|
|
10
10
|
});
|
|
11
11
|
var _uuid = require("uuid");
|
|
12
12
|
function _class_call_check(instance, Constructor) {
|
|
13
|
-
if (!(instance instanceof Constructor))
|
|
14
|
-
throw new TypeError("Cannot call a class as a function");
|
|
15
|
-
}
|
|
13
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
16
14
|
}
|
|
17
15
|
function _defineProperties(target, props) {
|
|
18
16
|
for(var i = 0; i < props.length; i++){
|
|
@@ -36,9 +34,7 @@ function _define_property(obj, key, value) {
|
|
|
36
34
|
configurable: true,
|
|
37
35
|
writable: true
|
|
38
36
|
});
|
|
39
|
-
} else
|
|
40
|
-
obj[key] = value;
|
|
41
|
-
}
|
|
37
|
+
} else obj[key] = value;
|
|
42
38
|
return obj;
|
|
43
39
|
}
|
|
44
40
|
var SessionIdRequest = /*#__PURE__*/ function() {
|
|
@@ -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() {
|
|
@@ -10,9 +10,7 @@ Object.defineProperty(exports, "SiTokenRequest", {
|
|
|
10
10
|
});
|
|
11
11
|
var _additionalparams = require("../additional-params");
|
|
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 _call_super(_this, derived, args) {
|
|
@@ -20,9 +18,7 @@ function _call_super(_this, derived, args) {
|
|
|
20
18
|
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
19
|
}
|
|
22
20
|
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor))
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
21
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
26
22
|
}
|
|
27
23
|
function _define_property(obj, key, value) {
|
|
28
24
|
if (key in obj) {
|
|
@@ -32,9 +28,7 @@ function _define_property(obj, key, value) {
|
|
|
32
28
|
configurable: true,
|
|
33
29
|
writable: true
|
|
34
30
|
});
|
|
35
|
-
} else
|
|
36
|
-
obj[key] = value;
|
|
37
|
-
}
|
|
31
|
+
} else obj[key] = value;
|
|
38
32
|
return obj;
|
|
39
33
|
}
|
|
40
34
|
function _get_prototype_of(o) {
|
|
@@ -56,10 +50,16 @@ function _inherits(subClass, superClass) {
|
|
|
56
50
|
});
|
|
57
51
|
if (superClass) _set_prototype_of(subClass, superClass);
|
|
58
52
|
}
|
|
53
|
+
function _is_native_reflect_construct() {
|
|
54
|
+
try {
|
|
55
|
+
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
56
|
+
} catch (_) {}
|
|
57
|
+
return (_is_native_reflect_construct = function() {
|
|
58
|
+
return !!result;
|
|
59
|
+
})();
|
|
60
|
+
}
|
|
59
61
|
function _possible_constructor_return(self, call) {
|
|
60
|
-
if (call && (_type_of(call) === "object" || typeof call === "function"))
|
|
61
|
-
return call;
|
|
62
|
-
}
|
|
62
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
|
|
63
63
|
return _assert_this_initialized(self);
|
|
64
64
|
}
|
|
65
65
|
function _set_prototype_of(o, p) {
|
|
@@ -73,14 +73,6 @@ function _type_of(obj) {
|
|
|
73
73
|
"@swc/helpers - typeof";
|
|
74
74
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
75
75
|
}
|
|
76
|
-
function _is_native_reflect_construct() {
|
|
77
|
-
try {
|
|
78
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
79
|
-
} catch (_) {}
|
|
80
|
-
return (_is_native_reflect_construct = function() {
|
|
81
|
-
return !!result;
|
|
82
|
-
})();
|
|
83
|
-
}
|
|
84
76
|
var SiTokenRequest = /*#__PURE__*/ function(AdditionalParamsRequest) {
|
|
85
77
|
"use strict";
|
|
86
78
|
_inherits(SiTokenRequest, AdditionalParamsRequest);
|
|
@@ -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,9 +60,7 @@ 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 _object_spread(target) {
|
|
@@ -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() {
|
|
@@ -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() {
|
package/cjs/utils/crypto.js
CHANGED
|
@@ -37,11 +37,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
37
37
|
reject(error);
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
|
-
if (info.done)
|
|
41
|
-
|
|
42
|
-
} else {
|
|
43
|
-
Promise.resolve(value).then(_next, _throw);
|
|
44
|
-
}
|
|
40
|
+
if (info.done) resolve(value);
|
|
41
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
45
42
|
}
|
|
46
43
|
function _async_to_generator(fn) {
|
|
47
44
|
return function() {
|
package/cjs/utils/encoder.js
CHANGED
|
@@ -17,9 +17,7 @@ function _array_without_holes(arr) {
|
|
|
17
17
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
18
18
|
}
|
|
19
19
|
function _class_call_check(instance, Constructor) {
|
|
20
|
-
if (!(instance instanceof Constructor))
|
|
21
|
-
throw new TypeError("Cannot call a class as a function");
|
|
22
|
-
}
|
|
20
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
23
21
|
}
|
|
24
22
|
function _defineProperties(target, props) {
|
|
25
23
|
for(var i = 0; i < props.length; i++){
|
|
@@ -43,16 +41,16 @@ function _define_property(obj, key, value) {
|
|
|
43
41
|
configurable: true,
|
|
44
42
|
writable: true
|
|
45
43
|
});
|
|
46
|
-
} else
|
|
47
|
-
obj[key] = value;
|
|
48
|
-
}
|
|
44
|
+
} else obj[key] = value;
|
|
49
45
|
return obj;
|
|
50
46
|
}
|
|
51
47
|
function _iterable_to_array(iter) {
|
|
52
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
|
48
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
|
|
49
|
+
return Array.from(iter);
|
|
50
|
+
}
|
|
53
51
|
}
|
|
54
52
|
function _non_iterable_spread() {
|
|
55
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance
|
|
53
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
56
54
|
}
|
|
57
55
|
function _to_consumable_array(arr) {
|
|
58
56
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
package/cjs/utils/generic-api.js
CHANGED
|
@@ -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,9 +60,7 @@ 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 _object_spread(target) {
|
package/cjs/utils/json-token.js
CHANGED
|
@@ -44,11 +44,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
44
44
|
reject(error);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
if (info.done)
|
|
48
|
-
|
|
49
|
-
} else {
|
|
50
|
-
Promise.resolve(value).then(_next, _throw);
|
|
51
|
-
}
|
|
47
|
+
if (info.done) resolve(value);
|
|
48
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
52
49
|
}
|
|
53
50
|
function _async_to_generator(fn) {
|
|
54
51
|
return function() {
|
|
@@ -20,11 +20,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
20
20
|
reject(error);
|
|
21
21
|
return;
|
|
22
22
|
}
|
|
23
|
-
if (info.done)
|
|
24
|
-
|
|
25
|
-
} else {
|
|
26
|
-
Promise.resolve(value).then(_next, _throw);
|
|
27
|
-
}
|
|
23
|
+
if (info.done) resolve(value);
|
|
24
|
+
else Promise.resolve(value).then(_next, _throw);
|
|
28
25
|
}
|
|
29
26
|
function _async_to_generator(fn) {
|
|
30
27
|
return function() {
|
|
@@ -71,19 +68,11 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
71
68
|
return _arr;
|
|
72
69
|
}
|
|
73
70
|
function _non_iterable_rest() {
|
|
74
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
71
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
75
72
|
}
|
|
76
73
|
function _sliced_to_array(arr, i) {
|
|
77
74
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
78
75
|
}
|
|
79
|
-
function _unsupported_iterable_to_array(o, minLen) {
|
|
80
|
-
if (!o) return;
|
|
81
|
-
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
82
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
83
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
84
|
-
if (n === "Map" || n === "Set") return Array.from(n);
|
|
85
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
86
|
-
}
|
|
87
76
|
function _ts_generator(thisArg, body) {
|
|
88
77
|
var f, y, t, _ = {
|
|
89
78
|
label: 0,
|
|
@@ -183,6 +172,14 @@ function _ts_generator(thisArg, body) {
|
|
|
183
172
|
};
|
|
184
173
|
}
|
|
185
174
|
}
|
|
175
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
176
|
+
if (!o) return;
|
|
177
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
178
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
179
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
180
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
181
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
182
|
+
}
|
|
186
183
|
describe('JSON token utils', function() {
|
|
187
184
|
it('should encode and decode in base64 properly a string that contains characters occupying more than 1 byte', function() {
|
|
188
185
|
var base64Encoder = (0, _jsontoken.createBase64Encoder)();
|
|
@@ -10,9 +10,7 @@ Object.defineProperty(exports, "PerformanceMetricService", {
|
|
|
10
10
|
});
|
|
11
11
|
var _uuid = require("uuid");
|
|
12
12
|
function _class_call_check(instance, Constructor) {
|
|
13
|
-
if (!(instance instanceof Constructor))
|
|
14
|
-
throw new TypeError("Cannot call a class as a function");
|
|
15
|
-
}
|
|
13
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
16
14
|
}
|
|
17
15
|
function _defineProperties(target, props) {
|
|
18
16
|
for(var i = 0; i < props.length; i++){
|
|
@@ -36,9 +34,7 @@ function _define_property(obj, key, value) {
|
|
|
36
34
|
configurable: true,
|
|
37
35
|
writable: true
|
|
38
36
|
});
|
|
39
|
-
} else
|
|
40
|
-
obj[key] = value;
|
|
41
|
-
}
|
|
37
|
+
} else obj[key] = value;
|
|
42
38
|
return obj;
|
|
43
39
|
}
|
|
44
40
|
function _object_spread(target) {
|
|
@@ -71,9 +67,8 @@ function ownKeys(object, enumerableOnly) {
|
|
|
71
67
|
}
|
|
72
68
|
function _object_spread_props(target, source) {
|
|
73
69
|
source = source != null ? source : {};
|
|
74
|
-
if (Object.getOwnPropertyDescriptors)
|
|
75
|
-
|
|
76
|
-
} else {
|
|
70
|
+
if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
71
|
+
else {
|
|
77
72
|
ownKeys(Object(source)).forEach(function(key) {
|
|
78
73
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
79
74
|
});
|
|
@@ -14,9 +14,7 @@ function _define_property(obj, key, value) {
|
|
|
14
14
|
configurable: true,
|
|
15
15
|
writable: true
|
|
16
16
|
});
|
|
17
|
-
} else
|
|
18
|
-
obj[key] = value;
|
|
19
|
-
}
|
|
17
|
+
} else obj[key] = value;
|
|
20
18
|
return obj;
|
|
21
19
|
}
|
|
22
20
|
function _iterable_to_array_limit(arr, i) {
|
|
@@ -44,7 +42,7 @@ function _iterable_to_array_limit(arr, i) {
|
|
|
44
42
|
return _arr;
|
|
45
43
|
}
|
|
46
44
|
function _non_iterable_rest() {
|
|
47
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance
|
|
45
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
48
46
|
}
|
|
49
47
|
function _object_spread(target) {
|
|
50
48
|
for(var i = 1; i < arguments.length; i++){
|