@digipair/skill-microsoft 0.94.0-0 → 0.94.0-1
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.cjs.js +299 -291
- package/dist/index.esm.js +299 -291
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -18,12 +18,12 @@ function _extends() {
|
|
|
18
18
|
return _extends.apply(this, arguments);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
function _class_call_check$
|
|
21
|
+
function _class_call_check$J(instance, Constructor) {
|
|
22
22
|
if (!(instance instanceof Constructor)) {
|
|
23
23
|
throw new TypeError("Cannot call a class as a function");
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
function _defineProperties$
|
|
26
|
+
function _defineProperties$D(target, props) {
|
|
27
27
|
for(var i = 0; i < props.length; i++){
|
|
28
28
|
var descriptor = props[i];
|
|
29
29
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -32,8 +32,8 @@ function _defineProperties$E(target, props) {
|
|
|
32
32
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
function _create_class$
|
|
36
|
-
if (staticProps) _defineProperties$
|
|
35
|
+
function _create_class$D(Constructor, protoProps, staticProps) {
|
|
36
|
+
if (staticProps) _defineProperties$D(Constructor, staticProps);
|
|
37
37
|
return Constructor;
|
|
38
38
|
}
|
|
39
39
|
/*
|
|
@@ -44,9 +44,9 @@ function _create_class$E(Constructor, protoProps, staticProps) {
|
|
|
44
44
|
* @internal
|
|
45
45
|
*/ var Serializer = /*#__PURE__*/ function() {
|
|
46
46
|
function Serializer() {
|
|
47
|
-
_class_call_check$
|
|
47
|
+
_class_call_check$J(this, Serializer);
|
|
48
48
|
}
|
|
49
|
-
_create_class$
|
|
49
|
+
_create_class$D(Serializer, null, [
|
|
50
50
|
{
|
|
51
51
|
key: "serializeJSONBlob",
|
|
52
52
|
value: /**
|
|
@@ -537,7 +537,7 @@ function _assert_this_initialized$g(self) {
|
|
|
537
537
|
}
|
|
538
538
|
return self;
|
|
539
539
|
}
|
|
540
|
-
function _class_call_check$
|
|
540
|
+
function _class_call_check$I(instance, Constructor) {
|
|
541
541
|
if (!(instance instanceof Constructor)) {
|
|
542
542
|
throw new TypeError("Cannot call a class as a function");
|
|
543
543
|
}
|
|
@@ -559,7 +559,7 @@ function _construct$1(Parent, args, Class) {
|
|
|
559
559
|
}
|
|
560
560
|
return _construct$1.apply(null, arguments);
|
|
561
561
|
}
|
|
562
|
-
function _defineProperties$
|
|
562
|
+
function _defineProperties$C(target, props) {
|
|
563
563
|
for(var i = 0; i < props.length; i++){
|
|
564
564
|
var descriptor = props[i];
|
|
565
565
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -568,8 +568,8 @@ function _defineProperties$D(target, props) {
|
|
|
568
568
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
function _create_class$
|
|
572
|
-
if (protoProps) _defineProperties$
|
|
571
|
+
function _create_class$C(Constructor, protoProps, staticProps) {
|
|
572
|
+
if (protoProps) _defineProperties$C(Constructor.prototype, protoProps);
|
|
573
573
|
return Constructor;
|
|
574
574
|
}
|
|
575
575
|
function _define_property$m(obj, key, value) {
|
|
@@ -696,7 +696,7 @@ var _obj$6;
|
|
|
696
696
|
_inherits$g(AuthError, Error1);
|
|
697
697
|
var _super = _create_super$g(AuthError);
|
|
698
698
|
function AuthError(errorCode, errorMessage, suberror) {
|
|
699
|
-
_class_call_check$
|
|
699
|
+
_class_call_check$I(this, AuthError);
|
|
700
700
|
var _this;
|
|
701
701
|
var errorString = errorMessage ? "".concat(errorCode, ": ").concat(errorMessage) : errorCode;
|
|
702
702
|
_this = _super.call(this, errorString);
|
|
@@ -707,7 +707,7 @@ var _obj$6;
|
|
|
707
707
|
_this.name = "AuthError";
|
|
708
708
|
return _this;
|
|
709
709
|
}
|
|
710
|
-
_create_class$
|
|
710
|
+
_create_class$C(AuthError, [
|
|
711
711
|
{
|
|
712
712
|
key: "setCorrelationId",
|
|
713
713
|
value: function setCorrelationId(correlationId) {
|
|
@@ -772,7 +772,7 @@ function _assert_this_initialized$f(self) {
|
|
|
772
772
|
}
|
|
773
773
|
return self;
|
|
774
774
|
}
|
|
775
|
-
function _class_call_check$
|
|
775
|
+
function _class_call_check$H(instance, Constructor) {
|
|
776
776
|
if (!(instance instanceof Constructor)) {
|
|
777
777
|
throw new TypeError("Cannot call a class as a function");
|
|
778
778
|
}
|
|
@@ -997,7 +997,7 @@ var _obj$5;
|
|
|
997
997
|
_inherits$f(ClientAuthError, AuthError);
|
|
998
998
|
var _super = _create_super$f(ClientAuthError);
|
|
999
999
|
function ClientAuthError(errorCode, additionalMessage) {
|
|
1000
|
-
_class_call_check$
|
|
1000
|
+
_class_call_check$H(this, ClientAuthError);
|
|
1001
1001
|
var _this;
|
|
1002
1002
|
_this = _super.call(this, errorCode, additionalMessage ? "".concat(ClientAuthErrorMessages[errorCode], ": ").concat(additionalMessage) : ClientAuthErrorMessages[errorCode]);
|
|
1003
1003
|
_this.name = "ClientAuthError";
|
|
@@ -1190,12 +1190,12 @@ function _ts_generator$l(thisArg, body) {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
};
|
|
1192
1192
|
|
|
1193
|
-
function _class_call_check$
|
|
1193
|
+
function _class_call_check$G(instance, Constructor) {
|
|
1194
1194
|
if (!(instance instanceof Constructor)) {
|
|
1195
1195
|
throw new TypeError("Cannot call a class as a function");
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
|
-
function _defineProperties$
|
|
1198
|
+
function _defineProperties$B(target, props) {
|
|
1199
1199
|
for(var i = 0; i < props.length; i++){
|
|
1200
1200
|
var descriptor = props[i];
|
|
1201
1201
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1204,9 +1204,9 @@ function _defineProperties$C(target, props) {
|
|
|
1204
1204
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1205
1205
|
}
|
|
1206
1206
|
}
|
|
1207
|
-
function _create_class$
|
|
1208
|
-
if (protoProps) _defineProperties$
|
|
1209
|
-
if (staticProps) _defineProperties$
|
|
1207
|
+
function _create_class$B(Constructor, protoProps, staticProps) {
|
|
1208
|
+
if (protoProps) _defineProperties$B(Constructor.prototype, protoProps);
|
|
1209
|
+
if (staticProps) _defineProperties$B(Constructor, staticProps);
|
|
1210
1210
|
return Constructor;
|
|
1211
1211
|
}
|
|
1212
1212
|
/*
|
|
@@ -1226,7 +1226,7 @@ function _create_class$C(Constructor, protoProps, staticProps) {
|
|
|
1226
1226
|
* Class which facilitates logging of messages to a specific place.
|
|
1227
1227
|
*/ var Logger = /*#__PURE__*/ function() {
|
|
1228
1228
|
function Logger(loggerOptions, packageName, packageVersion) {
|
|
1229
|
-
_class_call_check$
|
|
1229
|
+
_class_call_check$G(this, Logger);
|
|
1230
1230
|
// Current log level, defaults to info.
|
|
1231
1231
|
this.level = LogLevel.Info;
|
|
1232
1232
|
var defaultLoggerCallback = function() {
|
|
@@ -1240,7 +1240,7 @@ function _create_class$C(Constructor, protoProps, staticProps) {
|
|
|
1240
1240
|
this.packageName = packageName || Constants$1.EMPTY_STRING;
|
|
1241
1241
|
this.packageVersion = packageVersion || Constants$1.EMPTY_STRING;
|
|
1242
1242
|
}
|
|
1243
|
-
_create_class$
|
|
1243
|
+
_create_class$B(Logger, [
|
|
1244
1244
|
{
|
|
1245
1245
|
/**
|
|
1246
1246
|
* Create new Logger with existing configurations.
|
|
@@ -1817,7 +1817,7 @@ function _assert_this_initialized$e(self) {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
return self;
|
|
1819
1819
|
}
|
|
1820
|
-
function _class_call_check$
|
|
1820
|
+
function _class_call_check$F(instance, Constructor) {
|
|
1821
1821
|
if (!(instance instanceof Constructor)) {
|
|
1822
1822
|
throw new TypeError("Cannot call a class as a function");
|
|
1823
1823
|
}
|
|
@@ -1977,7 +1977,7 @@ var _obj$4;
|
|
|
1977
1977
|
_inherits$e(ClientConfigurationError, AuthError);
|
|
1978
1978
|
var _super = _create_super$e(ClientConfigurationError);
|
|
1979
1979
|
function ClientConfigurationError(errorCode) {
|
|
1980
|
-
_class_call_check$
|
|
1980
|
+
_class_call_check$F(this, ClientConfigurationError);
|
|
1981
1981
|
var _this;
|
|
1982
1982
|
_this = _super.call(this, errorCode, ClientConfigurationErrorMessages[errorCode]);
|
|
1983
1983
|
_this.name = "ClientConfigurationError";
|
|
@@ -1998,12 +1998,12 @@ function _array_like_to_array$b(arr, len) {
|
|
|
1998
1998
|
function _array_with_holes$4(arr) {
|
|
1999
1999
|
if (Array.isArray(arr)) return arr;
|
|
2000
2000
|
}
|
|
2001
|
-
function _class_call_check$
|
|
2001
|
+
function _class_call_check$E(instance, Constructor) {
|
|
2002
2002
|
if (!(instance instanceof Constructor)) {
|
|
2003
2003
|
throw new TypeError("Cannot call a class as a function");
|
|
2004
2004
|
}
|
|
2005
2005
|
}
|
|
2006
|
-
function _defineProperties$
|
|
2006
|
+
function _defineProperties$A(target, props) {
|
|
2007
2007
|
for(var i = 0; i < props.length; i++){
|
|
2008
2008
|
var descriptor = props[i];
|
|
2009
2009
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2012,8 +2012,8 @@ function _defineProperties$B(target, props) {
|
|
|
2012
2012
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2013
2013
|
}
|
|
2014
2014
|
}
|
|
2015
|
-
function _create_class$
|
|
2016
|
-
if (staticProps) _defineProperties$
|
|
2015
|
+
function _create_class$A(Constructor, protoProps, staticProps) {
|
|
2016
|
+
if (staticProps) _defineProperties$A(Constructor, staticProps);
|
|
2017
2017
|
return Constructor;
|
|
2018
2018
|
}
|
|
2019
2019
|
function _iterable_to_array_limit$4(arr, i) {
|
|
@@ -2061,9 +2061,9 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
2061
2061
|
* @hidden
|
|
2062
2062
|
*/ var StringUtils = /*#__PURE__*/ function() {
|
|
2063
2063
|
function StringUtils() {
|
|
2064
|
-
_class_call_check$
|
|
2064
|
+
_class_call_check$E(this, StringUtils);
|
|
2065
2065
|
}
|
|
2066
|
-
_create_class$
|
|
2066
|
+
_create_class$A(StringUtils, null, [
|
|
2067
2067
|
{
|
|
2068
2068
|
key: "isEmptyObj",
|
|
2069
2069
|
value: /**
|
|
@@ -2177,12 +2177,12 @@ function _array_like_to_array$a(arr, len) {
|
|
|
2177
2177
|
function _array_without_holes$8(arr) {
|
|
2178
2178
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
2179
2179
|
}
|
|
2180
|
-
function _class_call_check$
|
|
2180
|
+
function _class_call_check$D(instance, Constructor) {
|
|
2181
2181
|
if (!(instance instanceof Constructor)) {
|
|
2182
2182
|
throw new TypeError("Cannot call a class as a function");
|
|
2183
2183
|
}
|
|
2184
2184
|
}
|
|
2185
|
-
function _defineProperties$
|
|
2185
|
+
function _defineProperties$z(target, props) {
|
|
2186
2186
|
for(var i = 0; i < props.length; i++){
|
|
2187
2187
|
var descriptor = props[i];
|
|
2188
2188
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2191,9 +2191,9 @@ function _defineProperties$A(target, props) {
|
|
|
2191
2191
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2192
2192
|
}
|
|
2193
2193
|
}
|
|
2194
|
-
function _create_class$
|
|
2195
|
-
if (protoProps) _defineProperties$
|
|
2196
|
-
if (staticProps) _defineProperties$
|
|
2194
|
+
function _create_class$z(Constructor, protoProps, staticProps) {
|
|
2195
|
+
if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
|
|
2196
|
+
if (staticProps) _defineProperties$z(Constructor, staticProps);
|
|
2197
2197
|
return Constructor;
|
|
2198
2198
|
}
|
|
2199
2199
|
function _iterable_to_array$8(iter) {
|
|
@@ -2223,7 +2223,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
2223
2223
|
*/ var ScopeSet = /*#__PURE__*/ function() {
|
|
2224
2224
|
function ScopeSet(inputScopes) {
|
|
2225
2225
|
var _this = this;
|
|
2226
|
-
_class_call_check$
|
|
2226
|
+
_class_call_check$D(this, ScopeSet);
|
|
2227
2227
|
// Filter empty string and null/undefined array items
|
|
2228
2228
|
var scopeArr = inputScopes ? StringUtils.trimArrayEntries(_to_consumable_array$8(inputScopes)) : [];
|
|
2229
2229
|
var filteredInput = scopeArr ? StringUtils.removeEmptyStringsFromArray(scopeArr) : [];
|
|
@@ -2234,7 +2234,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
2234
2234
|
return _this.scopes.add(scope);
|
|
2235
2235
|
});
|
|
2236
2236
|
}
|
|
2237
|
-
_create_class$
|
|
2237
|
+
_create_class$z(ScopeSet, [
|
|
2238
2238
|
{
|
|
2239
2239
|
/**
|
|
2240
2240
|
* Used to validate the scopes input parameter requested by the developer.
|
|
@@ -2673,12 +2673,12 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
2673
2673
|
OIDC: "OIDC"
|
|
2674
2674
|
};
|
|
2675
2675
|
|
|
2676
|
-
function _class_call_check$
|
|
2676
|
+
function _class_call_check$C(instance, Constructor) {
|
|
2677
2677
|
if (!(instance instanceof Constructor)) {
|
|
2678
2678
|
throw new TypeError("Cannot call a class as a function");
|
|
2679
2679
|
}
|
|
2680
2680
|
}
|
|
2681
|
-
function _defineProperties$
|
|
2681
|
+
function _defineProperties$y(target, props) {
|
|
2682
2682
|
for(var i = 0; i < props.length; i++){
|
|
2683
2683
|
var descriptor = props[i];
|
|
2684
2684
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2687,9 +2687,9 @@ function _defineProperties$z(target, props) {
|
|
|
2687
2687
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2688
2688
|
}
|
|
2689
2689
|
}
|
|
2690
|
-
function _create_class$
|
|
2691
|
-
if (protoProps) _defineProperties$
|
|
2692
|
-
if (staticProps) _defineProperties$
|
|
2690
|
+
function _create_class$y(Constructor, protoProps, staticProps) {
|
|
2691
|
+
if (protoProps) _defineProperties$y(Constructor.prototype, protoProps);
|
|
2692
|
+
if (staticProps) _defineProperties$y(Constructor, staticProps);
|
|
2693
2693
|
return Constructor;
|
|
2694
2694
|
}
|
|
2695
2695
|
/*
|
|
@@ -2719,9 +2719,9 @@ function _create_class$z(Constructor, protoProps, staticProps) {
|
|
|
2719
2719
|
* @internal
|
|
2720
2720
|
*/ var AccountEntity = /*#__PURE__*/ function() {
|
|
2721
2721
|
function AccountEntity() {
|
|
2722
|
-
_class_call_check$
|
|
2722
|
+
_class_call_check$C(this, AccountEntity);
|
|
2723
2723
|
}
|
|
2724
|
-
_create_class$
|
|
2724
|
+
_create_class$y(AccountEntity, [
|
|
2725
2725
|
{
|
|
2726
2726
|
/**
|
|
2727
2727
|
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
@@ -2971,12 +2971,12 @@ function _create_class$z(Constructor, protoProps, staticProps) {
|
|
|
2971
2971
|
return null;
|
|
2972
2972
|
}
|
|
2973
2973
|
|
|
2974
|
-
function _class_call_check$
|
|
2974
|
+
function _class_call_check$B(instance, Constructor) {
|
|
2975
2975
|
if (!(instance instanceof Constructor)) {
|
|
2976
2976
|
throw new TypeError("Cannot call a class as a function");
|
|
2977
2977
|
}
|
|
2978
2978
|
}
|
|
2979
|
-
function _defineProperties$
|
|
2979
|
+
function _defineProperties$x(target, props) {
|
|
2980
2980
|
for(var i = 0; i < props.length; i++){
|
|
2981
2981
|
var descriptor = props[i];
|
|
2982
2982
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2985,9 +2985,9 @@ function _defineProperties$y(target, props) {
|
|
|
2985
2985
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2986
2986
|
}
|
|
2987
2987
|
}
|
|
2988
|
-
function _create_class$
|
|
2989
|
-
if (protoProps) _defineProperties$
|
|
2990
|
-
if (staticProps) _defineProperties$
|
|
2988
|
+
function _create_class$x(Constructor, protoProps, staticProps) {
|
|
2989
|
+
if (protoProps) _defineProperties$x(Constructor.prototype, protoProps);
|
|
2990
|
+
if (staticProps) _defineProperties$x(Constructor, staticProps);
|
|
2991
2991
|
return Constructor;
|
|
2992
2992
|
}
|
|
2993
2993
|
/*
|
|
@@ -2997,7 +2997,7 @@ function _create_class$y(Constructor, protoProps, staticProps) {
|
|
|
2997
2997
|
* Url object class which can perform various transformations on url strings.
|
|
2998
2998
|
*/ var UrlString = /*#__PURE__*/ function() {
|
|
2999
2999
|
function UrlString(url) {
|
|
3000
|
-
_class_call_check$
|
|
3000
|
+
_class_call_check$B(this, UrlString);
|
|
3001
3001
|
this._urlString = url;
|
|
3002
3002
|
if (!this._urlString) {
|
|
3003
3003
|
// Throws error if url is empty
|
|
@@ -3007,7 +3007,7 @@ function _create_class$y(Constructor, protoProps, staticProps) {
|
|
|
3007
3007
|
this._urlString = UrlString.canonicalizeUri(url);
|
|
3008
3008
|
}
|
|
3009
3009
|
}
|
|
3010
|
-
_create_class$
|
|
3010
|
+
_create_class$x(UrlString, [
|
|
3011
3011
|
{
|
|
3012
3012
|
key: "urlString",
|
|
3013
3013
|
get: function get() {
|
|
@@ -3312,7 +3312,7 @@ function _assert_this_initialized$d(self) {
|
|
|
3312
3312
|
}
|
|
3313
3313
|
return self;
|
|
3314
3314
|
}
|
|
3315
|
-
function _class_call_check$
|
|
3315
|
+
function _class_call_check$A(instance, Constructor) {
|
|
3316
3316
|
if (!(instance instanceof Constructor)) {
|
|
3317
3317
|
throw new TypeError("Cannot call a class as a function");
|
|
3318
3318
|
}
|
|
@@ -3447,7 +3447,7 @@ var _obj$3;
|
|
|
3447
3447
|
_inherits$d(CacheError, Error1);
|
|
3448
3448
|
var _super = _create_super$d(CacheError);
|
|
3449
3449
|
function CacheError(errorCode, errorMessage) {
|
|
3450
|
-
_class_call_check$
|
|
3450
|
+
_class_call_check$A(this, CacheError);
|
|
3451
3451
|
var _this;
|
|
3452
3452
|
var message = errorMessage || (CacheErrorMessages[errorCode] ? CacheErrorMessages[errorCode] : CacheErrorMessages[cacheUnknownErrorCode]);
|
|
3453
3453
|
_this = _super.call(this, "".concat(errorCode, ": ").concat(message));
|
|
@@ -3495,12 +3495,12 @@ function _async_to_generator$k(fn) {
|
|
|
3495
3495
|
});
|
|
3496
3496
|
};
|
|
3497
3497
|
}
|
|
3498
|
-
function _class_call_check$
|
|
3498
|
+
function _class_call_check$z(instance, Constructor) {
|
|
3499
3499
|
if (!(instance instanceof Constructor)) {
|
|
3500
3500
|
throw new TypeError("Cannot call a class as a function");
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
|
-
function _defineProperties$
|
|
3503
|
+
function _defineProperties$w(target, props) {
|
|
3504
3504
|
for(var i = 0; i < props.length; i++){
|
|
3505
3505
|
var descriptor = props[i];
|
|
3506
3506
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3509,9 +3509,9 @@ function _defineProperties$x(target, props) {
|
|
|
3509
3509
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3510
3510
|
}
|
|
3511
3511
|
}
|
|
3512
|
-
function _create_class$
|
|
3513
|
-
if (protoProps) _defineProperties$
|
|
3514
|
-
if (staticProps) _defineProperties$
|
|
3512
|
+
function _create_class$w(Constructor, protoProps, staticProps) {
|
|
3513
|
+
if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
|
|
3514
|
+
if (staticProps) _defineProperties$w(Constructor, staticProps);
|
|
3515
3515
|
return Constructor;
|
|
3516
3516
|
}
|
|
3517
3517
|
function _define_property$h(obj, key, value) {
|
|
@@ -3712,13 +3712,13 @@ function _ts_generator$k(thisArg, body) {
|
|
|
3712
3712
|
* @internal
|
|
3713
3713
|
*/ var CacheManager = /*#__PURE__*/ function() {
|
|
3714
3714
|
function CacheManager(clientId, cryptoImpl, logger, staticAuthorityOptions) {
|
|
3715
|
-
_class_call_check$
|
|
3715
|
+
_class_call_check$z(this, CacheManager);
|
|
3716
3716
|
this.clientId = clientId;
|
|
3717
3717
|
this.cryptoImpl = cryptoImpl;
|
|
3718
3718
|
this.commonLogger = logger.clone(name$1, version$1);
|
|
3719
3719
|
this.staticAuthorityOptions = staticAuthorityOptions;
|
|
3720
3720
|
}
|
|
3721
|
-
_create_class$
|
|
3721
|
+
_create_class$w(CacheManager, [
|
|
3722
3722
|
{
|
|
3723
3723
|
/**
|
|
3724
3724
|
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
@@ -5079,10 +5079,10 @@ function _ts_generator$k(thisArg, body) {
|
|
|
5079
5079
|
_inherits$c(DefaultStorageClass, CacheManager);
|
|
5080
5080
|
var _super = _create_super$c(DefaultStorageClass);
|
|
5081
5081
|
function DefaultStorageClass() {
|
|
5082
|
-
_class_call_check$
|
|
5082
|
+
_class_call_check$z(this, DefaultStorageClass);
|
|
5083
5083
|
return _super.apply(this, arguments);
|
|
5084
5084
|
}
|
|
5085
|
-
_create_class$
|
|
5085
|
+
_create_class$w(DefaultStorageClass, [
|
|
5086
5086
|
{
|
|
5087
5087
|
key: "setAccount",
|
|
5088
5088
|
value: function setAccount() {
|
|
@@ -5536,12 +5536,12 @@ var DOMAIN_HINT = "domain_hint";
|
|
|
5536
5536
|
var BROKER_CLIENT_ID = "brk_client_id";
|
|
5537
5537
|
var BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
5538
5538
|
|
|
5539
|
-
function _class_call_check$
|
|
5539
|
+
function _class_call_check$y(instance, Constructor) {
|
|
5540
5540
|
if (!(instance instanceof Constructor)) {
|
|
5541
5541
|
throw new TypeError("Cannot call a class as a function");
|
|
5542
5542
|
}
|
|
5543
5543
|
}
|
|
5544
|
-
function _defineProperties$
|
|
5544
|
+
function _defineProperties$v(target, props) {
|
|
5545
5545
|
for(var i = 0; i < props.length; i++){
|
|
5546
5546
|
var descriptor = props[i];
|
|
5547
5547
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5550,8 +5550,8 @@ function _defineProperties$w(target, props) {
|
|
|
5550
5550
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5551
5551
|
}
|
|
5552
5552
|
}
|
|
5553
|
-
function _create_class$
|
|
5554
|
-
if (staticProps) _defineProperties$
|
|
5553
|
+
function _create_class$v(Constructor, protoProps, staticProps) {
|
|
5554
|
+
if (staticProps) _defineProperties$v(Constructor, staticProps);
|
|
5555
5555
|
return Constructor;
|
|
5556
5556
|
}
|
|
5557
5557
|
/*
|
|
@@ -5561,9 +5561,9 @@ function _create_class$w(Constructor, protoProps, staticProps) {
|
|
|
5561
5561
|
* Validates server consumable params from the "request" objects
|
|
5562
5562
|
*/ var RequestValidator = /*#__PURE__*/ function() {
|
|
5563
5563
|
function RequestValidator() {
|
|
5564
|
-
_class_call_check$
|
|
5564
|
+
_class_call_check$y(this, RequestValidator);
|
|
5565
5565
|
}
|
|
5566
|
-
_create_class$
|
|
5566
|
+
_create_class$v(RequestValidator, null, [
|
|
5567
5567
|
{
|
|
5568
5568
|
key: "validateRedirectUri",
|
|
5569
5569
|
value: /**
|
|
@@ -5643,12 +5643,12 @@ function _array_with_holes$3(arr) {
|
|
|
5643
5643
|
function _array_without_holes$7(arr) {
|
|
5644
5644
|
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
5645
5645
|
}
|
|
5646
|
-
function _class_call_check$
|
|
5646
|
+
function _class_call_check$x(instance, Constructor) {
|
|
5647
5647
|
if (!(instance instanceof Constructor)) {
|
|
5648
5648
|
throw new TypeError("Cannot call a class as a function");
|
|
5649
5649
|
}
|
|
5650
5650
|
}
|
|
5651
|
-
function _defineProperties$
|
|
5651
|
+
function _defineProperties$u(target, props) {
|
|
5652
5652
|
for(var i = 0; i < props.length; i++){
|
|
5653
5653
|
var descriptor = props[i];
|
|
5654
5654
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5657,8 +5657,8 @@ function _defineProperties$v(target, props) {
|
|
|
5657
5657
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5658
5658
|
}
|
|
5659
5659
|
}
|
|
5660
|
-
function _create_class$
|
|
5661
|
-
if (protoProps) _defineProperties$
|
|
5660
|
+
function _create_class$u(Constructor, protoProps, staticProps) {
|
|
5661
|
+
if (protoProps) _defineProperties$u(Constructor.prototype, protoProps);
|
|
5662
5662
|
return Constructor;
|
|
5663
5663
|
}
|
|
5664
5664
|
function _iterable_to_array$7(iter) {
|
|
@@ -5725,12 +5725,12 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
5725
5725
|
}
|
|
5726
5726
|
/** @internal */ var RequestParameterBuilder = /*#__PURE__*/ function() {
|
|
5727
5727
|
function RequestParameterBuilder(correlationId, performanceClient) {
|
|
5728
|
-
_class_call_check$
|
|
5728
|
+
_class_call_check$x(this, RequestParameterBuilder);
|
|
5729
5729
|
this.parameters = new Map();
|
|
5730
5730
|
this.performanceClient = performanceClient;
|
|
5731
5731
|
this.correlationId = correlationId;
|
|
5732
5732
|
}
|
|
5733
|
-
_create_class$
|
|
5733
|
+
_create_class$u(RequestParameterBuilder, [
|
|
5734
5734
|
{
|
|
5735
5735
|
/**
|
|
5736
5736
|
* add response_type = code
|
|
@@ -6445,12 +6445,12 @@ function _async_to_generator$i(fn) {
|
|
|
6445
6445
|
});
|
|
6446
6446
|
};
|
|
6447
6447
|
}
|
|
6448
|
-
function _class_call_check$
|
|
6448
|
+
function _class_call_check$w(instance, Constructor) {
|
|
6449
6449
|
if (!(instance instanceof Constructor)) {
|
|
6450
6450
|
throw new TypeError("Cannot call a class as a function");
|
|
6451
6451
|
}
|
|
6452
6452
|
}
|
|
6453
|
-
function _defineProperties$
|
|
6453
|
+
function _defineProperties$t(target, props) {
|
|
6454
6454
|
for(var i = 0; i < props.length; i++){
|
|
6455
6455
|
var descriptor = props[i];
|
|
6456
6456
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6459,8 +6459,8 @@ function _defineProperties$u(target, props) {
|
|
|
6459
6459
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6460
6460
|
}
|
|
6461
6461
|
}
|
|
6462
|
-
function _create_class$
|
|
6463
|
-
if (protoProps) _defineProperties$
|
|
6462
|
+
function _create_class$t(Constructor, protoProps, staticProps) {
|
|
6463
|
+
if (protoProps) _defineProperties$t(Constructor.prototype, protoProps);
|
|
6464
6464
|
return Constructor;
|
|
6465
6465
|
}
|
|
6466
6466
|
function _ts_generator$i(thisArg, body) {
|
|
@@ -6563,13 +6563,13 @@ function _ts_generator$i(thisArg, body) {
|
|
|
6563
6563
|
* Licensed under the MIT License.
|
|
6564
6564
|
*/ var RegionDiscovery = /*#__PURE__*/ function() {
|
|
6565
6565
|
function RegionDiscovery(networkInterface, logger, performanceClient, correlationId) {
|
|
6566
|
-
_class_call_check$
|
|
6566
|
+
_class_call_check$w(this, RegionDiscovery);
|
|
6567
6567
|
this.networkInterface = networkInterface;
|
|
6568
6568
|
this.logger = logger;
|
|
6569
6569
|
this.performanceClient = performanceClient;
|
|
6570
6570
|
this.correlationId = correlationId;
|
|
6571
6571
|
}
|
|
6572
|
-
_create_class$
|
|
6572
|
+
_create_class$t(RegionDiscovery, [
|
|
6573
6573
|
{
|
|
6574
6574
|
key: "detectRegion",
|
|
6575
6575
|
value: /**
|
|
@@ -6785,12 +6785,12 @@ function _async_to_generator$h(fn) {
|
|
|
6785
6785
|
});
|
|
6786
6786
|
};
|
|
6787
6787
|
}
|
|
6788
|
-
function _class_call_check$
|
|
6788
|
+
function _class_call_check$v(instance, Constructor) {
|
|
6789
6789
|
if (!(instance instanceof Constructor)) {
|
|
6790
6790
|
throw new TypeError("Cannot call a class as a function");
|
|
6791
6791
|
}
|
|
6792
6792
|
}
|
|
6793
|
-
function _defineProperties$
|
|
6793
|
+
function _defineProperties$s(target, props) {
|
|
6794
6794
|
for(var i = 0; i < props.length; i++){
|
|
6795
6795
|
var descriptor = props[i];
|
|
6796
6796
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6799,9 +6799,9 @@ function _defineProperties$t(target, props) {
|
|
|
6799
6799
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6800
6800
|
}
|
|
6801
6801
|
}
|
|
6802
|
-
function _create_class$
|
|
6803
|
-
if (protoProps) _defineProperties$
|
|
6804
|
-
if (staticProps) _defineProperties$
|
|
6802
|
+
function _create_class$s(Constructor, protoProps, staticProps) {
|
|
6803
|
+
if (protoProps) _defineProperties$s(Constructor.prototype, protoProps);
|
|
6804
|
+
if (staticProps) _defineProperties$s(Constructor, staticProps);
|
|
6805
6805
|
return Constructor;
|
|
6806
6806
|
}
|
|
6807
6807
|
function _define_property$e(obj, key, value) {
|
|
@@ -6962,7 +6962,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
6962
6962
|
* @internal
|
|
6963
6963
|
*/ var Authority = /*#__PURE__*/ function() {
|
|
6964
6964
|
function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, correlationId, performanceClient, managedIdentity) {
|
|
6965
|
-
_class_call_check$
|
|
6965
|
+
_class_call_check$v(this, Authority);
|
|
6966
6966
|
this.canonicalAuthority = authority;
|
|
6967
6967
|
this._canonicalAuthority.validateAsUri();
|
|
6968
6968
|
this.networkInterface = networkInterface;
|
|
@@ -6979,7 +6979,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
6979
6979
|
this.managedIdentity = managedIdentity || false;
|
|
6980
6980
|
this.regionDiscovery = new RegionDiscovery(networkInterface, this.logger, this.performanceClient, this.correlationId);
|
|
6981
6981
|
}
|
|
6982
|
-
_create_class$
|
|
6982
|
+
_create_class$s(Authority, [
|
|
6983
6983
|
{
|
|
6984
6984
|
/**
|
|
6985
6985
|
* Get {@link AuthorityType}
|
|
@@ -8186,7 +8186,7 @@ function _assert_this_initialized$b(self) {
|
|
|
8186
8186
|
}
|
|
8187
8187
|
return self;
|
|
8188
8188
|
}
|
|
8189
|
-
function _class_call_check$
|
|
8189
|
+
function _class_call_check$u(instance, Constructor) {
|
|
8190
8190
|
if (!(instance instanceof Constructor)) {
|
|
8191
8191
|
throw new TypeError("Cannot call a class as a function");
|
|
8192
8192
|
}
|
|
@@ -8260,7 +8260,7 @@ function _create_super$b(Derived) {
|
|
|
8260
8260
|
_inherits$b(ServerError, AuthError);
|
|
8261
8261
|
var _super = _create_super$b(ServerError);
|
|
8262
8262
|
function ServerError(errorCode, errorMessage, subError, errorNo, status) {
|
|
8263
|
-
_class_call_check$
|
|
8263
|
+
_class_call_check$u(this, ServerError);
|
|
8264
8264
|
var _this;
|
|
8265
8265
|
_this = _super.call(this, errorCode, errorMessage, subError);
|
|
8266
8266
|
_this.name = "ServerError";
|
|
@@ -8272,12 +8272,12 @@ function _create_super$b(Derived) {
|
|
|
8272
8272
|
return ServerError;
|
|
8273
8273
|
}(AuthError);
|
|
8274
8274
|
|
|
8275
|
-
function _class_call_check$
|
|
8275
|
+
function _class_call_check$t(instance, Constructor) {
|
|
8276
8276
|
if (!(instance instanceof Constructor)) {
|
|
8277
8277
|
throw new TypeError("Cannot call a class as a function");
|
|
8278
8278
|
}
|
|
8279
8279
|
}
|
|
8280
|
-
function _defineProperties$
|
|
8280
|
+
function _defineProperties$r(target, props) {
|
|
8281
8281
|
for(var i = 0; i < props.length; i++){
|
|
8282
8282
|
var descriptor = props[i];
|
|
8283
8283
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8286,8 +8286,8 @@ function _defineProperties$s(target, props) {
|
|
|
8286
8286
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8287
8287
|
}
|
|
8288
8288
|
}
|
|
8289
|
-
function _create_class$
|
|
8290
|
-
if (staticProps) _defineProperties$
|
|
8289
|
+
function _create_class$r(Constructor, protoProps, staticProps) {
|
|
8290
|
+
if (staticProps) _defineProperties$r(Constructor, staticProps);
|
|
8291
8291
|
return Constructor;
|
|
8292
8292
|
}
|
|
8293
8293
|
/*
|
|
@@ -8295,9 +8295,9 @@ function _create_class$s(Constructor, protoProps, staticProps) {
|
|
|
8295
8295
|
* Licensed under the MIT License.
|
|
8296
8296
|
*/ /** @internal */ var ThrottlingUtils = /*#__PURE__*/ function() {
|
|
8297
8297
|
function ThrottlingUtils() {
|
|
8298
|
-
_class_call_check$
|
|
8298
|
+
_class_call_check$t(this, ThrottlingUtils);
|
|
8299
8299
|
}
|
|
8300
|
-
_create_class$
|
|
8300
|
+
_create_class$r(ThrottlingUtils, null, [
|
|
8301
8301
|
{
|
|
8302
8302
|
key: "generateThrottlingStorageKey",
|
|
8303
8303
|
value: /**
|
|
@@ -8407,7 +8407,7 @@ function _assert_this_initialized$a(self) {
|
|
|
8407
8407
|
}
|
|
8408
8408
|
return self;
|
|
8409
8409
|
}
|
|
8410
|
-
function _class_call_check$
|
|
8410
|
+
function _class_call_check$s(instance, Constructor) {
|
|
8411
8411
|
if (!(instance instanceof Constructor)) {
|
|
8412
8412
|
throw new TypeError("Cannot call a class as a function");
|
|
8413
8413
|
}
|
|
@@ -8481,7 +8481,7 @@ function _create_super$a(Derived) {
|
|
|
8481
8481
|
_inherits$a(NetworkError, AuthError);
|
|
8482
8482
|
var _super = _create_super$a(NetworkError);
|
|
8483
8483
|
function NetworkError(error, httpStatus, responseHeaders) {
|
|
8484
|
-
_class_call_check$
|
|
8484
|
+
_class_call_check$s(this, NetworkError);
|
|
8485
8485
|
var _this;
|
|
8486
8486
|
_this = _super.call(this, error.errorCode, error.errorMessage, error.subError);
|
|
8487
8487
|
Object.setPrototypeOf(_assert_this_initialized$a(_this), NetworkError.prototype);
|
|
@@ -8523,12 +8523,12 @@ function _async_to_generator$f(fn) {
|
|
|
8523
8523
|
});
|
|
8524
8524
|
};
|
|
8525
8525
|
}
|
|
8526
|
-
function _class_call_check$
|
|
8526
|
+
function _class_call_check$r(instance, Constructor) {
|
|
8527
8527
|
if (!(instance instanceof Constructor)) {
|
|
8528
8528
|
throw new TypeError("Cannot call a class as a function");
|
|
8529
8529
|
}
|
|
8530
8530
|
}
|
|
8531
|
-
function _defineProperties$
|
|
8531
|
+
function _defineProperties$q(target, props) {
|
|
8532
8532
|
for(var i = 0; i < props.length; i++){
|
|
8533
8533
|
var descriptor = props[i];
|
|
8534
8534
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8537,8 +8537,8 @@ function _defineProperties$r(target, props) {
|
|
|
8537
8537
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8538
8538
|
}
|
|
8539
8539
|
}
|
|
8540
|
-
function _create_class$
|
|
8541
|
-
if (protoProps) _defineProperties$
|
|
8540
|
+
function _create_class$q(Constructor, protoProps, staticProps) {
|
|
8541
|
+
if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
|
|
8542
8542
|
return Constructor;
|
|
8543
8543
|
}
|
|
8544
8544
|
function _instanceof$d(left, right) {
|
|
@@ -8651,7 +8651,7 @@ function _ts_generator$f(thisArg, body) {
|
|
|
8651
8651
|
* @internal
|
|
8652
8652
|
*/ var BaseClient = /*#__PURE__*/ function() {
|
|
8653
8653
|
function BaseClient(configuration, performanceClient) {
|
|
8654
|
-
_class_call_check$
|
|
8654
|
+
_class_call_check$r(this, BaseClient);
|
|
8655
8655
|
// Set the configuration
|
|
8656
8656
|
this.config = buildClientConfiguration(configuration);
|
|
8657
8657
|
// Initialize the logger
|
|
@@ -8669,7 +8669,7 @@ function _ts_generator$f(thisArg, body) {
|
|
|
8669
8669
|
// set performance telemetry client
|
|
8670
8670
|
this.performanceClient = performanceClient;
|
|
8671
8671
|
}
|
|
8672
|
-
_create_class$
|
|
8672
|
+
_create_class$q(BaseClient, [
|
|
8673
8673
|
{
|
|
8674
8674
|
/**
|
|
8675
8675
|
* Creates default headers for requests to token endpoint
|
|
@@ -8878,7 +8878,7 @@ function _assert_this_initialized$9(self) {
|
|
|
8878
8878
|
}
|
|
8879
8879
|
return self;
|
|
8880
8880
|
}
|
|
8881
|
-
function _class_call_check$
|
|
8881
|
+
function _class_call_check$q(instance, Constructor) {
|
|
8882
8882
|
if (!(instance instanceof Constructor)) {
|
|
8883
8883
|
throw new TypeError("Cannot call a class as a function");
|
|
8884
8884
|
}
|
|
@@ -8997,7 +8997,7 @@ var InteractionRequiredAuthErrorMessages = (_obj$2 = {}, _define_property$d(_obj
|
|
|
8997
8997
|
_inherits$9(InteractionRequiredAuthError, AuthError);
|
|
8998
8998
|
var _super = _create_super$9(InteractionRequiredAuthError);
|
|
8999
8999
|
function InteractionRequiredAuthError(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims, errorNo) {
|
|
9000
|
-
_class_call_check$
|
|
9000
|
+
_class_call_check$q(this, InteractionRequiredAuthError);
|
|
9001
9001
|
var _this;
|
|
9002
9002
|
_this = _super.call(this, errorCode, errorMessage, subError);
|
|
9003
9003
|
Object.setPrototypeOf(_assert_this_initialized$9(_this), InteractionRequiredAuthError.prototype);
|
|
@@ -9030,12 +9030,12 @@ var InteractionRequiredAuthErrorMessages = (_obj$2 = {}, _define_property$d(_obj
|
|
|
9030
9030
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
9031
9031
|
}
|
|
9032
9032
|
|
|
9033
|
-
function _class_call_check$
|
|
9033
|
+
function _class_call_check$p(instance, Constructor) {
|
|
9034
9034
|
if (!(instance instanceof Constructor)) {
|
|
9035
9035
|
throw new TypeError("Cannot call a class as a function");
|
|
9036
9036
|
}
|
|
9037
9037
|
}
|
|
9038
|
-
function _defineProperties$
|
|
9038
|
+
function _defineProperties$p(target, props) {
|
|
9039
9039
|
for(var i = 0; i < props.length; i++){
|
|
9040
9040
|
var descriptor = props[i];
|
|
9041
9041
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9044,8 +9044,8 @@ function _defineProperties$q(target, props) {
|
|
|
9044
9044
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9045
9045
|
}
|
|
9046
9046
|
}
|
|
9047
|
-
function _create_class$
|
|
9048
|
-
if (staticProps) _defineProperties$
|
|
9047
|
+
function _create_class$p(Constructor, protoProps, staticProps) {
|
|
9048
|
+
if (staticProps) _defineProperties$p(Constructor, staticProps);
|
|
9049
9049
|
return Constructor;
|
|
9050
9050
|
}
|
|
9051
9051
|
/*
|
|
@@ -9055,9 +9055,9 @@ function _create_class$q(Constructor, protoProps, staticProps) {
|
|
|
9055
9055
|
* Class which provides helpers for OAuth 2.0 protocol specific values
|
|
9056
9056
|
*/ var ProtocolUtils = /*#__PURE__*/ function() {
|
|
9057
9057
|
function ProtocolUtils() {
|
|
9058
|
-
_class_call_check$
|
|
9058
|
+
_class_call_check$p(this, ProtocolUtils);
|
|
9059
9059
|
}
|
|
9060
|
-
_create_class$
|
|
9060
|
+
_create_class$p(ProtocolUtils, null, [
|
|
9061
9061
|
{
|
|
9062
9062
|
key: "setRequestState",
|
|
9063
9063
|
value: /**
|
|
@@ -9152,12 +9152,12 @@ function _async_to_generator$e(fn) {
|
|
|
9152
9152
|
});
|
|
9153
9153
|
};
|
|
9154
9154
|
}
|
|
9155
|
-
function _class_call_check$
|
|
9155
|
+
function _class_call_check$o(instance, Constructor) {
|
|
9156
9156
|
if (!(instance instanceof Constructor)) {
|
|
9157
9157
|
throw new TypeError("Cannot call a class as a function");
|
|
9158
9158
|
}
|
|
9159
9159
|
}
|
|
9160
|
-
function _defineProperties$
|
|
9160
|
+
function _defineProperties$o(target, props) {
|
|
9161
9161
|
for(var i = 0; i < props.length; i++){
|
|
9162
9162
|
var descriptor = props[i];
|
|
9163
9163
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9166,8 +9166,8 @@ function _defineProperties$p(target, props) {
|
|
|
9166
9166
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9167
9167
|
}
|
|
9168
9168
|
}
|
|
9169
|
-
function _create_class$
|
|
9170
|
-
if (protoProps) _defineProperties$
|
|
9169
|
+
function _create_class$o(Constructor, protoProps, staticProps) {
|
|
9170
|
+
if (protoProps) _defineProperties$o(Constructor.prototype, protoProps);
|
|
9171
9171
|
return Constructor;
|
|
9172
9172
|
}
|
|
9173
9173
|
function _define_property$c(obj, key, value) {
|
|
@@ -9300,11 +9300,11 @@ function _ts_generator$e(thisArg, body) {
|
|
|
9300
9300
|
SW: "sw"};
|
|
9301
9301
|
/** @internal */ var PopTokenGenerator = /*#__PURE__*/ function() {
|
|
9302
9302
|
function PopTokenGenerator(cryptoUtils, performanceClient) {
|
|
9303
|
-
_class_call_check$
|
|
9303
|
+
_class_call_check$o(this, PopTokenGenerator);
|
|
9304
9304
|
this.cryptoUtils = cryptoUtils;
|
|
9305
9305
|
this.performanceClient = performanceClient;
|
|
9306
9306
|
}
|
|
9307
|
-
_create_class$
|
|
9307
|
+
_create_class$o(PopTokenGenerator, [
|
|
9308
9308
|
{
|
|
9309
9309
|
key: "generateCnf",
|
|
9310
9310
|
value: /**
|
|
@@ -9432,12 +9432,12 @@ function _ts_generator$e(thisArg, body) {
|
|
|
9432
9432
|
return PopTokenGenerator;
|
|
9433
9433
|
}();
|
|
9434
9434
|
|
|
9435
|
-
function _class_call_check$
|
|
9435
|
+
function _class_call_check$n(instance, Constructor) {
|
|
9436
9436
|
if (!(instance instanceof Constructor)) {
|
|
9437
9437
|
throw new TypeError("Cannot call a class as a function");
|
|
9438
9438
|
}
|
|
9439
9439
|
}
|
|
9440
|
-
function _defineProperties$
|
|
9440
|
+
function _defineProperties$n(target, props) {
|
|
9441
9441
|
for(var i = 0; i < props.length; i++){
|
|
9442
9442
|
var descriptor = props[i];
|
|
9443
9443
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9446,8 +9446,8 @@ function _defineProperties$o(target, props) {
|
|
|
9446
9446
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9447
9447
|
}
|
|
9448
9448
|
}
|
|
9449
|
-
function _create_class$
|
|
9450
|
-
if (protoProps) _defineProperties$
|
|
9449
|
+
function _create_class$n(Constructor, protoProps, staticProps) {
|
|
9450
|
+
if (protoProps) _defineProperties$n(Constructor.prototype, protoProps);
|
|
9451
9451
|
return Constructor;
|
|
9452
9452
|
}
|
|
9453
9453
|
/*
|
|
@@ -9458,11 +9458,11 @@ function _create_class$o(Constructor, protoProps, staticProps) {
|
|
|
9458
9458
|
* decisions to read from and write to the persistent cache
|
|
9459
9459
|
*/ var TokenCacheContext = /*#__PURE__*/ function() {
|
|
9460
9460
|
function TokenCacheContext(tokenCache, hasChanged) {
|
|
9461
|
-
_class_call_check$
|
|
9461
|
+
_class_call_check$n(this, TokenCacheContext);
|
|
9462
9462
|
this.cache = tokenCache;
|
|
9463
9463
|
this.hasChanged = hasChanged;
|
|
9464
9464
|
}
|
|
9465
|
-
_create_class$
|
|
9465
|
+
_create_class$n(TokenCacheContext, [
|
|
9466
9466
|
{
|
|
9467
9467
|
key: "cacheHasChanged",
|
|
9468
9468
|
get: /**
|
|
@@ -9512,12 +9512,12 @@ function _async_to_generator$d(fn) {
|
|
|
9512
9512
|
});
|
|
9513
9513
|
};
|
|
9514
9514
|
}
|
|
9515
|
-
function _class_call_check$
|
|
9515
|
+
function _class_call_check$m(instance, Constructor) {
|
|
9516
9516
|
if (!(instance instanceof Constructor)) {
|
|
9517
9517
|
throw new TypeError("Cannot call a class as a function");
|
|
9518
9518
|
}
|
|
9519
9519
|
}
|
|
9520
|
-
function _defineProperties$
|
|
9520
|
+
function _defineProperties$m(target, props) {
|
|
9521
9521
|
for(var i = 0; i < props.length; i++){
|
|
9522
9522
|
var descriptor = props[i];
|
|
9523
9523
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9526,9 +9526,9 @@ function _defineProperties$n(target, props) {
|
|
|
9526
9526
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9527
9527
|
}
|
|
9528
9528
|
}
|
|
9529
|
-
function _create_class$
|
|
9530
|
-
if (protoProps) _defineProperties$
|
|
9531
|
-
if (staticProps) _defineProperties$
|
|
9529
|
+
function _create_class$m(Constructor, protoProps, staticProps) {
|
|
9530
|
+
if (protoProps) _defineProperties$m(Constructor.prototype, protoProps);
|
|
9531
|
+
if (staticProps) _defineProperties$m(Constructor, staticProps);
|
|
9532
9532
|
return Constructor;
|
|
9533
9533
|
}
|
|
9534
9534
|
function _ts_generator$d(thisArg, body) {
|
|
@@ -9640,7 +9640,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9640
9640
|
* @internal
|
|
9641
9641
|
*/ var ResponseHandler = /*#__PURE__*/ function() {
|
|
9642
9642
|
function ResponseHandler(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {
|
|
9643
|
-
_class_call_check$
|
|
9643
|
+
_class_call_check$m(this, ResponseHandler);
|
|
9644
9644
|
this.clientId = clientId;
|
|
9645
9645
|
this.cacheStorage = cacheStorage;
|
|
9646
9646
|
this.cryptoObj = cryptoObj;
|
|
@@ -9649,7 +9649,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9649
9649
|
this.persistencePlugin = persistencePlugin;
|
|
9650
9650
|
this.performanceClient = performanceClient;
|
|
9651
9651
|
}
|
|
9652
|
-
_create_class$
|
|
9652
|
+
_create_class$m(ResponseHandler, [
|
|
9653
9653
|
{
|
|
9654
9654
|
/**
|
|
9655
9655
|
* Function which validates server authorization code response.
|
|
@@ -10231,12 +10231,12 @@ function _async_to_generator$b(fn) {
|
|
|
10231
10231
|
});
|
|
10232
10232
|
};
|
|
10233
10233
|
}
|
|
10234
|
-
function _class_call_check$
|
|
10234
|
+
function _class_call_check$l(instance, Constructor) {
|
|
10235
10235
|
if (!(instance instanceof Constructor)) {
|
|
10236
10236
|
throw new TypeError("Cannot call a class as a function");
|
|
10237
10237
|
}
|
|
10238
10238
|
}
|
|
10239
|
-
function _defineProperties$
|
|
10239
|
+
function _defineProperties$l(target, props) {
|
|
10240
10240
|
for(var i = 0; i < props.length; i++){
|
|
10241
10241
|
var descriptor = props[i];
|
|
10242
10242
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10245,8 +10245,8 @@ function _defineProperties$m(target, props) {
|
|
|
10245
10245
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10246
10246
|
}
|
|
10247
10247
|
}
|
|
10248
|
-
function _create_class$
|
|
10249
|
-
if (protoProps) _defineProperties$
|
|
10248
|
+
function _create_class$l(Constructor, protoProps, staticProps) {
|
|
10249
|
+
if (protoProps) _defineProperties$l(Constructor.prototype, protoProps);
|
|
10250
10250
|
return Constructor;
|
|
10251
10251
|
}
|
|
10252
10252
|
function _define_property$b(obj, key, value) {
|
|
@@ -10444,7 +10444,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
10444
10444
|
_inherits$8(AuthorizationCodeClient, BaseClient);
|
|
10445
10445
|
var _super = _create_super$8(AuthorizationCodeClient);
|
|
10446
10446
|
function AuthorizationCodeClient(configuration, performanceClient) {
|
|
10447
|
-
_class_call_check$
|
|
10447
|
+
_class_call_check$l(this, AuthorizationCodeClient);
|
|
10448
10448
|
var _this;
|
|
10449
10449
|
var _this_config_authOptions_authority_options_OIDCOptions;
|
|
10450
10450
|
_this = _super.call(this, configuration, performanceClient);
|
|
@@ -10453,7 +10453,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
10453
10453
|
_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;
|
|
10454
10454
|
return _this;
|
|
10455
10455
|
}
|
|
10456
|
-
_create_class$
|
|
10456
|
+
_create_class$l(AuthorizationCodeClient, [
|
|
10457
10457
|
{
|
|
10458
10458
|
key: "getAuthCodeUrl",
|
|
10459
10459
|
value: /**
|
|
@@ -11027,12 +11027,12 @@ function _async_to_generator$a(fn) {
|
|
|
11027
11027
|
});
|
|
11028
11028
|
};
|
|
11029
11029
|
}
|
|
11030
|
-
function _class_call_check$
|
|
11030
|
+
function _class_call_check$k(instance, Constructor) {
|
|
11031
11031
|
if (!(instance instanceof Constructor)) {
|
|
11032
11032
|
throw new TypeError("Cannot call a class as a function");
|
|
11033
11033
|
}
|
|
11034
11034
|
}
|
|
11035
|
-
function _defineProperties$
|
|
11035
|
+
function _defineProperties$k(target, props) {
|
|
11036
11036
|
for(var i = 0; i < props.length; i++){
|
|
11037
11037
|
var descriptor = props[i];
|
|
11038
11038
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11041,8 +11041,8 @@ function _defineProperties$l(target, props) {
|
|
|
11041
11041
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11042
11042
|
}
|
|
11043
11043
|
}
|
|
11044
|
-
function _create_class$
|
|
11045
|
-
if (protoProps) _defineProperties$
|
|
11044
|
+
function _create_class$k(Constructor, protoProps, staticProps) {
|
|
11045
|
+
if (protoProps) _defineProperties$k(Constructor.prototype, protoProps);
|
|
11046
11046
|
return Constructor;
|
|
11047
11047
|
}
|
|
11048
11048
|
function _define_property$a(obj, key, value) {
|
|
@@ -11265,10 +11265,10 @@ function _ts_generator$a(thisArg, body) {
|
|
|
11265
11265
|
_inherits$7(RefreshTokenClient, BaseClient);
|
|
11266
11266
|
var _super = _create_super$7(RefreshTokenClient);
|
|
11267
11267
|
function RefreshTokenClient(configuration, performanceClient) {
|
|
11268
|
-
_class_call_check$
|
|
11268
|
+
_class_call_check$k(this, RefreshTokenClient);
|
|
11269
11269
|
return _super.call(this, configuration, performanceClient);
|
|
11270
11270
|
}
|
|
11271
|
-
_create_class$
|
|
11271
|
+
_create_class$k(RefreshTokenClient, [
|
|
11272
11272
|
{
|
|
11273
11273
|
key: "acquireToken",
|
|
11274
11274
|
value: function acquireToken(request) {
|
|
@@ -11651,12 +11651,12 @@ function _async_to_generator$9(fn) {
|
|
|
11651
11651
|
});
|
|
11652
11652
|
};
|
|
11653
11653
|
}
|
|
11654
|
-
function _class_call_check$
|
|
11654
|
+
function _class_call_check$j(instance, Constructor) {
|
|
11655
11655
|
if (!(instance instanceof Constructor)) {
|
|
11656
11656
|
throw new TypeError("Cannot call a class as a function");
|
|
11657
11657
|
}
|
|
11658
11658
|
}
|
|
11659
|
-
function _defineProperties$
|
|
11659
|
+
function _defineProperties$j(target, props) {
|
|
11660
11660
|
for(var i = 0; i < props.length; i++){
|
|
11661
11661
|
var descriptor = props[i];
|
|
11662
11662
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11665,8 +11665,8 @@ function _defineProperties$k(target, props) {
|
|
|
11665
11665
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11666
11666
|
}
|
|
11667
11667
|
}
|
|
11668
|
-
function _create_class$
|
|
11669
|
-
if (protoProps) _defineProperties$
|
|
11668
|
+
function _create_class$j(Constructor, protoProps, staticProps) {
|
|
11669
|
+
if (protoProps) _defineProperties$j(Constructor.prototype, protoProps);
|
|
11670
11670
|
return Constructor;
|
|
11671
11671
|
}
|
|
11672
11672
|
function _define_property$9(obj, key, value) {
|
|
@@ -11932,10 +11932,10 @@ function _ts_generator$9(thisArg, body) {
|
|
|
11932
11932
|
_inherits$6(SilentFlowClient, BaseClient);
|
|
11933
11933
|
var _super = _create_super$6(SilentFlowClient);
|
|
11934
11934
|
function SilentFlowClient(configuration, performanceClient) {
|
|
11935
|
-
_class_call_check$
|
|
11935
|
+
_class_call_check$j(this, SilentFlowClient);
|
|
11936
11936
|
return _super.call(this, configuration, performanceClient);
|
|
11937
11937
|
}
|
|
11938
|
-
_create_class$
|
|
11938
|
+
_create_class$j(SilentFlowClient, [
|
|
11939
11939
|
{
|
|
11940
11940
|
key: "acquireToken",
|
|
11941
11941
|
value: /**
|
|
@@ -12115,12 +12115,12 @@ function _ts_generator$9(thisArg, body) {
|
|
|
12115
12115
|
return SilentFlowClient;
|
|
12116
12116
|
}(BaseClient);
|
|
12117
12117
|
|
|
12118
|
-
function _class_call_check$
|
|
12118
|
+
function _class_call_check$i(instance, Constructor) {
|
|
12119
12119
|
if (!(instance instanceof Constructor)) {
|
|
12120
12120
|
throw new TypeError("Cannot call a class as a function");
|
|
12121
12121
|
}
|
|
12122
12122
|
}
|
|
12123
|
-
function _defineProperties$
|
|
12123
|
+
function _defineProperties$i(target, props) {
|
|
12124
12124
|
for(var i = 0; i < props.length; i++){
|
|
12125
12125
|
var descriptor = props[i];
|
|
12126
12126
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12129,9 +12129,9 @@ function _defineProperties$j(target, props) {
|
|
|
12129
12129
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12130
12130
|
}
|
|
12131
12131
|
}
|
|
12132
|
-
function _create_class$
|
|
12133
|
-
if (protoProps) _defineProperties$
|
|
12134
|
-
if (staticProps) _defineProperties$
|
|
12132
|
+
function _create_class$i(Constructor, protoProps, staticProps) {
|
|
12133
|
+
if (protoProps) _defineProperties$i(Constructor.prototype, protoProps);
|
|
12134
|
+
if (staticProps) _defineProperties$i(Constructor, staticProps);
|
|
12135
12135
|
return Constructor;
|
|
12136
12136
|
}
|
|
12137
12137
|
function _instanceof$a(left, right) {
|
|
@@ -12203,7 +12203,7 @@ function setSku(params) {
|
|
|
12203
12203
|
}
|
|
12204
12204
|
/** @internal */ var ServerTelemetryManager = /*#__PURE__*/ function() {
|
|
12205
12205
|
function ServerTelemetryManager(telemetryRequest, cacheManager) {
|
|
12206
|
-
_class_call_check$
|
|
12206
|
+
_class_call_check$i(this, ServerTelemetryManager);
|
|
12207
12207
|
this.cacheOutcome = CacheOutcome.NOT_APPLICABLE;
|
|
12208
12208
|
this.cacheManager = cacheManager;
|
|
12209
12209
|
this.apiId = telemetryRequest.apiId;
|
|
@@ -12212,7 +12212,7 @@ function setSku(params) {
|
|
|
12212
12212
|
this.wrapperVer = telemetryRequest.wrapperVer || Constants$1.EMPTY_STRING;
|
|
12213
12213
|
this.telemetryCacheKey = SERVER_TELEM_CONSTANTS.CACHE_KEY + Separators.CACHE_KEY_SEPARATOR + telemetryRequest.clientId;
|
|
12214
12214
|
}
|
|
12215
|
-
_create_class$
|
|
12215
|
+
_create_class$i(ServerTelemetryManager, [
|
|
12216
12216
|
{
|
|
12217
12217
|
/**
|
|
12218
12218
|
* API to add MSER Telemetry to request
|
|
@@ -12440,12 +12440,12 @@ function setSku(params) {
|
|
|
12440
12440
|
return ServerTelemetryManager;
|
|
12441
12441
|
}();
|
|
12442
12442
|
|
|
12443
|
-
function _class_call_check$
|
|
12443
|
+
function _class_call_check$h(instance, Constructor) {
|
|
12444
12444
|
if (!(instance instanceof Constructor)) {
|
|
12445
12445
|
throw new TypeError("Cannot call a class as a function");
|
|
12446
12446
|
}
|
|
12447
12447
|
}
|
|
12448
|
-
function _defineProperties$
|
|
12448
|
+
function _defineProperties$h(target, props) {
|
|
12449
12449
|
for(var i = 0; i < props.length; i++){
|
|
12450
12450
|
var descriptor = props[i];
|
|
12451
12451
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12454,8 +12454,8 @@ function _defineProperties$i(target, props) {
|
|
|
12454
12454
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12455
12455
|
}
|
|
12456
12456
|
}
|
|
12457
|
-
function _create_class$
|
|
12458
|
-
if (staticProps) _defineProperties$
|
|
12457
|
+
function _create_class$h(Constructor, protoProps, staticProps) {
|
|
12458
|
+
if (staticProps) _defineProperties$h(Constructor, staticProps);
|
|
12459
12459
|
return Constructor;
|
|
12460
12460
|
}
|
|
12461
12461
|
/*
|
|
@@ -12466,9 +12466,9 @@ function _create_class$i(Constructor, protoProps, staticProps) {
|
|
|
12466
12466
|
* @internal
|
|
12467
12467
|
*/ var Deserializer = /*#__PURE__*/ function() {
|
|
12468
12468
|
function Deserializer() {
|
|
12469
|
-
_class_call_check$
|
|
12469
|
+
_class_call_check$h(this, Deserializer);
|
|
12470
12470
|
}
|
|
12471
|
-
_create_class$
|
|
12471
|
+
_create_class$h(Deserializer, null, [
|
|
12472
12472
|
{
|
|
12473
12473
|
key: "deserializeJSONBlob",
|
|
12474
12474
|
value: /**
|
|
@@ -12707,12 +12707,12 @@ var MSAL_FORCE_REGION = "MSAL_FORCE_REGION";
|
|
|
12707
12707
|
JWT_ID: "jti"
|
|
12708
12708
|
};
|
|
12709
12709
|
|
|
12710
|
-
function _class_call_check$
|
|
12710
|
+
function _class_call_check$g(instance, Constructor) {
|
|
12711
12711
|
if (!(instance instanceof Constructor)) {
|
|
12712
12712
|
throw new TypeError("Cannot call a class as a function");
|
|
12713
12713
|
}
|
|
12714
12714
|
}
|
|
12715
|
-
function _defineProperties$
|
|
12715
|
+
function _defineProperties$g(target, props) {
|
|
12716
12716
|
for(var i = 0; i < props.length; i++){
|
|
12717
12717
|
var descriptor = props[i];
|
|
12718
12718
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12721,8 +12721,8 @@ function _defineProperties$h(target, props) {
|
|
|
12721
12721
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12722
12722
|
}
|
|
12723
12723
|
}
|
|
12724
|
-
function _create_class$
|
|
12725
|
-
if (staticProps) _defineProperties$
|
|
12724
|
+
function _create_class$g(Constructor, protoProps, staticProps) {
|
|
12725
|
+
if (staticProps) _defineProperties$g(Constructor, staticProps);
|
|
12726
12726
|
return Constructor;
|
|
12727
12727
|
}
|
|
12728
12728
|
/*
|
|
@@ -12730,9 +12730,9 @@ function _create_class$h(Constructor, protoProps, staticProps) {
|
|
|
12730
12730
|
* Licensed under the MIT License.
|
|
12731
12731
|
*/ var NetworkUtils = /*#__PURE__*/ function() {
|
|
12732
12732
|
function NetworkUtils() {
|
|
12733
|
-
_class_call_check$
|
|
12733
|
+
_class_call_check$g(this, NetworkUtils);
|
|
12734
12734
|
}
|
|
12735
|
-
_create_class$
|
|
12735
|
+
_create_class$g(NetworkUtils, null, [
|
|
12736
12736
|
{
|
|
12737
12737
|
key: "getNetworkResponse",
|
|
12738
12738
|
value: function getNetworkResponse(headers, body, statusCode) {
|
|
@@ -12809,12 +12809,12 @@ function _async_to_generator$8(fn) {
|
|
|
12809
12809
|
});
|
|
12810
12810
|
};
|
|
12811
12811
|
}
|
|
12812
|
-
function _class_call_check$
|
|
12812
|
+
function _class_call_check$f(instance, Constructor) {
|
|
12813
12813
|
if (!(instance instanceof Constructor)) {
|
|
12814
12814
|
throw new TypeError("Cannot call a class as a function");
|
|
12815
12815
|
}
|
|
12816
12816
|
}
|
|
12817
|
-
function _defineProperties$
|
|
12817
|
+
function _defineProperties$f(target, props) {
|
|
12818
12818
|
for(var i = 0; i < props.length; i++){
|
|
12819
12819
|
var descriptor = props[i];
|
|
12820
12820
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12823,8 +12823,8 @@ function _defineProperties$g(target, props) {
|
|
|
12823
12823
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12824
12824
|
}
|
|
12825
12825
|
}
|
|
12826
|
-
function _create_class$
|
|
12827
|
-
if (protoProps) _defineProperties$
|
|
12826
|
+
function _create_class$f(Constructor, protoProps, staticProps) {
|
|
12827
|
+
if (protoProps) _defineProperties$f(Constructor.prototype, protoProps);
|
|
12828
12828
|
return Constructor;
|
|
12829
12829
|
}
|
|
12830
12830
|
function _define_property$8(obj, key, value) {
|
|
@@ -12997,11 +12997,11 @@ function _ts_generator$8(thisArg, body) {
|
|
|
12997
12997
|
* This class implements the API for network requests.
|
|
12998
12998
|
*/ var HttpClient = /*#__PURE__*/ function() {
|
|
12999
12999
|
function HttpClient(proxyUrl, customAgentOptions) {
|
|
13000
|
-
_class_call_check$
|
|
13000
|
+
_class_call_check$f(this, HttpClient);
|
|
13001
13001
|
this.proxyUrl = proxyUrl || "";
|
|
13002
13002
|
this.customAgentOptions = customAgentOptions || {};
|
|
13003
13003
|
}
|
|
13004
|
-
_create_class$
|
|
13004
|
+
_create_class$f(HttpClient, [
|
|
13005
13005
|
{
|
|
13006
13006
|
key: "sendGetRequestAsync",
|
|
13007
13007
|
value: /**
|
|
@@ -13327,12 +13327,12 @@ function _assert_this_initialized$5(self) {
|
|
|
13327
13327
|
}
|
|
13328
13328
|
return self;
|
|
13329
13329
|
}
|
|
13330
|
-
function _class_call_check$
|
|
13330
|
+
function _class_call_check$e(instance, Constructor) {
|
|
13331
13331
|
if (!(instance instanceof Constructor)) {
|
|
13332
13332
|
throw new TypeError("Cannot call a class as a function");
|
|
13333
13333
|
}
|
|
13334
13334
|
}
|
|
13335
|
-
function _defineProperties$
|
|
13335
|
+
function _defineProperties$e(target, props) {
|
|
13336
13336
|
for(var i = 0; i < props.length; i++){
|
|
13337
13337
|
var descriptor = props[i];
|
|
13338
13338
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13341,8 +13341,8 @@ function _defineProperties$f(target, props) {
|
|
|
13341
13341
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13342
13342
|
}
|
|
13343
13343
|
}
|
|
13344
|
-
function _create_class$
|
|
13345
|
-
if (staticProps) _defineProperties$
|
|
13344
|
+
function _create_class$e(Constructor, protoProps, staticProps) {
|
|
13345
|
+
if (staticProps) _defineProperties$e(Constructor, staticProps);
|
|
13346
13346
|
return Constructor;
|
|
13347
13347
|
}
|
|
13348
13348
|
function _get_prototype_of$5(o) {
|
|
@@ -13448,13 +13448,13 @@ var NodeAuthError = /*#__PURE__*/ function(AuthError) {
|
|
|
13448
13448
|
_inherits$5(NodeAuthError, AuthError);
|
|
13449
13449
|
var _super = _create_super$5(NodeAuthError);
|
|
13450
13450
|
function NodeAuthError(errorCode, errorMessage) {
|
|
13451
|
-
_class_call_check$
|
|
13451
|
+
_class_call_check$e(this, NodeAuthError);
|
|
13452
13452
|
var _this;
|
|
13453
13453
|
_this = _super.call(this, errorCode, errorMessage);
|
|
13454
13454
|
_this.name = "NodeAuthError";
|
|
13455
13455
|
return _this;
|
|
13456
13456
|
}
|
|
13457
|
-
_create_class$
|
|
13457
|
+
_create_class$e(NodeAuthError, null, [
|
|
13458
13458
|
{
|
|
13459
13459
|
key: "createInvalidLoopbackAddressTypeError",
|
|
13460
13460
|
value: /**
|
|
@@ -13702,12 +13702,12 @@ function v4(options, buf, offset) {
|
|
|
13702
13702
|
return stringify(rnds);
|
|
13703
13703
|
}
|
|
13704
13704
|
|
|
13705
|
-
function _class_call_check$
|
|
13705
|
+
function _class_call_check$d(instance, Constructor) {
|
|
13706
13706
|
if (!(instance instanceof Constructor)) {
|
|
13707
13707
|
throw new TypeError("Cannot call a class as a function");
|
|
13708
13708
|
}
|
|
13709
13709
|
}
|
|
13710
|
-
function _defineProperties$
|
|
13710
|
+
function _defineProperties$d(target, props) {
|
|
13711
13711
|
for(var i = 0; i < props.length; i++){
|
|
13712
13712
|
var descriptor = props[i];
|
|
13713
13713
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13716,8 +13716,8 @@ function _defineProperties$e(target, props) {
|
|
|
13716
13716
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13717
13717
|
}
|
|
13718
13718
|
}
|
|
13719
|
-
function _create_class$
|
|
13720
|
-
if (protoProps) _defineProperties$
|
|
13719
|
+
function _create_class$d(Constructor, protoProps, staticProps) {
|
|
13720
|
+
if (protoProps) _defineProperties$d(Constructor.prototype, protoProps);
|
|
13721
13721
|
return Constructor;
|
|
13722
13722
|
}
|
|
13723
13723
|
/*
|
|
@@ -13725,9 +13725,9 @@ function _create_class$e(Constructor, protoProps, staticProps) {
|
|
|
13725
13725
|
* Licensed under the MIT License.
|
|
13726
13726
|
*/ var GuidGenerator = /*#__PURE__*/ function() {
|
|
13727
13727
|
function GuidGenerator() {
|
|
13728
|
-
_class_call_check$
|
|
13728
|
+
_class_call_check$d(this, GuidGenerator);
|
|
13729
13729
|
}
|
|
13730
|
-
_create_class$
|
|
13730
|
+
_create_class$d(GuidGenerator, [
|
|
13731
13731
|
{
|
|
13732
13732
|
/**
|
|
13733
13733
|
*
|
|
@@ -13752,12 +13752,12 @@ function _create_class$e(Constructor, protoProps, staticProps) {
|
|
|
13752
13752
|
return GuidGenerator;
|
|
13753
13753
|
}();
|
|
13754
13754
|
|
|
13755
|
-
function _class_call_check$
|
|
13755
|
+
function _class_call_check$c(instance, Constructor) {
|
|
13756
13756
|
if (!(instance instanceof Constructor)) {
|
|
13757
13757
|
throw new TypeError("Cannot call a class as a function");
|
|
13758
13758
|
}
|
|
13759
13759
|
}
|
|
13760
|
-
function _defineProperties$
|
|
13760
|
+
function _defineProperties$c(target, props) {
|
|
13761
13761
|
for(var i = 0; i < props.length; i++){
|
|
13762
13762
|
var descriptor = props[i];
|
|
13763
13763
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13766,8 +13766,8 @@ function _defineProperties$d(target, props) {
|
|
|
13766
13766
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13767
13767
|
}
|
|
13768
13768
|
}
|
|
13769
|
-
function _create_class$
|
|
13770
|
-
if (staticProps) _defineProperties$
|
|
13769
|
+
function _create_class$c(Constructor, protoProps, staticProps) {
|
|
13770
|
+
if (staticProps) _defineProperties$c(Constructor, staticProps);
|
|
13771
13771
|
return Constructor;
|
|
13772
13772
|
}
|
|
13773
13773
|
/*
|
|
@@ -13775,9 +13775,9 @@ function _create_class$d(Constructor, protoProps, staticProps) {
|
|
|
13775
13775
|
* Licensed under the MIT License.
|
|
13776
13776
|
*/ var EncodingUtils = /*#__PURE__*/ function() {
|
|
13777
13777
|
function EncodingUtils() {
|
|
13778
|
-
_class_call_check$
|
|
13778
|
+
_class_call_check$c(this, EncodingUtils);
|
|
13779
13779
|
}
|
|
13780
|
-
_create_class$
|
|
13780
|
+
_create_class$c(EncodingUtils, null, [
|
|
13781
13781
|
{
|
|
13782
13782
|
key: "base64Encode",
|
|
13783
13783
|
value: /**
|
|
@@ -13825,12 +13825,12 @@ function _create_class$d(Constructor, protoProps, staticProps) {
|
|
|
13825
13825
|
return EncodingUtils;
|
|
13826
13826
|
}();
|
|
13827
13827
|
|
|
13828
|
-
function _class_call_check$
|
|
13828
|
+
function _class_call_check$b(instance, Constructor) {
|
|
13829
13829
|
if (!(instance instanceof Constructor)) {
|
|
13830
13830
|
throw new TypeError("Cannot call a class as a function");
|
|
13831
13831
|
}
|
|
13832
13832
|
}
|
|
13833
|
-
function _defineProperties$
|
|
13833
|
+
function _defineProperties$b(target, props) {
|
|
13834
13834
|
for(var i = 0; i < props.length; i++){
|
|
13835
13835
|
var descriptor = props[i];
|
|
13836
13836
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13839,8 +13839,8 @@ function _defineProperties$c(target, props) {
|
|
|
13839
13839
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13840
13840
|
}
|
|
13841
13841
|
}
|
|
13842
|
-
function _create_class$
|
|
13843
|
-
if (protoProps) _defineProperties$
|
|
13842
|
+
function _create_class$b(Constructor, protoProps, staticProps) {
|
|
13843
|
+
if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
|
|
13844
13844
|
return Constructor;
|
|
13845
13845
|
}
|
|
13846
13846
|
/*
|
|
@@ -13848,9 +13848,9 @@ function _create_class$c(Constructor, protoProps, staticProps) {
|
|
|
13848
13848
|
* Licensed under the MIT License.
|
|
13849
13849
|
*/ var HashUtils = /*#__PURE__*/ function() {
|
|
13850
13850
|
function HashUtils() {
|
|
13851
|
-
_class_call_check$
|
|
13851
|
+
_class_call_check$b(this, HashUtils);
|
|
13852
13852
|
}
|
|
13853
|
-
_create_class$
|
|
13853
|
+
_create_class$b(HashUtils, [
|
|
13854
13854
|
{
|
|
13855
13855
|
/**
|
|
13856
13856
|
* generate 'SHA256' hash
|
|
@@ -13893,12 +13893,12 @@ function _async_to_generator$7(fn) {
|
|
|
13893
13893
|
});
|
|
13894
13894
|
};
|
|
13895
13895
|
}
|
|
13896
|
-
function _class_call_check$
|
|
13896
|
+
function _class_call_check$a(instance, Constructor) {
|
|
13897
13897
|
if (!(instance instanceof Constructor)) {
|
|
13898
13898
|
throw new TypeError("Cannot call a class as a function");
|
|
13899
13899
|
}
|
|
13900
13900
|
}
|
|
13901
|
-
function _defineProperties$
|
|
13901
|
+
function _defineProperties$a(target, props) {
|
|
13902
13902
|
for(var i = 0; i < props.length; i++){
|
|
13903
13903
|
var descriptor = props[i];
|
|
13904
13904
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13907,8 +13907,8 @@ function _defineProperties$b(target, props) {
|
|
|
13907
13907
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13908
13908
|
}
|
|
13909
13909
|
}
|
|
13910
|
-
function _create_class$
|
|
13911
|
-
if (protoProps) _defineProperties$
|
|
13910
|
+
function _create_class$a(Constructor, protoProps, staticProps) {
|
|
13911
|
+
if (protoProps) _defineProperties$a(Constructor.prototype, protoProps);
|
|
13912
13912
|
return Constructor;
|
|
13913
13913
|
}
|
|
13914
13914
|
function _ts_generator$7(thisArg, body) {
|
|
@@ -14013,10 +14013,10 @@ function _ts_generator$7(thisArg, body) {
|
|
|
14013
14013
|
* https://tools.ietf.org/html/rfc7636#page-8
|
|
14014
14014
|
*/ var PkceGenerator = /*#__PURE__*/ function() {
|
|
14015
14015
|
function PkceGenerator() {
|
|
14016
|
-
_class_call_check$
|
|
14016
|
+
_class_call_check$a(this, PkceGenerator);
|
|
14017
14017
|
this.hashUtils = new HashUtils();
|
|
14018
14018
|
}
|
|
14019
|
-
_create_class$
|
|
14019
|
+
_create_class$a(PkceGenerator, [
|
|
14020
14020
|
{
|
|
14021
14021
|
key: "generatePkceCodes",
|
|
14022
14022
|
value: /**
|
|
@@ -14101,12 +14101,12 @@ function _async_to_generator$6(fn) {
|
|
|
14101
14101
|
});
|
|
14102
14102
|
};
|
|
14103
14103
|
}
|
|
14104
|
-
function _class_call_check$
|
|
14104
|
+
function _class_call_check$9(instance, Constructor) {
|
|
14105
14105
|
if (!(instance instanceof Constructor)) {
|
|
14106
14106
|
throw new TypeError("Cannot call a class as a function");
|
|
14107
14107
|
}
|
|
14108
14108
|
}
|
|
14109
|
-
function _defineProperties$
|
|
14109
|
+
function _defineProperties$9(target, props) {
|
|
14110
14110
|
for(var i = 0; i < props.length; i++){
|
|
14111
14111
|
var descriptor = props[i];
|
|
14112
14112
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14115,8 +14115,8 @@ function _defineProperties$a(target, props) {
|
|
|
14115
14115
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14116
14116
|
}
|
|
14117
14117
|
}
|
|
14118
|
-
function _create_class$
|
|
14119
|
-
if (protoProps) _defineProperties$
|
|
14118
|
+
function _create_class$9(Constructor, protoProps, staticProps) {
|
|
14119
|
+
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
14120
14120
|
return Constructor;
|
|
14121
14121
|
}
|
|
14122
14122
|
function _ts_generator$6(thisArg, body) {
|
|
@@ -14223,13 +14223,13 @@ function _ts_generator$6(thisArg, body) {
|
|
|
14223
14223
|
* @public
|
|
14224
14224
|
*/ var CryptoProvider = /*#__PURE__*/ function() {
|
|
14225
14225
|
function CryptoProvider() {
|
|
14226
|
-
_class_call_check$
|
|
14226
|
+
_class_call_check$9(this, CryptoProvider);
|
|
14227
14227
|
// Browser crypto needs to be validated first before any other classes can be set.
|
|
14228
14228
|
this.pkceGenerator = new PkceGenerator();
|
|
14229
14229
|
this.guidGenerator = new GuidGenerator();
|
|
14230
14230
|
this.hashUtils = new HashUtils();
|
|
14231
14231
|
}
|
|
14232
|
-
_create_class$
|
|
14232
|
+
_create_class$9(CryptoProvider, [
|
|
14233
14233
|
{
|
|
14234
14234
|
/**
|
|
14235
14235
|
* base64 URL safe encoded string
|
|
@@ -14350,12 +14350,12 @@ function _assert_this_initialized$4(self) {
|
|
|
14350
14350
|
}
|
|
14351
14351
|
return self;
|
|
14352
14352
|
}
|
|
14353
|
-
function _class_call_check$
|
|
14353
|
+
function _class_call_check$8(instance, Constructor) {
|
|
14354
14354
|
if (!(instance instanceof Constructor)) {
|
|
14355
14355
|
throw new TypeError("Cannot call a class as a function");
|
|
14356
14356
|
}
|
|
14357
14357
|
}
|
|
14358
|
-
function _defineProperties$
|
|
14358
|
+
function _defineProperties$8(target, props) {
|
|
14359
14359
|
for(var i = 0; i < props.length; i++){
|
|
14360
14360
|
var descriptor = props[i];
|
|
14361
14361
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14364,9 +14364,9 @@ function _defineProperties$9(target, props) {
|
|
|
14364
14364
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14365
14365
|
}
|
|
14366
14366
|
}
|
|
14367
|
-
function _create_class$
|
|
14368
|
-
if (protoProps) _defineProperties$
|
|
14369
|
-
if (staticProps) _defineProperties$
|
|
14367
|
+
function _create_class$8(Constructor, protoProps, staticProps) {
|
|
14368
|
+
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
14369
|
+
if (staticProps) _defineProperties$8(Constructor, staticProps);
|
|
14370
14370
|
return Constructor;
|
|
14371
14371
|
}
|
|
14372
14372
|
function _define_property$4(obj, key, value) {
|
|
@@ -14491,7 +14491,7 @@ function _create_super$4(Derived) {
|
|
|
14491
14491
|
_inherits$4(NodeStorage, CacheManager);
|
|
14492
14492
|
var _super = _create_super$4(NodeStorage);
|
|
14493
14493
|
function NodeStorage(logger, clientId, cryptoImpl, staticAuthorityOptions) {
|
|
14494
|
-
_class_call_check$
|
|
14494
|
+
_class_call_check$8(this, NodeStorage);
|
|
14495
14495
|
var _this;
|
|
14496
14496
|
_this = _super.call(this, clientId, cryptoImpl, logger, staticAuthorityOptions);
|
|
14497
14497
|
_this.cache = {};
|
|
@@ -14499,7 +14499,7 @@ function _create_super$4(Derived) {
|
|
|
14499
14499
|
_this.logger = logger;
|
|
14500
14500
|
return _this;
|
|
14501
14501
|
}
|
|
14502
|
-
_create_class$
|
|
14502
|
+
_create_class$8(NodeStorage, [
|
|
14503
14503
|
{
|
|
14504
14504
|
/**
|
|
14505
14505
|
* Queue up callbacks
|
|
@@ -15005,12 +15005,12 @@ function _async_to_generator$5(fn) {
|
|
|
15005
15005
|
});
|
|
15006
15006
|
};
|
|
15007
15007
|
}
|
|
15008
|
-
function _class_call_check$
|
|
15008
|
+
function _class_call_check$7(instance, Constructor) {
|
|
15009
15009
|
if (!(instance instanceof Constructor)) {
|
|
15010
15010
|
throw new TypeError("Cannot call a class as a function");
|
|
15011
15011
|
}
|
|
15012
15012
|
}
|
|
15013
|
-
function _defineProperties$
|
|
15013
|
+
function _defineProperties$7(target, props) {
|
|
15014
15014
|
for(var i = 0; i < props.length; i++){
|
|
15015
15015
|
var descriptor = props[i];
|
|
15016
15016
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15019,8 +15019,8 @@ function _defineProperties$8(target, props) {
|
|
|
15019
15019
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15020
15020
|
}
|
|
15021
15021
|
}
|
|
15022
|
-
function _create_class$
|
|
15023
|
-
if (protoProps) _defineProperties$
|
|
15022
|
+
function _create_class$7(Constructor, protoProps, staticProps) {
|
|
15023
|
+
if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
|
|
15024
15024
|
return Constructor;
|
|
15025
15025
|
}
|
|
15026
15026
|
function _define_property$3(obj, key, value) {
|
|
@@ -15184,7 +15184,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
15184
15184
|
* @public
|
|
15185
15185
|
*/ var TokenCache = /*#__PURE__*/ function() {
|
|
15186
15186
|
function TokenCache(storage, logger, cachePlugin) {
|
|
15187
|
-
_class_call_check$
|
|
15187
|
+
_class_call_check$7(this, TokenCache);
|
|
15188
15188
|
this.cacheHasChanged = false;
|
|
15189
15189
|
this.storage = storage;
|
|
15190
15190
|
this.storage.registerChangeEmitter(this.handleChangeEvent.bind(this));
|
|
@@ -15193,7 +15193,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
15193
15193
|
}
|
|
15194
15194
|
this.logger = logger;
|
|
15195
15195
|
}
|
|
15196
|
-
_create_class$
|
|
15196
|
+
_create_class$7(TokenCache, [
|
|
15197
15197
|
{
|
|
15198
15198
|
/**
|
|
15199
15199
|
* Set to true if cache state has changed since last time serialize or writeToPersistence was called
|
|
@@ -16864,12 +16864,12 @@ var identifiers$1 = {
|
|
|
16864
16864
|
rcompareIdentifiers: rcompareIdentifiers
|
|
16865
16865
|
};
|
|
16866
16866
|
|
|
16867
|
-
function _class_call_check$
|
|
16867
|
+
function _class_call_check$6(instance, Constructor) {
|
|
16868
16868
|
if (!(instance instanceof Constructor)) {
|
|
16869
16869
|
throw new TypeError("Cannot call a class as a function");
|
|
16870
16870
|
}
|
|
16871
16871
|
}
|
|
16872
|
-
function _defineProperties$
|
|
16872
|
+
function _defineProperties$6(target, props) {
|
|
16873
16873
|
for(var i = 0; i < props.length; i++){
|
|
16874
16874
|
var descriptor = props[i];
|
|
16875
16875
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16878,8 +16878,8 @@ function _defineProperties$7(target, props) {
|
|
|
16878
16878
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16879
16879
|
}
|
|
16880
16880
|
}
|
|
16881
|
-
function _create_class$
|
|
16882
|
-
if (protoProps) _defineProperties$
|
|
16881
|
+
function _create_class$6(Constructor, protoProps, staticProps) {
|
|
16882
|
+
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
16883
16883
|
return Constructor;
|
|
16884
16884
|
}
|
|
16885
16885
|
function _instanceof$8(left, right) {
|
|
@@ -16900,7 +16900,7 @@ var parseOptions = parseOptions_1;
|
|
|
16900
16900
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
16901
16901
|
var SemVer$d = /*#__PURE__*/ function() {
|
|
16902
16902
|
function SemVer(version, options) {
|
|
16903
|
-
_class_call_check$
|
|
16903
|
+
_class_call_check$6(this, SemVer);
|
|
16904
16904
|
options = parseOptions(options);
|
|
16905
16905
|
if (_instanceof$8(version, SemVer)) {
|
|
16906
16906
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -16955,7 +16955,7 @@ var SemVer$d = /*#__PURE__*/ function() {
|
|
|
16955
16955
|
this.build = m[5] ? m[5].split('.') : [];
|
|
16956
16956
|
this.format();
|
|
16957
16957
|
}
|
|
16958
|
-
_create_class$
|
|
16958
|
+
_create_class$6(SemVer, [
|
|
16959
16959
|
{
|
|
16960
16960
|
key: "format",
|
|
16961
16961
|
value: function format() {
|
|
@@ -17518,70 +17518,78 @@ var coerce$1 = function(version, options) {
|
|
|
17518
17518
|
};
|
|
17519
17519
|
var coerce_1 = coerce$1;
|
|
17520
17520
|
|
|
17521
|
-
|
|
17522
|
-
|
|
17523
|
-
|
|
17524
|
-
|
|
17525
|
-
|
|
17526
|
-
|
|
17527
|
-
|
|
17528
|
-
|
|
17529
|
-
|
|
17530
|
-
|
|
17531
|
-
|
|
17532
|
-
|
|
17533
|
-
|
|
17534
|
-
|
|
17535
|
-
|
|
17536
|
-
|
|
17537
|
-
|
|
17521
|
+
var lrucache;
|
|
17522
|
+
var hasRequiredLrucache;
|
|
17523
|
+
|
|
17524
|
+
function requireLrucache () {
|
|
17525
|
+
if (hasRequiredLrucache) return lrucache;
|
|
17526
|
+
hasRequiredLrucache = 1;
|
|
17527
|
+
function _class_call_check(instance, Constructor) {
|
|
17528
|
+
if (!(instance instanceof Constructor)) {
|
|
17529
|
+
throw new TypeError("Cannot call a class as a function");
|
|
17530
|
+
}
|
|
17531
|
+
}
|
|
17532
|
+
function _defineProperties(target, props) {
|
|
17533
|
+
for(var i = 0; i < props.length; i++){
|
|
17534
|
+
var descriptor = props[i];
|
|
17535
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
17536
|
+
descriptor.configurable = true;
|
|
17537
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
17538
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17539
|
+
}
|
|
17540
|
+
}
|
|
17541
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
17542
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17543
|
+
return Constructor;
|
|
17544
|
+
}
|
|
17545
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
17546
|
+
function LRUCache() {
|
|
17547
|
+
_class_call_check(this, LRUCache);
|
|
17548
|
+
this.max = 1000;
|
|
17549
|
+
this.map = new Map();
|
|
17550
|
+
}
|
|
17551
|
+
_create_class(LRUCache, [
|
|
17552
|
+
{
|
|
17553
|
+
key: "get",
|
|
17554
|
+
value: function get(key) {
|
|
17555
|
+
var value = this.map.get(key);
|
|
17556
|
+
if (value === undefined) {
|
|
17557
|
+
return undefined;
|
|
17558
|
+
} else {
|
|
17559
|
+
// Remove the key from the map and add it to the end
|
|
17560
|
+
this.map.delete(key);
|
|
17561
|
+
this.map.set(key, value);
|
|
17562
|
+
return value;
|
|
17563
|
+
}
|
|
17564
|
+
}
|
|
17565
|
+
},
|
|
17566
|
+
{
|
|
17567
|
+
key: "delete",
|
|
17568
|
+
value: function _delete(key) {
|
|
17569
|
+
return this.map.delete(key);
|
|
17570
|
+
}
|
|
17571
|
+
},
|
|
17572
|
+
{
|
|
17573
|
+
key: "set",
|
|
17574
|
+
value: function set(key, value) {
|
|
17575
|
+
var deleted = this.delete(key);
|
|
17576
|
+
if (!deleted && value !== undefined) {
|
|
17577
|
+
// If cache is full, delete the least recently used item
|
|
17578
|
+
if (this.map.size >= this.max) {
|
|
17579
|
+
var firstKey = this.map.keys().next().value;
|
|
17580
|
+
this.delete(firstKey);
|
|
17581
|
+
}
|
|
17582
|
+
this.map.set(key, value);
|
|
17583
|
+
}
|
|
17584
|
+
return this;
|
|
17585
|
+
}
|
|
17586
|
+
}
|
|
17587
|
+
]);
|
|
17588
|
+
return LRUCache;
|
|
17589
|
+
}();
|
|
17590
|
+
lrucache = LRUCache;
|
|
17591
|
+
return lrucache;
|
|
17538
17592
|
}
|
|
17539
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
17540
|
-
function LRUCache() {
|
|
17541
|
-
_class_call_check$6(this, LRUCache);
|
|
17542
|
-
this.max = 1000;
|
|
17543
|
-
this.map = new Map();
|
|
17544
|
-
}
|
|
17545
|
-
_create_class$6(LRUCache, [
|
|
17546
|
-
{
|
|
17547
|
-
key: "get",
|
|
17548
|
-
value: function get(key) {
|
|
17549
|
-
var value = this.map.get(key);
|
|
17550
|
-
if (value === undefined) {
|
|
17551
|
-
return undefined;
|
|
17552
|
-
} else {
|
|
17553
|
-
// Remove the key from the map and add it to the end
|
|
17554
|
-
this.map.delete(key);
|
|
17555
|
-
this.map.set(key, value);
|
|
17556
|
-
return value;
|
|
17557
|
-
}
|
|
17558
|
-
}
|
|
17559
|
-
},
|
|
17560
|
-
{
|
|
17561
|
-
key: "delete",
|
|
17562
|
-
value: function _delete(key) {
|
|
17563
|
-
return this.map.delete(key);
|
|
17564
|
-
}
|
|
17565
|
-
},
|
|
17566
|
-
{
|
|
17567
|
-
key: "set",
|
|
17568
|
-
value: function set(key, value) {
|
|
17569
|
-
var deleted = this.delete(key);
|
|
17570
|
-
if (!deleted && value !== undefined) {
|
|
17571
|
-
// If cache is full, delete the least recently used item
|
|
17572
|
-
if (this.map.size >= this.max) {
|
|
17573
|
-
var firstKey = this.map.keys().next().value;
|
|
17574
|
-
this.delete(firstKey);
|
|
17575
|
-
}
|
|
17576
|
-
this.map.set(key, value);
|
|
17577
|
-
}
|
|
17578
|
-
return this;
|
|
17579
|
-
}
|
|
17580
|
-
}
|
|
17581
|
-
]);
|
|
17582
|
-
return LRUCache;
|
|
17583
|
-
}();
|
|
17584
|
-
var lrucache = LRUCache;
|
|
17585
17593
|
|
|
17586
17594
|
var range;
|
|
17587
17595
|
var hasRequiredRange;
|
|
@@ -17885,7 +17893,7 @@ function requireRange () {
|
|
|
17885
17893
|
return Range;
|
|
17886
17894
|
}();
|
|
17887
17895
|
range = Range;
|
|
17888
|
-
var LRU =
|
|
17896
|
+
var LRU = requireLrucache();
|
|
17889
17897
|
var cache = new LRU();
|
|
17890
17898
|
var parseOptions = parseOptions_1;
|
|
17891
17899
|
var Comparator = requireComparator();
|