@digipair/skill-microsoft 0.131.6 → 0.132.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +287 -295
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -7,12 +7,12 @@ import require$$5 from 'util';
|
|
|
7
7
|
import 'fs';
|
|
8
8
|
import 'path';
|
|
9
9
|
|
|
10
|
-
function _class_call_check$
|
|
10
|
+
function _class_call_check$J(instance, Constructor) {
|
|
11
11
|
if (!(instance instanceof Constructor)) {
|
|
12
12
|
throw new TypeError("Cannot call a class as a function");
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
function _defineProperties$
|
|
15
|
+
function _defineProperties$D(target, props) {
|
|
16
16
|
for(var i = 0; i < props.length; i++){
|
|
17
17
|
var descriptor = props[i];
|
|
18
18
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -21,8 +21,8 @@ function _defineProperties$C(target, props) {
|
|
|
21
21
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
function _create_class$
|
|
25
|
-
if (staticProps) _defineProperties$
|
|
24
|
+
function _create_class$D(Constructor, protoProps, staticProps) {
|
|
25
|
+
if (staticProps) _defineProperties$D(Constructor, staticProps);
|
|
26
26
|
return Constructor;
|
|
27
27
|
}
|
|
28
28
|
/*
|
|
@@ -33,9 +33,9 @@ function _create_class$C(Constructor, protoProps, staticProps) {
|
|
|
33
33
|
* @internal
|
|
34
34
|
*/ var Serializer = /*#__PURE__*/ function() {
|
|
35
35
|
function Serializer() {
|
|
36
|
-
_class_call_check$
|
|
36
|
+
_class_call_check$J(this, Serializer);
|
|
37
37
|
}
|
|
38
|
-
_create_class$
|
|
38
|
+
_create_class$D(Serializer, null, [
|
|
39
39
|
{
|
|
40
40
|
key: "serializeJSONBlob",
|
|
41
41
|
value: /**
|
|
@@ -458,7 +458,7 @@ function _assert_this_initialized$g(self) {
|
|
|
458
458
|
}
|
|
459
459
|
return self;
|
|
460
460
|
}
|
|
461
|
-
function _class_call_check$
|
|
461
|
+
function _class_call_check$I(instance, Constructor) {
|
|
462
462
|
if (!(instance instanceof Constructor)) {
|
|
463
463
|
throw new TypeError("Cannot call a class as a function");
|
|
464
464
|
}
|
|
@@ -480,7 +480,7 @@ function _construct(Parent, args, Class) {
|
|
|
480
480
|
}
|
|
481
481
|
return _construct.apply(null, arguments);
|
|
482
482
|
}
|
|
483
|
-
function _defineProperties$
|
|
483
|
+
function _defineProperties$C(target, props) {
|
|
484
484
|
for(var i = 0; i < props.length; i++){
|
|
485
485
|
var descriptor = props[i];
|
|
486
486
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -489,8 +489,8 @@ function _defineProperties$B(target, props) {
|
|
|
489
489
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
function _create_class$
|
|
493
|
-
if (protoProps) _defineProperties$
|
|
492
|
+
function _create_class$C(Constructor, protoProps, staticProps) {
|
|
493
|
+
if (protoProps) _defineProperties$C(Constructor.prototype, protoProps);
|
|
494
494
|
return Constructor;
|
|
495
495
|
}
|
|
496
496
|
function _define_property$m(obj, key, value) {
|
|
@@ -617,7 +617,7 @@ var _obj$6;
|
|
|
617
617
|
_inherits$g(AuthError, Error1);
|
|
618
618
|
var _super = _create_super$g(AuthError);
|
|
619
619
|
function AuthError(errorCode, errorMessage, suberror) {
|
|
620
|
-
_class_call_check$
|
|
620
|
+
_class_call_check$I(this, AuthError);
|
|
621
621
|
var _this;
|
|
622
622
|
var errorString = errorMessage ? "".concat(errorCode, ": ").concat(errorMessage) : errorCode;
|
|
623
623
|
_this = _super.call(this, errorString);
|
|
@@ -628,7 +628,7 @@ var _obj$6;
|
|
|
628
628
|
_this.name = "AuthError";
|
|
629
629
|
return _this;
|
|
630
630
|
}
|
|
631
|
-
_create_class$
|
|
631
|
+
_create_class$C(AuthError, [
|
|
632
632
|
{
|
|
633
633
|
key: "setCorrelationId",
|
|
634
634
|
value: function setCorrelationId(correlationId) {
|
|
@@ -694,7 +694,7 @@ function _assert_this_initialized$f(self) {
|
|
|
694
694
|
}
|
|
695
695
|
return self;
|
|
696
696
|
}
|
|
697
|
-
function _class_call_check$
|
|
697
|
+
function _class_call_check$H(instance, Constructor) {
|
|
698
698
|
if (!(instance instanceof Constructor)) {
|
|
699
699
|
throw new TypeError("Cannot call a class as a function");
|
|
700
700
|
}
|
|
@@ -922,7 +922,7 @@ var _obj$5;
|
|
|
922
922
|
_inherits$f(ClientAuthError, AuthError);
|
|
923
923
|
var _super = _create_super$f(ClientAuthError);
|
|
924
924
|
function ClientAuthError(errorCode, additionalMessage) {
|
|
925
|
-
_class_call_check$
|
|
925
|
+
_class_call_check$H(this, ClientAuthError);
|
|
926
926
|
var _this;
|
|
927
927
|
_this = _super.call(this, errorCode, additionalMessage ? "".concat(ClientAuthErrorMessages[errorCode], ": ").concat(additionalMessage) : ClientAuthErrorMessages[errorCode]);
|
|
928
928
|
_this.name = "ClientAuthError";
|
|
@@ -1115,12 +1115,12 @@ function _ts_generator$m(thisArg, body) {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
};
|
|
1117
1117
|
|
|
1118
|
-
function _class_call_check$
|
|
1118
|
+
function _class_call_check$G(instance, Constructor) {
|
|
1119
1119
|
if (!(instance instanceof Constructor)) {
|
|
1120
1120
|
throw new TypeError("Cannot call a class as a function");
|
|
1121
1121
|
}
|
|
1122
1122
|
}
|
|
1123
|
-
function _defineProperties$
|
|
1123
|
+
function _defineProperties$B(target, props) {
|
|
1124
1124
|
for(var i = 0; i < props.length; i++){
|
|
1125
1125
|
var descriptor = props[i];
|
|
1126
1126
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1129,9 +1129,9 @@ function _defineProperties$A(target, props) {
|
|
|
1129
1129
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
|
-
function _create_class$
|
|
1133
|
-
if (protoProps) _defineProperties$
|
|
1134
|
-
if (staticProps) _defineProperties$
|
|
1132
|
+
function _create_class$B(Constructor, protoProps, staticProps) {
|
|
1133
|
+
if (protoProps) _defineProperties$B(Constructor.prototype, protoProps);
|
|
1134
|
+
if (staticProps) _defineProperties$B(Constructor, staticProps);
|
|
1135
1135
|
return Constructor;
|
|
1136
1136
|
}
|
|
1137
1137
|
/*
|
|
@@ -1151,7 +1151,7 @@ function _create_class$A(Constructor, protoProps, staticProps) {
|
|
|
1151
1151
|
* Class which facilitates logging of messages to a specific place.
|
|
1152
1152
|
*/ var Logger = /*#__PURE__*/ function() {
|
|
1153
1153
|
function Logger(loggerOptions, packageName, packageVersion) {
|
|
1154
|
-
_class_call_check$
|
|
1154
|
+
_class_call_check$G(this, Logger);
|
|
1155
1155
|
// Current log level, defaults to info.
|
|
1156
1156
|
this.level = LogLevel.Info;
|
|
1157
1157
|
var defaultLoggerCallback = function() {
|
|
@@ -1165,7 +1165,7 @@ function _create_class$A(Constructor, protoProps, staticProps) {
|
|
|
1165
1165
|
this.packageName = packageName || Constants$1.EMPTY_STRING;
|
|
1166
1166
|
this.packageVersion = packageVersion || Constants$1.EMPTY_STRING;
|
|
1167
1167
|
}
|
|
1168
|
-
_create_class$
|
|
1168
|
+
_create_class$B(Logger, [
|
|
1169
1169
|
{
|
|
1170
1170
|
/**
|
|
1171
1171
|
* Create new Logger with existing configurations.
|
|
@@ -1394,7 +1394,7 @@ function _assert_this_initialized$e(self) {
|
|
|
1394
1394
|
}
|
|
1395
1395
|
return self;
|
|
1396
1396
|
}
|
|
1397
|
-
function _class_call_check$
|
|
1397
|
+
function _class_call_check$F(instance, Constructor) {
|
|
1398
1398
|
if (!(instance instanceof Constructor)) {
|
|
1399
1399
|
throw new TypeError("Cannot call a class as a function");
|
|
1400
1400
|
}
|
|
@@ -1560,7 +1560,7 @@ var _obj$4;
|
|
|
1560
1560
|
_inherits$e(ClientConfigurationError, AuthError);
|
|
1561
1561
|
var _super = _create_super$e(ClientConfigurationError);
|
|
1562
1562
|
function ClientConfigurationError(errorCode) {
|
|
1563
|
-
_class_call_check$
|
|
1563
|
+
_class_call_check$F(this, ClientConfigurationError);
|
|
1564
1564
|
var _this;
|
|
1565
1565
|
_this = _super.call(this, errorCode, ClientConfigurationErrorMessages[errorCode]);
|
|
1566
1566
|
_this.name = "ClientConfigurationError";
|
|
@@ -1581,12 +1581,12 @@ function _array_like_to_array$a(arr, len) {
|
|
|
1581
1581
|
function _array_with_holes$4(arr) {
|
|
1582
1582
|
if (Array.isArray(arr)) return arr;
|
|
1583
1583
|
}
|
|
1584
|
-
function _class_call_check$
|
|
1584
|
+
function _class_call_check$E(instance, Constructor) {
|
|
1585
1585
|
if (!(instance instanceof Constructor)) {
|
|
1586
1586
|
throw new TypeError("Cannot call a class as a function");
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
function _defineProperties$
|
|
1589
|
+
function _defineProperties$A(target, props) {
|
|
1590
1590
|
for(var i = 0; i < props.length; i++){
|
|
1591
1591
|
var descriptor = props[i];
|
|
1592
1592
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1595,8 +1595,8 @@ function _defineProperties$z(target, props) {
|
|
|
1595
1595
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
|
-
function _create_class$
|
|
1599
|
-
if (staticProps) _defineProperties$
|
|
1598
|
+
function _create_class$A(Constructor, protoProps, staticProps) {
|
|
1599
|
+
if (staticProps) _defineProperties$A(Constructor, staticProps);
|
|
1600
1600
|
return Constructor;
|
|
1601
1601
|
}
|
|
1602
1602
|
function _iterable_to_array_limit$4(arr, i) {
|
|
@@ -1644,9 +1644,9 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
1644
1644
|
* @hidden
|
|
1645
1645
|
*/ var StringUtils = /*#__PURE__*/ function() {
|
|
1646
1646
|
function StringUtils() {
|
|
1647
|
-
_class_call_check$
|
|
1647
|
+
_class_call_check$E(this, StringUtils);
|
|
1648
1648
|
}
|
|
1649
|
-
_create_class$
|
|
1649
|
+
_create_class$A(StringUtils, null, [
|
|
1650
1650
|
{
|
|
1651
1651
|
key: "isEmptyObj",
|
|
1652
1652
|
value: /**
|
|
@@ -1800,12 +1800,12 @@ function _array_like_to_array$9(arr, len) {
|
|
|
1800
1800
|
function _array_without_holes$7(arr) {
|
|
1801
1801
|
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
1802
1802
|
}
|
|
1803
|
-
function _class_call_check$
|
|
1803
|
+
function _class_call_check$D(instance, Constructor) {
|
|
1804
1804
|
if (!(instance instanceof Constructor)) {
|
|
1805
1805
|
throw new TypeError("Cannot call a class as a function");
|
|
1806
1806
|
}
|
|
1807
1807
|
}
|
|
1808
|
-
function _defineProperties$
|
|
1808
|
+
function _defineProperties$z(target, props) {
|
|
1809
1809
|
for(var i = 0; i < props.length; i++){
|
|
1810
1810
|
var descriptor = props[i];
|
|
1811
1811
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1814,9 +1814,9 @@ function _defineProperties$y(target, props) {
|
|
|
1814
1814
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1815
1815
|
}
|
|
1816
1816
|
}
|
|
1817
|
-
function _create_class$
|
|
1818
|
-
if (protoProps) _defineProperties$
|
|
1819
|
-
if (staticProps) _defineProperties$
|
|
1817
|
+
function _create_class$z(Constructor, protoProps, staticProps) {
|
|
1818
|
+
if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
|
|
1819
|
+
if (staticProps) _defineProperties$z(Constructor, staticProps);
|
|
1820
1820
|
return Constructor;
|
|
1821
1821
|
}
|
|
1822
1822
|
function _iterable_to_array$7(iter) {
|
|
@@ -1846,7 +1846,7 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
1846
1846
|
*/ var ScopeSet = /*#__PURE__*/ function() {
|
|
1847
1847
|
function ScopeSet(inputScopes) {
|
|
1848
1848
|
var _this = this;
|
|
1849
|
-
_class_call_check$
|
|
1849
|
+
_class_call_check$D(this, ScopeSet);
|
|
1850
1850
|
// Filter empty string and null/undefined array items
|
|
1851
1851
|
var scopeArr = inputScopes ? StringUtils.trimArrayEntries(_to_consumable_array$7(inputScopes)) : [];
|
|
1852
1852
|
var filteredInput = scopeArr ? StringUtils.removeEmptyStringsFromArray(scopeArr) : [];
|
|
@@ -1859,7 +1859,7 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
1859
1859
|
return _this.scopes.add(scope);
|
|
1860
1860
|
});
|
|
1861
1861
|
}
|
|
1862
|
-
_create_class$
|
|
1862
|
+
_create_class$z(ScopeSet, [
|
|
1863
1863
|
{
|
|
1864
1864
|
/**
|
|
1865
1865
|
* Check if a given scope is present in this set of scopes.
|
|
@@ -2294,12 +2294,12 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
2294
2294
|
* Support is limited for this mode.
|
|
2295
2295
|
*/ OIDC: "OIDC"};
|
|
2296
2296
|
|
|
2297
|
-
function _class_call_check$
|
|
2297
|
+
function _class_call_check$C(instance, Constructor) {
|
|
2298
2298
|
if (!(instance instanceof Constructor)) {
|
|
2299
2299
|
throw new TypeError("Cannot call a class as a function");
|
|
2300
2300
|
}
|
|
2301
2301
|
}
|
|
2302
|
-
function _defineProperties$
|
|
2302
|
+
function _defineProperties$y(target, props) {
|
|
2303
2303
|
for(var i = 0; i < props.length; i++){
|
|
2304
2304
|
var descriptor = props[i];
|
|
2305
2305
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2308,9 +2308,9 @@ function _defineProperties$x(target, props) {
|
|
|
2308
2308
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2309
2309
|
}
|
|
2310
2310
|
}
|
|
2311
|
-
function _create_class$
|
|
2312
|
-
if (protoProps) _defineProperties$
|
|
2313
|
-
if (staticProps) _defineProperties$
|
|
2311
|
+
function _create_class$y(Constructor, protoProps, staticProps) {
|
|
2312
|
+
if (protoProps) _defineProperties$y(Constructor.prototype, protoProps);
|
|
2313
|
+
if (staticProps) _defineProperties$y(Constructor, staticProps);
|
|
2314
2314
|
return Constructor;
|
|
2315
2315
|
}
|
|
2316
2316
|
/*
|
|
@@ -2340,9 +2340,9 @@ function _create_class$x(Constructor, protoProps, staticProps) {
|
|
|
2340
2340
|
* @internal
|
|
2341
2341
|
*/ var AccountEntity = /*#__PURE__*/ function() {
|
|
2342
2342
|
function AccountEntity() {
|
|
2343
|
-
_class_call_check$
|
|
2343
|
+
_class_call_check$C(this, AccountEntity);
|
|
2344
2344
|
}
|
|
2345
|
-
_create_class$
|
|
2345
|
+
_create_class$y(AccountEntity, [
|
|
2346
2346
|
{
|
|
2347
2347
|
/**
|
|
2348
2348
|
* Returns true if the account entity is in single tenant format (outdated), false otherwise
|
|
@@ -2655,12 +2655,12 @@ function _create_class$x(Constructor, protoProps, staticProps) {
|
|
|
2655
2655
|
return queryParameterArray.join("&");
|
|
2656
2656
|
}
|
|
2657
2657
|
|
|
2658
|
-
function _class_call_check$
|
|
2658
|
+
function _class_call_check$B(instance, Constructor) {
|
|
2659
2659
|
if (!(instance instanceof Constructor)) {
|
|
2660
2660
|
throw new TypeError("Cannot call a class as a function");
|
|
2661
2661
|
}
|
|
2662
2662
|
}
|
|
2663
|
-
function _defineProperties$
|
|
2663
|
+
function _defineProperties$x(target, props) {
|
|
2664
2664
|
for(var i = 0; i < props.length; i++){
|
|
2665
2665
|
var descriptor = props[i];
|
|
2666
2666
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2669,9 +2669,9 @@ function _defineProperties$w(target, props) {
|
|
|
2669
2669
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2670
2670
|
}
|
|
2671
2671
|
}
|
|
2672
|
-
function _create_class$
|
|
2673
|
-
if (protoProps) _defineProperties$
|
|
2674
|
-
if (staticProps) _defineProperties$
|
|
2672
|
+
function _create_class$x(Constructor, protoProps, staticProps) {
|
|
2673
|
+
if (protoProps) _defineProperties$x(Constructor.prototype, protoProps);
|
|
2674
|
+
if (staticProps) _defineProperties$x(Constructor, staticProps);
|
|
2675
2675
|
return Constructor;
|
|
2676
2676
|
}
|
|
2677
2677
|
/*
|
|
@@ -2681,7 +2681,7 @@ function _create_class$w(Constructor, protoProps, staticProps) {
|
|
|
2681
2681
|
* Url object class which can perform various transformations on url strings.
|
|
2682
2682
|
*/ var UrlString = /*#__PURE__*/ function() {
|
|
2683
2683
|
function UrlString(url) {
|
|
2684
|
-
_class_call_check$
|
|
2684
|
+
_class_call_check$B(this, UrlString);
|
|
2685
2685
|
this._urlString = url;
|
|
2686
2686
|
if (!this._urlString) {
|
|
2687
2687
|
// Throws error if url is empty
|
|
@@ -2691,7 +2691,7 @@ function _create_class$w(Constructor, protoProps, staticProps) {
|
|
|
2691
2691
|
this._urlString = UrlString.canonicalizeUri(url);
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
|
-
_create_class$
|
|
2694
|
+
_create_class$x(UrlString, [
|
|
2695
2695
|
{
|
|
2696
2696
|
key: "urlString",
|
|
2697
2697
|
get: function get() {
|
|
@@ -3038,7 +3038,7 @@ function _assert_this_initialized$d(self) {
|
|
|
3038
3038
|
}
|
|
3039
3039
|
return self;
|
|
3040
3040
|
}
|
|
3041
|
-
function _class_call_check$
|
|
3041
|
+
function _class_call_check$A(instance, Constructor) {
|
|
3042
3042
|
if (!(instance instanceof Constructor)) {
|
|
3043
3043
|
throw new TypeError("Cannot call a class as a function");
|
|
3044
3044
|
}
|
|
@@ -3134,7 +3134,7 @@ var _obj$3;
|
|
|
3134
3134
|
_inherits$d(CacheError, AuthError);
|
|
3135
3135
|
var _super = _create_super$d(CacheError);
|
|
3136
3136
|
function CacheError(errorCode, errorMessage) {
|
|
3137
|
-
_class_call_check$
|
|
3137
|
+
_class_call_check$A(this, CacheError);
|
|
3138
3138
|
var _this;
|
|
3139
3139
|
var message = errorMessage || (CacheErrorMessages[errorCode] ? CacheErrorMessages[errorCode] : CacheErrorMessages[cacheErrorUnknown]);
|
|
3140
3140
|
_this = _super.call(this, "".concat(errorCode, ": ").concat(message));
|
|
@@ -3196,12 +3196,12 @@ function _async_to_generator$l(fn) {
|
|
|
3196
3196
|
});
|
|
3197
3197
|
};
|
|
3198
3198
|
}
|
|
3199
|
-
function _class_call_check$
|
|
3199
|
+
function _class_call_check$z(instance, Constructor) {
|
|
3200
3200
|
if (!(instance instanceof Constructor)) {
|
|
3201
3201
|
throw new TypeError("Cannot call a class as a function");
|
|
3202
3202
|
}
|
|
3203
3203
|
}
|
|
3204
|
-
function _defineProperties$
|
|
3204
|
+
function _defineProperties$w(target, props) {
|
|
3205
3205
|
for(var i = 0; i < props.length; i++){
|
|
3206
3206
|
var descriptor = props[i];
|
|
3207
3207
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3210,9 +3210,9 @@ function _defineProperties$v(target, props) {
|
|
|
3210
3210
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3211
3211
|
}
|
|
3212
3212
|
}
|
|
3213
|
-
function _create_class$
|
|
3214
|
-
if (protoProps) _defineProperties$
|
|
3215
|
-
if (staticProps) _defineProperties$
|
|
3213
|
+
function _create_class$w(Constructor, protoProps, staticProps) {
|
|
3214
|
+
if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
|
|
3215
|
+
if (staticProps) _defineProperties$w(Constructor, staticProps);
|
|
3216
3216
|
return Constructor;
|
|
3217
3217
|
}
|
|
3218
3218
|
function _define_property$h(obj, key, value) {
|
|
@@ -3413,14 +3413,14 @@ function _ts_generator$l(thisArg, body) {
|
|
|
3413
3413
|
* @internal
|
|
3414
3414
|
*/ var CacheManager = /*#__PURE__*/ function() {
|
|
3415
3415
|
function CacheManager(clientId, cryptoImpl, logger, performanceClient, staticAuthorityOptions) {
|
|
3416
|
-
_class_call_check$
|
|
3416
|
+
_class_call_check$z(this, CacheManager);
|
|
3417
3417
|
this.clientId = clientId;
|
|
3418
3418
|
this.cryptoImpl = cryptoImpl;
|
|
3419
3419
|
this.commonLogger = logger.clone(name$1, version$1);
|
|
3420
3420
|
this.staticAuthorityOptions = staticAuthorityOptions;
|
|
3421
3421
|
this.performanceClient = performanceClient;
|
|
3422
3422
|
}
|
|
3423
|
-
_create_class$
|
|
3423
|
+
_create_class$w(CacheManager, [
|
|
3424
3424
|
{
|
|
3425
3425
|
/**
|
|
3426
3426
|
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
@@ -4597,10 +4597,10 @@ function _ts_generator$l(thisArg, body) {
|
|
|
4597
4597
|
_inherits$c(DefaultStorageClass, CacheManager);
|
|
4598
4598
|
var _super = _create_super$c(DefaultStorageClass);
|
|
4599
4599
|
function DefaultStorageClass() {
|
|
4600
|
-
_class_call_check$
|
|
4600
|
+
_class_call_check$z(this, DefaultStorageClass);
|
|
4601
4601
|
return _super.apply(this, arguments);
|
|
4602
4602
|
}
|
|
4603
|
-
_create_class$
|
|
4603
|
+
_create_class$w(DefaultStorageClass, [
|
|
4604
4604
|
{
|
|
4605
4605
|
key: "setAccount",
|
|
4606
4606
|
value: function setAccount() {
|
|
@@ -4826,12 +4826,12 @@ function _ts_generator$l(thisArg, body) {
|
|
|
4826
4826
|
*/ var PerformanceEventStatus = {
|
|
4827
4827
|
InProgress: 1};
|
|
4828
4828
|
|
|
4829
|
-
function _class_call_check$
|
|
4829
|
+
function _class_call_check$y(instance, Constructor) {
|
|
4830
4830
|
if (!(instance instanceof Constructor)) {
|
|
4831
4831
|
throw new TypeError("Cannot call a class as a function");
|
|
4832
4832
|
}
|
|
4833
4833
|
}
|
|
4834
|
-
function _defineProperties$
|
|
4834
|
+
function _defineProperties$v(target, props) {
|
|
4835
4835
|
for(var i = 0; i < props.length; i++){
|
|
4836
4836
|
var descriptor = props[i];
|
|
4837
4837
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -4840,8 +4840,8 @@ function _defineProperties$u(target, props) {
|
|
|
4840
4840
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
4841
4841
|
}
|
|
4842
4842
|
}
|
|
4843
|
-
function _create_class$
|
|
4844
|
-
if (protoProps) _defineProperties$
|
|
4843
|
+
function _create_class$v(Constructor, protoProps, staticProps) {
|
|
4844
|
+
if (protoProps) _defineProperties$v(Constructor.prototype, protoProps);
|
|
4845
4845
|
return Constructor;
|
|
4846
4846
|
}
|
|
4847
4847
|
/*
|
|
@@ -4849,9 +4849,9 @@ function _create_class$u(Constructor, protoProps, staticProps) {
|
|
|
4849
4849
|
* Licensed under the MIT License.
|
|
4850
4850
|
*/ var StubPerformanceMeasurement = /*#__PURE__*/ function() {
|
|
4851
4851
|
function StubPerformanceMeasurement() {
|
|
4852
|
-
_class_call_check$
|
|
4852
|
+
_class_call_check$y(this, StubPerformanceMeasurement);
|
|
4853
4853
|
}
|
|
4854
|
-
_create_class$
|
|
4854
|
+
_create_class$v(StubPerformanceMeasurement, [
|
|
4855
4855
|
{
|
|
4856
4856
|
key: "startMeasurement",
|
|
4857
4857
|
value: function startMeasurement() {
|
|
@@ -4875,9 +4875,9 @@ function _create_class$u(Constructor, protoProps, staticProps) {
|
|
|
4875
4875
|
}();
|
|
4876
4876
|
var StubPerformanceClient = /*#__PURE__*/ function() {
|
|
4877
4877
|
function StubPerformanceClient() {
|
|
4878
|
-
_class_call_check$
|
|
4878
|
+
_class_call_check$y(this, StubPerformanceClient);
|
|
4879
4879
|
}
|
|
4880
|
-
_create_class$
|
|
4880
|
+
_create_class$v(StubPerformanceClient, [
|
|
4881
4881
|
{
|
|
4882
4882
|
key: "generateId",
|
|
4883
4883
|
value: function generateId() {
|
|
@@ -5954,12 +5954,12 @@ function _async_to_generator$j(fn) {
|
|
|
5954
5954
|
});
|
|
5955
5955
|
};
|
|
5956
5956
|
}
|
|
5957
|
-
function _class_call_check$
|
|
5957
|
+
function _class_call_check$x(instance, Constructor) {
|
|
5958
5958
|
if (!(instance instanceof Constructor)) {
|
|
5959
5959
|
throw new TypeError("Cannot call a class as a function");
|
|
5960
5960
|
}
|
|
5961
5961
|
}
|
|
5962
|
-
function _defineProperties$
|
|
5962
|
+
function _defineProperties$u(target, props) {
|
|
5963
5963
|
for(var i = 0; i < props.length; i++){
|
|
5964
5964
|
var descriptor = props[i];
|
|
5965
5965
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5968,8 +5968,8 @@ function _defineProperties$t(target, props) {
|
|
|
5968
5968
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5969
5969
|
}
|
|
5970
5970
|
}
|
|
5971
|
-
function _create_class$
|
|
5972
|
-
if (protoProps) _defineProperties$
|
|
5971
|
+
function _create_class$u(Constructor, protoProps, staticProps) {
|
|
5972
|
+
if (protoProps) _defineProperties$u(Constructor.prototype, protoProps);
|
|
5973
5973
|
return Constructor;
|
|
5974
5974
|
}
|
|
5975
5975
|
function _ts_generator$j(thisArg, body) {
|
|
@@ -6072,13 +6072,13 @@ function _ts_generator$j(thisArg, body) {
|
|
|
6072
6072
|
* Licensed under the MIT License.
|
|
6073
6073
|
*/ var RegionDiscovery = /*#__PURE__*/ function() {
|
|
6074
6074
|
function RegionDiscovery(networkInterface, logger, performanceClient, correlationId) {
|
|
6075
|
-
_class_call_check$
|
|
6075
|
+
_class_call_check$x(this, RegionDiscovery);
|
|
6076
6076
|
this.networkInterface = networkInterface;
|
|
6077
6077
|
this.logger = logger;
|
|
6078
6078
|
this.performanceClient = performanceClient;
|
|
6079
6079
|
this.correlationId = correlationId;
|
|
6080
6080
|
}
|
|
6081
|
-
_create_class$
|
|
6081
|
+
_create_class$u(RegionDiscovery, [
|
|
6082
6082
|
{
|
|
6083
6083
|
key: "detectRegion",
|
|
6084
6084
|
value: /**
|
|
@@ -6549,12 +6549,12 @@ function _async_to_generator$i(fn) {
|
|
|
6549
6549
|
});
|
|
6550
6550
|
};
|
|
6551
6551
|
}
|
|
6552
|
-
function _class_call_check$
|
|
6552
|
+
function _class_call_check$w(instance, Constructor) {
|
|
6553
6553
|
if (!(instance instanceof Constructor)) {
|
|
6554
6554
|
throw new TypeError("Cannot call a class as a function");
|
|
6555
6555
|
}
|
|
6556
6556
|
}
|
|
6557
|
-
function _defineProperties$
|
|
6557
|
+
function _defineProperties$t(target, props) {
|
|
6558
6558
|
for(var i = 0; i < props.length; i++){
|
|
6559
6559
|
var descriptor = props[i];
|
|
6560
6560
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6563,9 +6563,9 @@ function _defineProperties$s(target, props) {
|
|
|
6563
6563
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6564
6564
|
}
|
|
6565
6565
|
}
|
|
6566
|
-
function _create_class$
|
|
6567
|
-
if (protoProps) _defineProperties$
|
|
6568
|
-
if (staticProps) _defineProperties$
|
|
6566
|
+
function _create_class$t(Constructor, protoProps, staticProps) {
|
|
6567
|
+
if (protoProps) _defineProperties$t(Constructor.prototype, protoProps);
|
|
6568
|
+
if (staticProps) _defineProperties$t(Constructor, staticProps);
|
|
6569
6569
|
return Constructor;
|
|
6570
6570
|
}
|
|
6571
6571
|
function _define_property$e(obj, key, value) {
|
|
@@ -6726,7 +6726,7 @@ function _ts_generator$i(thisArg, body) {
|
|
|
6726
6726
|
* @internal
|
|
6727
6727
|
*/ var Authority = /*#__PURE__*/ function() {
|
|
6728
6728
|
function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, correlationId, performanceClient, managedIdentity) {
|
|
6729
|
-
_class_call_check$
|
|
6729
|
+
_class_call_check$w(this, Authority);
|
|
6730
6730
|
this.canonicalAuthority = authority;
|
|
6731
6731
|
this._canonicalAuthority.validateAsUri();
|
|
6732
6732
|
this.networkInterface = networkInterface;
|
|
@@ -6743,7 +6743,7 @@ function _ts_generator$i(thisArg, body) {
|
|
|
6743
6743
|
this.managedIdentity = managedIdentity || false;
|
|
6744
6744
|
this.regionDiscovery = new RegionDiscovery(networkInterface, this.logger, this.performanceClient, this.correlationId);
|
|
6745
6745
|
}
|
|
6746
|
-
_create_class$
|
|
6746
|
+
_create_class$t(Authority, [
|
|
6747
6747
|
{
|
|
6748
6748
|
/**
|
|
6749
6749
|
* Get {@link AuthorityType}
|
|
@@ -7950,7 +7950,7 @@ function _assert_this_initialized$b(self) {
|
|
|
7950
7950
|
}
|
|
7951
7951
|
return self;
|
|
7952
7952
|
}
|
|
7953
|
-
function _class_call_check$
|
|
7953
|
+
function _class_call_check$v(instance, Constructor) {
|
|
7954
7954
|
if (!(instance instanceof Constructor)) {
|
|
7955
7955
|
throw new TypeError("Cannot call a class as a function");
|
|
7956
7956
|
}
|
|
@@ -8024,7 +8024,7 @@ function _create_super$b(Derived) {
|
|
|
8024
8024
|
_inherits$b(ServerError, AuthError);
|
|
8025
8025
|
var _super = _create_super$b(ServerError);
|
|
8026
8026
|
function ServerError(errorCode, errorMessage, subError, errorNo, status) {
|
|
8027
|
-
_class_call_check$
|
|
8027
|
+
_class_call_check$v(this, ServerError);
|
|
8028
8028
|
var _this;
|
|
8029
8029
|
_this = _super.call(this, errorCode, errorMessage, subError);
|
|
8030
8030
|
_this.name = "ServerError";
|
|
@@ -8056,12 +8056,12 @@ function _create_super$b(Derived) {
|
|
|
8056
8056
|
};
|
|
8057
8057
|
}
|
|
8058
8058
|
|
|
8059
|
-
function _class_call_check$
|
|
8059
|
+
function _class_call_check$u(instance, Constructor) {
|
|
8060
8060
|
if (!(instance instanceof Constructor)) {
|
|
8061
8061
|
throw new TypeError("Cannot call a class as a function");
|
|
8062
8062
|
}
|
|
8063
8063
|
}
|
|
8064
|
-
function _defineProperties$
|
|
8064
|
+
function _defineProperties$s(target, props) {
|
|
8065
8065
|
for(var i = 0; i < props.length; i++){
|
|
8066
8066
|
var descriptor = props[i];
|
|
8067
8067
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8070,8 +8070,8 @@ function _defineProperties$r(target, props) {
|
|
|
8070
8070
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8071
8071
|
}
|
|
8072
8072
|
}
|
|
8073
|
-
function _create_class$
|
|
8074
|
-
if (staticProps) _defineProperties$
|
|
8073
|
+
function _create_class$s(Constructor, protoProps, staticProps) {
|
|
8074
|
+
if (staticProps) _defineProperties$s(Constructor, staticProps);
|
|
8075
8075
|
return Constructor;
|
|
8076
8076
|
}
|
|
8077
8077
|
/*
|
|
@@ -8079,9 +8079,9 @@ function _create_class$r(Constructor, protoProps, staticProps) {
|
|
|
8079
8079
|
* Licensed under the MIT License.
|
|
8080
8080
|
*/ /** @internal */ var ThrottlingUtils = /*#__PURE__*/ function() {
|
|
8081
8081
|
function ThrottlingUtils() {
|
|
8082
|
-
_class_call_check$
|
|
8082
|
+
_class_call_check$u(this, ThrottlingUtils);
|
|
8083
8083
|
}
|
|
8084
|
-
_create_class$
|
|
8084
|
+
_create_class$s(ThrottlingUtils, null, [
|
|
8085
8085
|
{
|
|
8086
8086
|
key: "generateThrottlingStorageKey",
|
|
8087
8087
|
value: /**
|
|
@@ -8180,7 +8180,7 @@ function _assert_this_initialized$a(self) {
|
|
|
8180
8180
|
}
|
|
8181
8181
|
return self;
|
|
8182
8182
|
}
|
|
8183
|
-
function _class_call_check$
|
|
8183
|
+
function _class_call_check$t(instance, Constructor) {
|
|
8184
8184
|
if (!(instance instanceof Constructor)) {
|
|
8185
8185
|
throw new TypeError("Cannot call a class as a function");
|
|
8186
8186
|
}
|
|
@@ -8254,7 +8254,7 @@ function _create_super$a(Derived) {
|
|
|
8254
8254
|
_inherits$a(NetworkError, AuthError);
|
|
8255
8255
|
var _super = _create_super$a(NetworkError);
|
|
8256
8256
|
function NetworkError(error, httpStatus, responseHeaders) {
|
|
8257
|
-
_class_call_check$
|
|
8257
|
+
_class_call_check$t(this, NetworkError);
|
|
8258
8258
|
var _this;
|
|
8259
8259
|
_this = _super.call(this, error.errorCode, error.errorMessage, error.subError);
|
|
8260
8260
|
Object.setPrototypeOf(_assert_this_initialized$a(_this), NetworkError.prototype);
|
|
@@ -8296,12 +8296,12 @@ function _async_to_generator$g(fn) {
|
|
|
8296
8296
|
});
|
|
8297
8297
|
};
|
|
8298
8298
|
}
|
|
8299
|
-
function _class_call_check$
|
|
8299
|
+
function _class_call_check$s(instance, Constructor) {
|
|
8300
8300
|
if (!(instance instanceof Constructor)) {
|
|
8301
8301
|
throw new TypeError("Cannot call a class as a function");
|
|
8302
8302
|
}
|
|
8303
8303
|
}
|
|
8304
|
-
function _defineProperties$
|
|
8304
|
+
function _defineProperties$r(target, props) {
|
|
8305
8305
|
for(var i = 0; i < props.length; i++){
|
|
8306
8306
|
var descriptor = props[i];
|
|
8307
8307
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8310,8 +8310,8 @@ function _defineProperties$q(target, props) {
|
|
|
8310
8310
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8311
8311
|
}
|
|
8312
8312
|
}
|
|
8313
|
-
function _create_class$
|
|
8314
|
-
if (protoProps) _defineProperties$
|
|
8313
|
+
function _create_class$r(Constructor, protoProps, staticProps) {
|
|
8314
|
+
if (protoProps) _defineProperties$r(Constructor.prototype, protoProps);
|
|
8315
8315
|
return Constructor;
|
|
8316
8316
|
}
|
|
8317
8317
|
function _instanceof$c(left, right) {
|
|
@@ -8424,7 +8424,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
8424
8424
|
* @internal
|
|
8425
8425
|
*/ var BaseClient = /*#__PURE__*/ function() {
|
|
8426
8426
|
function BaseClient(configuration, performanceClient) {
|
|
8427
|
-
_class_call_check$
|
|
8427
|
+
_class_call_check$s(this, BaseClient);
|
|
8428
8428
|
// Set the configuration
|
|
8429
8429
|
this.config = buildClientConfiguration(configuration);
|
|
8430
8430
|
// Initialize the logger
|
|
@@ -8442,7 +8442,7 @@ function _ts_generator$g(thisArg, body) {
|
|
|
8442
8442
|
// set performance telemetry client
|
|
8443
8443
|
this.performanceClient = performanceClient;
|
|
8444
8444
|
}
|
|
8445
|
-
_create_class$
|
|
8445
|
+
_create_class$r(BaseClient, [
|
|
8446
8446
|
{
|
|
8447
8447
|
/**
|
|
8448
8448
|
* Creates default headers for requests to token endpoint
|
|
@@ -8676,7 +8676,7 @@ function _assert_this_initialized$9(self) {
|
|
|
8676
8676
|
}
|
|
8677
8677
|
return self;
|
|
8678
8678
|
}
|
|
8679
|
-
function _class_call_check$
|
|
8679
|
+
function _class_call_check$r(instance, Constructor) {
|
|
8680
8680
|
if (!(instance instanceof Constructor)) {
|
|
8681
8681
|
throw new TypeError("Cannot call a class as a function");
|
|
8682
8682
|
}
|
|
@@ -8801,7 +8801,7 @@ var InteractionRequiredAuthErrorMessages = (_obj$2 = {}, _define_property$d(_obj
|
|
|
8801
8801
|
_inherits$9(InteractionRequiredAuthError, AuthError);
|
|
8802
8802
|
var _super = _create_super$9(InteractionRequiredAuthError);
|
|
8803
8803
|
function InteractionRequiredAuthError(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims, errorNo) {
|
|
8804
|
-
_class_call_check$
|
|
8804
|
+
_class_call_check$r(this, InteractionRequiredAuthError);
|
|
8805
8805
|
var _this;
|
|
8806
8806
|
_this = _super.call(this, errorCode, errorMessage, subError);
|
|
8807
8807
|
Object.setPrototypeOf(_assert_this_initialized$9(_this), InteractionRequiredAuthError.prototype);
|
|
@@ -8834,12 +8834,12 @@ var InteractionRequiredAuthErrorMessages = (_obj$2 = {}, _define_property$d(_obj
|
|
|
8834
8834
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
8835
8835
|
}
|
|
8836
8836
|
|
|
8837
|
-
function _class_call_check$
|
|
8837
|
+
function _class_call_check$q(instance, Constructor) {
|
|
8838
8838
|
if (!(instance instanceof Constructor)) {
|
|
8839
8839
|
throw new TypeError("Cannot call a class as a function");
|
|
8840
8840
|
}
|
|
8841
8841
|
}
|
|
8842
|
-
function _defineProperties$
|
|
8842
|
+
function _defineProperties$q(target, props) {
|
|
8843
8843
|
for(var i = 0; i < props.length; i++){
|
|
8844
8844
|
var descriptor = props[i];
|
|
8845
8845
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8848,8 +8848,8 @@ function _defineProperties$p(target, props) {
|
|
|
8848
8848
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8849
8849
|
}
|
|
8850
8850
|
}
|
|
8851
|
-
function _create_class$
|
|
8852
|
-
if (staticProps) _defineProperties$
|
|
8851
|
+
function _create_class$q(Constructor, protoProps, staticProps) {
|
|
8852
|
+
if (staticProps) _defineProperties$q(Constructor, staticProps);
|
|
8853
8853
|
return Constructor;
|
|
8854
8854
|
}
|
|
8855
8855
|
/*
|
|
@@ -8859,9 +8859,9 @@ function _create_class$p(Constructor, protoProps, staticProps) {
|
|
|
8859
8859
|
* Class which provides helpers for OAuth 2.0 protocol specific values
|
|
8860
8860
|
*/ var ProtocolUtils = /*#__PURE__*/ function() {
|
|
8861
8861
|
function ProtocolUtils() {
|
|
8862
|
-
_class_call_check$
|
|
8862
|
+
_class_call_check$q(this, ProtocolUtils);
|
|
8863
8863
|
}
|
|
8864
|
-
_create_class$
|
|
8864
|
+
_create_class$q(ProtocolUtils, null, [
|
|
8865
8865
|
{
|
|
8866
8866
|
key: "setRequestState",
|
|
8867
8867
|
value: /**
|
|
@@ -8956,12 +8956,12 @@ function _async_to_generator$f(fn) {
|
|
|
8956
8956
|
});
|
|
8957
8957
|
};
|
|
8958
8958
|
}
|
|
8959
|
-
function _class_call_check$
|
|
8959
|
+
function _class_call_check$p(instance, Constructor) {
|
|
8960
8960
|
if (!(instance instanceof Constructor)) {
|
|
8961
8961
|
throw new TypeError("Cannot call a class as a function");
|
|
8962
8962
|
}
|
|
8963
8963
|
}
|
|
8964
|
-
function _defineProperties$
|
|
8964
|
+
function _defineProperties$p(target, props) {
|
|
8965
8965
|
for(var i = 0; i < props.length; i++){
|
|
8966
8966
|
var descriptor = props[i];
|
|
8967
8967
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8970,8 +8970,8 @@ function _defineProperties$o(target, props) {
|
|
|
8970
8970
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8971
8971
|
}
|
|
8972
8972
|
}
|
|
8973
|
-
function _create_class$
|
|
8974
|
-
if (protoProps) _defineProperties$
|
|
8973
|
+
function _create_class$p(Constructor, protoProps, staticProps) {
|
|
8974
|
+
if (protoProps) _defineProperties$p(Constructor.prototype, protoProps);
|
|
8975
8975
|
return Constructor;
|
|
8976
8976
|
}
|
|
8977
8977
|
function _define_property$c(obj, key, value) {
|
|
@@ -9105,11 +9105,11 @@ function _ts_generator$f(thisArg, body) {
|
|
|
9105
9105
|
};
|
|
9106
9106
|
/** @internal */ var PopTokenGenerator = /*#__PURE__*/ function() {
|
|
9107
9107
|
function PopTokenGenerator(cryptoUtils, performanceClient) {
|
|
9108
|
-
_class_call_check$
|
|
9108
|
+
_class_call_check$p(this, PopTokenGenerator);
|
|
9109
9109
|
this.cryptoUtils = cryptoUtils;
|
|
9110
9110
|
this.performanceClient = performanceClient;
|
|
9111
9111
|
}
|
|
9112
|
-
_create_class$
|
|
9112
|
+
_create_class$p(PopTokenGenerator, [
|
|
9113
9113
|
{
|
|
9114
9114
|
key: "generateCnf",
|
|
9115
9115
|
value: /**
|
|
@@ -9237,12 +9237,12 @@ function _ts_generator$f(thisArg, body) {
|
|
|
9237
9237
|
return PopTokenGenerator;
|
|
9238
9238
|
}();
|
|
9239
9239
|
|
|
9240
|
-
function _class_call_check$
|
|
9240
|
+
function _class_call_check$o(instance, Constructor) {
|
|
9241
9241
|
if (!(instance instanceof Constructor)) {
|
|
9242
9242
|
throw new TypeError("Cannot call a class as a function");
|
|
9243
9243
|
}
|
|
9244
9244
|
}
|
|
9245
|
-
function _defineProperties$
|
|
9245
|
+
function _defineProperties$o(target, props) {
|
|
9246
9246
|
for(var i = 0; i < props.length; i++){
|
|
9247
9247
|
var descriptor = props[i];
|
|
9248
9248
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9251,8 +9251,8 @@ function _defineProperties$n(target, props) {
|
|
|
9251
9251
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9252
9252
|
}
|
|
9253
9253
|
}
|
|
9254
|
-
function _create_class$
|
|
9255
|
-
if (protoProps) _defineProperties$
|
|
9254
|
+
function _create_class$o(Constructor, protoProps, staticProps) {
|
|
9255
|
+
if (protoProps) _defineProperties$o(Constructor.prototype, protoProps);
|
|
9256
9256
|
return Constructor;
|
|
9257
9257
|
}
|
|
9258
9258
|
/*
|
|
@@ -9263,11 +9263,11 @@ function _create_class$n(Constructor, protoProps, staticProps) {
|
|
|
9263
9263
|
* decisions to read from and write to the persistent cache
|
|
9264
9264
|
*/ var TokenCacheContext = /*#__PURE__*/ function() {
|
|
9265
9265
|
function TokenCacheContext(tokenCache, hasChanged) {
|
|
9266
|
-
_class_call_check$
|
|
9266
|
+
_class_call_check$o(this, TokenCacheContext);
|
|
9267
9267
|
this.cache = tokenCache;
|
|
9268
9268
|
this.hasChanged = hasChanged;
|
|
9269
9269
|
}
|
|
9270
|
-
_create_class$
|
|
9270
|
+
_create_class$o(TokenCacheContext, [
|
|
9271
9271
|
{
|
|
9272
9272
|
key: "cacheHasChanged",
|
|
9273
9273
|
get: /**
|
|
@@ -9317,12 +9317,12 @@ function _async_to_generator$e(fn) {
|
|
|
9317
9317
|
});
|
|
9318
9318
|
};
|
|
9319
9319
|
}
|
|
9320
|
-
function _class_call_check$
|
|
9320
|
+
function _class_call_check$n(instance, Constructor) {
|
|
9321
9321
|
if (!(instance instanceof Constructor)) {
|
|
9322
9322
|
throw new TypeError("Cannot call a class as a function");
|
|
9323
9323
|
}
|
|
9324
9324
|
}
|
|
9325
|
-
function _defineProperties$
|
|
9325
|
+
function _defineProperties$n(target, props) {
|
|
9326
9326
|
for(var i = 0; i < props.length; i++){
|
|
9327
9327
|
var descriptor = props[i];
|
|
9328
9328
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9331,9 +9331,9 @@ function _defineProperties$m(target, props) {
|
|
|
9331
9331
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9332
9332
|
}
|
|
9333
9333
|
}
|
|
9334
|
-
function _create_class$
|
|
9335
|
-
if (protoProps) _defineProperties$
|
|
9336
|
-
if (staticProps) _defineProperties$
|
|
9334
|
+
function _create_class$n(Constructor, protoProps, staticProps) {
|
|
9335
|
+
if (protoProps) _defineProperties$n(Constructor.prototype, protoProps);
|
|
9336
|
+
if (staticProps) _defineProperties$n(Constructor, staticProps);
|
|
9337
9337
|
return Constructor;
|
|
9338
9338
|
}
|
|
9339
9339
|
function _ts_generator$e(thisArg, body) {
|
|
@@ -9439,7 +9439,7 @@ function _ts_generator$e(thisArg, body) {
|
|
|
9439
9439
|
* @internal
|
|
9440
9440
|
*/ var ResponseHandler = /*#__PURE__*/ function() {
|
|
9441
9441
|
function ResponseHandler(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {
|
|
9442
|
-
_class_call_check$
|
|
9442
|
+
_class_call_check$n(this, ResponseHandler);
|
|
9443
9443
|
this.clientId = clientId;
|
|
9444
9444
|
this.cacheStorage = cacheStorage;
|
|
9445
9445
|
this.cryptoObj = cryptoObj;
|
|
@@ -9448,7 +9448,7 @@ function _ts_generator$e(thisArg, body) {
|
|
|
9448
9448
|
this.persistencePlugin = persistencePlugin;
|
|
9449
9449
|
this.performanceClient = performanceClient;
|
|
9450
9450
|
}
|
|
9451
|
-
_create_class$
|
|
9451
|
+
_create_class$n(ResponseHandler, [
|
|
9452
9452
|
{
|
|
9453
9453
|
/**
|
|
9454
9454
|
* Function which validates server authorization token response.
|
|
@@ -9996,12 +9996,12 @@ function _async_to_generator$c(fn) {
|
|
|
9996
9996
|
});
|
|
9997
9997
|
};
|
|
9998
9998
|
}
|
|
9999
|
-
function _class_call_check$
|
|
9999
|
+
function _class_call_check$m(instance, Constructor) {
|
|
10000
10000
|
if (!(instance instanceof Constructor)) {
|
|
10001
10001
|
throw new TypeError("Cannot call a class as a function");
|
|
10002
10002
|
}
|
|
10003
10003
|
}
|
|
10004
|
-
function _defineProperties$
|
|
10004
|
+
function _defineProperties$m(target, props) {
|
|
10005
10005
|
for(var i = 0; i < props.length; i++){
|
|
10006
10006
|
var descriptor = props[i];
|
|
10007
10007
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10010,8 +10010,8 @@ function _defineProperties$l(target, props) {
|
|
|
10010
10010
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10011
10011
|
}
|
|
10012
10012
|
}
|
|
10013
|
-
function _create_class$
|
|
10014
|
-
if (protoProps) _defineProperties$
|
|
10013
|
+
function _create_class$m(Constructor, protoProps, staticProps) {
|
|
10014
|
+
if (protoProps) _defineProperties$m(Constructor.prototype, protoProps);
|
|
10015
10015
|
return Constructor;
|
|
10016
10016
|
}
|
|
10017
10017
|
function _define_property$b(obj, key, value) {
|
|
@@ -10192,7 +10192,7 @@ function _ts_generator$c(thisArg, body) {
|
|
|
10192
10192
|
_inherits$8(AuthorizationCodeClient, BaseClient);
|
|
10193
10193
|
var _super = _create_super$8(AuthorizationCodeClient);
|
|
10194
10194
|
function AuthorizationCodeClient(configuration, performanceClient) {
|
|
10195
|
-
_class_call_check$
|
|
10195
|
+
_class_call_check$m(this, AuthorizationCodeClient);
|
|
10196
10196
|
var _this;
|
|
10197
10197
|
var _this_config_authOptions_authority_options_OIDCOptions;
|
|
10198
10198
|
_this = _super.call(this, configuration, performanceClient);
|
|
@@ -10201,7 +10201,7 @@ function _ts_generator$c(thisArg, body) {
|
|
|
10201
10201
|
_this.oidcDefaultScopes = (_this_config_authOptions_authority_options_OIDCOptions = _this.config.authOptions.authority.options.OIDCOptions) === null || _this_config_authOptions_authority_options_OIDCOptions === void 0 ? void 0 : _this_config_authOptions_authority_options_OIDCOptions.defaultScopes;
|
|
10202
10202
|
return _this;
|
|
10203
10203
|
}
|
|
10204
|
-
_create_class$
|
|
10204
|
+
_create_class$m(AuthorizationCodeClient, [
|
|
10205
10205
|
{
|
|
10206
10206
|
key: "acquireToken",
|
|
10207
10207
|
value: /**
|
|
@@ -10533,12 +10533,12 @@ function _async_to_generator$b(fn) {
|
|
|
10533
10533
|
});
|
|
10534
10534
|
};
|
|
10535
10535
|
}
|
|
10536
|
-
function _class_call_check$
|
|
10536
|
+
function _class_call_check$l(instance, Constructor) {
|
|
10537
10537
|
if (!(instance instanceof Constructor)) {
|
|
10538
10538
|
throw new TypeError("Cannot call a class as a function");
|
|
10539
10539
|
}
|
|
10540
10540
|
}
|
|
10541
|
-
function _defineProperties$
|
|
10541
|
+
function _defineProperties$l(target, props) {
|
|
10542
10542
|
for(var i = 0; i < props.length; i++){
|
|
10543
10543
|
var descriptor = props[i];
|
|
10544
10544
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10547,8 +10547,8 @@ function _defineProperties$k(target, props) {
|
|
|
10547
10547
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10548
10548
|
}
|
|
10549
10549
|
}
|
|
10550
|
-
function _create_class$
|
|
10551
|
-
if (protoProps) _defineProperties$
|
|
10550
|
+
function _create_class$l(Constructor, protoProps, staticProps) {
|
|
10551
|
+
if (protoProps) _defineProperties$l(Constructor.prototype, protoProps);
|
|
10552
10552
|
return Constructor;
|
|
10553
10553
|
}
|
|
10554
10554
|
function _define_property$a(obj, key, value) {
|
|
@@ -10771,10 +10771,10 @@ function _ts_generator$b(thisArg, body) {
|
|
|
10771
10771
|
_inherits$7(RefreshTokenClient, BaseClient);
|
|
10772
10772
|
var _super = _create_super$7(RefreshTokenClient);
|
|
10773
10773
|
function RefreshTokenClient(configuration, performanceClient) {
|
|
10774
|
-
_class_call_check$
|
|
10774
|
+
_class_call_check$l(this, RefreshTokenClient);
|
|
10775
10775
|
return _super.call(this, configuration, performanceClient);
|
|
10776
10776
|
}
|
|
10777
|
-
_create_class$
|
|
10777
|
+
_create_class$l(RefreshTokenClient, [
|
|
10778
10778
|
{
|
|
10779
10779
|
key: "acquireToken",
|
|
10780
10780
|
value: function acquireToken(request, apiId) {
|
|
@@ -11145,12 +11145,12 @@ function _async_to_generator$a(fn) {
|
|
|
11145
11145
|
});
|
|
11146
11146
|
};
|
|
11147
11147
|
}
|
|
11148
|
-
function _class_call_check$
|
|
11148
|
+
function _class_call_check$k(instance, Constructor) {
|
|
11149
11149
|
if (!(instance instanceof Constructor)) {
|
|
11150
11150
|
throw new TypeError("Cannot call a class as a function");
|
|
11151
11151
|
}
|
|
11152
11152
|
}
|
|
11153
|
-
function _defineProperties$
|
|
11153
|
+
function _defineProperties$k(target, props) {
|
|
11154
11154
|
for(var i = 0; i < props.length; i++){
|
|
11155
11155
|
var descriptor = props[i];
|
|
11156
11156
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11159,8 +11159,8 @@ function _defineProperties$j(target, props) {
|
|
|
11159
11159
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11160
11160
|
}
|
|
11161
11161
|
}
|
|
11162
|
-
function _create_class$
|
|
11163
|
-
if (protoProps) _defineProperties$
|
|
11162
|
+
function _create_class$k(Constructor, protoProps, staticProps) {
|
|
11163
|
+
if (protoProps) _defineProperties$k(Constructor.prototype, protoProps);
|
|
11164
11164
|
return Constructor;
|
|
11165
11165
|
}
|
|
11166
11166
|
function _get_prototype_of$6(o) {
|
|
@@ -11325,10 +11325,10 @@ function _ts_generator$a(thisArg, body) {
|
|
|
11325
11325
|
_inherits$6(SilentFlowClient, BaseClient);
|
|
11326
11326
|
var _super = _create_super$6(SilentFlowClient);
|
|
11327
11327
|
function SilentFlowClient(configuration, performanceClient) {
|
|
11328
|
-
_class_call_check$
|
|
11328
|
+
_class_call_check$k(this, SilentFlowClient);
|
|
11329
11329
|
return _super.call(this, configuration, performanceClient);
|
|
11330
11330
|
}
|
|
11331
|
-
_create_class$
|
|
11331
|
+
_create_class$k(SilentFlowClient, [
|
|
11332
11332
|
{
|
|
11333
11333
|
key: "acquireCachedToken",
|
|
11334
11334
|
value: /**
|
|
@@ -11601,12 +11601,12 @@ function extractLoginHint(account) {
|
|
|
11601
11601
|
return account.loginHint || ((_account_idTokenClaims = account.idTokenClaims) === null || _account_idTokenClaims === void 0 ? void 0 : _account_idTokenClaims.login_hint) || null;
|
|
11602
11602
|
}
|
|
11603
11603
|
|
|
11604
|
-
function _class_call_check$
|
|
11604
|
+
function _class_call_check$j(instance, Constructor) {
|
|
11605
11605
|
if (!(instance instanceof Constructor)) {
|
|
11606
11606
|
throw new TypeError("Cannot call a class as a function");
|
|
11607
11607
|
}
|
|
11608
11608
|
}
|
|
11609
|
-
function _defineProperties$
|
|
11609
|
+
function _defineProperties$j(target, props) {
|
|
11610
11610
|
for(var i = 0; i < props.length; i++){
|
|
11611
11611
|
var descriptor = props[i];
|
|
11612
11612
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11615,9 +11615,9 @@ function _defineProperties$i(target, props) {
|
|
|
11615
11615
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11616
11616
|
}
|
|
11617
11617
|
}
|
|
11618
|
-
function _create_class$
|
|
11619
|
-
if (protoProps) _defineProperties$
|
|
11620
|
-
if (staticProps) _defineProperties$
|
|
11618
|
+
function _create_class$j(Constructor, protoProps, staticProps) {
|
|
11619
|
+
if (protoProps) _defineProperties$j(Constructor.prototype, protoProps);
|
|
11620
|
+
if (staticProps) _defineProperties$j(Constructor, staticProps);
|
|
11621
11621
|
return Constructor;
|
|
11622
11622
|
}
|
|
11623
11623
|
function _instanceof$a(left, right) {
|
|
@@ -11689,7 +11689,7 @@ function setSku(params) {
|
|
|
11689
11689
|
}
|
|
11690
11690
|
/** @internal */ var ServerTelemetryManager = /*#__PURE__*/ function() {
|
|
11691
11691
|
function ServerTelemetryManager(telemetryRequest, cacheManager) {
|
|
11692
|
-
_class_call_check$
|
|
11692
|
+
_class_call_check$j(this, ServerTelemetryManager);
|
|
11693
11693
|
this.cacheOutcome = CacheOutcome.NOT_APPLICABLE;
|
|
11694
11694
|
this.cacheManager = cacheManager;
|
|
11695
11695
|
this.apiId = telemetryRequest.apiId;
|
|
@@ -11698,7 +11698,7 @@ function setSku(params) {
|
|
|
11698
11698
|
this.wrapperVer = telemetryRequest.wrapperVer || Constants$1.EMPTY_STRING;
|
|
11699
11699
|
this.telemetryCacheKey = SERVER_TELEM_CONSTANTS.CACHE_KEY + Separators.CACHE_KEY_SEPARATOR + telemetryRequest.clientId;
|
|
11700
11700
|
}
|
|
11701
|
-
_create_class$
|
|
11701
|
+
_create_class$j(ServerTelemetryManager, [
|
|
11702
11702
|
{
|
|
11703
11703
|
/**
|
|
11704
11704
|
* API to add MSER Telemetry to request
|
|
@@ -11926,12 +11926,12 @@ function setSku(params) {
|
|
|
11926
11926
|
return ServerTelemetryManager;
|
|
11927
11927
|
}();
|
|
11928
11928
|
|
|
11929
|
-
function _class_call_check$
|
|
11929
|
+
function _class_call_check$i(instance, Constructor) {
|
|
11930
11930
|
if (!(instance instanceof Constructor)) {
|
|
11931
11931
|
throw new TypeError("Cannot call a class as a function");
|
|
11932
11932
|
}
|
|
11933
11933
|
}
|
|
11934
|
-
function _defineProperties$
|
|
11934
|
+
function _defineProperties$i(target, props) {
|
|
11935
11935
|
for(var i = 0; i < props.length; i++){
|
|
11936
11936
|
var descriptor = props[i];
|
|
11937
11937
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11940,8 +11940,8 @@ function _defineProperties$h(target, props) {
|
|
|
11940
11940
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11941
11941
|
}
|
|
11942
11942
|
}
|
|
11943
|
-
function _create_class$
|
|
11944
|
-
if (staticProps) _defineProperties$
|
|
11943
|
+
function _create_class$i(Constructor, protoProps, staticProps) {
|
|
11944
|
+
if (staticProps) _defineProperties$i(Constructor, staticProps);
|
|
11945
11945
|
return Constructor;
|
|
11946
11946
|
}
|
|
11947
11947
|
/*
|
|
@@ -11952,9 +11952,9 @@ function _create_class$h(Constructor, protoProps, staticProps) {
|
|
|
11952
11952
|
* @internal
|
|
11953
11953
|
*/ var Deserializer = /*#__PURE__*/ function() {
|
|
11954
11954
|
function Deserializer() {
|
|
11955
|
-
_class_call_check$
|
|
11955
|
+
_class_call_check$i(this, Deserializer);
|
|
11956
11956
|
}
|
|
11957
|
-
_create_class$
|
|
11957
|
+
_create_class$i(Deserializer, null, [
|
|
11958
11958
|
{
|
|
11959
11959
|
key: "deserializeJSONBlob",
|
|
11960
11960
|
value: /**
|
|
@@ -12202,12 +12202,12 @@ var MSAL_FORCE_REGION = "MSAL_FORCE_REGION";
|
|
|
12202
12202
|
JWT_ID: "jti"
|
|
12203
12203
|
};
|
|
12204
12204
|
|
|
12205
|
-
function _class_call_check$
|
|
12205
|
+
function _class_call_check$h(instance, Constructor) {
|
|
12206
12206
|
if (!(instance instanceof Constructor)) {
|
|
12207
12207
|
throw new TypeError("Cannot call a class as a function");
|
|
12208
12208
|
}
|
|
12209
12209
|
}
|
|
12210
|
-
function _defineProperties$
|
|
12210
|
+
function _defineProperties$h(target, props) {
|
|
12211
12211
|
for(var i = 0; i < props.length; i++){
|
|
12212
12212
|
var descriptor = props[i];
|
|
12213
12213
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12216,8 +12216,8 @@ function _defineProperties$g(target, props) {
|
|
|
12216
12216
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12217
12217
|
}
|
|
12218
12218
|
}
|
|
12219
|
-
function _create_class$
|
|
12220
|
-
if (staticProps) _defineProperties$
|
|
12219
|
+
function _create_class$h(Constructor, protoProps, staticProps) {
|
|
12220
|
+
if (staticProps) _defineProperties$h(Constructor, staticProps);
|
|
12221
12221
|
return Constructor;
|
|
12222
12222
|
}
|
|
12223
12223
|
/*
|
|
@@ -12225,9 +12225,9 @@ function _create_class$g(Constructor, protoProps, staticProps) {
|
|
|
12225
12225
|
* Licensed under the MIT License.
|
|
12226
12226
|
*/ var NetworkUtils = /*#__PURE__*/ function() {
|
|
12227
12227
|
function NetworkUtils() {
|
|
12228
|
-
_class_call_check$
|
|
12228
|
+
_class_call_check$h(this, NetworkUtils);
|
|
12229
12229
|
}
|
|
12230
|
-
_create_class$
|
|
12230
|
+
_create_class$h(NetworkUtils, null, [
|
|
12231
12231
|
{
|
|
12232
12232
|
key: "getNetworkResponse",
|
|
12233
12233
|
value: function getNetworkResponse(headers, body, statusCode) {
|
|
@@ -12307,12 +12307,12 @@ function _async_to_generator$9(fn) {
|
|
|
12307
12307
|
});
|
|
12308
12308
|
};
|
|
12309
12309
|
}
|
|
12310
|
-
function _class_call_check$
|
|
12310
|
+
function _class_call_check$g(instance, Constructor) {
|
|
12311
12311
|
if (!(instance instanceof Constructor)) {
|
|
12312
12312
|
throw new TypeError("Cannot call a class as a function");
|
|
12313
12313
|
}
|
|
12314
12314
|
}
|
|
12315
|
-
function _defineProperties$
|
|
12315
|
+
function _defineProperties$g(target, props) {
|
|
12316
12316
|
for(var i = 0; i < props.length; i++){
|
|
12317
12317
|
var descriptor = props[i];
|
|
12318
12318
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12321,8 +12321,8 @@ function _defineProperties$f(target, props) {
|
|
|
12321
12321
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12322
12322
|
}
|
|
12323
12323
|
}
|
|
12324
|
-
function _create_class$
|
|
12325
|
-
if (protoProps) _defineProperties$
|
|
12324
|
+
function _create_class$g(Constructor, protoProps, staticProps) {
|
|
12325
|
+
if (protoProps) _defineProperties$g(Constructor.prototype, protoProps);
|
|
12326
12326
|
return Constructor;
|
|
12327
12327
|
}
|
|
12328
12328
|
function _define_property$9(obj, key, value) {
|
|
@@ -12496,7 +12496,7 @@ function _ts_generator$9(thisArg, body) {
|
|
|
12496
12496
|
*/ var HttpClient = /*#__PURE__*/ function() {
|
|
12497
12497
|
function HttpClient(proxyUrl, customAgentOptions, loggerOptions) {
|
|
12498
12498
|
var _this = this;
|
|
12499
|
-
_class_call_check$
|
|
12499
|
+
_class_call_check$g(this, HttpClient);
|
|
12500
12500
|
this.networkRequestViaProxy = function(httpMethod, destinationUrlString, options, timeout) {
|
|
12501
12501
|
var destinationUrl = new URL(destinationUrlString);
|
|
12502
12502
|
var _$proxyUrl = new URL(_this.proxyUrl);
|
|
@@ -12750,7 +12750,7 @@ function _ts_generator$9(thisArg, body) {
|
|
|
12750
12750
|
this.logger = new Logger(loggerOptions || {}, name, version);
|
|
12751
12751
|
this.isPiiEnabled = this.logger.isPiiLoggingEnabled();
|
|
12752
12752
|
}
|
|
12753
|
-
_create_class$
|
|
12753
|
+
_create_class$g(HttpClient, [
|
|
12754
12754
|
{
|
|
12755
12755
|
key: "sendGetRequestAsync",
|
|
12756
12756
|
value: /**
|
|
@@ -12865,12 +12865,12 @@ function _assert_this_initialized$5(self) {
|
|
|
12865
12865
|
}
|
|
12866
12866
|
return self;
|
|
12867
12867
|
}
|
|
12868
|
-
function _class_call_check$
|
|
12868
|
+
function _class_call_check$f(instance, Constructor) {
|
|
12869
12869
|
if (!(instance instanceof Constructor)) {
|
|
12870
12870
|
throw new TypeError("Cannot call a class as a function");
|
|
12871
12871
|
}
|
|
12872
12872
|
}
|
|
12873
|
-
function _defineProperties$
|
|
12873
|
+
function _defineProperties$f(target, props) {
|
|
12874
12874
|
for(var i = 0; i < props.length; i++){
|
|
12875
12875
|
var descriptor = props[i];
|
|
12876
12876
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12879,8 +12879,8 @@ function _defineProperties$e(target, props) {
|
|
|
12879
12879
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12880
12880
|
}
|
|
12881
12881
|
}
|
|
12882
|
-
function _create_class$
|
|
12883
|
-
if (staticProps) _defineProperties$
|
|
12882
|
+
function _create_class$f(Constructor, protoProps, staticProps) {
|
|
12883
|
+
if (staticProps) _defineProperties$f(Constructor, staticProps);
|
|
12884
12884
|
return Constructor;
|
|
12885
12885
|
}
|
|
12886
12886
|
function _get_prototype_of$5(o) {
|
|
@@ -12990,13 +12990,13 @@ var NodeAuthError = /*#__PURE__*/ function(AuthError) {
|
|
|
12990
12990
|
_inherits$5(NodeAuthError, AuthError);
|
|
12991
12991
|
var _super = _create_super$5(NodeAuthError);
|
|
12992
12992
|
function NodeAuthError(errorCode, errorMessage) {
|
|
12993
|
-
_class_call_check$
|
|
12993
|
+
_class_call_check$f(this, NodeAuthError);
|
|
12994
12994
|
var _this;
|
|
12995
12995
|
_this = _super.call(this, errorCode, errorMessage);
|
|
12996
12996
|
_this.name = "NodeAuthError";
|
|
12997
12997
|
return _this;
|
|
12998
12998
|
}
|
|
12999
|
-
_create_class$
|
|
12999
|
+
_create_class$f(NodeAuthError, null, [
|
|
13000
13000
|
{
|
|
13001
13001
|
key: "createInvalidLoopbackAddressTypeError",
|
|
13002
13002
|
value: /**
|
|
@@ -13253,12 +13253,12 @@ function v4(options, buf, offset) {
|
|
|
13253
13253
|
return stringify(rnds);
|
|
13254
13254
|
}
|
|
13255
13255
|
|
|
13256
|
-
function _class_call_check$
|
|
13256
|
+
function _class_call_check$e(instance, Constructor) {
|
|
13257
13257
|
if (!(instance instanceof Constructor)) {
|
|
13258
13258
|
throw new TypeError("Cannot call a class as a function");
|
|
13259
13259
|
}
|
|
13260
13260
|
}
|
|
13261
|
-
function _defineProperties$
|
|
13261
|
+
function _defineProperties$e(target, props) {
|
|
13262
13262
|
for(var i = 0; i < props.length; i++){
|
|
13263
13263
|
var descriptor = props[i];
|
|
13264
13264
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13267,8 +13267,8 @@ function _defineProperties$d(target, props) {
|
|
|
13267
13267
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13268
13268
|
}
|
|
13269
13269
|
}
|
|
13270
|
-
function _create_class$
|
|
13271
|
-
if (protoProps) _defineProperties$
|
|
13270
|
+
function _create_class$e(Constructor, protoProps, staticProps) {
|
|
13271
|
+
if (protoProps) _defineProperties$e(Constructor.prototype, protoProps);
|
|
13272
13272
|
return Constructor;
|
|
13273
13273
|
}
|
|
13274
13274
|
/*
|
|
@@ -13276,9 +13276,9 @@ function _create_class$d(Constructor, protoProps, staticProps) {
|
|
|
13276
13276
|
* Licensed under the MIT License.
|
|
13277
13277
|
*/ var GuidGenerator = /*#__PURE__*/ function() {
|
|
13278
13278
|
function GuidGenerator() {
|
|
13279
|
-
_class_call_check$
|
|
13279
|
+
_class_call_check$e(this, GuidGenerator);
|
|
13280
13280
|
}
|
|
13281
|
-
_create_class$
|
|
13281
|
+
_create_class$e(GuidGenerator, [
|
|
13282
13282
|
{
|
|
13283
13283
|
/**
|
|
13284
13284
|
*
|
|
@@ -13303,12 +13303,12 @@ function _create_class$d(Constructor, protoProps, staticProps) {
|
|
|
13303
13303
|
return GuidGenerator;
|
|
13304
13304
|
}();
|
|
13305
13305
|
|
|
13306
|
-
function _class_call_check$
|
|
13306
|
+
function _class_call_check$d(instance, Constructor) {
|
|
13307
13307
|
if (!(instance instanceof Constructor)) {
|
|
13308
13308
|
throw new TypeError("Cannot call a class as a function");
|
|
13309
13309
|
}
|
|
13310
13310
|
}
|
|
13311
|
-
function _defineProperties$
|
|
13311
|
+
function _defineProperties$d(target, props) {
|
|
13312
13312
|
for(var i = 0; i < props.length; i++){
|
|
13313
13313
|
var descriptor = props[i];
|
|
13314
13314
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13317,8 +13317,8 @@ function _defineProperties$c(target, props) {
|
|
|
13317
13317
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13318
13318
|
}
|
|
13319
13319
|
}
|
|
13320
|
-
function _create_class$
|
|
13321
|
-
if (staticProps) _defineProperties$
|
|
13320
|
+
function _create_class$d(Constructor, protoProps, staticProps) {
|
|
13321
|
+
if (staticProps) _defineProperties$d(Constructor, staticProps);
|
|
13322
13322
|
return Constructor;
|
|
13323
13323
|
}
|
|
13324
13324
|
/*
|
|
@@ -13326,9 +13326,9 @@ function _create_class$c(Constructor, protoProps, staticProps) {
|
|
|
13326
13326
|
* Licensed under the MIT License.
|
|
13327
13327
|
*/ var EncodingUtils = /*#__PURE__*/ function() {
|
|
13328
13328
|
function EncodingUtils() {
|
|
13329
|
-
_class_call_check$
|
|
13329
|
+
_class_call_check$d(this, EncodingUtils);
|
|
13330
13330
|
}
|
|
13331
|
-
_create_class$
|
|
13331
|
+
_create_class$d(EncodingUtils, null, [
|
|
13332
13332
|
{
|
|
13333
13333
|
key: "base64Encode",
|
|
13334
13334
|
value: /**
|
|
@@ -13376,12 +13376,12 @@ function _create_class$c(Constructor, protoProps, staticProps) {
|
|
|
13376
13376
|
return EncodingUtils;
|
|
13377
13377
|
}();
|
|
13378
13378
|
|
|
13379
|
-
function _class_call_check$
|
|
13379
|
+
function _class_call_check$c(instance, Constructor) {
|
|
13380
13380
|
if (!(instance instanceof Constructor)) {
|
|
13381
13381
|
throw new TypeError("Cannot call a class as a function");
|
|
13382
13382
|
}
|
|
13383
13383
|
}
|
|
13384
|
-
function _defineProperties$
|
|
13384
|
+
function _defineProperties$c(target, props) {
|
|
13385
13385
|
for(var i = 0; i < props.length; i++){
|
|
13386
13386
|
var descriptor = props[i];
|
|
13387
13387
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13390,8 +13390,8 @@ function _defineProperties$b(target, props) {
|
|
|
13390
13390
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13391
13391
|
}
|
|
13392
13392
|
}
|
|
13393
|
-
function _create_class$
|
|
13394
|
-
if (protoProps) _defineProperties$
|
|
13393
|
+
function _create_class$c(Constructor, protoProps, staticProps) {
|
|
13394
|
+
if (protoProps) _defineProperties$c(Constructor.prototype, protoProps);
|
|
13395
13395
|
return Constructor;
|
|
13396
13396
|
}
|
|
13397
13397
|
/*
|
|
@@ -13399,9 +13399,9 @@ function _create_class$b(Constructor, protoProps, staticProps) {
|
|
|
13399
13399
|
* Licensed under the MIT License.
|
|
13400
13400
|
*/ var HashUtils = /*#__PURE__*/ function() {
|
|
13401
13401
|
function HashUtils() {
|
|
13402
|
-
_class_call_check$
|
|
13402
|
+
_class_call_check$c(this, HashUtils);
|
|
13403
13403
|
}
|
|
13404
|
-
_create_class$
|
|
13404
|
+
_create_class$c(HashUtils, [
|
|
13405
13405
|
{
|
|
13406
13406
|
/**
|
|
13407
13407
|
* generate 'SHA256' hash
|
|
@@ -13444,12 +13444,12 @@ function _async_to_generator$8(fn) {
|
|
|
13444
13444
|
});
|
|
13445
13445
|
};
|
|
13446
13446
|
}
|
|
13447
|
-
function _class_call_check$
|
|
13447
|
+
function _class_call_check$b(instance, Constructor) {
|
|
13448
13448
|
if (!(instance instanceof Constructor)) {
|
|
13449
13449
|
throw new TypeError("Cannot call a class as a function");
|
|
13450
13450
|
}
|
|
13451
13451
|
}
|
|
13452
|
-
function _defineProperties$
|
|
13452
|
+
function _defineProperties$b(target, props) {
|
|
13453
13453
|
for(var i = 0; i < props.length; i++){
|
|
13454
13454
|
var descriptor = props[i];
|
|
13455
13455
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13458,8 +13458,8 @@ function _defineProperties$a(target, props) {
|
|
|
13458
13458
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13459
13459
|
}
|
|
13460
13460
|
}
|
|
13461
|
-
function _create_class$
|
|
13462
|
-
if (protoProps) _defineProperties$
|
|
13461
|
+
function _create_class$b(Constructor, protoProps, staticProps) {
|
|
13462
|
+
if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
|
|
13463
13463
|
return Constructor;
|
|
13464
13464
|
}
|
|
13465
13465
|
function _ts_generator$8(thisArg, body) {
|
|
@@ -13564,10 +13564,10 @@ function _ts_generator$8(thisArg, body) {
|
|
|
13564
13564
|
* https://tools.ietf.org/html/rfc7636#page-8
|
|
13565
13565
|
*/ var PkceGenerator = /*#__PURE__*/ function() {
|
|
13566
13566
|
function PkceGenerator() {
|
|
13567
|
-
_class_call_check$
|
|
13567
|
+
_class_call_check$b(this, PkceGenerator);
|
|
13568
13568
|
this.hashUtils = new HashUtils();
|
|
13569
13569
|
}
|
|
13570
|
-
_create_class$
|
|
13570
|
+
_create_class$b(PkceGenerator, [
|
|
13571
13571
|
{
|
|
13572
13572
|
key: "generatePkceCodes",
|
|
13573
13573
|
value: /**
|
|
@@ -13652,12 +13652,12 @@ function _async_to_generator$7(fn) {
|
|
|
13652
13652
|
});
|
|
13653
13653
|
};
|
|
13654
13654
|
}
|
|
13655
|
-
function _class_call_check$
|
|
13655
|
+
function _class_call_check$a(instance, Constructor) {
|
|
13656
13656
|
if (!(instance instanceof Constructor)) {
|
|
13657
13657
|
throw new TypeError("Cannot call a class as a function");
|
|
13658
13658
|
}
|
|
13659
13659
|
}
|
|
13660
|
-
function _defineProperties$
|
|
13660
|
+
function _defineProperties$a(target, props) {
|
|
13661
13661
|
for(var i = 0; i < props.length; i++){
|
|
13662
13662
|
var descriptor = props[i];
|
|
13663
13663
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13666,8 +13666,8 @@ function _defineProperties$9(target, props) {
|
|
|
13666
13666
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13667
13667
|
}
|
|
13668
13668
|
}
|
|
13669
|
-
function _create_class$
|
|
13670
|
-
if (protoProps) _defineProperties$
|
|
13669
|
+
function _create_class$a(Constructor, protoProps, staticProps) {
|
|
13670
|
+
if (protoProps) _defineProperties$a(Constructor.prototype, protoProps);
|
|
13671
13671
|
return Constructor;
|
|
13672
13672
|
}
|
|
13673
13673
|
function _ts_generator$7(thisArg, body) {
|
|
@@ -13774,13 +13774,13 @@ function _ts_generator$7(thisArg, body) {
|
|
|
13774
13774
|
* @public
|
|
13775
13775
|
*/ var CryptoProvider = /*#__PURE__*/ function() {
|
|
13776
13776
|
function CryptoProvider() {
|
|
13777
|
-
_class_call_check$
|
|
13777
|
+
_class_call_check$a(this, CryptoProvider);
|
|
13778
13778
|
// Browser crypto needs to be validated first before any other classes can be set.
|
|
13779
13779
|
this.pkceGenerator = new PkceGenerator();
|
|
13780
13780
|
this.guidGenerator = new GuidGenerator();
|
|
13781
13781
|
this.hashUtils = new HashUtils();
|
|
13782
13782
|
}
|
|
13783
|
-
_create_class$
|
|
13783
|
+
_create_class$a(CryptoProvider, [
|
|
13784
13784
|
{
|
|
13785
13785
|
/**
|
|
13786
13786
|
* base64 URL safe encoded string
|
|
@@ -13958,12 +13958,12 @@ function _async_to_generator$6(fn) {
|
|
|
13958
13958
|
});
|
|
13959
13959
|
};
|
|
13960
13960
|
}
|
|
13961
|
-
function _class_call_check$
|
|
13961
|
+
function _class_call_check$9(instance, Constructor) {
|
|
13962
13962
|
if (!(instance instanceof Constructor)) {
|
|
13963
13963
|
throw new TypeError("Cannot call a class as a function");
|
|
13964
13964
|
}
|
|
13965
13965
|
}
|
|
13966
|
-
function _defineProperties$
|
|
13966
|
+
function _defineProperties$9(target, props) {
|
|
13967
13967
|
for(var i = 0; i < props.length; i++){
|
|
13968
13968
|
var descriptor = props[i];
|
|
13969
13969
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13972,9 +13972,9 @@ function _defineProperties$8(target, props) {
|
|
|
13972
13972
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13973
13973
|
}
|
|
13974
13974
|
}
|
|
13975
|
-
function _create_class$
|
|
13976
|
-
if (protoProps) _defineProperties$
|
|
13977
|
-
if (staticProps) _defineProperties$
|
|
13975
|
+
function _create_class$9(Constructor, protoProps, staticProps) {
|
|
13976
|
+
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
13977
|
+
if (staticProps) _defineProperties$9(Constructor, staticProps);
|
|
13978
13978
|
return Constructor;
|
|
13979
13979
|
}
|
|
13980
13980
|
function _define_property$5(obj, key, value) {
|
|
@@ -14194,7 +14194,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
14194
14194
|
_inherits$4(NodeStorage, CacheManager);
|
|
14195
14195
|
var _super = _create_super$4(NodeStorage);
|
|
14196
14196
|
function NodeStorage(logger, clientId, cryptoImpl, staticAuthorityOptions) {
|
|
14197
|
-
_class_call_check$
|
|
14197
|
+
_class_call_check$9(this, NodeStorage);
|
|
14198
14198
|
var _this;
|
|
14199
14199
|
_this = _super.call(this, clientId, cryptoImpl, logger, new StubPerformanceClient(), staticAuthorityOptions);
|
|
14200
14200
|
_this.cache = {};
|
|
@@ -14202,7 +14202,7 @@ function _ts_generator$6(thisArg, body) {
|
|
|
14202
14202
|
_this.logger = logger;
|
|
14203
14203
|
return _this;
|
|
14204
14204
|
}
|
|
14205
|
-
_create_class$
|
|
14205
|
+
_create_class$9(NodeStorage, [
|
|
14206
14206
|
{
|
|
14207
14207
|
/**
|
|
14208
14208
|
* Queue up callbacks
|
|
@@ -14743,12 +14743,12 @@ function _async_to_generator$5(fn) {
|
|
|
14743
14743
|
});
|
|
14744
14744
|
};
|
|
14745
14745
|
}
|
|
14746
|
-
function _class_call_check$
|
|
14746
|
+
function _class_call_check$8(instance, Constructor) {
|
|
14747
14747
|
if (!(instance instanceof Constructor)) {
|
|
14748
14748
|
throw new TypeError("Cannot call a class as a function");
|
|
14749
14749
|
}
|
|
14750
14750
|
}
|
|
14751
|
-
function _defineProperties$
|
|
14751
|
+
function _defineProperties$8(target, props) {
|
|
14752
14752
|
for(var i = 0; i < props.length; i++){
|
|
14753
14753
|
var descriptor = props[i];
|
|
14754
14754
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14757,8 +14757,8 @@ function _defineProperties$7(target, props) {
|
|
|
14757
14757
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14758
14758
|
}
|
|
14759
14759
|
}
|
|
14760
|
-
function _create_class$
|
|
14761
|
-
if (protoProps) _defineProperties$
|
|
14760
|
+
function _create_class$8(Constructor, protoProps, staticProps) {
|
|
14761
|
+
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
14762
14762
|
return Constructor;
|
|
14763
14763
|
}
|
|
14764
14764
|
function _define_property$4(obj, key, value) {
|
|
@@ -14922,7 +14922,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
14922
14922
|
* @public
|
|
14923
14923
|
*/ var TokenCache = /*#__PURE__*/ function() {
|
|
14924
14924
|
function TokenCache(storage, logger, cachePlugin) {
|
|
14925
|
-
_class_call_check$
|
|
14925
|
+
_class_call_check$8(this, TokenCache);
|
|
14926
14926
|
this.cacheHasChanged = false;
|
|
14927
14927
|
this.storage = storage;
|
|
14928
14928
|
this.storage.registerChangeEmitter(this.handleChangeEvent.bind(this));
|
|
@@ -14931,7 +14931,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
14931
14931
|
}
|
|
14932
14932
|
this.logger = logger;
|
|
14933
14933
|
}
|
|
14934
|
-
_create_class$
|
|
14934
|
+
_create_class$8(TokenCache, [
|
|
14935
14935
|
{
|
|
14936
14936
|
/**
|
|
14937
14937
|
* Set to true if cache state has changed since last time serialize or writeToPersistence was called
|
|
@@ -16652,12 +16652,12 @@ var identifiers$1 = {
|
|
|
16652
16652
|
rcompareIdentifiers: rcompareIdentifiers
|
|
16653
16653
|
};
|
|
16654
16654
|
|
|
16655
|
-
function _class_call_check$
|
|
16655
|
+
function _class_call_check$7(instance, Constructor) {
|
|
16656
16656
|
if (!(instance instanceof Constructor)) {
|
|
16657
16657
|
throw new TypeError("Cannot call a class as a function");
|
|
16658
16658
|
}
|
|
16659
16659
|
}
|
|
16660
|
-
function _defineProperties$
|
|
16660
|
+
function _defineProperties$7(target, props) {
|
|
16661
16661
|
for(var i = 0; i < props.length; i++){
|
|
16662
16662
|
var descriptor = props[i];
|
|
16663
16663
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16666,8 +16666,8 @@ function _defineProperties$6(target, props) {
|
|
|
16666
16666
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16667
16667
|
}
|
|
16668
16668
|
}
|
|
16669
|
-
function _create_class$
|
|
16670
|
-
if (protoProps) _defineProperties$
|
|
16669
|
+
function _create_class$7(Constructor, protoProps, staticProps) {
|
|
16670
|
+
if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
|
|
16671
16671
|
return Constructor;
|
|
16672
16672
|
}
|
|
16673
16673
|
function _instanceof$8(left, right) {
|
|
@@ -16688,7 +16688,7 @@ var parseOptions = parseOptions_1;
|
|
|
16688
16688
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
16689
16689
|
var SemVer$d = /*#__PURE__*/ function() {
|
|
16690
16690
|
function SemVer(version, options) {
|
|
16691
|
-
_class_call_check$
|
|
16691
|
+
_class_call_check$7(this, SemVer);
|
|
16692
16692
|
options = parseOptions(options);
|
|
16693
16693
|
if (_instanceof$8(version, SemVer)) {
|
|
16694
16694
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -16743,7 +16743,7 @@ var SemVer$d = /*#__PURE__*/ function() {
|
|
|
16743
16743
|
this.build = m[5] ? m[5].split('.') : [];
|
|
16744
16744
|
this.format();
|
|
16745
16745
|
}
|
|
16746
|
-
_create_class$
|
|
16746
|
+
_create_class$7(SemVer, [
|
|
16747
16747
|
{
|
|
16748
16748
|
key: "format",
|
|
16749
16749
|
value: function format() {
|
|
@@ -17324,78 +17324,70 @@ var coerce$1 = function(version, options) {
|
|
|
17324
17324
|
};
|
|
17325
17325
|
var coerce_1 = coerce$1;
|
|
17326
17326
|
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
if (hasRequiredLrucache) return lrucache;
|
|
17332
|
-
hasRequiredLrucache = 1;
|
|
17333
|
-
function _class_call_check(instance, Constructor) {
|
|
17334
|
-
if (!(instance instanceof Constructor)) {
|
|
17335
|
-
throw new TypeError("Cannot call a class as a function");
|
|
17336
|
-
}
|
|
17337
|
-
}
|
|
17338
|
-
function _defineProperties(target, props) {
|
|
17339
|
-
for(var i = 0; i < props.length; i++){
|
|
17340
|
-
var descriptor = props[i];
|
|
17341
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
17342
|
-
descriptor.configurable = true;
|
|
17343
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
17344
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17345
|
-
}
|
|
17346
|
-
}
|
|
17347
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
17348
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17349
|
-
return Constructor;
|
|
17350
|
-
}
|
|
17351
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
17352
|
-
function LRUCache() {
|
|
17353
|
-
_class_call_check(this, LRUCache);
|
|
17354
|
-
this.max = 1000;
|
|
17355
|
-
this.map = new Map();
|
|
17356
|
-
}
|
|
17357
|
-
_create_class(LRUCache, [
|
|
17358
|
-
{
|
|
17359
|
-
key: "get",
|
|
17360
|
-
value: function get(key) {
|
|
17361
|
-
var value = this.map.get(key);
|
|
17362
|
-
if (value === undefined) {
|
|
17363
|
-
return undefined;
|
|
17364
|
-
} else {
|
|
17365
|
-
// Remove the key from the map and add it to the end
|
|
17366
|
-
this.map.delete(key);
|
|
17367
|
-
this.map.set(key, value);
|
|
17368
|
-
return value;
|
|
17369
|
-
}
|
|
17370
|
-
}
|
|
17371
|
-
},
|
|
17372
|
-
{
|
|
17373
|
-
key: "delete",
|
|
17374
|
-
value: function _delete(key) {
|
|
17375
|
-
return this.map.delete(key);
|
|
17376
|
-
}
|
|
17377
|
-
},
|
|
17378
|
-
{
|
|
17379
|
-
key: "set",
|
|
17380
|
-
value: function set(key, value) {
|
|
17381
|
-
var deleted = this.delete(key);
|
|
17382
|
-
if (!deleted && value !== undefined) {
|
|
17383
|
-
// If cache is full, delete the least recently used item
|
|
17384
|
-
if (this.map.size >= this.max) {
|
|
17385
|
-
var firstKey = this.map.keys().next().value;
|
|
17386
|
-
this.delete(firstKey);
|
|
17387
|
-
}
|
|
17388
|
-
this.map.set(key, value);
|
|
17389
|
-
}
|
|
17390
|
-
return this;
|
|
17391
|
-
}
|
|
17392
|
-
}
|
|
17393
|
-
]);
|
|
17394
|
-
return LRUCache;
|
|
17395
|
-
}();
|
|
17396
|
-
lrucache = LRUCache;
|
|
17397
|
-
return lrucache;
|
|
17327
|
+
function _class_call_check$6(instance, Constructor) {
|
|
17328
|
+
if (!(instance instanceof Constructor)) {
|
|
17329
|
+
throw new TypeError("Cannot call a class as a function");
|
|
17330
|
+
}
|
|
17398
17331
|
}
|
|
17332
|
+
function _defineProperties$6(target, props) {
|
|
17333
|
+
for(var i = 0; i < props.length; i++){
|
|
17334
|
+
var descriptor = props[i];
|
|
17335
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
17336
|
+
descriptor.configurable = true;
|
|
17337
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
17338
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17339
|
+
}
|
|
17340
|
+
}
|
|
17341
|
+
function _create_class$6(Constructor, protoProps, staticProps) {
|
|
17342
|
+
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
17343
|
+
return Constructor;
|
|
17344
|
+
}
|
|
17345
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
17346
|
+
function LRUCache() {
|
|
17347
|
+
_class_call_check$6(this, LRUCache);
|
|
17348
|
+
this.max = 1000;
|
|
17349
|
+
this.map = new Map();
|
|
17350
|
+
}
|
|
17351
|
+
_create_class$6(LRUCache, [
|
|
17352
|
+
{
|
|
17353
|
+
key: "get",
|
|
17354
|
+
value: function get(key) {
|
|
17355
|
+
var value = this.map.get(key);
|
|
17356
|
+
if (value === undefined) {
|
|
17357
|
+
return undefined;
|
|
17358
|
+
} else {
|
|
17359
|
+
// Remove the key from the map and add it to the end
|
|
17360
|
+
this.map.delete(key);
|
|
17361
|
+
this.map.set(key, value);
|
|
17362
|
+
return value;
|
|
17363
|
+
}
|
|
17364
|
+
}
|
|
17365
|
+
},
|
|
17366
|
+
{
|
|
17367
|
+
key: "delete",
|
|
17368
|
+
value: function _delete(key) {
|
|
17369
|
+
return this.map.delete(key);
|
|
17370
|
+
}
|
|
17371
|
+
},
|
|
17372
|
+
{
|
|
17373
|
+
key: "set",
|
|
17374
|
+
value: function set(key, value) {
|
|
17375
|
+
var deleted = this.delete(key);
|
|
17376
|
+
if (!deleted && value !== undefined) {
|
|
17377
|
+
// If cache is full, delete the least recently used item
|
|
17378
|
+
if (this.map.size >= this.max) {
|
|
17379
|
+
var firstKey = this.map.keys().next().value;
|
|
17380
|
+
this.delete(firstKey);
|
|
17381
|
+
}
|
|
17382
|
+
this.map.set(key, value);
|
|
17383
|
+
}
|
|
17384
|
+
return this;
|
|
17385
|
+
}
|
|
17386
|
+
}
|
|
17387
|
+
]);
|
|
17388
|
+
return LRUCache;
|
|
17389
|
+
}();
|
|
17390
|
+
var lrucache = LRUCache;
|
|
17399
17391
|
|
|
17400
17392
|
var range;
|
|
17401
17393
|
var hasRequiredRange;
|
|
@@ -17699,7 +17691,7 @@ function requireRange () {
|
|
|
17699
17691
|
return Range;
|
|
17700
17692
|
}();
|
|
17701
17693
|
range = Range;
|
|
17702
|
-
var LRU =
|
|
17694
|
+
var LRU = lrucache;
|
|
17703
17695
|
var cache = new LRU();
|
|
17704
17696
|
var parseOptions = parseOptions_1;
|
|
17705
17697
|
var Comparator = requireComparator();
|