@ama-sdk/core 14.6.0-prerelease.67 → 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.
Files changed (123) hide show
  1. package/cjs/fwk/api-helpers.js +2 -4
  2. package/cjs/fwk/date.js +20 -29
  3. package/cjs/fwk/errors.js +16 -27
  4. package/cjs/fwk/mocks/alf-mock-adapter.js +5 -11
  5. package/cjs/fwk/mocks/base-mock-adapter.js +4 -11
  6. package/cjs/fwk/mocks/random-mock-adapter.js +12 -20
  7. package/cjs/fwk/mocks/sequential-mock-adapter.js +12 -20
  8. package/cjs/fwk/param-deserialization.js +1 -1
  9. package/cjs/fwk/param-serialization.js +2 -4
  10. package/cjs/fwk/server.js +1 -1
  11. package/cjs/plugins/additional-params/additional-params-request.js +17 -24
  12. package/cjs/plugins/additional-params/additional-params-sync-request.js +3 -7
  13. package/cjs/plugins/additional-params/additional-params.spec.js +2 -5
  14. package/cjs/plugins/api-configuration-override/api-configuration-override-request.js +4 -11
  15. package/cjs/plugins/api-configuration-override/api-configuration-override.spec.js +4 -11
  16. package/cjs/plugins/api-key/api-key-request.js +4 -11
  17. package/cjs/plugins/api-key/api-key.spec.js +2 -5
  18. package/cjs/plugins/bot-protection-fingerprint/bot-protection-fingerprint-request.js +4 -11
  19. package/cjs/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.js +2 -5
  20. package/cjs/plugins/client-facts/client-facts-request.js +4 -11
  21. package/cjs/plugins/client-facts/client-facts.spec.js +3 -8
  22. package/cjs/plugins/custom-info/custom-info-reply.js +2 -6
  23. package/cjs/plugins/custom-info/custom-info.spec.js +2 -5
  24. package/cjs/plugins/exception/exception-reply.js +2 -6
  25. package/cjs/plugins/exception/exception.spec.js +1 -3
  26. package/cjs/plugins/fetch-cache/fetch-cache-request.js +4 -9
  27. package/cjs/plugins/fetch-cache/fetch-cache.spec.js +2 -5
  28. package/cjs/plugins/fetch-credentials/fetch-credentials-request.js +2 -6
  29. package/cjs/plugins/fetch-credentials/fetch-credentials.spec.js +2 -5
  30. package/cjs/plugins/json-token/json-token-reply.js +2 -6
  31. package/cjs/plugins/json-token/json-token-request.js +2 -6
  32. package/cjs/plugins/json-token/json-token.spec.js +2 -5
  33. package/cjs/plugins/mgw-mdw-auth/mgw-mdw-auth-helpers.js +14 -15
  34. package/cjs/plugins/mgw-mdw-auth/mgw-mdw-auth-request.js +4 -11
  35. package/cjs/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.js +4 -11
  36. package/cjs/plugins/mock-intercept/mock-intercept-request.js +6 -14
  37. package/cjs/plugins/mock-intercept/mock-intercept.spec.js +2 -5
  38. package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.js +5 -10
  39. package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.spec.js +2 -5
  40. package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.js +4 -9
  41. package/cjs/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.spec.js +2 -5
  42. package/cjs/plugins/pii-tokenizer/pii-tokenizer-request.js +4 -11
  43. package/cjs/plugins/pii-tokenizer/pii-tokenizer.spec.js +13 -30
  44. package/cjs/plugins/raw-response-info/raw-response-info-reply.js +4 -9
  45. package/cjs/plugins/raw-response-info/raw-response-info.spec.js +2 -5
  46. package/cjs/plugins/reviver/reviver-reply.js +2 -6
  47. package/cjs/plugins/reviver/reviver.spec.js +2 -5
  48. package/cjs/plugins/session-id/session-id-request.js +2 -6
  49. package/cjs/plugins/session-id/session-id.spec.js +2 -5
  50. package/cjs/plugins/si-token/si-token-request.js +12 -20
  51. package/cjs/plugins/si-token/si-token.spec.js +2 -5
  52. package/cjs/plugins/simple-api-key-authentication/simple-api-key-authentication-request.js +4 -11
  53. package/cjs/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.js +2 -5
  54. package/cjs/plugins/url-rewrite/url-rewrite-request.js +4 -11
  55. package/cjs/plugins/url-rewrite/url-rewrite.spec.js +2 -5
  56. package/cjs/utils/crypto.js +2 -5
  57. package/cjs/utils/encoder.js +6 -8
  58. package/cjs/utils/generic-api.js +4 -11
  59. package/cjs/utils/json-token.js +2 -5
  60. package/cjs/utils/json-token.spec.js +11 -14
  61. package/cjs/utils/perf/perf-metric.js +4 -9
  62. package/esm2015/fwk/api-helpers.js +2 -4
  63. package/esm2015/fwk/date.js +20 -29
  64. package/esm2015/fwk/errors.js +16 -27
  65. package/esm2015/fwk/mocks/alf-mock-adapter.js +5 -11
  66. package/esm2015/fwk/mocks/base-mock-adapter.js +4 -11
  67. package/esm2015/fwk/mocks/random-mock-adapter.js +12 -20
  68. package/esm2015/fwk/mocks/sequential-mock-adapter.js +12 -20
  69. package/esm2015/fwk/param-deserialization.js +1 -1
  70. package/esm2015/fwk/param-serialization.js +2 -4
  71. package/esm2015/fwk/server.js +1 -1
  72. package/esm2015/plugins/additional-params/additional-params-request.js +17 -24
  73. package/esm2015/plugins/additional-params/additional-params-sync-request.js +3 -7
  74. package/esm2015/plugins/additional-params/additional-params.spec.js +2 -5
  75. package/esm2015/plugins/api-configuration-override/api-configuration-override-request.js +4 -11
  76. package/esm2015/plugins/api-configuration-override/api-configuration-override.spec.js +4 -11
  77. package/esm2015/plugins/api-key/api-key-request.js +4 -11
  78. package/esm2015/plugins/api-key/api-key.spec.js +2 -5
  79. package/esm2015/plugins/bot-protection-fingerprint/bot-protection-fingerprint-request.js +4 -11
  80. package/esm2015/plugins/bot-protection-fingerprint/bot-protection-fingerprint.spec.js +2 -5
  81. package/esm2015/plugins/client-facts/client-facts-request.js +4 -11
  82. package/esm2015/plugins/client-facts/client-facts.spec.js +3 -8
  83. package/esm2015/plugins/custom-info/custom-info-reply.js +2 -6
  84. package/esm2015/plugins/custom-info/custom-info.spec.js +2 -5
  85. package/esm2015/plugins/exception/exception-reply.js +2 -6
  86. package/esm2015/plugins/exception/exception.spec.js +1 -3
  87. package/esm2015/plugins/fetch-cache/fetch-cache-request.js +4 -9
  88. package/esm2015/plugins/fetch-cache/fetch-cache.spec.js +2 -5
  89. package/esm2015/plugins/fetch-credentials/fetch-credentials-request.js +2 -6
  90. package/esm2015/plugins/fetch-credentials/fetch-credentials.spec.js +2 -5
  91. package/esm2015/plugins/json-token/json-token-reply.js +2 -6
  92. package/esm2015/plugins/json-token/json-token-request.js +2 -6
  93. package/esm2015/plugins/json-token/json-token.spec.js +2 -5
  94. package/esm2015/plugins/mgw-mdw-auth/mgw-mdw-auth-helpers.js +14 -15
  95. package/esm2015/plugins/mgw-mdw-auth/mgw-mdw-auth-request.js +4 -11
  96. package/esm2015/plugins/mgw-mdw-auth/mgw-mdw-auth.spec.js +4 -11
  97. package/esm2015/plugins/mock-intercept/mock-intercept-request.js +6 -14
  98. package/esm2015/plugins/mock-intercept/mock-intercept.spec.js +2 -5
  99. package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.js +5 -10
  100. package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-reply.spec.js +2 -5
  101. package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.js +4 -9
  102. package/esm2015/plugins/open-telemetry/traceparent/open-telemetry-traceparent-request.spec.js +2 -5
  103. package/esm2015/plugins/pii-tokenizer/pii-tokenizer-request.js +4 -11
  104. package/esm2015/plugins/pii-tokenizer/pii-tokenizer.spec.js +5 -11
  105. package/esm2015/plugins/raw-response-info/raw-response-info-reply.js +4 -9
  106. package/esm2015/plugins/raw-response-info/raw-response-info.spec.js +2 -5
  107. package/esm2015/plugins/reviver/reviver-reply.js +2 -6
  108. package/esm2015/plugins/reviver/reviver.spec.js +2 -5
  109. package/esm2015/plugins/session-id/session-id-request.js +2 -6
  110. package/esm2015/plugins/session-id/session-id.spec.js +2 -5
  111. package/esm2015/plugins/si-token/si-token-request.js +12 -20
  112. package/esm2015/plugins/si-token/si-token.spec.js +2 -5
  113. package/esm2015/plugins/simple-api-key-authentication/simple-api-key-authentication-request.js +4 -11
  114. package/esm2015/plugins/simple-api-key-authentication/simple-api-key-authentication.spec.js +2 -5
  115. package/esm2015/plugins/url-rewrite/url-rewrite-request.js +4 -11
  116. package/esm2015/plugins/url-rewrite/url-rewrite.spec.js +2 -5
  117. package/esm2015/utils/crypto.js +2 -5
  118. package/esm2015/utils/encoder.js +6 -8
  119. package/esm2015/utils/generic-api.js +4 -11
  120. package/esm2015/utils/json-token.js +2 -5
  121. package/esm2015/utils/json-token.spec.js +11 -14
  122. package/esm2015/utils/perf/perf-metric.js +4 -9
  123. package/package.json +7 -7
@@ -51,9 +51,7 @@ function _define_property(obj, key, value) {
51
51
  configurable: true,
52
52
  writable: true
53
53
  });
54
- } else {
55
- obj[key] = value;
56
- }
54
+ } else obj[key] = value;
57
55
  return obj;
58
56
  }
59
57
  function _iterable_to_array_limit(arr, i) {
@@ -81,7 +79,7 @@ function _iterable_to_array_limit(arr, i) {
81
79
  return _arr;
82
80
  }
83
81
  function _non_iterable_rest() {
84
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
82
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
85
83
  }
86
84
  function _object_spread(target) {
87
85
  for(var i = 1; i < arguments.length; i++){
package/cjs/fwk/date.js CHANGED
@@ -35,9 +35,7 @@ function _array_without_holes(arr) {
35
35
  if (Array.isArray(arr)) return _array_like_to_array(arr);
36
36
  }
37
37
  function _assert_this_initialized(self) {
38
- if (self === void 0) {
39
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
40
- }
38
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
41
39
  return self;
42
40
  }
43
41
  function _call_super(_this, derived, args) {
@@ -45,14 +43,11 @@ function _call_super(_this, derived, args) {
45
43
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
46
44
  }
47
45
  function _class_call_check(instance, Constructor) {
48
- if (!(instance instanceof Constructor)) {
49
- throw new TypeError("Cannot call a class as a function");
50
- }
46
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
51
47
  }
52
48
  function _construct(Parent, args, Class) {
53
- if (_is_native_reflect_construct()) {
54
- _construct = Reflect.construct;
55
- } else {
49
+ if (_is_native_reflect_construct()) _construct = Reflect.construct;
50
+ else {
56
51
  _construct = function construct(Parent, args, Class) {
57
52
  var a = [
58
53
  null
@@ -103,23 +98,29 @@ function _instanceof(left, right) {
103
98
  "@swc/helpers - instanceof";
104
99
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
105
100
  return !!right[Symbol.hasInstance](left);
106
- } else {
107
- return left instanceof right;
108
- }
101
+ } else return left instanceof right;
109
102
  }
110
103
  function _is_native_function(fn) {
111
104
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
112
105
  }
106
+ function _is_native_reflect_construct() {
107
+ try {
108
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
109
+ } catch (_) {}
110
+ return (_is_native_reflect_construct = function() {
111
+ return !!result;
112
+ })();
113
+ }
113
114
  function _iterable_to_array(iter) {
114
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
115
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
116
+ return Array.from(iter);
117
+ }
115
118
  }
116
119
  function _non_iterable_spread() {
117
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
120
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
118
121
  }
119
122
  function _possible_constructor_return(self, call) {
120
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
121
- return call;
122
- }
123
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
123
124
  return _assert_this_initialized(self);
124
125
  }
125
126
  function _set_prototype_of(o, p) {
@@ -146,11 +147,9 @@ function _unsupported_iterable_to_array(o, minLen) {
146
147
  }
147
148
  function _wrap_native_super(Class) {
148
149
  var _cache = typeof Map === "function" ? new Map() : undefined;
149
- _wrap_native_super = function wrapNativeSuper(Class) {
150
+ _wrap_native_super = function(Class) {
150
151
  if (Class === null || !_is_native_function(Class)) return Class;
151
- if (typeof Class !== "function") {
152
- throw new TypeError("Super expression must either be null or a function");
153
- }
152
+ if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function");
154
153
  if (typeof _cache !== "undefined") {
155
154
  if (_cache.has(Class)) return _cache.get(Class);
156
155
  _cache.set(Class, Wrapper);
@@ -170,14 +169,6 @@ function _wrap_native_super(Class) {
170
169
  };
171
170
  return _wrap_native_super(Class);
172
171
  }
173
- function _is_native_reflect_construct() {
174
- try {
175
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
176
- } catch (_) {}
177
- return (_is_native_reflect_construct = function() {
178
- return !!result;
179
- })();
180
- }
181
172
  var _NativeDateClass = Date;
182
173
  function pad(val) {
183
174
  var digits = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
package/cjs/fwk/errors.js CHANGED
@@ -31,9 +31,7 @@ _export(exports, {
31
31
  }
32
32
  });
33
33
  function _assert_this_initialized(self) {
34
- if (self === void 0) {
35
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
36
- }
34
+ if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
37
35
  return self;
38
36
  }
39
37
  function _call_super(_this, derived, args) {
@@ -41,14 +39,11 @@ function _call_super(_this, derived, args) {
41
39
  return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
42
40
  }
43
41
  function _class_call_check(instance, Constructor) {
44
- if (!(instance instanceof Constructor)) {
45
- throw new TypeError("Cannot call a class as a function");
46
- }
42
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
47
43
  }
48
44
  function _construct(Parent, args, Class) {
49
- if (_is_native_reflect_construct()) {
50
- _construct = Reflect.construct;
51
- } else {
45
+ if (_is_native_reflect_construct()) _construct = Reflect.construct;
46
+ else {
52
47
  _construct = function construct(Parent, args, Class) {
53
48
  var a = [
54
49
  null
@@ -70,9 +65,7 @@ function _define_property(obj, key, value) {
70
65
  configurable: true,
71
66
  writable: true
72
67
  });
73
- } else {
74
- obj[key] = value;
75
- }
68
+ } else obj[key] = value;
76
69
  return obj;
77
70
  }
78
71
  function _get_prototype_of(o) {
@@ -97,10 +90,16 @@ function _inherits(subClass, superClass) {
97
90
  function _is_native_function(fn) {
98
91
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
99
92
  }
93
+ function _is_native_reflect_construct() {
94
+ try {
95
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
96
+ } catch (_) {}
97
+ return (_is_native_reflect_construct = function() {
98
+ return !!result;
99
+ })();
100
+ }
100
101
  function _possible_constructor_return(self, call) {
101
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
102
- return call;
103
- }
102
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
104
103
  return _assert_this_initialized(self);
105
104
  }
106
105
  function _set_prototype_of(o, p) {
@@ -116,11 +115,9 @@ function _type_of(obj) {
116
115
  }
117
116
  function _wrap_native_super(Class) {
118
117
  var _cache = typeof Map === "function" ? new Map() : undefined;
119
- _wrap_native_super = function wrapNativeSuper(Class) {
118
+ _wrap_native_super = function(Class) {
120
119
  if (Class === null || !_is_native_function(Class)) return Class;
121
- if (typeof Class !== "function") {
122
- throw new TypeError("Super expression must either be null or a function");
123
- }
120
+ if (typeof Class !== "function") throw new TypeError("Super expression must either be null or a function");
124
121
  if (typeof _cache !== "undefined") {
125
122
  if (_cache.has(Class)) return _cache.get(Class);
126
123
  _cache.set(Class, Wrapper);
@@ -140,14 +137,6 @@ function _wrap_native_super(Class) {
140
137
  };
141
138
  return _wrap_native_super(Class);
142
139
  }
143
- function _is_native_reflect_construct() {
144
- try {
145
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
146
- } catch (_) {}
147
- return (_is_native_reflect_construct = function() {
148
- return !!result;
149
- })();
150
- }
151
140
  var GenericError = /*#__PURE__*/ function(Error1) {
152
141
  "use strict";
153
142
  _inherits(GenericError, Error1);
@@ -18,11 +18,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
18
18
  reject(error);
19
19
  return;
20
20
  }
21
- if (info.done) {
22
- resolve(value);
23
- } else {
24
- Promise.resolve(value).then(_next, _throw);
25
- }
21
+ if (info.done) resolve(value);
22
+ else Promise.resolve(value).then(_next, _throw);
26
23
  }
27
24
  function _async_to_generator(fn) {
28
25
  return function() {
@@ -47,9 +44,7 @@ function _define_property(obj, key, value) {
47
44
  configurable: true,
48
45
  writable: true
49
46
  });
50
- } else {
51
- obj[key] = value;
52
- }
47
+ } else obj[key] = value;
53
48
  return obj;
54
49
  }
55
50
  function _object_spread(target) {
@@ -82,9 +77,8 @@ function ownKeys(object, enumerableOnly) {
82
77
  }
83
78
  function _object_spread_props(target, source) {
84
79
  source = source != null ? source : {};
85
- if (Object.getOwnPropertyDescriptors) {
86
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
87
- } else {
80
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
81
+ else {
88
82
  ownKeys(Object(source)).forEach(function(key) {
89
83
  Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
90
84
  });
@@ -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 _ts_generator(thisArg, body) {
@@ -10,9 +10,7 @@ Object.defineProperty(exports, "RandomMockAdapter", {
10
10
  });
11
11
  var _basemockadapter = require("./base-mock-adapter");
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 _defineProperties(target, props) {
28
24
  for(var i = 0; i < props.length; i++){
@@ -46,9 +42,7 @@ function _define_property(obj, key, value) {
46
42
  configurable: true,
47
43
  writable: true
48
44
  });
49
- } else {
50
- obj[key] = value;
51
- }
45
+ } else obj[key] = value;
52
46
  return obj;
53
47
  }
54
48
  function _get_prototype_of(o) {
@@ -70,10 +64,16 @@ function _inherits(subClass, superClass) {
70
64
  });
71
65
  if (superClass) _set_prototype_of(subClass, superClass);
72
66
  }
67
+ function _is_native_reflect_construct() {
68
+ try {
69
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
70
+ } catch (_) {}
71
+ return (_is_native_reflect_construct = function() {
72
+ return !!result;
73
+ })();
74
+ }
73
75
  function _possible_constructor_return(self, call) {
74
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
75
- return call;
76
- }
76
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
77
77
  return _assert_this_initialized(self);
78
78
  }
79
79
  function _set_prototype_of(o, p) {
@@ -87,14 +87,6 @@ function _type_of(obj) {
87
87
  "@swc/helpers - typeof";
88
88
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
89
89
  }
90
- function _is_native_reflect_construct() {
91
- try {
92
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
93
- } catch (_) {}
94
- return (_is_native_reflect_construct = function() {
95
- return !!result;
96
- })();
97
- }
98
90
  var RandomMockAdapter = /*#__PURE__*/ function(BaseMockAdapter) {
99
91
  "use strict";
100
92
  _inherits(RandomMockAdapter, BaseMockAdapter);
@@ -10,9 +10,7 @@ Object.defineProperty(exports, "SequentialMockAdapter", {
10
10
  });
11
11
  var _basemockadapter = require("./base-mock-adapter");
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 _defineProperties(target, props) {
28
24
  for(var i = 0; i < props.length; i++){
@@ -46,9 +42,7 @@ function _define_property(obj, key, value) {
46
42
  configurable: true,
47
43
  writable: true
48
44
  });
49
- } else {
50
- obj[key] = value;
51
- }
45
+ } else obj[key] = value;
52
46
  return obj;
53
47
  }
54
48
  function _get_prototype_of(o) {
@@ -70,10 +64,16 @@ function _inherits(subClass, superClass) {
70
64
  });
71
65
  if (superClass) _set_prototype_of(subClass, superClass);
72
66
  }
67
+ function _is_native_reflect_construct() {
68
+ try {
69
+ var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
70
+ } catch (_) {}
71
+ return (_is_native_reflect_construct = function() {
72
+ return !!result;
73
+ })();
74
+ }
73
75
  function _possible_constructor_return(self, call) {
74
- if (call && (_type_of(call) === "object" || typeof call === "function")) {
75
- return call;
76
- }
76
+ if (call && (_type_of(call) === "object" || typeof call === "function")) return call;
77
77
  return _assert_this_initialized(self);
78
78
  }
79
79
  function _set_prototype_of(o, p) {
@@ -87,14 +87,6 @@ function _type_of(obj) {
87
87
  "@swc/helpers - typeof";
88
88
  return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
89
89
  }
90
- function _is_native_reflect_construct() {
91
- try {
92
- var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
93
- } catch (_) {}
94
- return (_is_native_reflect_construct = function() {
95
- return !!result;
96
- })();
97
- }
98
90
  var SequentialMockAdapter = /*#__PURE__*/ function(BaseMockAdapter) {
99
91
  "use strict";
100
92
  _inherits(SequentialMockAdapter, BaseMockAdapter);
@@ -50,7 +50,7 @@ function _iterable_to_array_limit(arr, i) {
50
50
  return _arr;
51
51
  }
52
52
  function _non_iterable_rest() {
53
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
53
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
54
54
  }
55
55
  function _sliced_to_array(arr, i) {
56
56
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
@@ -50,9 +50,7 @@ function _instanceof(left, right) {
50
50
  "@swc/helpers - instanceof";
51
51
  if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
52
52
  return !!right[Symbol.hasInstance](left);
53
- } else {
54
- return left instanceof right;
55
- }
53
+ } else return left instanceof right;
56
54
  }
57
55
  function _iterable_to_array_limit(arr, i) {
58
56
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
@@ -79,7 +77,7 @@ function _iterable_to_array_limit(arr, i) {
79
77
  return _arr;
80
78
  }
81
79
  function _non_iterable_rest() {
82
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
80
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
83
81
  }
84
82
  function _sliced_to_array(arr, i) {
85
83
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
package/cjs/fwk/server.js CHANGED
@@ -41,7 +41,7 @@ function _iterable_to_array_limit(arr, i) {
41
41
  return _arr;
42
42
  }
43
43
  function _non_iterable_rest() {
44
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
44
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
45
45
  }
46
46
  function _sliced_to_array(arr, i) {
47
47
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
@@ -34,11 +34,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
34
34
  reject(error);
35
35
  return;
36
36
  }
37
- if (info.done) {
38
- resolve(value);
39
- } else {
40
- Promise.resolve(value).then(_next, _throw);
41
- }
37
+ if (info.done) resolve(value);
38
+ else Promise.resolve(value).then(_next, _throw);
42
39
  }
43
40
  function _async_to_generator(fn) {
44
41
  return function() {
@@ -56,9 +53,7 @@ function _async_to_generator(fn) {
56
53
  };
57
54
  }
58
55
  function _class_call_check(instance, Constructor) {
59
- if (!(instance instanceof Constructor)) {
60
- throw new TypeError("Cannot call a class as a function");
61
- }
56
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
62
57
  }
63
58
  function _defineProperties(target, props) {
64
59
  for(var i = 0; i < props.length; i++){
@@ -82,9 +77,7 @@ function _define_property(obj, key, value) {
82
77
  configurable: true,
83
78
  writable: true
84
79
  });
85
- } else {
86
- obj[key] = value;
87
- }
80
+ } else obj[key] = value;
88
81
  return obj;
89
82
  }
90
83
  function _iterable_to_array_limit(arr, i) {
@@ -112,7 +105,7 @@ function _iterable_to_array_limit(arr, i) {
112
105
  return _arr;
113
106
  }
114
107
  function _non_iterable_rest() {
115
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
108
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
116
109
  }
117
110
  function _object_spread(target) {
118
111
  for(var i = 1; i < arguments.length; i++){
@@ -132,18 +125,6 @@ function _object_spread(target) {
132
125
  function _sliced_to_array(arr, i) {
133
126
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
134
127
  }
135
- function _type_of(obj) {
136
- "@swc/helpers - typeof";
137
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
138
- }
139
- function _unsupported_iterable_to_array(o, minLen) {
140
- if (!o) return;
141
- if (typeof o === "string") return _array_like_to_array(o, minLen);
142
- var n = Object.prototype.toString.call(o).slice(8, -1);
143
- if (n === "Object" && o.constructor) n = o.constructor.name;
144
- if (n === "Map" || n === "Set") return Array.from(n);
145
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
146
- }
147
128
  function _ts_generator(thisArg, body) {
148
129
  var f, y, t, _ = {
149
130
  label: 0,
@@ -243,6 +224,18 @@ function _ts_generator(thisArg, body) {
243
224
  };
244
225
  }
245
226
  }
227
+ function _type_of(obj) {
228
+ "@swc/helpers - typeof";
229
+ return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
230
+ }
231
+ function _unsupported_iterable_to_array(o, minLen) {
232
+ if (!o) return;
233
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
234
+ var n = Object.prototype.toString.call(o).slice(8, -1);
235
+ if (n === "Object" && o.constructor) n = o.constructor.name;
236
+ if (n === "Map" || n === "Set") return Array.from(n);
237
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
238
+ }
246
239
  function isStringOrUndefined(value) {
247
240
  var type = typeof value === "undefined" ? "undefined" : _type_of(value);
248
241
  return type === 'undefined' || type === 'string';
@@ -20,9 +20,7 @@ function _array_with_holes(arr) {
20
20
  if (Array.isArray(arr)) return arr;
21
21
  }
22
22
  function _class_call_check(instance, Constructor) {
23
- if (!(instance instanceof Constructor)) {
24
- throw new TypeError("Cannot call a class as a function");
25
- }
23
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
26
24
  }
27
25
  function _defineProperties(target, props) {
28
26
  for(var i = 0; i < props.length; i++){
@@ -46,9 +44,7 @@ function _define_property(obj, key, value) {
46
44
  configurable: true,
47
45
  writable: true
48
46
  });
49
- } else {
50
- obj[key] = value;
51
- }
47
+ } else obj[key] = value;
52
48
  return obj;
53
49
  }
54
50
  function _iterable_to_array_limit(arr, i) {
@@ -76,7 +72,7 @@ function _iterable_to_array_limit(arr, i) {
76
72
  return _arr;
77
73
  }
78
74
  function _non_iterable_rest() {
79
- 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
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
80
76
  }
81
77
  function _object_spread(target) {
82
78
  for(var i = 1; i < arguments.length; i++){
@@ -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() {
@@ -33,9 +30,7 @@ function _async_to_generator(fn) {
33
30
  };
34
31
  }
35
32
  function _class_call_check(instance, Constructor) {
36
- if (!(instance instanceof Constructor)) {
37
- throw new TypeError("Cannot call a class as a function");
38
- }
33
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
39
34
  }
40
35
  function _define_property(obj, key, value) {
41
36
  if (key in obj) {
@@ -45,9 +40,7 @@ function _define_property(obj, key, value) {
45
40
  configurable: true,
46
41
  writable: true
47
42
  });
48
- } else {
49
- obj[key] = value;
50
- }
43
+ } else obj[key] = value;
51
44
  return obj;
52
45
  }
53
46
  function _ts_generator(thisArg, body) {