@ama-sdk/core 14.6.0-prerelease.67 → 14.6.0-prerelease.69

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
@@ -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() {
@@ -27,11 +27,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
27
27
  reject(error);
28
28
  return;
29
29
  }
30
- if (info.done) {
31
- resolve(value);
32
- } else {
33
- Promise.resolve(value).then(_next, _throw);
34
- }
30
+ if (info.done) resolve(value);
31
+ else Promise.resolve(value).then(_next, _throw);
35
32
  }
36
33
  function _async_to_generator(fn) {
37
34
  return function() {
@@ -49,9 +46,7 @@ function _async_to_generator(fn) {
49
46
  };
50
47
  }
51
48
  function _class_call_check(instance, Constructor) {
52
- if (!(instance instanceof Constructor)) {
53
- throw new TypeError("Cannot call a class as a function");
54
- }
49
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
55
50
  }
56
51
  function _defineProperties(target, props) {
57
52
  for(var i = 0; i < props.length; i++){
@@ -75,9 +70,7 @@ function _define_property(obj, key, value) {
75
70
  configurable: true,
76
71
  writable: true
77
72
  });
78
- } else {
79
- obj[key] = value;
80
- }
73
+ } else obj[key] = value;
81
74
  return obj;
82
75
  }
83
76
  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() {
@@ -25,11 +25,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
25
25
  reject(error);
26
26
  return;
27
27
  }
28
- if (info.done) {
29
- resolve(value);
30
- } else {
31
- Promise.resolve(value).then(_next, _throw);
32
- }
28
+ if (info.done) resolve(value);
29
+ else Promise.resolve(value).then(_next, _throw);
33
30
  }
34
31
  function _async_to_generator(fn) {
35
32
  return function() {
@@ -47,9 +44,7 @@ function _async_to_generator(fn) {
47
44
  };
48
45
  }
49
46
  function _class_call_check(instance, Constructor) {
50
- if (!(instance instanceof Constructor)) {
51
- throw new TypeError("Cannot call a class as a function");
52
- }
47
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
53
48
  }
54
49
  function _defineProperties(target, props) {
55
50
  for(var i = 0; i < props.length; i++){
@@ -73,9 +68,7 @@ function _define_property(obj, key, value) {
73
68
  configurable: true,
74
69
  writable: true
75
70
  });
76
- } else {
77
- obj[key] = value;
78
- }
71
+ } else obj[key] = value;
79
72
  return obj;
80
73
  }
81
74
  function _object_spread(target) {
@@ -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() {
@@ -40,9 +37,7 @@ function _define_property(obj, key, value) {
40
37
  configurable: true,
41
38
  writable: true
42
39
  });
43
- } else {
44
- obj[key] = value;
45
- }
40
+ } else obj[key] = value;
46
41
  return obj;
47
42
  }
48
43
  function _object_spread(target) {
@@ -9,9 +9,7 @@ Object.defineProperty(exports, "CustomInfoReply", {
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
  var CustomInfoReply = /*#__PURE__*/ function() {
@@ -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() {
@@ -11,9 +11,7 @@ Object.defineProperty(exports, "ExceptionReply", {
11
11
  var _api = require("../../fwk/api");
12
12
  var _errors = require("../../fwk/errors");
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
  var ExceptionReply = /*#__PURE__*/ function() {
@@ -13,9 +13,7 @@ function _define_property(obj, key, value) {
13
13
  configurable: true,
14
14
  writable: true
15
15
  });
16
- } else {
17
- obj[key] = value;
18
- }
16
+ } else obj[key] = value;
19
17
  return obj;
20
18
  }
21
19
  function _object_spread(target) {
@@ -9,9 +9,7 @@ Object.defineProperty(exports, "FetchCacheRequest", {
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
  });
@@ -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() {
@@ -9,9 +9,7 @@ Object.defineProperty(exports, "FetchCredentialsRequest", {
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
  var FetchCredentialsRequest = /*#__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() {
@@ -9,9 +9,7 @@ Object.defineProperty(exports, "JsonTokenReply", {
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
  var JsonTokenReply = /*#__PURE__*/ function() {
@@ -9,9 +9,7 @@ Object.defineProperty(exports, "JsonTokenRequest", {
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
  var JsonTokenRequest = /*#__PURE__*/ function() {
@@ -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,11 +35,8 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
35
35
  reject(error);
36
36
  return;
37
37
  }
38
- if (info.done) {
39
- resolve(value);
40
- } else {
41
- Promise.resolve(value).then(_next, _throw);
42
- }
38
+ if (info.done) resolve(value);
39
+ else Promise.resolve(value).then(_next, _throw);
43
40
  }
44
41
  function _async_to_generator(fn) {
45
42
  return function() {
@@ -57,22 +54,16 @@ function _async_to_generator(fn) {
57
54
  };
58
55
  }
59
56
  function _iterable_to_array(iter) {
60
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
57
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) {
58
+ return Array.from(iter);
59
+ }
61
60
  }
62
61
  function _non_iterable_spread() {
63
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
62
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
64
63
  }
65
64
  function _to_consumable_array(arr) {
66
65
  return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
67
66
  }
68
- function _unsupported_iterable_to_array(o, minLen) {
69
- if (!o) return;
70
- if (typeof o === "string") return _array_like_to_array(o, minLen);
71
- var n = Object.prototype.toString.call(o).slice(8, -1);
72
- if (n === "Object" && o.constructor) n = o.constructor.name;
73
- if (n === "Map" || n === "Set") return Array.from(n);
74
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
75
- }
76
67
  function _ts_generator(thisArg, body) {
77
68
  var f, y, t, _ = {
78
69
  label: 0,
@@ -172,6 +163,14 @@ function _ts_generator(thisArg, body) {
172
163
  };
173
164
  }
174
165
  }
166
+ function _unsupported_iterable_to_array(o, minLen) {
167
+ if (!o) return;
168
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
169
+ var n = Object.prototype.toString.call(o).slice(8, -1);
170
+ if (n === "Object" && o.constructor) n = o.constructor.name;
171
+ if (n === "Map" || n === "Set") return Array.from(n);
172
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
173
+ }
175
174
  function sha256(value) {
176
175
  return _async_to_generator(function() {
177
176
  var utf8, hashBuffer, hashArray, hashHex;
@@ -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
  });