@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.
Files changed (137) hide show
  1. package/cjs/fwk/api-helpers.js +10 -19
  2. package/cjs/fwk/api-helpers.spec.js +79 -10
  3. package/cjs/fwk/core/api-client.js +1 -1
  4. package/cjs/fwk/date.js +20 -29
  5. package/cjs/fwk/errors.js +16 -27
  6. package/cjs/fwk/mocks/alf-mock-adapter.js +5 -11
  7. package/cjs/fwk/mocks/base-mock-adapter.js +4 -11
  8. package/cjs/fwk/mocks/random-mock-adapter.js +12 -20
  9. package/cjs/fwk/mocks/sequential-mock-adapter.js +12 -20
  10. package/cjs/fwk/param-deserialization.js +1 -1
  11. package/cjs/fwk/param-serialization.js +2 -4
  12. package/cjs/fwk/server.js +1 -1
  13. package/cjs/plugins/additional-params/additional-params-request.js +17 -24
  14. package/cjs/plugins/additional-params/additional-params-sync-request.js +3 -7
  15. package/cjs/plugins/additional-params/additional-params.spec.js +2 -5
  16. package/cjs/plugins/api-configuration-override/api-configuration-override-request.js +4 -11
  17. package/cjs/plugins/api-configuration-override/api-configuration-override.spec.js +4 -11
  18. package/cjs/plugins/api-key/api-key-request.js +4 -11
  19. package/cjs/plugins/api-key/api-key.spec.js +2 -5
  20. package/cjs/plugins/bot-protection-fingerprint/bot-protection-fingerprint-request.js +4 -11
  21. package/cjs/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.js +2 -5
  22. package/cjs/plugins/client-facts/client-facts-request.js +4 -11
  23. package/cjs/plugins/client-facts/client-facts.spec.js +3 -8
  24. package/cjs/plugins/custom-info/custom-info-reply.js +2 -6
  25. package/cjs/plugins/custom-info/custom-info.spec.js +2 -5
  26. package/cjs/plugins/exception/exception-reply.js +2 -6
  27. package/cjs/plugins/exception/exception.spec.js +1 -3
  28. package/cjs/plugins/fetch-cache/fetch-cache-request.js +4 -9
  29. package/cjs/plugins/fetch-cache/fetch-cache.spec.js +2 -5
  30. package/cjs/plugins/fetch-credentials/fetch-credentials-request.js +2 -6
  31. package/cjs/plugins/fetch-credentials/fetch-credentials.spec.js +2 -5
  32. package/cjs/plugins/json-token/json-token-reply.js +2 -6
  33. package/cjs/plugins/json-token/json-token-request.js +2 -6
  34. package/cjs/plugins/json-token/json-token.spec.js +2 -5
  35. package/cjs/plugins/mgw-mdw-auth/mgw-mdw-auth-helpers.js +14 -15
  36. package/cjs/plugins/mgw-mdw-auth/mgw-mdw-auth-request.js +4 -11
  37. package/cjs/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.js +4 -11
  38. package/cjs/plugins/mock-intercept/mock-intercept-request.js +6 -14
  39. package/cjs/plugins/mock-intercept/mock-intercept.spec.js +2 -5
  40. package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.js +5 -10
  41. package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.spec.js +2 -5
  42. package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.js +4 -9
  43. package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.spec.js +2 -5
  44. package/cjs/plugins/pii-tokenizer/pii-tokenizer-request.js +4 -11
  45. package/cjs/plugins/pii-tokenizer/pii-tokenizer.spec.js +13 -30
  46. package/cjs/plugins/raw-response-info/raw-response-info-reply.js +4 -9
  47. package/cjs/plugins/raw-response-info/raw-response-info.spec.js +2 -5
  48. package/cjs/plugins/reviver/reviver-reply.js +2 -6
  49. package/cjs/plugins/reviver/reviver.spec.js +2 -5
  50. package/cjs/plugins/session-id/session-id-request.js +2 -6
  51. package/cjs/plugins/session-id/session-id.spec.js +2 -5
  52. package/cjs/plugins/si-token/si-token-request.js +12 -20
  53. package/cjs/plugins/si-token/si-token.spec.js +2 -5
  54. package/cjs/plugins/simple-api-key-authentication/simple-api-key-authentication-request.js +4 -11
  55. package/cjs/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.js +2 -5
  56. package/cjs/plugins/url-rewrite/url-rewrite-request.js +4 -11
  57. package/cjs/plugins/url-rewrite/url-rewrite.spec.js +2 -5
  58. package/cjs/utils/crypto.js +2 -5
  59. package/cjs/utils/encoder.js +6 -8
  60. package/cjs/utils/generic-api.js +4 -11
  61. package/cjs/utils/json-token.js +2 -5
  62. package/cjs/utils/json-token.spec.js +11 -14
  63. package/cjs/utils/perf/perf-metric.js +4 -9
  64. package/esm2015/fwk/api-helpers.js +11 -21
  65. package/esm2015/fwk/api-helpers.spec.js +80 -11
  66. package/esm2015/fwk/core/api-client.js +1 -1
  67. package/esm2015/fwk/date.js +20 -29
  68. package/esm2015/fwk/errors.js +16 -27
  69. package/esm2015/fwk/mocks/alf-mock-adapter.js +5 -11
  70. package/esm2015/fwk/mocks/base-mock-adapter.js +4 -11
  71. package/esm2015/fwk/mocks/random-mock-adapter.js +12 -20
  72. package/esm2015/fwk/mocks/sequential-mock-adapter.js +12 -20
  73. package/esm2015/fwk/param-deserialization.js +1 -1
  74. package/esm2015/fwk/param-serialization.js +2 -4
  75. package/esm2015/fwk/server.js +1 -1
  76. package/esm2015/plugins/additional-params/additional-params-request.js +17 -24
  77. package/esm2015/plugins/additional-params/additional-params-sync-request.js +3 -7
  78. package/esm2015/plugins/additional-params/additional-params.spec.js +2 -5
  79. package/esm2015/plugins/api-configuration-override/api-configuration-override-request.js +4 -11
  80. package/esm2015/plugins/api-configuration-override/api-configuration-override.spec.js +4 -11
  81. package/esm2015/plugins/api-key/api-key-request.js +4 -11
  82. package/esm2015/plugins/api-key/api-key.spec.js +2 -5
  83. package/esm2015/plugins/bot-protection-fingerprint/bot-protection-fingerprint-request.js +4 -11
  84. package/esm2015/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.js +2 -5
  85. package/esm2015/plugins/client-facts/client-facts-request.js +4 -11
  86. package/esm2015/plugins/client-facts/client-facts.spec.js +3 -8
  87. package/esm2015/plugins/custom-info/custom-info-reply.js +2 -6
  88. package/esm2015/plugins/custom-info/custom-info.spec.js +2 -5
  89. package/esm2015/plugins/exception/exception-reply.js +2 -6
  90. package/esm2015/plugins/exception/exception.spec.js +1 -3
  91. package/esm2015/plugins/fetch-cache/fetch-cache-request.js +4 -9
  92. package/esm2015/plugins/fetch-cache/fetch-cache.spec.js +2 -5
  93. package/esm2015/plugins/fetch-credentials/fetch-credentials-request.js +2 -6
  94. package/esm2015/plugins/fetch-credentials/fetch-credentials.spec.js +2 -5
  95. package/esm2015/plugins/json-token/json-token-reply.js +2 -6
  96. package/esm2015/plugins/json-token/json-token-request.js +2 -6
  97. package/esm2015/plugins/json-token/json-token.spec.js +2 -5
  98. package/esm2015/plugins/mgw-mdw-auth/mgw-mdw-auth-helpers.js +14 -15
  99. package/esm2015/plugins/mgw-mdw-auth/mgw-mdw-auth-request.js +4 -11
  100. package/esm2015/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.js +4 -11
  101. package/esm2015/plugins/mock-intercept/mock-intercept-request.js +6 -14
  102. package/esm2015/plugins/mock-intercept/mock-intercept.spec.js +2 -5
  103. package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.js +5 -10
  104. package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.spec.js +2 -5
  105. package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.js +4 -9
  106. package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.spec.js +2 -5
  107. package/esm2015/plugins/pii-tokenizer/pii-tokenizer-request.js +4 -11
  108. package/esm2015/plugins/pii-tokenizer/pii-tokenizer.spec.js +5 -11
  109. package/esm2015/plugins/raw-response-info/raw-response-info-reply.js +4 -9
  110. package/esm2015/plugins/raw-response-info/raw-response-info.spec.js +2 -5
  111. package/esm2015/plugins/reviver/reviver-reply.js +2 -6
  112. package/esm2015/plugins/reviver/reviver.spec.js +2 -5
  113. package/esm2015/plugins/session-id/session-id-request.js +2 -6
  114. package/esm2015/plugins/session-id/session-id.spec.js +2 -5
  115. package/esm2015/plugins/si-token/si-token-request.js +12 -20
  116. package/esm2015/plugins/si-token/si-token.spec.js +2 -5
  117. package/esm2015/plugins/simple-api-key-authentication/simple-api-key-authentication-request.js +4 -11
  118. package/esm2015/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.js +2 -5
  119. package/esm2015/plugins/url-rewrite/url-rewrite-request.js +4 -11
  120. package/esm2015/plugins/url-rewrite/url-rewrite.spec.js +2 -5
  121. package/esm2015/utils/crypto.js +2 -5
  122. package/esm2015/utils/encoder.js +6 -8
  123. package/esm2015/utils/generic-api.js +4 -11
  124. package/esm2015/utils/json-token.js +2 -5
  125. package/esm2015/utils/json-token.spec.js +11 -14
  126. package/esm2015/utils/perf/perf-metric.js +4 -9
  127. package/package.json +25 -25
  128. package/schematics/ng-add/index.js +3 -2
  129. package/schematics/ng-add/index.js.map +1 -1
  130. package/src/fwk/api-helpers.d.ts +2 -10
  131. package/src/fwk/api-helpers.d.ts.map +1 -1
  132. package/src/fwk/api-helpers.js +8 -16
  133. package/src/fwk/api-helpers.js.map +1 -1
  134. package/src/fwk/core/api-client.d.ts +2 -10
  135. package/src/fwk/core/api-client.d.ts.map +1 -1
  136. package/src/fwk/core/api-client.js +1 -1
  137. package/src/fwk/core/api-client.js.map +1 -1
@@ -19,11 +19,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
19
19
  reject(error);
20
20
  return;
21
21
  }
22
- if (info.done) {
23
- resolve(value);
24
- } else {
25
- Promise.resolve(value).then(_next, _throw);
26
- }
22
+ if (info.done) resolve(value);
23
+ else Promise.resolve(value).then(_next, _throw);
27
24
  }
28
25
  function _async_to_generator(fn) {
29
26
  return function() {
@@ -41,9 +38,7 @@ function _async_to_generator(fn) {
41
38
  };
42
39
  }
43
40
  function _class_call_check(instance, Constructor) {
44
- if (!(instance instanceof Constructor)) {
45
- throw new TypeError("Cannot call a class as a function");
46
- }
41
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
47
42
  }
48
43
  function _defineProperties(target, props) {
49
44
  for(var i = 0; i < props.length; i++){
@@ -67,9 +62,7 @@ function _define_property(obj, key, value) {
67
62
  configurable: true,
68
63
  writable: true
69
64
  });
70
- } else {
71
- obj[key] = value;
72
- }
65
+ } else obj[key] = value;
73
66
  return obj;
74
67
  }
75
68
  function _ts_generator(thisArg, body) {
@@ -13,11 +13,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
13
13
  reject(error);
14
14
  return;
15
15
  }
16
- if (info.done) {
17
- resolve(value);
18
- } else {
19
- Promise.resolve(value).then(_next, _throw);
20
- }
16
+ if (info.done) resolve(value);
17
+ else Promise.resolve(value).then(_next, _throw);
21
18
  }
22
19
  function _async_to_generator(fn) {
23
20
  return function() {
@@ -35,9 +32,7 @@ function _async_to_generator(fn) {
35
32
  };
36
33
  }
37
34
  function _class_call_check(instance, Constructor) {
38
- if (!(instance instanceof Constructor)) {
39
- throw new TypeError("Cannot call a class as a function");
40
- }
35
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
41
36
  }
42
37
  function _define_property(obj, key, value) {
43
38
  if (key in obj) {
@@ -47,9 +42,7 @@ function _define_property(obj, key, value) {
47
42
  configurable: true,
48
43
  writable: true
49
44
  });
50
- } else {
51
- obj[key] = value;
52
- }
45
+ } else obj[key] = value;
53
46
  return obj;
54
47
  }
55
48
  function _ts_generator(thisArg, body) {
@@ -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
- resolve(value);
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) {
@@ -100,9 +93,8 @@ function ownKeys(object, enumerableOnly) {
100
93
  }
101
94
  function _object_spread_props(target, source) {
102
95
  source = source != null ? source : {};
103
- if (Object.getOwnPropertyDescriptors) {
104
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
105
- } else {
96
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
97
+ else {
106
98
  ownKeys(Object(source)).forEach(function(key) {
107
99
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
108
100
  });
@@ -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
- resolve(value);
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() {
@@ -26,9 +26,7 @@ function _array_with_holes(arr) {
26
26
  if (Array.isArray(arr)) return arr;
27
27
  }
28
28
  function _class_call_check(instance, Constructor) {
29
- if (!(instance instanceof Constructor)) {
30
- throw new TypeError("Cannot call a class as a function");
31
- }
29
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
32
30
  }
33
31
  function _defineProperties(target, props) {
34
32
  for(var i = 0; i < props.length; i++){
@@ -52,9 +50,7 @@ function _define_property(obj, key, value) {
52
50
  configurable: true,
53
51
  writable: true
54
52
  });
55
- } else {
56
- obj[key] = value;
57
- }
53
+ } else obj[key] = value;
58
54
  return obj;
59
55
  }
60
56
  function _iterable_to_array_limit(arr, i) {
@@ -82,7 +78,7 @@ function _iterable_to_array_limit(arr, i) {
82
78
  return _arr;
83
79
  }
84
80
  function _non_iterable_rest() {
85
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
81
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
86
82
  }
87
83
  function _object_spread(target) {
88
84
  for(var i = 1; i < arguments.length; i++){
@@ -114,9 +110,8 @@ function ownKeys(object, enumerableOnly) {
114
110
  }
115
111
  function _object_spread_props(target, source) {
116
112
  source = source != null ? source : {};
117
- if (Object.getOwnPropertyDescriptors) {
118
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
119
- } else {
113
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
114
+ else {
120
115
  ownKeys(Object(source)).forEach(function(key) {
121
116
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
122
117
  });
@@ -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
- resolve(value);
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() {
@@ -11,9 +11,7 @@ Object.defineProperty(exports, "OpenTelemetryTraceparentRequest", {
11
11
  var _uuid = require("uuid");
12
12
  var _interfaces = require("./interfaces");
13
13
  function _class_call_check(instance, Constructor) {
14
- if (!(instance instanceof Constructor)) {
15
- throw new TypeError("Cannot call a class as a function");
16
- }
14
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
17
15
  }
18
16
  function _defineProperties(target, props) {
19
17
  for(var i = 0; i < props.length; i++){
@@ -37,9 +35,7 @@ function _define_property(obj, key, value) {
37
35
  configurable: true,
38
36
  writable: true
39
37
  });
40
- } else {
41
- obj[key] = value;
42
- }
38
+ } else obj[key] = value;
43
39
  return obj;
44
40
  }
45
41
  function _object_spread(target) {
@@ -72,9 +68,8 @@ function ownKeys(object, enumerableOnly) {
72
68
  }
73
69
  function _object_spread_props(target, source) {
74
70
  source = source != null ? source : {};
75
- if (Object.getOwnPropertyDescriptors) {
76
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
77
- } else {
71
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
72
+ else {
78
73
  ownKeys(Object(source)).forEach(function(key) {
79
74
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
80
75
  });
@@ -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
- resolve(value);
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
- resolve(value);
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
- resolve(value);
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
- return obj;
60
- }
61
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
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
- Object.defineProperty(newObj, key, desc);
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
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
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
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
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
- resolve(value);
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
- resolve(value);
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
- resolve(value);
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
- resolve(value);
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
- resolve(value);
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
- resolve(value);
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
- resolve(value);
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
- resolve(value);
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() {