@digipair/skill-microsoft 0.123.0 → 0.124.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +299 -291
- 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$E(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$E(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: /**
|
|
@@ -526,7 +526,7 @@ function _assert_this_initialized$g(self) {
|
|
|
526
526
|
}
|
|
527
527
|
return self;
|
|
528
528
|
}
|
|
529
|
-
function _class_call_check$
|
|
529
|
+
function _class_call_check$I(instance, Constructor) {
|
|
530
530
|
if (!(instance instanceof Constructor)) {
|
|
531
531
|
throw new TypeError("Cannot call a class as a function");
|
|
532
532
|
}
|
|
@@ -548,7 +548,7 @@ function _construct$1(Parent, args, Class) {
|
|
|
548
548
|
}
|
|
549
549
|
return _construct$1.apply(null, arguments);
|
|
550
550
|
}
|
|
551
|
-
function _defineProperties$
|
|
551
|
+
function _defineProperties$C(target, props) {
|
|
552
552
|
for(var i = 0; i < props.length; i++){
|
|
553
553
|
var descriptor = props[i];
|
|
554
554
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -557,8 +557,8 @@ function _defineProperties$D(target, props) {
|
|
|
557
557
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function _create_class$
|
|
561
|
-
if (protoProps) _defineProperties$
|
|
560
|
+
function _create_class$C(Constructor, protoProps, staticProps) {
|
|
561
|
+
if (protoProps) _defineProperties$C(Constructor.prototype, protoProps);
|
|
562
562
|
return Constructor;
|
|
563
563
|
}
|
|
564
564
|
function _define_property$m(obj, key, value) {
|
|
@@ -685,7 +685,7 @@ var _obj$6;
|
|
|
685
685
|
_inherits$g(AuthError, Error1);
|
|
686
686
|
var _super = _create_super$g(AuthError);
|
|
687
687
|
function AuthError(errorCode, errorMessage, suberror) {
|
|
688
|
-
_class_call_check$
|
|
688
|
+
_class_call_check$I(this, AuthError);
|
|
689
689
|
var _this;
|
|
690
690
|
var errorString = errorMessage ? "".concat(errorCode, ": ").concat(errorMessage) : errorCode;
|
|
691
691
|
_this = _super.call(this, errorString);
|
|
@@ -696,7 +696,7 @@ var _obj$6;
|
|
|
696
696
|
_this.name = "AuthError";
|
|
697
697
|
return _this;
|
|
698
698
|
}
|
|
699
|
-
_create_class$
|
|
699
|
+
_create_class$C(AuthError, [
|
|
700
700
|
{
|
|
701
701
|
key: "setCorrelationId",
|
|
702
702
|
value: function setCorrelationId(correlationId) {
|
|
@@ -761,7 +761,7 @@ function _assert_this_initialized$f(self) {
|
|
|
761
761
|
}
|
|
762
762
|
return self;
|
|
763
763
|
}
|
|
764
|
-
function _class_call_check$
|
|
764
|
+
function _class_call_check$H(instance, Constructor) {
|
|
765
765
|
if (!(instance instanceof Constructor)) {
|
|
766
766
|
throw new TypeError("Cannot call a class as a function");
|
|
767
767
|
}
|
|
@@ -986,7 +986,7 @@ var _obj$5;
|
|
|
986
986
|
_inherits$f(ClientAuthError, AuthError);
|
|
987
987
|
var _super = _create_super$f(ClientAuthError);
|
|
988
988
|
function ClientAuthError(errorCode, additionalMessage) {
|
|
989
|
-
_class_call_check$
|
|
989
|
+
_class_call_check$H(this, ClientAuthError);
|
|
990
990
|
var _this;
|
|
991
991
|
_this = _super.call(this, errorCode, additionalMessage ? "".concat(ClientAuthErrorMessages[errorCode], ": ").concat(additionalMessage) : ClientAuthErrorMessages[errorCode]);
|
|
992
992
|
_this.name = "ClientAuthError";
|
|
@@ -1179,12 +1179,12 @@ function _ts_generator$l(thisArg, body) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
};
|
|
1181
1181
|
|
|
1182
|
-
function _class_call_check$
|
|
1182
|
+
function _class_call_check$G(instance, Constructor) {
|
|
1183
1183
|
if (!(instance instanceof Constructor)) {
|
|
1184
1184
|
throw new TypeError("Cannot call a class as a function");
|
|
1185
1185
|
}
|
|
1186
1186
|
}
|
|
1187
|
-
function _defineProperties$
|
|
1187
|
+
function _defineProperties$B(target, props) {
|
|
1188
1188
|
for(var i = 0; i < props.length; i++){
|
|
1189
1189
|
var descriptor = props[i];
|
|
1190
1190
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1193,9 +1193,9 @@ function _defineProperties$C(target, props) {
|
|
|
1193
1193
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
|
-
function _create_class$
|
|
1197
|
-
if (protoProps) _defineProperties$
|
|
1198
|
-
if (staticProps) _defineProperties$
|
|
1196
|
+
function _create_class$B(Constructor, protoProps, staticProps) {
|
|
1197
|
+
if (protoProps) _defineProperties$B(Constructor.prototype, protoProps);
|
|
1198
|
+
if (staticProps) _defineProperties$B(Constructor, staticProps);
|
|
1199
1199
|
return Constructor;
|
|
1200
1200
|
}
|
|
1201
1201
|
/*
|
|
@@ -1215,7 +1215,7 @@ function _create_class$C(Constructor, protoProps, staticProps) {
|
|
|
1215
1215
|
* Class which facilitates logging of messages to a specific place.
|
|
1216
1216
|
*/ var Logger = /*#__PURE__*/ function() {
|
|
1217
1217
|
function Logger(loggerOptions, packageName, packageVersion) {
|
|
1218
|
-
_class_call_check$
|
|
1218
|
+
_class_call_check$G(this, Logger);
|
|
1219
1219
|
// Current log level, defaults to info.
|
|
1220
1220
|
this.level = LogLevel.Info;
|
|
1221
1221
|
var defaultLoggerCallback = function() {
|
|
@@ -1229,7 +1229,7 @@ function _create_class$C(Constructor, protoProps, staticProps) {
|
|
|
1229
1229
|
this.packageName = packageName || Constants$1.EMPTY_STRING;
|
|
1230
1230
|
this.packageVersion = packageVersion || Constants$1.EMPTY_STRING;
|
|
1231
1231
|
}
|
|
1232
|
-
_create_class$
|
|
1232
|
+
_create_class$B(Logger, [
|
|
1233
1233
|
{
|
|
1234
1234
|
/**
|
|
1235
1235
|
* Create new Logger with existing configurations.
|
|
@@ -1806,7 +1806,7 @@ function _assert_this_initialized$e(self) {
|
|
|
1806
1806
|
}
|
|
1807
1807
|
return self;
|
|
1808
1808
|
}
|
|
1809
|
-
function _class_call_check$
|
|
1809
|
+
function _class_call_check$F(instance, Constructor) {
|
|
1810
1810
|
if (!(instance instanceof Constructor)) {
|
|
1811
1811
|
throw new TypeError("Cannot call a class as a function");
|
|
1812
1812
|
}
|
|
@@ -1966,7 +1966,7 @@ var _obj$4;
|
|
|
1966
1966
|
_inherits$e(ClientConfigurationError, AuthError);
|
|
1967
1967
|
var _super = _create_super$e(ClientConfigurationError);
|
|
1968
1968
|
function ClientConfigurationError(errorCode) {
|
|
1969
|
-
_class_call_check$
|
|
1969
|
+
_class_call_check$F(this, ClientConfigurationError);
|
|
1970
1970
|
var _this;
|
|
1971
1971
|
_this = _super.call(this, errorCode, ClientConfigurationErrorMessages[errorCode]);
|
|
1972
1972
|
_this.name = "ClientConfigurationError";
|
|
@@ -1987,12 +1987,12 @@ function _array_like_to_array$b(arr, len) {
|
|
|
1987
1987
|
function _array_with_holes$4(arr) {
|
|
1988
1988
|
if (Array.isArray(arr)) return arr;
|
|
1989
1989
|
}
|
|
1990
|
-
function _class_call_check$
|
|
1990
|
+
function _class_call_check$E(instance, Constructor) {
|
|
1991
1991
|
if (!(instance instanceof Constructor)) {
|
|
1992
1992
|
throw new TypeError("Cannot call a class as a function");
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
|
-
function _defineProperties$
|
|
1995
|
+
function _defineProperties$A(target, props) {
|
|
1996
1996
|
for(var i = 0; i < props.length; i++){
|
|
1997
1997
|
var descriptor = props[i];
|
|
1998
1998
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2001,8 +2001,8 @@ function _defineProperties$B(target, props) {
|
|
|
2001
2001
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2002
2002
|
}
|
|
2003
2003
|
}
|
|
2004
|
-
function _create_class$
|
|
2005
|
-
if (staticProps) _defineProperties$
|
|
2004
|
+
function _create_class$A(Constructor, protoProps, staticProps) {
|
|
2005
|
+
if (staticProps) _defineProperties$A(Constructor, staticProps);
|
|
2006
2006
|
return Constructor;
|
|
2007
2007
|
}
|
|
2008
2008
|
function _iterable_to_array_limit$4(arr, i) {
|
|
@@ -2050,9 +2050,9 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
2050
2050
|
* @hidden
|
|
2051
2051
|
*/ var StringUtils = /*#__PURE__*/ function() {
|
|
2052
2052
|
function StringUtils() {
|
|
2053
|
-
_class_call_check$
|
|
2053
|
+
_class_call_check$E(this, StringUtils);
|
|
2054
2054
|
}
|
|
2055
|
-
_create_class$
|
|
2055
|
+
_create_class$A(StringUtils, null, [
|
|
2056
2056
|
{
|
|
2057
2057
|
key: "isEmptyObj",
|
|
2058
2058
|
value: /**
|
|
@@ -2166,12 +2166,12 @@ function _array_like_to_array$a(arr, len) {
|
|
|
2166
2166
|
function _array_without_holes$8(arr) {
|
|
2167
2167
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
2168
2168
|
}
|
|
2169
|
-
function _class_call_check$
|
|
2169
|
+
function _class_call_check$D(instance, Constructor) {
|
|
2170
2170
|
if (!(instance instanceof Constructor)) {
|
|
2171
2171
|
throw new TypeError("Cannot call a class as a function");
|
|
2172
2172
|
}
|
|
2173
2173
|
}
|
|
2174
|
-
function _defineProperties$
|
|
2174
|
+
function _defineProperties$z(target, props) {
|
|
2175
2175
|
for(var i = 0; i < props.length; i++){
|
|
2176
2176
|
var descriptor = props[i];
|
|
2177
2177
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2180,9 +2180,9 @@ function _defineProperties$A(target, props) {
|
|
|
2180
2180
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2181
2181
|
}
|
|
2182
2182
|
}
|
|
2183
|
-
function _create_class$
|
|
2184
|
-
if (protoProps) _defineProperties$
|
|
2185
|
-
if (staticProps) _defineProperties$
|
|
2183
|
+
function _create_class$z(Constructor, protoProps, staticProps) {
|
|
2184
|
+
if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
|
|
2185
|
+
if (staticProps) _defineProperties$z(Constructor, staticProps);
|
|
2186
2186
|
return Constructor;
|
|
2187
2187
|
}
|
|
2188
2188
|
function _iterable_to_array$8(iter) {
|
|
@@ -2212,7 +2212,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
2212
2212
|
*/ var ScopeSet = /*#__PURE__*/ function() {
|
|
2213
2213
|
function ScopeSet(inputScopes) {
|
|
2214
2214
|
var _this = this;
|
|
2215
|
-
_class_call_check$
|
|
2215
|
+
_class_call_check$D(this, ScopeSet);
|
|
2216
2216
|
// Filter empty string and null/undefined array items
|
|
2217
2217
|
var scopeArr = inputScopes ? StringUtils.trimArrayEntries(_to_consumable_array$8(inputScopes)) : [];
|
|
2218
2218
|
var filteredInput = scopeArr ? StringUtils.removeEmptyStringsFromArray(scopeArr) : [];
|
|
@@ -2223,7 +2223,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
2223
2223
|
return _this.scopes.add(scope);
|
|
2224
2224
|
});
|
|
2225
2225
|
}
|
|
2226
|
-
_create_class$
|
|
2226
|
+
_create_class$z(ScopeSet, [
|
|
2227
2227
|
{
|
|
2228
2228
|
/**
|
|
2229
2229
|
* Used to validate the scopes input parameter requested by the developer.
|
|
@@ -2662,12 +2662,12 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
2662
2662
|
OIDC: "OIDC"
|
|
2663
2663
|
};
|
|
2664
2664
|
|
|
2665
|
-
function _class_call_check$
|
|
2665
|
+
function _class_call_check$C(instance, Constructor) {
|
|
2666
2666
|
if (!(instance instanceof Constructor)) {
|
|
2667
2667
|
throw new TypeError("Cannot call a class as a function");
|
|
2668
2668
|
}
|
|
2669
2669
|
}
|
|
2670
|
-
function _defineProperties$
|
|
2670
|
+
function _defineProperties$y(target, props) {
|
|
2671
2671
|
for(var i = 0; i < props.length; i++){
|
|
2672
2672
|
var descriptor = props[i];
|
|
2673
2673
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2676,9 +2676,9 @@ function _defineProperties$z(target, props) {
|
|
|
2676
2676
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
|
-
function _create_class$
|
|
2680
|
-
if (protoProps) _defineProperties$
|
|
2681
|
-
if (staticProps) _defineProperties$
|
|
2679
|
+
function _create_class$y(Constructor, protoProps, staticProps) {
|
|
2680
|
+
if (protoProps) _defineProperties$y(Constructor.prototype, protoProps);
|
|
2681
|
+
if (staticProps) _defineProperties$y(Constructor, staticProps);
|
|
2682
2682
|
return Constructor;
|
|
2683
2683
|
}
|
|
2684
2684
|
/*
|
|
@@ -2708,9 +2708,9 @@ function _create_class$z(Constructor, protoProps, staticProps) {
|
|
|
2708
2708
|
* @internal
|
|
2709
2709
|
*/ var AccountEntity = /*#__PURE__*/ function() {
|
|
2710
2710
|
function AccountEntity() {
|
|
2711
|
-
_class_call_check$
|
|
2711
|
+
_class_call_check$C(this, AccountEntity);
|
|
2712
2712
|
}
|
|
2713
|
-
_create_class$
|
|
2713
|
+
_create_class$y(AccountEntity, [
|
|
2714
2714
|
{
|
|
2715
2715
|
/**
|
|
2716
2716
|
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
@@ -2960,12 +2960,12 @@ function _create_class$z(Constructor, protoProps, staticProps) {
|
|
|
2960
2960
|
return null;
|
|
2961
2961
|
}
|
|
2962
2962
|
|
|
2963
|
-
function _class_call_check$
|
|
2963
|
+
function _class_call_check$B(instance, Constructor) {
|
|
2964
2964
|
if (!(instance instanceof Constructor)) {
|
|
2965
2965
|
throw new TypeError("Cannot call a class as a function");
|
|
2966
2966
|
}
|
|
2967
2967
|
}
|
|
2968
|
-
function _defineProperties$
|
|
2968
|
+
function _defineProperties$x(target, props) {
|
|
2969
2969
|
for(var i = 0; i < props.length; i++){
|
|
2970
2970
|
var descriptor = props[i];
|
|
2971
2971
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2974,9 +2974,9 @@ function _defineProperties$y(target, props) {
|
|
|
2974
2974
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2975
2975
|
}
|
|
2976
2976
|
}
|
|
2977
|
-
function _create_class$
|
|
2978
|
-
if (protoProps) _defineProperties$
|
|
2979
|
-
if (staticProps) _defineProperties$
|
|
2977
|
+
function _create_class$x(Constructor, protoProps, staticProps) {
|
|
2978
|
+
if (protoProps) _defineProperties$x(Constructor.prototype, protoProps);
|
|
2979
|
+
if (staticProps) _defineProperties$x(Constructor, staticProps);
|
|
2980
2980
|
return Constructor;
|
|
2981
2981
|
}
|
|
2982
2982
|
/*
|
|
@@ -2986,7 +2986,7 @@ function _create_class$y(Constructor, protoProps, staticProps) {
|
|
|
2986
2986
|
* Url object class which can perform various transformations on url strings.
|
|
2987
2987
|
*/ var UrlString = /*#__PURE__*/ function() {
|
|
2988
2988
|
function UrlString(url) {
|
|
2989
|
-
_class_call_check$
|
|
2989
|
+
_class_call_check$B(this, UrlString);
|
|
2990
2990
|
this._urlString = url;
|
|
2991
2991
|
if (!this._urlString) {
|
|
2992
2992
|
// Throws error if url is empty
|
|
@@ -2996,7 +2996,7 @@ function _create_class$y(Constructor, protoProps, staticProps) {
|
|
|
2996
2996
|
this._urlString = UrlString.canonicalizeUri(url);
|
|
2997
2997
|
}
|
|
2998
2998
|
}
|
|
2999
|
-
_create_class$
|
|
2999
|
+
_create_class$x(UrlString, [
|
|
3000
3000
|
{
|
|
3001
3001
|
key: "urlString",
|
|
3002
3002
|
get: function get() {
|
|
@@ -3301,7 +3301,7 @@ function _assert_this_initialized$d(self) {
|
|
|
3301
3301
|
}
|
|
3302
3302
|
return self;
|
|
3303
3303
|
}
|
|
3304
|
-
function _class_call_check$
|
|
3304
|
+
function _class_call_check$A(instance, Constructor) {
|
|
3305
3305
|
if (!(instance instanceof Constructor)) {
|
|
3306
3306
|
throw new TypeError("Cannot call a class as a function");
|
|
3307
3307
|
}
|
|
@@ -3443,7 +3443,7 @@ var _obj$3;
|
|
|
3443
3443
|
_inherits$d(CacheError, Error1);
|
|
3444
3444
|
var _super = _create_super$d(CacheError);
|
|
3445
3445
|
function CacheError(errorCode, errorMessage) {
|
|
3446
|
-
_class_call_check$
|
|
3446
|
+
_class_call_check$A(this, CacheError);
|
|
3447
3447
|
var _this;
|
|
3448
3448
|
var message = errorMessage || (CacheErrorMessages[errorCode] ? CacheErrorMessages[errorCode] : CacheErrorMessages[cacheErrorUnknown]);
|
|
3449
3449
|
_this = _super.call(this, "".concat(errorCode, ": ").concat(message));
|
|
@@ -3505,12 +3505,12 @@ function _async_to_generator$k(fn) {
|
|
|
3505
3505
|
});
|
|
3506
3506
|
};
|
|
3507
3507
|
}
|
|
3508
|
-
function _class_call_check$
|
|
3508
|
+
function _class_call_check$z(instance, Constructor) {
|
|
3509
3509
|
if (!(instance instanceof Constructor)) {
|
|
3510
3510
|
throw new TypeError("Cannot call a class as a function");
|
|
3511
3511
|
}
|
|
3512
3512
|
}
|
|
3513
|
-
function _defineProperties$
|
|
3513
|
+
function _defineProperties$w(target, props) {
|
|
3514
3514
|
for(var i = 0; i < props.length; i++){
|
|
3515
3515
|
var descriptor = props[i];
|
|
3516
3516
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3519,9 +3519,9 @@ function _defineProperties$x(target, props) {
|
|
|
3519
3519
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3520
3520
|
}
|
|
3521
3521
|
}
|
|
3522
|
-
function _create_class$
|
|
3523
|
-
if (protoProps) _defineProperties$
|
|
3524
|
-
if (staticProps) _defineProperties$
|
|
3522
|
+
function _create_class$w(Constructor, protoProps, staticProps) {
|
|
3523
|
+
if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
|
|
3524
|
+
if (staticProps) _defineProperties$w(Constructor, staticProps);
|
|
3525
3525
|
return Constructor;
|
|
3526
3526
|
}
|
|
3527
3527
|
function _define_property$h(obj, key, value) {
|
|
@@ -3722,13 +3722,13 @@ function _ts_generator$k(thisArg, body) {
|
|
|
3722
3722
|
* @internal
|
|
3723
3723
|
*/ var CacheManager = /*#__PURE__*/ function() {
|
|
3724
3724
|
function CacheManager(clientId, cryptoImpl, logger, staticAuthorityOptions) {
|
|
3725
|
-
_class_call_check$
|
|
3725
|
+
_class_call_check$z(this, CacheManager);
|
|
3726
3726
|
this.clientId = clientId;
|
|
3727
3727
|
this.cryptoImpl = cryptoImpl;
|
|
3728
3728
|
this.commonLogger = logger.clone(name$1, version$1);
|
|
3729
3729
|
this.staticAuthorityOptions = staticAuthorityOptions;
|
|
3730
3730
|
}
|
|
3731
|
-
_create_class$
|
|
3731
|
+
_create_class$w(CacheManager, [
|
|
3732
3732
|
{
|
|
3733
3733
|
/**
|
|
3734
3734
|
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
@@ -5025,10 +5025,10 @@ function _ts_generator$k(thisArg, body) {
|
|
|
5025
5025
|
_inherits$c(DefaultStorageClass, CacheManager);
|
|
5026
5026
|
var _super = _create_super$c(DefaultStorageClass);
|
|
5027
5027
|
function DefaultStorageClass() {
|
|
5028
|
-
_class_call_check$
|
|
5028
|
+
_class_call_check$z(this, DefaultStorageClass);
|
|
5029
5029
|
return _super.apply(this, arguments);
|
|
5030
5030
|
}
|
|
5031
|
-
_create_class$
|
|
5031
|
+
_create_class$w(DefaultStorageClass, [
|
|
5032
5032
|
{
|
|
5033
5033
|
key: "setAccount",
|
|
5034
5034
|
value: function setAccount() {
|
|
@@ -5482,12 +5482,12 @@ var DOMAIN_HINT = "domain_hint";
|
|
|
5482
5482
|
var BROKER_CLIENT_ID = "brk_client_id";
|
|
5483
5483
|
var BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
5484
5484
|
|
|
5485
|
-
function _class_call_check$
|
|
5485
|
+
function _class_call_check$y(instance, Constructor) {
|
|
5486
5486
|
if (!(instance instanceof Constructor)) {
|
|
5487
5487
|
throw new TypeError("Cannot call a class as a function");
|
|
5488
5488
|
}
|
|
5489
5489
|
}
|
|
5490
|
-
function _defineProperties$
|
|
5490
|
+
function _defineProperties$v(target, props) {
|
|
5491
5491
|
for(var i = 0; i < props.length; i++){
|
|
5492
5492
|
var descriptor = props[i];
|
|
5493
5493
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5496,8 +5496,8 @@ function _defineProperties$w(target, props) {
|
|
|
5496
5496
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5497
5497
|
}
|
|
5498
5498
|
}
|
|
5499
|
-
function _create_class$
|
|
5500
|
-
if (staticProps) _defineProperties$
|
|
5499
|
+
function _create_class$v(Constructor, protoProps, staticProps) {
|
|
5500
|
+
if (staticProps) _defineProperties$v(Constructor, staticProps);
|
|
5501
5501
|
return Constructor;
|
|
5502
5502
|
}
|
|
5503
5503
|
/*
|
|
@@ -5507,9 +5507,9 @@ function _create_class$w(Constructor, protoProps, staticProps) {
|
|
|
5507
5507
|
* Validates server consumable params from the "request" objects
|
|
5508
5508
|
*/ var RequestValidator = /*#__PURE__*/ function() {
|
|
5509
5509
|
function RequestValidator() {
|
|
5510
|
-
_class_call_check$
|
|
5510
|
+
_class_call_check$y(this, RequestValidator);
|
|
5511
5511
|
}
|
|
5512
|
-
_create_class$
|
|
5512
|
+
_create_class$v(RequestValidator, null, [
|
|
5513
5513
|
{
|
|
5514
5514
|
key: "validateRedirectUri",
|
|
5515
5515
|
value: /**
|
|
@@ -5589,12 +5589,12 @@ function _array_with_holes$3(arr) {
|
|
|
5589
5589
|
function _array_without_holes$7(arr) {
|
|
5590
5590
|
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
5591
5591
|
}
|
|
5592
|
-
function _class_call_check$
|
|
5592
|
+
function _class_call_check$x(instance, Constructor) {
|
|
5593
5593
|
if (!(instance instanceof Constructor)) {
|
|
5594
5594
|
throw new TypeError("Cannot call a class as a function");
|
|
5595
5595
|
}
|
|
5596
5596
|
}
|
|
5597
|
-
function _defineProperties$
|
|
5597
|
+
function _defineProperties$u(target, props) {
|
|
5598
5598
|
for(var i = 0; i < props.length; i++){
|
|
5599
5599
|
var descriptor = props[i];
|
|
5600
5600
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5603,8 +5603,8 @@ function _defineProperties$v(target, props) {
|
|
|
5603
5603
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5604
5604
|
}
|
|
5605
5605
|
}
|
|
5606
|
-
function _create_class$
|
|
5607
|
-
if (protoProps) _defineProperties$
|
|
5606
|
+
function _create_class$u(Constructor, protoProps, staticProps) {
|
|
5607
|
+
if (protoProps) _defineProperties$u(Constructor.prototype, protoProps);
|
|
5608
5608
|
return Constructor;
|
|
5609
5609
|
}
|
|
5610
5610
|
function _iterable_to_array$7(iter) {
|
|
@@ -5671,12 +5671,12 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
5671
5671
|
}
|
|
5672
5672
|
/** @internal */ var RequestParameterBuilder = /*#__PURE__*/ function() {
|
|
5673
5673
|
function RequestParameterBuilder(correlationId, performanceClient) {
|
|
5674
|
-
_class_call_check$
|
|
5674
|
+
_class_call_check$x(this, RequestParameterBuilder);
|
|
5675
5675
|
this.parameters = new Map();
|
|
5676
5676
|
this.performanceClient = performanceClient;
|
|
5677
5677
|
this.correlationId = correlationId;
|
|
5678
5678
|
}
|
|
5679
|
-
_create_class$
|
|
5679
|
+
_create_class$u(RequestParameterBuilder, [
|
|
5680
5680
|
{
|
|
5681
5681
|
/**
|
|
5682
5682
|
* add response_type = code
|
|
@@ -6391,12 +6391,12 @@ function _async_to_generator$i(fn) {
|
|
|
6391
6391
|
});
|
|
6392
6392
|
};
|
|
6393
6393
|
}
|
|
6394
|
-
function _class_call_check$
|
|
6394
|
+
function _class_call_check$w(instance, Constructor) {
|
|
6395
6395
|
if (!(instance instanceof Constructor)) {
|
|
6396
6396
|
throw new TypeError("Cannot call a class as a function");
|
|
6397
6397
|
}
|
|
6398
6398
|
}
|
|
6399
|
-
function _defineProperties$
|
|
6399
|
+
function _defineProperties$t(target, props) {
|
|
6400
6400
|
for(var i = 0; i < props.length; i++){
|
|
6401
6401
|
var descriptor = props[i];
|
|
6402
6402
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6405,8 +6405,8 @@ function _defineProperties$u(target, props) {
|
|
|
6405
6405
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6406
6406
|
}
|
|
6407
6407
|
}
|
|
6408
|
-
function _create_class$
|
|
6409
|
-
if (protoProps) _defineProperties$
|
|
6408
|
+
function _create_class$t(Constructor, protoProps, staticProps) {
|
|
6409
|
+
if (protoProps) _defineProperties$t(Constructor.prototype, protoProps);
|
|
6410
6410
|
return Constructor;
|
|
6411
6411
|
}
|
|
6412
6412
|
function _ts_generator$i(thisArg, body) {
|
|
@@ -6509,13 +6509,13 @@ function _ts_generator$i(thisArg, body) {
|
|
|
6509
6509
|
* Licensed under the MIT License.
|
|
6510
6510
|
*/ var RegionDiscovery = /*#__PURE__*/ function() {
|
|
6511
6511
|
function RegionDiscovery(networkInterface, logger, performanceClient, correlationId) {
|
|
6512
|
-
_class_call_check$
|
|
6512
|
+
_class_call_check$w(this, RegionDiscovery);
|
|
6513
6513
|
this.networkInterface = networkInterface;
|
|
6514
6514
|
this.logger = logger;
|
|
6515
6515
|
this.performanceClient = performanceClient;
|
|
6516
6516
|
this.correlationId = correlationId;
|
|
6517
6517
|
}
|
|
6518
|
-
_create_class$
|
|
6518
|
+
_create_class$t(RegionDiscovery, [
|
|
6519
6519
|
{
|
|
6520
6520
|
key: "detectRegion",
|
|
6521
6521
|
value: /**
|
|
@@ -6731,12 +6731,12 @@ function _async_to_generator$h(fn) {
|
|
|
6731
6731
|
});
|
|
6732
6732
|
};
|
|
6733
6733
|
}
|
|
6734
|
-
function _class_call_check$
|
|
6734
|
+
function _class_call_check$v(instance, Constructor) {
|
|
6735
6735
|
if (!(instance instanceof Constructor)) {
|
|
6736
6736
|
throw new TypeError("Cannot call a class as a function");
|
|
6737
6737
|
}
|
|
6738
6738
|
}
|
|
6739
|
-
function _defineProperties$
|
|
6739
|
+
function _defineProperties$s(target, props) {
|
|
6740
6740
|
for(var i = 0; i < props.length; i++){
|
|
6741
6741
|
var descriptor = props[i];
|
|
6742
6742
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6745,9 +6745,9 @@ function _defineProperties$t(target, props) {
|
|
|
6745
6745
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6746
6746
|
}
|
|
6747
6747
|
}
|
|
6748
|
-
function _create_class$
|
|
6749
|
-
if (protoProps) _defineProperties$
|
|
6750
|
-
if (staticProps) _defineProperties$
|
|
6748
|
+
function _create_class$s(Constructor, protoProps, staticProps) {
|
|
6749
|
+
if (protoProps) _defineProperties$s(Constructor.prototype, protoProps);
|
|
6750
|
+
if (staticProps) _defineProperties$s(Constructor, staticProps);
|
|
6751
6751
|
return Constructor;
|
|
6752
6752
|
}
|
|
6753
6753
|
function _define_property$e(obj, key, value) {
|
|
@@ -6908,7 +6908,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
6908
6908
|
* @internal
|
|
6909
6909
|
*/ var Authority = /*#__PURE__*/ function() {
|
|
6910
6910
|
function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, correlationId, performanceClient, managedIdentity) {
|
|
6911
|
-
_class_call_check$
|
|
6911
|
+
_class_call_check$v(this, Authority);
|
|
6912
6912
|
this.canonicalAuthority = authority;
|
|
6913
6913
|
this._canonicalAuthority.validateAsUri();
|
|
6914
6914
|
this.networkInterface = networkInterface;
|
|
@@ -6925,7 +6925,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
6925
6925
|
this.managedIdentity = managedIdentity || false;
|
|
6926
6926
|
this.regionDiscovery = new RegionDiscovery(networkInterface, this.logger, this.performanceClient, this.correlationId);
|
|
6927
6927
|
}
|
|
6928
|
-
_create_class$
|
|
6928
|
+
_create_class$s(Authority, [
|
|
6929
6929
|
{
|
|
6930
6930
|
/**
|
|
6931
6931
|
* Get {@link AuthorityType}
|
|
@@ -8132,7 +8132,7 @@ function _assert_this_initialized$b(self) {
|
|
|
8132
8132
|
}
|
|
8133
8133
|
return self;
|
|
8134
8134
|
}
|
|
8135
|
-
function _class_call_check$
|
|
8135
|
+
function _class_call_check$u(instance, Constructor) {
|
|
8136
8136
|
if (!(instance instanceof Constructor)) {
|
|
8137
8137
|
throw new TypeError("Cannot call a class as a function");
|
|
8138
8138
|
}
|
|
@@ -8206,7 +8206,7 @@ function _create_super$b(Derived) {
|
|
|
8206
8206
|
_inherits$b(ServerError, AuthError);
|
|
8207
8207
|
var _super = _create_super$b(ServerError);
|
|
8208
8208
|
function ServerError(errorCode, errorMessage, subError, errorNo, status) {
|
|
8209
|
-
_class_call_check$
|
|
8209
|
+
_class_call_check$u(this, ServerError);
|
|
8210
8210
|
var _this;
|
|
8211
8211
|
_this = _super.call(this, errorCode, errorMessage, subError);
|
|
8212
8212
|
_this.name = "ServerError";
|
|
@@ -8218,12 +8218,12 @@ function _create_super$b(Derived) {
|
|
|
8218
8218
|
return ServerError;
|
|
8219
8219
|
}(AuthError);
|
|
8220
8220
|
|
|
8221
|
-
function _class_call_check$
|
|
8221
|
+
function _class_call_check$t(instance, Constructor) {
|
|
8222
8222
|
if (!(instance instanceof Constructor)) {
|
|
8223
8223
|
throw new TypeError("Cannot call a class as a function");
|
|
8224
8224
|
}
|
|
8225
8225
|
}
|
|
8226
|
-
function _defineProperties$
|
|
8226
|
+
function _defineProperties$r(target, props) {
|
|
8227
8227
|
for(var i = 0; i < props.length; i++){
|
|
8228
8228
|
var descriptor = props[i];
|
|
8229
8229
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8232,8 +8232,8 @@ function _defineProperties$s(target, props) {
|
|
|
8232
8232
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8233
8233
|
}
|
|
8234
8234
|
}
|
|
8235
|
-
function _create_class$
|
|
8236
|
-
if (staticProps) _defineProperties$
|
|
8235
|
+
function _create_class$r(Constructor, protoProps, staticProps) {
|
|
8236
|
+
if (staticProps) _defineProperties$r(Constructor, staticProps);
|
|
8237
8237
|
return Constructor;
|
|
8238
8238
|
}
|
|
8239
8239
|
/*
|
|
@@ -8241,9 +8241,9 @@ function _create_class$s(Constructor, protoProps, staticProps) {
|
|
|
8241
8241
|
* Licensed under the MIT License.
|
|
8242
8242
|
*/ /** @internal */ var ThrottlingUtils = /*#__PURE__*/ function() {
|
|
8243
8243
|
function ThrottlingUtils() {
|
|
8244
|
-
_class_call_check$
|
|
8244
|
+
_class_call_check$t(this, ThrottlingUtils);
|
|
8245
8245
|
}
|
|
8246
|
-
_create_class$
|
|
8246
|
+
_create_class$r(ThrottlingUtils, null, [
|
|
8247
8247
|
{
|
|
8248
8248
|
key: "generateThrottlingStorageKey",
|
|
8249
8249
|
value: /**
|
|
@@ -8353,7 +8353,7 @@ function _assert_this_initialized$a(self) {
|
|
|
8353
8353
|
}
|
|
8354
8354
|
return self;
|
|
8355
8355
|
}
|
|
8356
|
-
function _class_call_check$
|
|
8356
|
+
function _class_call_check$s(instance, Constructor) {
|
|
8357
8357
|
if (!(instance instanceof Constructor)) {
|
|
8358
8358
|
throw new TypeError("Cannot call a class as a function");
|
|
8359
8359
|
}
|
|
@@ -8427,7 +8427,7 @@ function _create_super$a(Derived) {
|
|
|
8427
8427
|
_inherits$a(NetworkError, AuthError);
|
|
8428
8428
|
var _super = _create_super$a(NetworkError);
|
|
8429
8429
|
function NetworkError(error, httpStatus, responseHeaders) {
|
|
8430
|
-
_class_call_check$
|
|
8430
|
+
_class_call_check$s(this, NetworkError);
|
|
8431
8431
|
var _this;
|
|
8432
8432
|
_this = _super.call(this, error.errorCode, error.errorMessage, error.subError);
|
|
8433
8433
|
Object.setPrototypeOf(_assert_this_initialized$a(_this), NetworkError.prototype);
|
|
@@ -8469,12 +8469,12 @@ function _async_to_generator$f(fn) {
|
|
|
8469
8469
|
});
|
|
8470
8470
|
};
|
|
8471
8471
|
}
|
|
8472
|
-
function _class_call_check$
|
|
8472
|
+
function _class_call_check$r(instance, Constructor) {
|
|
8473
8473
|
if (!(instance instanceof Constructor)) {
|
|
8474
8474
|
throw new TypeError("Cannot call a class as a function");
|
|
8475
8475
|
}
|
|
8476
8476
|
}
|
|
8477
|
-
function _defineProperties$
|
|
8477
|
+
function _defineProperties$q(target, props) {
|
|
8478
8478
|
for(var i = 0; i < props.length; i++){
|
|
8479
8479
|
var descriptor = props[i];
|
|
8480
8480
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8483,8 +8483,8 @@ function _defineProperties$r(target, props) {
|
|
|
8483
8483
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8484
8484
|
}
|
|
8485
8485
|
}
|
|
8486
|
-
function _create_class$
|
|
8487
|
-
if (protoProps) _defineProperties$
|
|
8486
|
+
function _create_class$q(Constructor, protoProps, staticProps) {
|
|
8487
|
+
if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
|
|
8488
8488
|
return Constructor;
|
|
8489
8489
|
}
|
|
8490
8490
|
function _instanceof$d(left, right) {
|
|
@@ -8597,7 +8597,7 @@ function _ts_generator$f(thisArg, body) {
|
|
|
8597
8597
|
* @internal
|
|
8598
8598
|
*/ var BaseClient = /*#__PURE__*/ function() {
|
|
8599
8599
|
function BaseClient(configuration, performanceClient) {
|
|
8600
|
-
_class_call_check$
|
|
8600
|
+
_class_call_check$r(this, BaseClient);
|
|
8601
8601
|
// Set the configuration
|
|
8602
8602
|
this.config = buildClientConfiguration(configuration);
|
|
8603
8603
|
// Initialize the logger
|
|
@@ -8615,7 +8615,7 @@ function _ts_generator$f(thisArg, body) {
|
|
|
8615
8615
|
// set performance telemetry client
|
|
8616
8616
|
this.performanceClient = performanceClient;
|
|
8617
8617
|
}
|
|
8618
|
-
_create_class$
|
|
8618
|
+
_create_class$q(BaseClient, [
|
|
8619
8619
|
{
|
|
8620
8620
|
/**
|
|
8621
8621
|
* Creates default headers for requests to token endpoint
|
|
@@ -8824,7 +8824,7 @@ function _assert_this_initialized$9(self) {
|
|
|
8824
8824
|
}
|
|
8825
8825
|
return self;
|
|
8826
8826
|
}
|
|
8827
|
-
function _class_call_check$
|
|
8827
|
+
function _class_call_check$q(instance, Constructor) {
|
|
8828
8828
|
if (!(instance instanceof Constructor)) {
|
|
8829
8829
|
throw new TypeError("Cannot call a class as a function");
|
|
8830
8830
|
}
|
|
@@ -8943,7 +8943,7 @@ var InteractionRequiredAuthErrorMessages = (_obj$2 = {}, _define_property$d(_obj
|
|
|
8943
8943
|
_inherits$9(InteractionRequiredAuthError, AuthError);
|
|
8944
8944
|
var _super = _create_super$9(InteractionRequiredAuthError);
|
|
8945
8945
|
function InteractionRequiredAuthError(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims, errorNo) {
|
|
8946
|
-
_class_call_check$
|
|
8946
|
+
_class_call_check$q(this, InteractionRequiredAuthError);
|
|
8947
8947
|
var _this;
|
|
8948
8948
|
_this = _super.call(this, errorCode, errorMessage, subError);
|
|
8949
8949
|
Object.setPrototypeOf(_assert_this_initialized$9(_this), InteractionRequiredAuthError.prototype);
|
|
@@ -8976,12 +8976,12 @@ var InteractionRequiredAuthErrorMessages = (_obj$2 = {}, _define_property$d(_obj
|
|
|
8976
8976
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
8977
8977
|
}
|
|
8978
8978
|
|
|
8979
|
-
function _class_call_check$
|
|
8979
|
+
function _class_call_check$p(instance, Constructor) {
|
|
8980
8980
|
if (!(instance instanceof Constructor)) {
|
|
8981
8981
|
throw new TypeError("Cannot call a class as a function");
|
|
8982
8982
|
}
|
|
8983
8983
|
}
|
|
8984
|
-
function _defineProperties$
|
|
8984
|
+
function _defineProperties$p(target, props) {
|
|
8985
8985
|
for(var i = 0; i < props.length; i++){
|
|
8986
8986
|
var descriptor = props[i];
|
|
8987
8987
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8990,8 +8990,8 @@ function _defineProperties$q(target, props) {
|
|
|
8990
8990
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8991
8991
|
}
|
|
8992
8992
|
}
|
|
8993
|
-
function _create_class$
|
|
8994
|
-
if (staticProps) _defineProperties$
|
|
8993
|
+
function _create_class$p(Constructor, protoProps, staticProps) {
|
|
8994
|
+
if (staticProps) _defineProperties$p(Constructor, staticProps);
|
|
8995
8995
|
return Constructor;
|
|
8996
8996
|
}
|
|
8997
8997
|
/*
|
|
@@ -9001,9 +9001,9 @@ function _create_class$q(Constructor, protoProps, staticProps) {
|
|
|
9001
9001
|
* Class which provides helpers for OAuth 2.0 protocol specific values
|
|
9002
9002
|
*/ var ProtocolUtils = /*#__PURE__*/ function() {
|
|
9003
9003
|
function ProtocolUtils() {
|
|
9004
|
-
_class_call_check$
|
|
9004
|
+
_class_call_check$p(this, ProtocolUtils);
|
|
9005
9005
|
}
|
|
9006
|
-
_create_class$
|
|
9006
|
+
_create_class$p(ProtocolUtils, null, [
|
|
9007
9007
|
{
|
|
9008
9008
|
key: "setRequestState",
|
|
9009
9009
|
value: /**
|
|
@@ -9098,12 +9098,12 @@ function _async_to_generator$e(fn) {
|
|
|
9098
9098
|
});
|
|
9099
9099
|
};
|
|
9100
9100
|
}
|
|
9101
|
-
function _class_call_check$
|
|
9101
|
+
function _class_call_check$o(instance, Constructor) {
|
|
9102
9102
|
if (!(instance instanceof Constructor)) {
|
|
9103
9103
|
throw new TypeError("Cannot call a class as a function");
|
|
9104
9104
|
}
|
|
9105
9105
|
}
|
|
9106
|
-
function _defineProperties$
|
|
9106
|
+
function _defineProperties$o(target, props) {
|
|
9107
9107
|
for(var i = 0; i < props.length; i++){
|
|
9108
9108
|
var descriptor = props[i];
|
|
9109
9109
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9112,8 +9112,8 @@ function _defineProperties$p(target, props) {
|
|
|
9112
9112
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9113
9113
|
}
|
|
9114
9114
|
}
|
|
9115
|
-
function _create_class$
|
|
9116
|
-
if (protoProps) _defineProperties$
|
|
9115
|
+
function _create_class$o(Constructor, protoProps, staticProps) {
|
|
9116
|
+
if (protoProps) _defineProperties$o(Constructor.prototype, protoProps);
|
|
9117
9117
|
return Constructor;
|
|
9118
9118
|
}
|
|
9119
9119
|
function _define_property$c(obj, key, value) {
|
|
@@ -9246,11 +9246,11 @@ function _ts_generator$e(thisArg, body) {
|
|
|
9246
9246
|
SW: "sw"};
|
|
9247
9247
|
/** @internal */ var PopTokenGenerator = /*#__PURE__*/ function() {
|
|
9248
9248
|
function PopTokenGenerator(cryptoUtils, performanceClient) {
|
|
9249
|
-
_class_call_check$
|
|
9249
|
+
_class_call_check$o(this, PopTokenGenerator);
|
|
9250
9250
|
this.cryptoUtils = cryptoUtils;
|
|
9251
9251
|
this.performanceClient = performanceClient;
|
|
9252
9252
|
}
|
|
9253
|
-
_create_class$
|
|
9253
|
+
_create_class$o(PopTokenGenerator, [
|
|
9254
9254
|
{
|
|
9255
9255
|
key: "generateCnf",
|
|
9256
9256
|
value: /**
|
|
@@ -9378,12 +9378,12 @@ function _ts_generator$e(thisArg, body) {
|
|
|
9378
9378
|
return PopTokenGenerator;
|
|
9379
9379
|
}();
|
|
9380
9380
|
|
|
9381
|
-
function _class_call_check$
|
|
9381
|
+
function _class_call_check$n(instance, Constructor) {
|
|
9382
9382
|
if (!(instance instanceof Constructor)) {
|
|
9383
9383
|
throw new TypeError("Cannot call a class as a function");
|
|
9384
9384
|
}
|
|
9385
9385
|
}
|
|
9386
|
-
function _defineProperties$
|
|
9386
|
+
function _defineProperties$n(target, props) {
|
|
9387
9387
|
for(var i = 0; i < props.length; i++){
|
|
9388
9388
|
var descriptor = props[i];
|
|
9389
9389
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9392,8 +9392,8 @@ function _defineProperties$o(target, props) {
|
|
|
9392
9392
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9393
9393
|
}
|
|
9394
9394
|
}
|
|
9395
|
-
function _create_class$
|
|
9396
|
-
if (protoProps) _defineProperties$
|
|
9395
|
+
function _create_class$n(Constructor, protoProps, staticProps) {
|
|
9396
|
+
if (protoProps) _defineProperties$n(Constructor.prototype, protoProps);
|
|
9397
9397
|
return Constructor;
|
|
9398
9398
|
}
|
|
9399
9399
|
/*
|
|
@@ -9404,11 +9404,11 @@ function _create_class$o(Constructor, protoProps, staticProps) {
|
|
|
9404
9404
|
* decisions to read from and write to the persistent cache
|
|
9405
9405
|
*/ var TokenCacheContext = /*#__PURE__*/ function() {
|
|
9406
9406
|
function TokenCacheContext(tokenCache, hasChanged) {
|
|
9407
|
-
_class_call_check$
|
|
9407
|
+
_class_call_check$n(this, TokenCacheContext);
|
|
9408
9408
|
this.cache = tokenCache;
|
|
9409
9409
|
this.hasChanged = hasChanged;
|
|
9410
9410
|
}
|
|
9411
|
-
_create_class$
|
|
9411
|
+
_create_class$n(TokenCacheContext, [
|
|
9412
9412
|
{
|
|
9413
9413
|
key: "cacheHasChanged",
|
|
9414
9414
|
get: /**
|
|
@@ -9458,12 +9458,12 @@ function _async_to_generator$d(fn) {
|
|
|
9458
9458
|
});
|
|
9459
9459
|
};
|
|
9460
9460
|
}
|
|
9461
|
-
function _class_call_check$
|
|
9461
|
+
function _class_call_check$m(instance, Constructor) {
|
|
9462
9462
|
if (!(instance instanceof Constructor)) {
|
|
9463
9463
|
throw new TypeError("Cannot call a class as a function");
|
|
9464
9464
|
}
|
|
9465
9465
|
}
|
|
9466
|
-
function _defineProperties$
|
|
9466
|
+
function _defineProperties$m(target, props) {
|
|
9467
9467
|
for(var i = 0; i < props.length; i++){
|
|
9468
9468
|
var descriptor = props[i];
|
|
9469
9469
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9472,9 +9472,9 @@ function _defineProperties$n(target, props) {
|
|
|
9472
9472
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9473
9473
|
}
|
|
9474
9474
|
}
|
|
9475
|
-
function _create_class$
|
|
9476
|
-
if (protoProps) _defineProperties$
|
|
9477
|
-
if (staticProps) _defineProperties$
|
|
9475
|
+
function _create_class$m(Constructor, protoProps, staticProps) {
|
|
9476
|
+
if (protoProps) _defineProperties$m(Constructor.prototype, protoProps);
|
|
9477
|
+
if (staticProps) _defineProperties$m(Constructor, staticProps);
|
|
9478
9478
|
return Constructor;
|
|
9479
9479
|
}
|
|
9480
9480
|
function _ts_generator$d(thisArg, body) {
|
|
@@ -9586,7 +9586,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9586
9586
|
* @internal
|
|
9587
9587
|
*/ var ResponseHandler = /*#__PURE__*/ function() {
|
|
9588
9588
|
function ResponseHandler(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {
|
|
9589
|
-
_class_call_check$
|
|
9589
|
+
_class_call_check$m(this, ResponseHandler);
|
|
9590
9590
|
this.clientId = clientId;
|
|
9591
9591
|
this.cacheStorage = cacheStorage;
|
|
9592
9592
|
this.cryptoObj = cryptoObj;
|
|
@@ -9595,7 +9595,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9595
9595
|
this.persistencePlugin = persistencePlugin;
|
|
9596
9596
|
this.performanceClient = performanceClient;
|
|
9597
9597
|
}
|
|
9598
|
-
_create_class$
|
|
9598
|
+
_create_class$m(ResponseHandler, [
|
|
9599
9599
|
{
|
|
9600
9600
|
/**
|
|
9601
9601
|
* Function which validates server authorization code response.
|
|
@@ -10177,12 +10177,12 @@ function _async_to_generator$b(fn) {
|
|
|
10177
10177
|
});
|
|
10178
10178
|
};
|
|
10179
10179
|
}
|
|
10180
|
-
function _class_call_check$
|
|
10180
|
+
function _class_call_check$l(instance, Constructor) {
|
|
10181
10181
|
if (!(instance instanceof Constructor)) {
|
|
10182
10182
|
throw new TypeError("Cannot call a class as a function");
|
|
10183
10183
|
}
|
|
10184
10184
|
}
|
|
10185
|
-
function _defineProperties$
|
|
10185
|
+
function _defineProperties$l(target, props) {
|
|
10186
10186
|
for(var i = 0; i < props.length; i++){
|
|
10187
10187
|
var descriptor = props[i];
|
|
10188
10188
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10191,8 +10191,8 @@ function _defineProperties$m(target, props) {
|
|
|
10191
10191
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10192
10192
|
}
|
|
10193
10193
|
}
|
|
10194
|
-
function _create_class$
|
|
10195
|
-
if (protoProps) _defineProperties$
|
|
10194
|
+
function _create_class$l(Constructor, protoProps, staticProps) {
|
|
10195
|
+
if (protoProps) _defineProperties$l(Constructor.prototype, protoProps);
|
|
10196
10196
|
return Constructor;
|
|
10197
10197
|
}
|
|
10198
10198
|
function _define_property$b(obj, key, value) {
|
|
@@ -10390,7 +10390,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
10390
10390
|
_inherits$8(AuthorizationCodeClient, BaseClient);
|
|
10391
10391
|
var _super = _create_super$8(AuthorizationCodeClient);
|
|
10392
10392
|
function AuthorizationCodeClient(configuration, performanceClient) {
|
|
10393
|
-
_class_call_check$
|
|
10393
|
+
_class_call_check$l(this, AuthorizationCodeClient);
|
|
10394
10394
|
var _this;
|
|
10395
10395
|
var _this_config_authOptions_authority_options_OIDCOptions;
|
|
10396
10396
|
_this = _super.call(this, configuration, performanceClient);
|
|
@@ -10399,7 +10399,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
10399
10399
|
_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;
|
|
10400
10400
|
return _this;
|
|
10401
10401
|
}
|
|
10402
|
-
_create_class$
|
|
10402
|
+
_create_class$l(AuthorizationCodeClient, [
|
|
10403
10403
|
{
|
|
10404
10404
|
key: "getAuthCodeUrl",
|
|
10405
10405
|
value: /**
|
|
@@ -10973,12 +10973,12 @@ function _async_to_generator$a(fn) {
|
|
|
10973
10973
|
});
|
|
10974
10974
|
};
|
|
10975
10975
|
}
|
|
10976
|
-
function _class_call_check$
|
|
10976
|
+
function _class_call_check$k(instance, Constructor) {
|
|
10977
10977
|
if (!(instance instanceof Constructor)) {
|
|
10978
10978
|
throw new TypeError("Cannot call a class as a function");
|
|
10979
10979
|
}
|
|
10980
10980
|
}
|
|
10981
|
-
function _defineProperties$
|
|
10981
|
+
function _defineProperties$k(target, props) {
|
|
10982
10982
|
for(var i = 0; i < props.length; i++){
|
|
10983
10983
|
var descriptor = props[i];
|
|
10984
10984
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10987,8 +10987,8 @@ function _defineProperties$l(target, props) {
|
|
|
10987
10987
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10988
10988
|
}
|
|
10989
10989
|
}
|
|
10990
|
-
function _create_class$
|
|
10991
|
-
if (protoProps) _defineProperties$
|
|
10990
|
+
function _create_class$k(Constructor, protoProps, staticProps) {
|
|
10991
|
+
if (protoProps) _defineProperties$k(Constructor.prototype, protoProps);
|
|
10992
10992
|
return Constructor;
|
|
10993
10993
|
}
|
|
10994
10994
|
function _define_property$a(obj, key, value) {
|
|
@@ -11211,10 +11211,10 @@ function _ts_generator$a(thisArg, body) {
|
|
|
11211
11211
|
_inherits$7(RefreshTokenClient, BaseClient);
|
|
11212
11212
|
var _super = _create_super$7(RefreshTokenClient);
|
|
11213
11213
|
function RefreshTokenClient(configuration, performanceClient) {
|
|
11214
|
-
_class_call_check$
|
|
11214
|
+
_class_call_check$k(this, RefreshTokenClient);
|
|
11215
11215
|
return _super.call(this, configuration, performanceClient);
|
|
11216
11216
|
}
|
|
11217
|
-
_create_class$
|
|
11217
|
+
_create_class$k(RefreshTokenClient, [
|
|
11218
11218
|
{
|
|
11219
11219
|
key: "acquireToken",
|
|
11220
11220
|
value: function acquireToken(request) {
|
|
@@ -11597,12 +11597,12 @@ function _async_to_generator$9(fn) {
|
|
|
11597
11597
|
});
|
|
11598
11598
|
};
|
|
11599
11599
|
}
|
|
11600
|
-
function _class_call_check$
|
|
11600
|
+
function _class_call_check$j(instance, Constructor) {
|
|
11601
11601
|
if (!(instance instanceof Constructor)) {
|
|
11602
11602
|
throw new TypeError("Cannot call a class as a function");
|
|
11603
11603
|
}
|
|
11604
11604
|
}
|
|
11605
|
-
function _defineProperties$
|
|
11605
|
+
function _defineProperties$j(target, props) {
|
|
11606
11606
|
for(var i = 0; i < props.length; i++){
|
|
11607
11607
|
var descriptor = props[i];
|
|
11608
11608
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11611,8 +11611,8 @@ function _defineProperties$k(target, props) {
|
|
|
11611
11611
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11612
11612
|
}
|
|
11613
11613
|
}
|
|
11614
|
-
function _create_class$
|
|
11615
|
-
if (protoProps) _defineProperties$
|
|
11614
|
+
function _create_class$j(Constructor, protoProps, staticProps) {
|
|
11615
|
+
if (protoProps) _defineProperties$j(Constructor.prototype, protoProps);
|
|
11616
11616
|
return Constructor;
|
|
11617
11617
|
}
|
|
11618
11618
|
function _define_property$9(obj, key, value) {
|
|
@@ -11878,10 +11878,10 @@ function _ts_generator$9(thisArg, body) {
|
|
|
11878
11878
|
_inherits$6(SilentFlowClient, BaseClient);
|
|
11879
11879
|
var _super = _create_super$6(SilentFlowClient);
|
|
11880
11880
|
function SilentFlowClient(configuration, performanceClient) {
|
|
11881
|
-
_class_call_check$
|
|
11881
|
+
_class_call_check$j(this, SilentFlowClient);
|
|
11882
11882
|
return _super.call(this, configuration, performanceClient);
|
|
11883
11883
|
}
|
|
11884
|
-
_create_class$
|
|
11884
|
+
_create_class$j(SilentFlowClient, [
|
|
11885
11885
|
{
|
|
11886
11886
|
key: "acquireToken",
|
|
11887
11887
|
value: /**
|
|
@@ -12061,12 +12061,12 @@ function _ts_generator$9(thisArg, body) {
|
|
|
12061
12061
|
return SilentFlowClient;
|
|
12062
12062
|
}(BaseClient);
|
|
12063
12063
|
|
|
12064
|
-
function _class_call_check$
|
|
12064
|
+
function _class_call_check$i(instance, Constructor) {
|
|
12065
12065
|
if (!(instance instanceof Constructor)) {
|
|
12066
12066
|
throw new TypeError("Cannot call a class as a function");
|
|
12067
12067
|
}
|
|
12068
12068
|
}
|
|
12069
|
-
function _defineProperties$
|
|
12069
|
+
function _defineProperties$i(target, props) {
|
|
12070
12070
|
for(var i = 0; i < props.length; i++){
|
|
12071
12071
|
var descriptor = props[i];
|
|
12072
12072
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12075,9 +12075,9 @@ function _defineProperties$j(target, props) {
|
|
|
12075
12075
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12076
12076
|
}
|
|
12077
12077
|
}
|
|
12078
|
-
function _create_class$
|
|
12079
|
-
if (protoProps) _defineProperties$
|
|
12080
|
-
if (staticProps) _defineProperties$
|
|
12078
|
+
function _create_class$i(Constructor, protoProps, staticProps) {
|
|
12079
|
+
if (protoProps) _defineProperties$i(Constructor.prototype, protoProps);
|
|
12080
|
+
if (staticProps) _defineProperties$i(Constructor, staticProps);
|
|
12081
12081
|
return Constructor;
|
|
12082
12082
|
}
|
|
12083
12083
|
function _instanceof$a(left, right) {
|
|
@@ -12149,7 +12149,7 @@ function setSku(params) {
|
|
|
12149
12149
|
}
|
|
12150
12150
|
/** @internal */ var ServerTelemetryManager = /*#__PURE__*/ function() {
|
|
12151
12151
|
function ServerTelemetryManager(telemetryRequest, cacheManager) {
|
|
12152
|
-
_class_call_check$
|
|
12152
|
+
_class_call_check$i(this, ServerTelemetryManager);
|
|
12153
12153
|
this.cacheOutcome = CacheOutcome.NOT_APPLICABLE;
|
|
12154
12154
|
this.cacheManager = cacheManager;
|
|
12155
12155
|
this.apiId = telemetryRequest.apiId;
|
|
@@ -12158,7 +12158,7 @@ function setSku(params) {
|
|
|
12158
12158
|
this.wrapperVer = telemetryRequest.wrapperVer || Constants$1.EMPTY_STRING;
|
|
12159
12159
|
this.telemetryCacheKey = SERVER_TELEM_CONSTANTS.CACHE_KEY + Separators.CACHE_KEY_SEPARATOR + telemetryRequest.clientId;
|
|
12160
12160
|
}
|
|
12161
|
-
_create_class$
|
|
12161
|
+
_create_class$i(ServerTelemetryManager, [
|
|
12162
12162
|
{
|
|
12163
12163
|
/**
|
|
12164
12164
|
* API to add MSER Telemetry to request
|
|
@@ -12386,12 +12386,12 @@ function setSku(params) {
|
|
|
12386
12386
|
return ServerTelemetryManager;
|
|
12387
12387
|
}();
|
|
12388
12388
|
|
|
12389
|
-
function _class_call_check$
|
|
12389
|
+
function _class_call_check$h(instance, Constructor) {
|
|
12390
12390
|
if (!(instance instanceof Constructor)) {
|
|
12391
12391
|
throw new TypeError("Cannot call a class as a function");
|
|
12392
12392
|
}
|
|
12393
12393
|
}
|
|
12394
|
-
function _defineProperties$
|
|
12394
|
+
function _defineProperties$h(target, props) {
|
|
12395
12395
|
for(var i = 0; i < props.length; i++){
|
|
12396
12396
|
var descriptor = props[i];
|
|
12397
12397
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12400,8 +12400,8 @@ function _defineProperties$i(target, props) {
|
|
|
12400
12400
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12401
12401
|
}
|
|
12402
12402
|
}
|
|
12403
|
-
function _create_class$
|
|
12404
|
-
if (staticProps) _defineProperties$
|
|
12403
|
+
function _create_class$h(Constructor, protoProps, staticProps) {
|
|
12404
|
+
if (staticProps) _defineProperties$h(Constructor, staticProps);
|
|
12405
12405
|
return Constructor;
|
|
12406
12406
|
}
|
|
12407
12407
|
/*
|
|
@@ -12412,9 +12412,9 @@ function _create_class$i(Constructor, protoProps, staticProps) {
|
|
|
12412
12412
|
* @internal
|
|
12413
12413
|
*/ var Deserializer = /*#__PURE__*/ function() {
|
|
12414
12414
|
function Deserializer() {
|
|
12415
|
-
_class_call_check$
|
|
12415
|
+
_class_call_check$h(this, Deserializer);
|
|
12416
12416
|
}
|
|
12417
|
-
_create_class$
|
|
12417
|
+
_create_class$h(Deserializer, null, [
|
|
12418
12418
|
{
|
|
12419
12419
|
key: "deserializeJSONBlob",
|
|
12420
12420
|
value: /**
|
|
@@ -12653,12 +12653,12 @@ var MSAL_FORCE_REGION = "MSAL_FORCE_REGION";
|
|
|
12653
12653
|
JWT_ID: "jti"
|
|
12654
12654
|
};
|
|
12655
12655
|
|
|
12656
|
-
function _class_call_check$
|
|
12656
|
+
function _class_call_check$g(instance, Constructor) {
|
|
12657
12657
|
if (!(instance instanceof Constructor)) {
|
|
12658
12658
|
throw new TypeError("Cannot call a class as a function");
|
|
12659
12659
|
}
|
|
12660
12660
|
}
|
|
12661
|
-
function _defineProperties$
|
|
12661
|
+
function _defineProperties$g(target, props) {
|
|
12662
12662
|
for(var i = 0; i < props.length; i++){
|
|
12663
12663
|
var descriptor = props[i];
|
|
12664
12664
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12667,8 +12667,8 @@ function _defineProperties$h(target, props) {
|
|
|
12667
12667
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12668
12668
|
}
|
|
12669
12669
|
}
|
|
12670
|
-
function _create_class$
|
|
12671
|
-
if (staticProps) _defineProperties$
|
|
12670
|
+
function _create_class$g(Constructor, protoProps, staticProps) {
|
|
12671
|
+
if (staticProps) _defineProperties$g(Constructor, staticProps);
|
|
12672
12672
|
return Constructor;
|
|
12673
12673
|
}
|
|
12674
12674
|
/*
|
|
@@ -12676,9 +12676,9 @@ function _create_class$h(Constructor, protoProps, staticProps) {
|
|
|
12676
12676
|
* Licensed under the MIT License.
|
|
12677
12677
|
*/ var NetworkUtils = /*#__PURE__*/ function() {
|
|
12678
12678
|
function NetworkUtils() {
|
|
12679
|
-
_class_call_check$
|
|
12679
|
+
_class_call_check$g(this, NetworkUtils);
|
|
12680
12680
|
}
|
|
12681
|
-
_create_class$
|
|
12681
|
+
_create_class$g(NetworkUtils, null, [
|
|
12682
12682
|
{
|
|
12683
12683
|
key: "getNetworkResponse",
|
|
12684
12684
|
value: function getNetworkResponse(headers, body, statusCode) {
|
|
@@ -12755,12 +12755,12 @@ function _async_to_generator$8(fn) {
|
|
|
12755
12755
|
});
|
|
12756
12756
|
};
|
|
12757
12757
|
}
|
|
12758
|
-
function _class_call_check$
|
|
12758
|
+
function _class_call_check$f(instance, Constructor) {
|
|
12759
12759
|
if (!(instance instanceof Constructor)) {
|
|
12760
12760
|
throw new TypeError("Cannot call a class as a function");
|
|
12761
12761
|
}
|
|
12762
12762
|
}
|
|
12763
|
-
function _defineProperties$
|
|
12763
|
+
function _defineProperties$f(target, props) {
|
|
12764
12764
|
for(var i = 0; i < props.length; i++){
|
|
12765
12765
|
var descriptor = props[i];
|
|
12766
12766
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12769,8 +12769,8 @@ function _defineProperties$g(target, props) {
|
|
|
12769
12769
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12770
12770
|
}
|
|
12771
12771
|
}
|
|
12772
|
-
function _create_class$
|
|
12773
|
-
if (protoProps) _defineProperties$
|
|
12772
|
+
function _create_class$f(Constructor, protoProps, staticProps) {
|
|
12773
|
+
if (protoProps) _defineProperties$f(Constructor.prototype, protoProps);
|
|
12774
12774
|
return Constructor;
|
|
12775
12775
|
}
|
|
12776
12776
|
function _define_property$8(obj, key, value) {
|
|
@@ -12943,11 +12943,11 @@ function _ts_generator$8(thisArg, body) {
|
|
|
12943
12943
|
* This class implements the API for network requests.
|
|
12944
12944
|
*/ var HttpClient = /*#__PURE__*/ function() {
|
|
12945
12945
|
function HttpClient(proxyUrl, customAgentOptions) {
|
|
12946
|
-
_class_call_check$
|
|
12946
|
+
_class_call_check$f(this, HttpClient);
|
|
12947
12947
|
this.proxyUrl = proxyUrl || "";
|
|
12948
12948
|
this.customAgentOptions = customAgentOptions || {};
|
|
12949
12949
|
}
|
|
12950
|
-
_create_class$
|
|
12950
|
+
_create_class$f(HttpClient, [
|
|
12951
12951
|
{
|
|
12952
12952
|
key: "sendGetRequestAsync",
|
|
12953
12953
|
value: /**
|
|
@@ -13273,12 +13273,12 @@ function _assert_this_initialized$5(self) {
|
|
|
13273
13273
|
}
|
|
13274
13274
|
return self;
|
|
13275
13275
|
}
|
|
13276
|
-
function _class_call_check$
|
|
13276
|
+
function _class_call_check$e(instance, Constructor) {
|
|
13277
13277
|
if (!(instance instanceof Constructor)) {
|
|
13278
13278
|
throw new TypeError("Cannot call a class as a function");
|
|
13279
13279
|
}
|
|
13280
13280
|
}
|
|
13281
|
-
function _defineProperties$
|
|
13281
|
+
function _defineProperties$e(target, props) {
|
|
13282
13282
|
for(var i = 0; i < props.length; i++){
|
|
13283
13283
|
var descriptor = props[i];
|
|
13284
13284
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13287,8 +13287,8 @@ function _defineProperties$f(target, props) {
|
|
|
13287
13287
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13288
13288
|
}
|
|
13289
13289
|
}
|
|
13290
|
-
function _create_class$
|
|
13291
|
-
if (staticProps) _defineProperties$
|
|
13290
|
+
function _create_class$e(Constructor, protoProps, staticProps) {
|
|
13291
|
+
if (staticProps) _defineProperties$e(Constructor, staticProps);
|
|
13292
13292
|
return Constructor;
|
|
13293
13293
|
}
|
|
13294
13294
|
function _get_prototype_of$5(o) {
|
|
@@ -13394,13 +13394,13 @@ var NodeAuthError = /*#__PURE__*/ function(AuthError) {
|
|
|
13394
13394
|
_inherits$5(NodeAuthError, AuthError);
|
|
13395
13395
|
var _super = _create_super$5(NodeAuthError);
|
|
13396
13396
|
function NodeAuthError(errorCode, errorMessage) {
|
|
13397
|
-
_class_call_check$
|
|
13397
|
+
_class_call_check$e(this, NodeAuthError);
|
|
13398
13398
|
var _this;
|
|
13399
13399
|
_this = _super.call(this, errorCode, errorMessage);
|
|
13400
13400
|
_this.name = "NodeAuthError";
|
|
13401
13401
|
return _this;
|
|
13402
13402
|
}
|
|
13403
|
-
_create_class$
|
|
13403
|
+
_create_class$e(NodeAuthError, null, [
|
|
13404
13404
|
{
|
|
13405
13405
|
key: "createInvalidLoopbackAddressTypeError",
|
|
13406
13406
|
value: /**
|
|
@@ -13648,12 +13648,12 @@ function v4(options, buf, offset) {
|
|
|
13648
13648
|
return stringify(rnds);
|
|
13649
13649
|
}
|
|
13650
13650
|
|
|
13651
|
-
function _class_call_check$
|
|
13651
|
+
function _class_call_check$d(instance, Constructor) {
|
|
13652
13652
|
if (!(instance instanceof Constructor)) {
|
|
13653
13653
|
throw new TypeError("Cannot call a class as a function");
|
|
13654
13654
|
}
|
|
13655
13655
|
}
|
|
13656
|
-
function _defineProperties$
|
|
13656
|
+
function _defineProperties$d(target, props) {
|
|
13657
13657
|
for(var i = 0; i < props.length; i++){
|
|
13658
13658
|
var descriptor = props[i];
|
|
13659
13659
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13662,8 +13662,8 @@ function _defineProperties$e(target, props) {
|
|
|
13662
13662
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13663
13663
|
}
|
|
13664
13664
|
}
|
|
13665
|
-
function _create_class$
|
|
13666
|
-
if (protoProps) _defineProperties$
|
|
13665
|
+
function _create_class$d(Constructor, protoProps, staticProps) {
|
|
13666
|
+
if (protoProps) _defineProperties$d(Constructor.prototype, protoProps);
|
|
13667
13667
|
return Constructor;
|
|
13668
13668
|
}
|
|
13669
13669
|
/*
|
|
@@ -13671,9 +13671,9 @@ function _create_class$e(Constructor, protoProps, staticProps) {
|
|
|
13671
13671
|
* Licensed under the MIT License.
|
|
13672
13672
|
*/ var GuidGenerator = /*#__PURE__*/ function() {
|
|
13673
13673
|
function GuidGenerator() {
|
|
13674
|
-
_class_call_check$
|
|
13674
|
+
_class_call_check$d(this, GuidGenerator);
|
|
13675
13675
|
}
|
|
13676
|
-
_create_class$
|
|
13676
|
+
_create_class$d(GuidGenerator, [
|
|
13677
13677
|
{
|
|
13678
13678
|
/**
|
|
13679
13679
|
*
|
|
@@ -13698,12 +13698,12 @@ function _create_class$e(Constructor, protoProps, staticProps) {
|
|
|
13698
13698
|
return GuidGenerator;
|
|
13699
13699
|
}();
|
|
13700
13700
|
|
|
13701
|
-
function _class_call_check$
|
|
13701
|
+
function _class_call_check$c(instance, Constructor) {
|
|
13702
13702
|
if (!(instance instanceof Constructor)) {
|
|
13703
13703
|
throw new TypeError("Cannot call a class as a function");
|
|
13704
13704
|
}
|
|
13705
13705
|
}
|
|
13706
|
-
function _defineProperties$
|
|
13706
|
+
function _defineProperties$c(target, props) {
|
|
13707
13707
|
for(var i = 0; i < props.length; i++){
|
|
13708
13708
|
var descriptor = props[i];
|
|
13709
13709
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13712,8 +13712,8 @@ function _defineProperties$d(target, props) {
|
|
|
13712
13712
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13713
13713
|
}
|
|
13714
13714
|
}
|
|
13715
|
-
function _create_class$
|
|
13716
|
-
if (staticProps) _defineProperties$
|
|
13715
|
+
function _create_class$c(Constructor, protoProps, staticProps) {
|
|
13716
|
+
if (staticProps) _defineProperties$c(Constructor, staticProps);
|
|
13717
13717
|
return Constructor;
|
|
13718
13718
|
}
|
|
13719
13719
|
/*
|
|
@@ -13721,9 +13721,9 @@ function _create_class$d(Constructor, protoProps, staticProps) {
|
|
|
13721
13721
|
* Licensed under the MIT License.
|
|
13722
13722
|
*/ var EncodingUtils = /*#__PURE__*/ function() {
|
|
13723
13723
|
function EncodingUtils() {
|
|
13724
|
-
_class_call_check$
|
|
13724
|
+
_class_call_check$c(this, EncodingUtils);
|
|
13725
13725
|
}
|
|
13726
|
-
_create_class$
|
|
13726
|
+
_create_class$c(EncodingUtils, null, [
|
|
13727
13727
|
{
|
|
13728
13728
|
key: "base64Encode",
|
|
13729
13729
|
value: /**
|
|
@@ -13771,12 +13771,12 @@ function _create_class$d(Constructor, protoProps, staticProps) {
|
|
|
13771
13771
|
return EncodingUtils;
|
|
13772
13772
|
}();
|
|
13773
13773
|
|
|
13774
|
-
function _class_call_check$
|
|
13774
|
+
function _class_call_check$b(instance, Constructor) {
|
|
13775
13775
|
if (!(instance instanceof Constructor)) {
|
|
13776
13776
|
throw new TypeError("Cannot call a class as a function");
|
|
13777
13777
|
}
|
|
13778
13778
|
}
|
|
13779
|
-
function _defineProperties$
|
|
13779
|
+
function _defineProperties$b(target, props) {
|
|
13780
13780
|
for(var i = 0; i < props.length; i++){
|
|
13781
13781
|
var descriptor = props[i];
|
|
13782
13782
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13785,8 +13785,8 @@ function _defineProperties$c(target, props) {
|
|
|
13785
13785
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13786
13786
|
}
|
|
13787
13787
|
}
|
|
13788
|
-
function _create_class$
|
|
13789
|
-
if (protoProps) _defineProperties$
|
|
13788
|
+
function _create_class$b(Constructor, protoProps, staticProps) {
|
|
13789
|
+
if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
|
|
13790
13790
|
return Constructor;
|
|
13791
13791
|
}
|
|
13792
13792
|
/*
|
|
@@ -13794,9 +13794,9 @@ function _create_class$c(Constructor, protoProps, staticProps) {
|
|
|
13794
13794
|
* Licensed under the MIT License.
|
|
13795
13795
|
*/ var HashUtils = /*#__PURE__*/ function() {
|
|
13796
13796
|
function HashUtils() {
|
|
13797
|
-
_class_call_check$
|
|
13797
|
+
_class_call_check$b(this, HashUtils);
|
|
13798
13798
|
}
|
|
13799
|
-
_create_class$
|
|
13799
|
+
_create_class$b(HashUtils, [
|
|
13800
13800
|
{
|
|
13801
13801
|
/**
|
|
13802
13802
|
* generate 'SHA256' hash
|
|
@@ -13839,12 +13839,12 @@ function _async_to_generator$7(fn) {
|
|
|
13839
13839
|
});
|
|
13840
13840
|
};
|
|
13841
13841
|
}
|
|
13842
|
-
function _class_call_check$
|
|
13842
|
+
function _class_call_check$a(instance, Constructor) {
|
|
13843
13843
|
if (!(instance instanceof Constructor)) {
|
|
13844
13844
|
throw new TypeError("Cannot call a class as a function");
|
|
13845
13845
|
}
|
|
13846
13846
|
}
|
|
13847
|
-
function _defineProperties$
|
|
13847
|
+
function _defineProperties$a(target, props) {
|
|
13848
13848
|
for(var i = 0; i < props.length; i++){
|
|
13849
13849
|
var descriptor = props[i];
|
|
13850
13850
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13853,8 +13853,8 @@ function _defineProperties$b(target, props) {
|
|
|
13853
13853
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13854
13854
|
}
|
|
13855
13855
|
}
|
|
13856
|
-
function _create_class$
|
|
13857
|
-
if (protoProps) _defineProperties$
|
|
13856
|
+
function _create_class$a(Constructor, protoProps, staticProps) {
|
|
13857
|
+
if (protoProps) _defineProperties$a(Constructor.prototype, protoProps);
|
|
13858
13858
|
return Constructor;
|
|
13859
13859
|
}
|
|
13860
13860
|
function _ts_generator$7(thisArg, body) {
|
|
@@ -13959,10 +13959,10 @@ function _ts_generator$7(thisArg, body) {
|
|
|
13959
13959
|
* https://tools.ietf.org/html/rfc7636#page-8
|
|
13960
13960
|
*/ var PkceGenerator = /*#__PURE__*/ function() {
|
|
13961
13961
|
function PkceGenerator() {
|
|
13962
|
-
_class_call_check$
|
|
13962
|
+
_class_call_check$a(this, PkceGenerator);
|
|
13963
13963
|
this.hashUtils = new HashUtils();
|
|
13964
13964
|
}
|
|
13965
|
-
_create_class$
|
|
13965
|
+
_create_class$a(PkceGenerator, [
|
|
13966
13966
|
{
|
|
13967
13967
|
key: "generatePkceCodes",
|
|
13968
13968
|
value: /**
|
|
@@ -14047,12 +14047,12 @@ function _async_to_generator$6(fn) {
|
|
|
14047
14047
|
});
|
|
14048
14048
|
};
|
|
14049
14049
|
}
|
|
14050
|
-
function _class_call_check$
|
|
14050
|
+
function _class_call_check$9(instance, Constructor) {
|
|
14051
14051
|
if (!(instance instanceof Constructor)) {
|
|
14052
14052
|
throw new TypeError("Cannot call a class as a function");
|
|
14053
14053
|
}
|
|
14054
14054
|
}
|
|
14055
|
-
function _defineProperties$
|
|
14055
|
+
function _defineProperties$9(target, props) {
|
|
14056
14056
|
for(var i = 0; i < props.length; i++){
|
|
14057
14057
|
var descriptor = props[i];
|
|
14058
14058
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14061,8 +14061,8 @@ function _defineProperties$a(target, props) {
|
|
|
14061
14061
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14062
14062
|
}
|
|
14063
14063
|
}
|
|
14064
|
-
function _create_class$
|
|
14065
|
-
if (protoProps) _defineProperties$
|
|
14064
|
+
function _create_class$9(Constructor, protoProps, staticProps) {
|
|
14065
|
+
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
14066
14066
|
return Constructor;
|
|
14067
14067
|
}
|
|
14068
14068
|
function _ts_generator$6(thisArg, body) {
|
|
@@ -14169,13 +14169,13 @@ function _ts_generator$6(thisArg, body) {
|
|
|
14169
14169
|
* @public
|
|
14170
14170
|
*/ var CryptoProvider = /*#__PURE__*/ function() {
|
|
14171
14171
|
function CryptoProvider() {
|
|
14172
|
-
_class_call_check$
|
|
14172
|
+
_class_call_check$9(this, CryptoProvider);
|
|
14173
14173
|
// Browser crypto needs to be validated first before any other classes can be set.
|
|
14174
14174
|
this.pkceGenerator = new PkceGenerator();
|
|
14175
14175
|
this.guidGenerator = new GuidGenerator();
|
|
14176
14176
|
this.hashUtils = new HashUtils();
|
|
14177
14177
|
}
|
|
14178
|
-
_create_class$
|
|
14178
|
+
_create_class$9(CryptoProvider, [
|
|
14179
14179
|
{
|
|
14180
14180
|
/**
|
|
14181
14181
|
* base64 URL safe encoded string
|
|
@@ -14296,12 +14296,12 @@ function _assert_this_initialized$4(self) {
|
|
|
14296
14296
|
}
|
|
14297
14297
|
return self;
|
|
14298
14298
|
}
|
|
14299
|
-
function _class_call_check$
|
|
14299
|
+
function _class_call_check$8(instance, Constructor) {
|
|
14300
14300
|
if (!(instance instanceof Constructor)) {
|
|
14301
14301
|
throw new TypeError("Cannot call a class as a function");
|
|
14302
14302
|
}
|
|
14303
14303
|
}
|
|
14304
|
-
function _defineProperties$
|
|
14304
|
+
function _defineProperties$8(target, props) {
|
|
14305
14305
|
for(var i = 0; i < props.length; i++){
|
|
14306
14306
|
var descriptor = props[i];
|
|
14307
14307
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14310,9 +14310,9 @@ function _defineProperties$9(target, props) {
|
|
|
14310
14310
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14311
14311
|
}
|
|
14312
14312
|
}
|
|
14313
|
-
function _create_class$
|
|
14314
|
-
if (protoProps) _defineProperties$
|
|
14315
|
-
if (staticProps) _defineProperties$
|
|
14313
|
+
function _create_class$8(Constructor, protoProps, staticProps) {
|
|
14314
|
+
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
14315
|
+
if (staticProps) _defineProperties$8(Constructor, staticProps);
|
|
14316
14316
|
return Constructor;
|
|
14317
14317
|
}
|
|
14318
14318
|
function _define_property$4(obj, key, value) {
|
|
@@ -14437,7 +14437,7 @@ function _create_super$4(Derived) {
|
|
|
14437
14437
|
_inherits$4(NodeStorage, CacheManager);
|
|
14438
14438
|
var _super = _create_super$4(NodeStorage);
|
|
14439
14439
|
function NodeStorage(logger, clientId, cryptoImpl, staticAuthorityOptions) {
|
|
14440
|
-
_class_call_check$
|
|
14440
|
+
_class_call_check$8(this, NodeStorage);
|
|
14441
14441
|
var _this;
|
|
14442
14442
|
_this = _super.call(this, clientId, cryptoImpl, logger, staticAuthorityOptions);
|
|
14443
14443
|
_this.cache = {};
|
|
@@ -14445,7 +14445,7 @@ function _create_super$4(Derived) {
|
|
|
14445
14445
|
_this.logger = logger;
|
|
14446
14446
|
return _this;
|
|
14447
14447
|
}
|
|
14448
|
-
_create_class$
|
|
14448
|
+
_create_class$8(NodeStorage, [
|
|
14449
14449
|
{
|
|
14450
14450
|
/**
|
|
14451
14451
|
* Queue up callbacks
|
|
@@ -14951,12 +14951,12 @@ function _async_to_generator$5(fn) {
|
|
|
14951
14951
|
});
|
|
14952
14952
|
};
|
|
14953
14953
|
}
|
|
14954
|
-
function _class_call_check$
|
|
14954
|
+
function _class_call_check$7(instance, Constructor) {
|
|
14955
14955
|
if (!(instance instanceof Constructor)) {
|
|
14956
14956
|
throw new TypeError("Cannot call a class as a function");
|
|
14957
14957
|
}
|
|
14958
14958
|
}
|
|
14959
|
-
function _defineProperties$
|
|
14959
|
+
function _defineProperties$7(target, props) {
|
|
14960
14960
|
for(var i = 0; i < props.length; i++){
|
|
14961
14961
|
var descriptor = props[i];
|
|
14962
14962
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14965,8 +14965,8 @@ function _defineProperties$8(target, props) {
|
|
|
14965
14965
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14966
14966
|
}
|
|
14967
14967
|
}
|
|
14968
|
-
function _create_class$
|
|
14969
|
-
if (protoProps) _defineProperties$
|
|
14968
|
+
function _create_class$7(Constructor, protoProps, staticProps) {
|
|
14969
|
+
if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
|
|
14970
14970
|
return Constructor;
|
|
14971
14971
|
}
|
|
14972
14972
|
function _define_property$3(obj, key, value) {
|
|
@@ -15130,7 +15130,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
15130
15130
|
* @public
|
|
15131
15131
|
*/ var TokenCache = /*#__PURE__*/ function() {
|
|
15132
15132
|
function TokenCache(storage, logger, cachePlugin) {
|
|
15133
|
-
_class_call_check$
|
|
15133
|
+
_class_call_check$7(this, TokenCache);
|
|
15134
15134
|
this.cacheHasChanged = false;
|
|
15135
15135
|
this.storage = storage;
|
|
15136
15136
|
this.storage.registerChangeEmitter(this.handleChangeEvent.bind(this));
|
|
@@ -15139,7 +15139,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
15139
15139
|
}
|
|
15140
15140
|
this.logger = logger;
|
|
15141
15141
|
}
|
|
15142
|
-
_create_class$
|
|
15142
|
+
_create_class$7(TokenCache, [
|
|
15143
15143
|
{
|
|
15144
15144
|
/**
|
|
15145
15145
|
* Set to true if cache state has changed since last time serialize or writeToPersistence was called
|
|
@@ -16815,12 +16815,12 @@ var identifiers$1 = {
|
|
|
16815
16815
|
rcompareIdentifiers: rcompareIdentifiers
|
|
16816
16816
|
};
|
|
16817
16817
|
|
|
16818
|
-
function _class_call_check$
|
|
16818
|
+
function _class_call_check$6(instance, Constructor) {
|
|
16819
16819
|
if (!(instance instanceof Constructor)) {
|
|
16820
16820
|
throw new TypeError("Cannot call a class as a function");
|
|
16821
16821
|
}
|
|
16822
16822
|
}
|
|
16823
|
-
function _defineProperties$
|
|
16823
|
+
function _defineProperties$6(target, props) {
|
|
16824
16824
|
for(var i = 0; i < props.length; i++){
|
|
16825
16825
|
var descriptor = props[i];
|
|
16826
16826
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16829,8 +16829,8 @@ function _defineProperties$7(target, props) {
|
|
|
16829
16829
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16830
16830
|
}
|
|
16831
16831
|
}
|
|
16832
|
-
function _create_class$
|
|
16833
|
-
if (protoProps) _defineProperties$
|
|
16832
|
+
function _create_class$6(Constructor, protoProps, staticProps) {
|
|
16833
|
+
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
16834
16834
|
return Constructor;
|
|
16835
16835
|
}
|
|
16836
16836
|
function _instanceof$8(left, right) {
|
|
@@ -16851,7 +16851,7 @@ var parseOptions = parseOptions_1;
|
|
|
16851
16851
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
16852
16852
|
var SemVer$d = /*#__PURE__*/ function() {
|
|
16853
16853
|
function SemVer(version, options) {
|
|
16854
|
-
_class_call_check$
|
|
16854
|
+
_class_call_check$6(this, SemVer);
|
|
16855
16855
|
options = parseOptions(options);
|
|
16856
16856
|
if (_instanceof$8(version, SemVer)) {
|
|
16857
16857
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -16906,7 +16906,7 @@ var SemVer$d = /*#__PURE__*/ function() {
|
|
|
16906
16906
|
this.build = m[5] ? m[5].split('.') : [];
|
|
16907
16907
|
this.format();
|
|
16908
16908
|
}
|
|
16909
|
-
_create_class$
|
|
16909
|
+
_create_class$6(SemVer, [
|
|
16910
16910
|
{
|
|
16911
16911
|
key: "format",
|
|
16912
16912
|
value: function format() {
|
|
@@ -17487,70 +17487,78 @@ var coerce$1 = function(version, options) {
|
|
|
17487
17487
|
};
|
|
17488
17488
|
var coerce_1 = coerce$1;
|
|
17489
17489
|
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
|
|
17495
|
-
|
|
17496
|
-
|
|
17497
|
-
|
|
17498
|
-
|
|
17499
|
-
|
|
17500
|
-
|
|
17501
|
-
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
|
|
17506
|
-
|
|
17490
|
+
var lrucache;
|
|
17491
|
+
var hasRequiredLrucache;
|
|
17492
|
+
|
|
17493
|
+
function requireLrucache () {
|
|
17494
|
+
if (hasRequiredLrucache) return lrucache;
|
|
17495
|
+
hasRequiredLrucache = 1;
|
|
17496
|
+
function _class_call_check(instance, Constructor) {
|
|
17497
|
+
if (!(instance instanceof Constructor)) {
|
|
17498
|
+
throw new TypeError("Cannot call a class as a function");
|
|
17499
|
+
}
|
|
17500
|
+
}
|
|
17501
|
+
function _defineProperties(target, props) {
|
|
17502
|
+
for(var i = 0; i < props.length; i++){
|
|
17503
|
+
var descriptor = props[i];
|
|
17504
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
17505
|
+
descriptor.configurable = true;
|
|
17506
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
17507
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17508
|
+
}
|
|
17509
|
+
}
|
|
17510
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
17511
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17512
|
+
return Constructor;
|
|
17513
|
+
}
|
|
17514
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
17515
|
+
function LRUCache() {
|
|
17516
|
+
_class_call_check(this, LRUCache);
|
|
17517
|
+
this.max = 1000;
|
|
17518
|
+
this.map = new Map();
|
|
17519
|
+
}
|
|
17520
|
+
_create_class(LRUCache, [
|
|
17521
|
+
{
|
|
17522
|
+
key: "get",
|
|
17523
|
+
value: function get(key) {
|
|
17524
|
+
var value = this.map.get(key);
|
|
17525
|
+
if (value === undefined) {
|
|
17526
|
+
return undefined;
|
|
17527
|
+
} else {
|
|
17528
|
+
// Remove the key from the map and add it to the end
|
|
17529
|
+
this.map.delete(key);
|
|
17530
|
+
this.map.set(key, value);
|
|
17531
|
+
return value;
|
|
17532
|
+
}
|
|
17533
|
+
}
|
|
17534
|
+
},
|
|
17535
|
+
{
|
|
17536
|
+
key: "delete",
|
|
17537
|
+
value: function _delete(key) {
|
|
17538
|
+
return this.map.delete(key);
|
|
17539
|
+
}
|
|
17540
|
+
},
|
|
17541
|
+
{
|
|
17542
|
+
key: "set",
|
|
17543
|
+
value: function set(key, value) {
|
|
17544
|
+
var deleted = this.delete(key);
|
|
17545
|
+
if (!deleted && value !== undefined) {
|
|
17546
|
+
// If cache is full, delete the least recently used item
|
|
17547
|
+
if (this.map.size >= this.max) {
|
|
17548
|
+
var firstKey = this.map.keys().next().value;
|
|
17549
|
+
this.delete(firstKey);
|
|
17550
|
+
}
|
|
17551
|
+
this.map.set(key, value);
|
|
17552
|
+
}
|
|
17553
|
+
return this;
|
|
17554
|
+
}
|
|
17555
|
+
}
|
|
17556
|
+
]);
|
|
17557
|
+
return LRUCache;
|
|
17558
|
+
}();
|
|
17559
|
+
lrucache = LRUCache;
|
|
17560
|
+
return lrucache;
|
|
17507
17561
|
}
|
|
17508
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
17509
|
-
function LRUCache() {
|
|
17510
|
-
_class_call_check$6(this, LRUCache);
|
|
17511
|
-
this.max = 1000;
|
|
17512
|
-
this.map = new Map();
|
|
17513
|
-
}
|
|
17514
|
-
_create_class$6(LRUCache, [
|
|
17515
|
-
{
|
|
17516
|
-
key: "get",
|
|
17517
|
-
value: function get(key) {
|
|
17518
|
-
var value = this.map.get(key);
|
|
17519
|
-
if (value === undefined) {
|
|
17520
|
-
return undefined;
|
|
17521
|
-
} else {
|
|
17522
|
-
// Remove the key from the map and add it to the end
|
|
17523
|
-
this.map.delete(key);
|
|
17524
|
-
this.map.set(key, value);
|
|
17525
|
-
return value;
|
|
17526
|
-
}
|
|
17527
|
-
}
|
|
17528
|
-
},
|
|
17529
|
-
{
|
|
17530
|
-
key: "delete",
|
|
17531
|
-
value: function _delete(key) {
|
|
17532
|
-
return this.map.delete(key);
|
|
17533
|
-
}
|
|
17534
|
-
},
|
|
17535
|
-
{
|
|
17536
|
-
key: "set",
|
|
17537
|
-
value: function set(key, value) {
|
|
17538
|
-
var deleted = this.delete(key);
|
|
17539
|
-
if (!deleted && value !== undefined) {
|
|
17540
|
-
// If cache is full, delete the least recently used item
|
|
17541
|
-
if (this.map.size >= this.max) {
|
|
17542
|
-
var firstKey = this.map.keys().next().value;
|
|
17543
|
-
this.delete(firstKey);
|
|
17544
|
-
}
|
|
17545
|
-
this.map.set(key, value);
|
|
17546
|
-
}
|
|
17547
|
-
return this;
|
|
17548
|
-
}
|
|
17549
|
-
}
|
|
17550
|
-
]);
|
|
17551
|
-
return LRUCache;
|
|
17552
|
-
}();
|
|
17553
|
-
var lrucache = LRUCache;
|
|
17554
17562
|
|
|
17555
17563
|
var range;
|
|
17556
17564
|
var hasRequiredRange;
|
|
@@ -17854,7 +17862,7 @@ function requireRange () {
|
|
|
17854
17862
|
return Range;
|
|
17855
17863
|
}();
|
|
17856
17864
|
range = Range;
|
|
17857
|
-
var LRU =
|
|
17865
|
+
var LRU = requireLrucache();
|
|
17858
17866
|
var cache = new LRU();
|
|
17859
17867
|
var parseOptions = parseOptions_1;
|
|
17860
17868
|
var Comparator = requireComparator();
|