@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.cjs.js
CHANGED
|
@@ -20,12 +20,12 @@ function _extends() {
|
|
|
20
20
|
return _extends.apply(this, arguments);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
function _class_call_check$
|
|
23
|
+
function _class_call_check$J(instance, Constructor) {
|
|
24
24
|
if (!(instance instanceof Constructor)) {
|
|
25
25
|
throw new TypeError("Cannot call a class as a function");
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
function _defineProperties$
|
|
28
|
+
function _defineProperties$D(target, props) {
|
|
29
29
|
for(var i = 0; i < props.length; i++){
|
|
30
30
|
var descriptor = props[i];
|
|
31
31
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -34,8 +34,8 @@ function _defineProperties$E(target, props) {
|
|
|
34
34
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
function _create_class$
|
|
38
|
-
if (staticProps) _defineProperties$
|
|
37
|
+
function _create_class$D(Constructor, protoProps, staticProps) {
|
|
38
|
+
if (staticProps) _defineProperties$D(Constructor, staticProps);
|
|
39
39
|
return Constructor;
|
|
40
40
|
}
|
|
41
41
|
/*
|
|
@@ -46,9 +46,9 @@ function _create_class$E(Constructor, protoProps, staticProps) {
|
|
|
46
46
|
* @internal
|
|
47
47
|
*/ var Serializer = /*#__PURE__*/ function() {
|
|
48
48
|
function Serializer() {
|
|
49
|
-
_class_call_check$
|
|
49
|
+
_class_call_check$J(this, Serializer);
|
|
50
50
|
}
|
|
51
|
-
_create_class$
|
|
51
|
+
_create_class$D(Serializer, null, [
|
|
52
52
|
{
|
|
53
53
|
key: "serializeJSONBlob",
|
|
54
54
|
value: /**
|
|
@@ -539,7 +539,7 @@ function _assert_this_initialized$g(self) {
|
|
|
539
539
|
}
|
|
540
540
|
return self;
|
|
541
541
|
}
|
|
542
|
-
function _class_call_check$
|
|
542
|
+
function _class_call_check$I(instance, Constructor) {
|
|
543
543
|
if (!(instance instanceof Constructor)) {
|
|
544
544
|
throw new TypeError("Cannot call a class as a function");
|
|
545
545
|
}
|
|
@@ -561,7 +561,7 @@ function _construct$1(Parent, args, Class) {
|
|
|
561
561
|
}
|
|
562
562
|
return _construct$1.apply(null, arguments);
|
|
563
563
|
}
|
|
564
|
-
function _defineProperties$
|
|
564
|
+
function _defineProperties$C(target, props) {
|
|
565
565
|
for(var i = 0; i < props.length; i++){
|
|
566
566
|
var descriptor = props[i];
|
|
567
567
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -570,8 +570,8 @@ function _defineProperties$D(target, props) {
|
|
|
570
570
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
571
571
|
}
|
|
572
572
|
}
|
|
573
|
-
function _create_class$
|
|
574
|
-
if (protoProps) _defineProperties$
|
|
573
|
+
function _create_class$C(Constructor, protoProps, staticProps) {
|
|
574
|
+
if (protoProps) _defineProperties$C(Constructor.prototype, protoProps);
|
|
575
575
|
return Constructor;
|
|
576
576
|
}
|
|
577
577
|
function _define_property$m(obj, key, value) {
|
|
@@ -698,7 +698,7 @@ var _obj$6;
|
|
|
698
698
|
_inherits$g(AuthError, Error1);
|
|
699
699
|
var _super = _create_super$g(AuthError);
|
|
700
700
|
function AuthError(errorCode, errorMessage, suberror) {
|
|
701
|
-
_class_call_check$
|
|
701
|
+
_class_call_check$I(this, AuthError);
|
|
702
702
|
var _this;
|
|
703
703
|
var errorString = errorMessage ? "".concat(errorCode, ": ").concat(errorMessage) : errorCode;
|
|
704
704
|
_this = _super.call(this, errorString);
|
|
@@ -709,7 +709,7 @@ var _obj$6;
|
|
|
709
709
|
_this.name = "AuthError";
|
|
710
710
|
return _this;
|
|
711
711
|
}
|
|
712
|
-
_create_class$
|
|
712
|
+
_create_class$C(AuthError, [
|
|
713
713
|
{
|
|
714
714
|
key: "setCorrelationId",
|
|
715
715
|
value: function setCorrelationId(correlationId) {
|
|
@@ -774,7 +774,7 @@ function _assert_this_initialized$f(self) {
|
|
|
774
774
|
}
|
|
775
775
|
return self;
|
|
776
776
|
}
|
|
777
|
-
function _class_call_check$
|
|
777
|
+
function _class_call_check$H(instance, Constructor) {
|
|
778
778
|
if (!(instance instanceof Constructor)) {
|
|
779
779
|
throw new TypeError("Cannot call a class as a function");
|
|
780
780
|
}
|
|
@@ -999,7 +999,7 @@ var _obj$5;
|
|
|
999
999
|
_inherits$f(ClientAuthError, AuthError);
|
|
1000
1000
|
var _super = _create_super$f(ClientAuthError);
|
|
1001
1001
|
function ClientAuthError(errorCode, additionalMessage) {
|
|
1002
|
-
_class_call_check$
|
|
1002
|
+
_class_call_check$H(this, ClientAuthError);
|
|
1003
1003
|
var _this;
|
|
1004
1004
|
_this = _super.call(this, errorCode, additionalMessage ? "".concat(ClientAuthErrorMessages[errorCode], ": ").concat(additionalMessage) : ClientAuthErrorMessages[errorCode]);
|
|
1005
1005
|
_this.name = "ClientAuthError";
|
|
@@ -1192,12 +1192,12 @@ function _ts_generator$l(thisArg, body) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
};
|
|
1194
1194
|
|
|
1195
|
-
function _class_call_check$
|
|
1195
|
+
function _class_call_check$G(instance, Constructor) {
|
|
1196
1196
|
if (!(instance instanceof Constructor)) {
|
|
1197
1197
|
throw new TypeError("Cannot call a class as a function");
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
function _defineProperties$
|
|
1200
|
+
function _defineProperties$B(target, props) {
|
|
1201
1201
|
for(var i = 0; i < props.length; i++){
|
|
1202
1202
|
var descriptor = props[i];
|
|
1203
1203
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -1206,9 +1206,9 @@ function _defineProperties$C(target, props) {
|
|
|
1206
1206
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
1207
1207
|
}
|
|
1208
1208
|
}
|
|
1209
|
-
function _create_class$
|
|
1210
|
-
if (protoProps) _defineProperties$
|
|
1211
|
-
if (staticProps) _defineProperties$
|
|
1209
|
+
function _create_class$B(Constructor, protoProps, staticProps) {
|
|
1210
|
+
if (protoProps) _defineProperties$B(Constructor.prototype, protoProps);
|
|
1211
|
+
if (staticProps) _defineProperties$B(Constructor, staticProps);
|
|
1212
1212
|
return Constructor;
|
|
1213
1213
|
}
|
|
1214
1214
|
/*
|
|
@@ -1228,7 +1228,7 @@ function _create_class$C(Constructor, protoProps, staticProps) {
|
|
|
1228
1228
|
* Class which facilitates logging of messages to a specific place.
|
|
1229
1229
|
*/ var Logger = /*#__PURE__*/ function() {
|
|
1230
1230
|
function Logger(loggerOptions, packageName, packageVersion) {
|
|
1231
|
-
_class_call_check$
|
|
1231
|
+
_class_call_check$G(this, Logger);
|
|
1232
1232
|
// Current log level, defaults to info.
|
|
1233
1233
|
this.level = LogLevel.Info;
|
|
1234
1234
|
var defaultLoggerCallback = function() {
|
|
@@ -1242,7 +1242,7 @@ function _create_class$C(Constructor, protoProps, staticProps) {
|
|
|
1242
1242
|
this.packageName = packageName || Constants$1.EMPTY_STRING;
|
|
1243
1243
|
this.packageVersion = packageVersion || Constants$1.EMPTY_STRING;
|
|
1244
1244
|
}
|
|
1245
|
-
_create_class$
|
|
1245
|
+
_create_class$B(Logger, [
|
|
1246
1246
|
{
|
|
1247
1247
|
/**
|
|
1248
1248
|
* Create new Logger with existing configurations.
|
|
@@ -1819,7 +1819,7 @@ function _assert_this_initialized$e(self) {
|
|
|
1819
1819
|
}
|
|
1820
1820
|
return self;
|
|
1821
1821
|
}
|
|
1822
|
-
function _class_call_check$
|
|
1822
|
+
function _class_call_check$F(instance, Constructor) {
|
|
1823
1823
|
if (!(instance instanceof Constructor)) {
|
|
1824
1824
|
throw new TypeError("Cannot call a class as a function");
|
|
1825
1825
|
}
|
|
@@ -1979,7 +1979,7 @@ var _obj$4;
|
|
|
1979
1979
|
_inherits$e(ClientConfigurationError, AuthError);
|
|
1980
1980
|
var _super = _create_super$e(ClientConfigurationError);
|
|
1981
1981
|
function ClientConfigurationError(errorCode) {
|
|
1982
|
-
_class_call_check$
|
|
1982
|
+
_class_call_check$F(this, ClientConfigurationError);
|
|
1983
1983
|
var _this;
|
|
1984
1984
|
_this = _super.call(this, errorCode, ClientConfigurationErrorMessages[errorCode]);
|
|
1985
1985
|
_this.name = "ClientConfigurationError";
|
|
@@ -2000,12 +2000,12 @@ function _array_like_to_array$b(arr, len) {
|
|
|
2000
2000
|
function _array_with_holes$4(arr) {
|
|
2001
2001
|
if (Array.isArray(arr)) return arr;
|
|
2002
2002
|
}
|
|
2003
|
-
function _class_call_check$
|
|
2003
|
+
function _class_call_check$E(instance, Constructor) {
|
|
2004
2004
|
if (!(instance instanceof Constructor)) {
|
|
2005
2005
|
throw new TypeError("Cannot call a class as a function");
|
|
2006
2006
|
}
|
|
2007
2007
|
}
|
|
2008
|
-
function _defineProperties$
|
|
2008
|
+
function _defineProperties$A(target, props) {
|
|
2009
2009
|
for(var i = 0; i < props.length; i++){
|
|
2010
2010
|
var descriptor = props[i];
|
|
2011
2011
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2014,8 +2014,8 @@ function _defineProperties$B(target, props) {
|
|
|
2014
2014
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2015
2015
|
}
|
|
2016
2016
|
}
|
|
2017
|
-
function _create_class$
|
|
2018
|
-
if (staticProps) _defineProperties$
|
|
2017
|
+
function _create_class$A(Constructor, protoProps, staticProps) {
|
|
2018
|
+
if (staticProps) _defineProperties$A(Constructor, staticProps);
|
|
2019
2019
|
return Constructor;
|
|
2020
2020
|
}
|
|
2021
2021
|
function _iterable_to_array_limit$4(arr, i) {
|
|
@@ -2063,9 +2063,9 @@ function _unsupported_iterable_to_array$b(o, minLen) {
|
|
|
2063
2063
|
* @hidden
|
|
2064
2064
|
*/ var StringUtils = /*#__PURE__*/ function() {
|
|
2065
2065
|
function StringUtils() {
|
|
2066
|
-
_class_call_check$
|
|
2066
|
+
_class_call_check$E(this, StringUtils);
|
|
2067
2067
|
}
|
|
2068
|
-
_create_class$
|
|
2068
|
+
_create_class$A(StringUtils, null, [
|
|
2069
2069
|
{
|
|
2070
2070
|
key: "isEmptyObj",
|
|
2071
2071
|
value: /**
|
|
@@ -2179,12 +2179,12 @@ function _array_like_to_array$a(arr, len) {
|
|
|
2179
2179
|
function _array_without_holes$8(arr) {
|
|
2180
2180
|
if (Array.isArray(arr)) return _array_like_to_array$a(arr);
|
|
2181
2181
|
}
|
|
2182
|
-
function _class_call_check$
|
|
2182
|
+
function _class_call_check$D(instance, Constructor) {
|
|
2183
2183
|
if (!(instance instanceof Constructor)) {
|
|
2184
2184
|
throw new TypeError("Cannot call a class as a function");
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
|
-
function _defineProperties$
|
|
2187
|
+
function _defineProperties$z(target, props) {
|
|
2188
2188
|
for(var i = 0; i < props.length; i++){
|
|
2189
2189
|
var descriptor = props[i];
|
|
2190
2190
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2193,9 +2193,9 @@ function _defineProperties$A(target, props) {
|
|
|
2193
2193
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
|
-
function _create_class$
|
|
2197
|
-
if (protoProps) _defineProperties$
|
|
2198
|
-
if (staticProps) _defineProperties$
|
|
2196
|
+
function _create_class$z(Constructor, protoProps, staticProps) {
|
|
2197
|
+
if (protoProps) _defineProperties$z(Constructor.prototype, protoProps);
|
|
2198
|
+
if (staticProps) _defineProperties$z(Constructor, staticProps);
|
|
2199
2199
|
return Constructor;
|
|
2200
2200
|
}
|
|
2201
2201
|
function _iterable_to_array$8(iter) {
|
|
@@ -2225,7 +2225,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
2225
2225
|
*/ var ScopeSet = /*#__PURE__*/ function() {
|
|
2226
2226
|
function ScopeSet(inputScopes) {
|
|
2227
2227
|
var _this = this;
|
|
2228
|
-
_class_call_check$
|
|
2228
|
+
_class_call_check$D(this, ScopeSet);
|
|
2229
2229
|
// Filter empty string and null/undefined array items
|
|
2230
2230
|
var scopeArr = inputScopes ? StringUtils.trimArrayEntries(_to_consumable_array$8(inputScopes)) : [];
|
|
2231
2231
|
var filteredInput = scopeArr ? StringUtils.removeEmptyStringsFromArray(scopeArr) : [];
|
|
@@ -2236,7 +2236,7 @@ function _unsupported_iterable_to_array$a(o, minLen) {
|
|
|
2236
2236
|
return _this.scopes.add(scope);
|
|
2237
2237
|
});
|
|
2238
2238
|
}
|
|
2239
|
-
_create_class$
|
|
2239
|
+
_create_class$z(ScopeSet, [
|
|
2240
2240
|
{
|
|
2241
2241
|
/**
|
|
2242
2242
|
* Used to validate the scopes input parameter requested by the developer.
|
|
@@ -2675,12 +2675,12 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
2675
2675
|
OIDC: "OIDC"
|
|
2676
2676
|
};
|
|
2677
2677
|
|
|
2678
|
-
function _class_call_check$
|
|
2678
|
+
function _class_call_check$C(instance, Constructor) {
|
|
2679
2679
|
if (!(instance instanceof Constructor)) {
|
|
2680
2680
|
throw new TypeError("Cannot call a class as a function");
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
|
-
function _defineProperties$
|
|
2683
|
+
function _defineProperties$y(target, props) {
|
|
2684
2684
|
for(var i = 0; i < props.length; i++){
|
|
2685
2685
|
var descriptor = props[i];
|
|
2686
2686
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2689,9 +2689,9 @@ function _defineProperties$z(target, props) {
|
|
|
2689
2689
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2690
2690
|
}
|
|
2691
2691
|
}
|
|
2692
|
-
function _create_class$
|
|
2693
|
-
if (protoProps) _defineProperties$
|
|
2694
|
-
if (staticProps) _defineProperties$
|
|
2692
|
+
function _create_class$y(Constructor, protoProps, staticProps) {
|
|
2693
|
+
if (protoProps) _defineProperties$y(Constructor.prototype, protoProps);
|
|
2694
|
+
if (staticProps) _defineProperties$y(Constructor, staticProps);
|
|
2695
2695
|
return Constructor;
|
|
2696
2696
|
}
|
|
2697
2697
|
/*
|
|
@@ -2721,9 +2721,9 @@ function _create_class$z(Constructor, protoProps, staticProps) {
|
|
|
2721
2721
|
* @internal
|
|
2722
2722
|
*/ var AccountEntity = /*#__PURE__*/ function() {
|
|
2723
2723
|
function AccountEntity() {
|
|
2724
|
-
_class_call_check$
|
|
2724
|
+
_class_call_check$C(this, AccountEntity);
|
|
2725
2725
|
}
|
|
2726
|
-
_create_class$
|
|
2726
|
+
_create_class$y(AccountEntity, [
|
|
2727
2727
|
{
|
|
2728
2728
|
/**
|
|
2729
2729
|
* Generate Account Id key component as per the schema: <home_account_id>-<environment>
|
|
@@ -2973,12 +2973,12 @@ function _create_class$z(Constructor, protoProps, staticProps) {
|
|
|
2973
2973
|
return null;
|
|
2974
2974
|
}
|
|
2975
2975
|
|
|
2976
|
-
function _class_call_check$
|
|
2976
|
+
function _class_call_check$B(instance, Constructor) {
|
|
2977
2977
|
if (!(instance instanceof Constructor)) {
|
|
2978
2978
|
throw new TypeError("Cannot call a class as a function");
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
|
-
function _defineProperties$
|
|
2981
|
+
function _defineProperties$x(target, props) {
|
|
2982
2982
|
for(var i = 0; i < props.length; i++){
|
|
2983
2983
|
var descriptor = props[i];
|
|
2984
2984
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -2987,9 +2987,9 @@ function _defineProperties$y(target, props) {
|
|
|
2987
2987
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
2988
2988
|
}
|
|
2989
2989
|
}
|
|
2990
|
-
function _create_class$
|
|
2991
|
-
if (protoProps) _defineProperties$
|
|
2992
|
-
if (staticProps) _defineProperties$
|
|
2990
|
+
function _create_class$x(Constructor, protoProps, staticProps) {
|
|
2991
|
+
if (protoProps) _defineProperties$x(Constructor.prototype, protoProps);
|
|
2992
|
+
if (staticProps) _defineProperties$x(Constructor, staticProps);
|
|
2993
2993
|
return Constructor;
|
|
2994
2994
|
}
|
|
2995
2995
|
/*
|
|
@@ -2999,7 +2999,7 @@ function _create_class$y(Constructor, protoProps, staticProps) {
|
|
|
2999
2999
|
* Url object class which can perform various transformations on url strings.
|
|
3000
3000
|
*/ var UrlString = /*#__PURE__*/ function() {
|
|
3001
3001
|
function UrlString(url) {
|
|
3002
|
-
_class_call_check$
|
|
3002
|
+
_class_call_check$B(this, UrlString);
|
|
3003
3003
|
this._urlString = url;
|
|
3004
3004
|
if (!this._urlString) {
|
|
3005
3005
|
// Throws error if url is empty
|
|
@@ -3009,7 +3009,7 @@ function _create_class$y(Constructor, protoProps, staticProps) {
|
|
|
3009
3009
|
this._urlString = UrlString.canonicalizeUri(url);
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
_create_class$
|
|
3012
|
+
_create_class$x(UrlString, [
|
|
3013
3013
|
{
|
|
3014
3014
|
key: "urlString",
|
|
3015
3015
|
get: function get() {
|
|
@@ -3314,7 +3314,7 @@ function _assert_this_initialized$d(self) {
|
|
|
3314
3314
|
}
|
|
3315
3315
|
return self;
|
|
3316
3316
|
}
|
|
3317
|
-
function _class_call_check$
|
|
3317
|
+
function _class_call_check$A(instance, Constructor) {
|
|
3318
3318
|
if (!(instance instanceof Constructor)) {
|
|
3319
3319
|
throw new TypeError("Cannot call a class as a function");
|
|
3320
3320
|
}
|
|
@@ -3449,7 +3449,7 @@ var _obj$3;
|
|
|
3449
3449
|
_inherits$d(CacheError, Error1);
|
|
3450
3450
|
var _super = _create_super$d(CacheError);
|
|
3451
3451
|
function CacheError(errorCode, errorMessage) {
|
|
3452
|
-
_class_call_check$
|
|
3452
|
+
_class_call_check$A(this, CacheError);
|
|
3453
3453
|
var _this;
|
|
3454
3454
|
var message = errorMessage || (CacheErrorMessages[errorCode] ? CacheErrorMessages[errorCode] : CacheErrorMessages[cacheUnknownErrorCode]);
|
|
3455
3455
|
_this = _super.call(this, "".concat(errorCode, ": ").concat(message));
|
|
@@ -3497,12 +3497,12 @@ function _async_to_generator$k(fn) {
|
|
|
3497
3497
|
});
|
|
3498
3498
|
};
|
|
3499
3499
|
}
|
|
3500
|
-
function _class_call_check$
|
|
3500
|
+
function _class_call_check$z(instance, Constructor) {
|
|
3501
3501
|
if (!(instance instanceof Constructor)) {
|
|
3502
3502
|
throw new TypeError("Cannot call a class as a function");
|
|
3503
3503
|
}
|
|
3504
3504
|
}
|
|
3505
|
-
function _defineProperties$
|
|
3505
|
+
function _defineProperties$w(target, props) {
|
|
3506
3506
|
for(var i = 0; i < props.length; i++){
|
|
3507
3507
|
var descriptor = props[i];
|
|
3508
3508
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -3511,9 +3511,9 @@ function _defineProperties$x(target, props) {
|
|
|
3511
3511
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3512
3512
|
}
|
|
3513
3513
|
}
|
|
3514
|
-
function _create_class$
|
|
3515
|
-
if (protoProps) _defineProperties$
|
|
3516
|
-
if (staticProps) _defineProperties$
|
|
3514
|
+
function _create_class$w(Constructor, protoProps, staticProps) {
|
|
3515
|
+
if (protoProps) _defineProperties$w(Constructor.prototype, protoProps);
|
|
3516
|
+
if (staticProps) _defineProperties$w(Constructor, staticProps);
|
|
3517
3517
|
return Constructor;
|
|
3518
3518
|
}
|
|
3519
3519
|
function _define_property$h(obj, key, value) {
|
|
@@ -3714,13 +3714,13 @@ function _ts_generator$k(thisArg, body) {
|
|
|
3714
3714
|
* @internal
|
|
3715
3715
|
*/ var CacheManager = /*#__PURE__*/ function() {
|
|
3716
3716
|
function CacheManager(clientId, cryptoImpl, logger, staticAuthorityOptions) {
|
|
3717
|
-
_class_call_check$
|
|
3717
|
+
_class_call_check$z(this, CacheManager);
|
|
3718
3718
|
this.clientId = clientId;
|
|
3719
3719
|
this.cryptoImpl = cryptoImpl;
|
|
3720
3720
|
this.commonLogger = logger.clone(name$1, version$1);
|
|
3721
3721
|
this.staticAuthorityOptions = staticAuthorityOptions;
|
|
3722
3722
|
}
|
|
3723
|
-
_create_class$
|
|
3723
|
+
_create_class$w(CacheManager, [
|
|
3724
3724
|
{
|
|
3725
3725
|
/**
|
|
3726
3726
|
* Returns all the accounts in the cache that match the optional filter. If no filter is provided, all accounts are returned.
|
|
@@ -5081,10 +5081,10 @@ function _ts_generator$k(thisArg, body) {
|
|
|
5081
5081
|
_inherits$c(DefaultStorageClass, CacheManager);
|
|
5082
5082
|
var _super = _create_super$c(DefaultStorageClass);
|
|
5083
5083
|
function DefaultStorageClass() {
|
|
5084
|
-
_class_call_check$
|
|
5084
|
+
_class_call_check$z(this, DefaultStorageClass);
|
|
5085
5085
|
return _super.apply(this, arguments);
|
|
5086
5086
|
}
|
|
5087
|
-
_create_class$
|
|
5087
|
+
_create_class$w(DefaultStorageClass, [
|
|
5088
5088
|
{
|
|
5089
5089
|
key: "setAccount",
|
|
5090
5090
|
value: function setAccount() {
|
|
@@ -5538,12 +5538,12 @@ var DOMAIN_HINT = "domain_hint";
|
|
|
5538
5538
|
var BROKER_CLIENT_ID = "brk_client_id";
|
|
5539
5539
|
var BROKER_REDIRECT_URI = "brk_redirect_uri";
|
|
5540
5540
|
|
|
5541
|
-
function _class_call_check$
|
|
5541
|
+
function _class_call_check$y(instance, Constructor) {
|
|
5542
5542
|
if (!(instance instanceof Constructor)) {
|
|
5543
5543
|
throw new TypeError("Cannot call a class as a function");
|
|
5544
5544
|
}
|
|
5545
5545
|
}
|
|
5546
|
-
function _defineProperties$
|
|
5546
|
+
function _defineProperties$v(target, props) {
|
|
5547
5547
|
for(var i = 0; i < props.length; i++){
|
|
5548
5548
|
var descriptor = props[i];
|
|
5549
5549
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5552,8 +5552,8 @@ function _defineProperties$w(target, props) {
|
|
|
5552
5552
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5553
5553
|
}
|
|
5554
5554
|
}
|
|
5555
|
-
function _create_class$
|
|
5556
|
-
if (staticProps) _defineProperties$
|
|
5555
|
+
function _create_class$v(Constructor, protoProps, staticProps) {
|
|
5556
|
+
if (staticProps) _defineProperties$v(Constructor, staticProps);
|
|
5557
5557
|
return Constructor;
|
|
5558
5558
|
}
|
|
5559
5559
|
/*
|
|
@@ -5563,9 +5563,9 @@ function _create_class$w(Constructor, protoProps, staticProps) {
|
|
|
5563
5563
|
* Validates server consumable params from the "request" objects
|
|
5564
5564
|
*/ var RequestValidator = /*#__PURE__*/ function() {
|
|
5565
5565
|
function RequestValidator() {
|
|
5566
|
-
_class_call_check$
|
|
5566
|
+
_class_call_check$y(this, RequestValidator);
|
|
5567
5567
|
}
|
|
5568
|
-
_create_class$
|
|
5568
|
+
_create_class$v(RequestValidator, null, [
|
|
5569
5569
|
{
|
|
5570
5570
|
key: "validateRedirectUri",
|
|
5571
5571
|
value: /**
|
|
@@ -5645,12 +5645,12 @@ function _array_with_holes$3(arr) {
|
|
|
5645
5645
|
function _array_without_holes$7(arr) {
|
|
5646
5646
|
if (Array.isArray(arr)) return _array_like_to_array$9(arr);
|
|
5647
5647
|
}
|
|
5648
|
-
function _class_call_check$
|
|
5648
|
+
function _class_call_check$x(instance, Constructor) {
|
|
5649
5649
|
if (!(instance instanceof Constructor)) {
|
|
5650
5650
|
throw new TypeError("Cannot call a class as a function");
|
|
5651
5651
|
}
|
|
5652
5652
|
}
|
|
5653
|
-
function _defineProperties$
|
|
5653
|
+
function _defineProperties$u(target, props) {
|
|
5654
5654
|
for(var i = 0; i < props.length; i++){
|
|
5655
5655
|
var descriptor = props[i];
|
|
5656
5656
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -5659,8 +5659,8 @@ function _defineProperties$v(target, props) {
|
|
|
5659
5659
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
5660
5660
|
}
|
|
5661
5661
|
}
|
|
5662
|
-
function _create_class$
|
|
5663
|
-
if (protoProps) _defineProperties$
|
|
5662
|
+
function _create_class$u(Constructor, protoProps, staticProps) {
|
|
5663
|
+
if (protoProps) _defineProperties$u(Constructor.prototype, protoProps);
|
|
5664
5664
|
return Constructor;
|
|
5665
5665
|
}
|
|
5666
5666
|
function _iterable_to_array$7(iter) {
|
|
@@ -5727,12 +5727,12 @@ function _unsupported_iterable_to_array$9(o, minLen) {
|
|
|
5727
5727
|
}
|
|
5728
5728
|
/** @internal */ var RequestParameterBuilder = /*#__PURE__*/ function() {
|
|
5729
5729
|
function RequestParameterBuilder(correlationId, performanceClient) {
|
|
5730
|
-
_class_call_check$
|
|
5730
|
+
_class_call_check$x(this, RequestParameterBuilder);
|
|
5731
5731
|
this.parameters = new Map();
|
|
5732
5732
|
this.performanceClient = performanceClient;
|
|
5733
5733
|
this.correlationId = correlationId;
|
|
5734
5734
|
}
|
|
5735
|
-
_create_class$
|
|
5735
|
+
_create_class$u(RequestParameterBuilder, [
|
|
5736
5736
|
{
|
|
5737
5737
|
/**
|
|
5738
5738
|
* add response_type = code
|
|
@@ -6447,12 +6447,12 @@ function _async_to_generator$i(fn) {
|
|
|
6447
6447
|
});
|
|
6448
6448
|
};
|
|
6449
6449
|
}
|
|
6450
|
-
function _class_call_check$
|
|
6450
|
+
function _class_call_check$w(instance, Constructor) {
|
|
6451
6451
|
if (!(instance instanceof Constructor)) {
|
|
6452
6452
|
throw new TypeError("Cannot call a class as a function");
|
|
6453
6453
|
}
|
|
6454
6454
|
}
|
|
6455
|
-
function _defineProperties$
|
|
6455
|
+
function _defineProperties$t(target, props) {
|
|
6456
6456
|
for(var i = 0; i < props.length; i++){
|
|
6457
6457
|
var descriptor = props[i];
|
|
6458
6458
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6461,8 +6461,8 @@ function _defineProperties$u(target, props) {
|
|
|
6461
6461
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6462
6462
|
}
|
|
6463
6463
|
}
|
|
6464
|
-
function _create_class$
|
|
6465
|
-
if (protoProps) _defineProperties$
|
|
6464
|
+
function _create_class$t(Constructor, protoProps, staticProps) {
|
|
6465
|
+
if (protoProps) _defineProperties$t(Constructor.prototype, protoProps);
|
|
6466
6466
|
return Constructor;
|
|
6467
6467
|
}
|
|
6468
6468
|
function _ts_generator$i(thisArg, body) {
|
|
@@ -6565,13 +6565,13 @@ function _ts_generator$i(thisArg, body) {
|
|
|
6565
6565
|
* Licensed under the MIT License.
|
|
6566
6566
|
*/ var RegionDiscovery = /*#__PURE__*/ function() {
|
|
6567
6567
|
function RegionDiscovery(networkInterface, logger, performanceClient, correlationId) {
|
|
6568
|
-
_class_call_check$
|
|
6568
|
+
_class_call_check$w(this, RegionDiscovery);
|
|
6569
6569
|
this.networkInterface = networkInterface;
|
|
6570
6570
|
this.logger = logger;
|
|
6571
6571
|
this.performanceClient = performanceClient;
|
|
6572
6572
|
this.correlationId = correlationId;
|
|
6573
6573
|
}
|
|
6574
|
-
_create_class$
|
|
6574
|
+
_create_class$t(RegionDiscovery, [
|
|
6575
6575
|
{
|
|
6576
6576
|
key: "detectRegion",
|
|
6577
6577
|
value: /**
|
|
@@ -6787,12 +6787,12 @@ function _async_to_generator$h(fn) {
|
|
|
6787
6787
|
});
|
|
6788
6788
|
};
|
|
6789
6789
|
}
|
|
6790
|
-
function _class_call_check$
|
|
6790
|
+
function _class_call_check$v(instance, Constructor) {
|
|
6791
6791
|
if (!(instance instanceof Constructor)) {
|
|
6792
6792
|
throw new TypeError("Cannot call a class as a function");
|
|
6793
6793
|
}
|
|
6794
6794
|
}
|
|
6795
|
-
function _defineProperties$
|
|
6795
|
+
function _defineProperties$s(target, props) {
|
|
6796
6796
|
for(var i = 0; i < props.length; i++){
|
|
6797
6797
|
var descriptor = props[i];
|
|
6798
6798
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -6801,9 +6801,9 @@ function _defineProperties$t(target, props) {
|
|
|
6801
6801
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
6802
6802
|
}
|
|
6803
6803
|
}
|
|
6804
|
-
function _create_class$
|
|
6805
|
-
if (protoProps) _defineProperties$
|
|
6806
|
-
if (staticProps) _defineProperties$
|
|
6804
|
+
function _create_class$s(Constructor, protoProps, staticProps) {
|
|
6805
|
+
if (protoProps) _defineProperties$s(Constructor.prototype, protoProps);
|
|
6806
|
+
if (staticProps) _defineProperties$s(Constructor, staticProps);
|
|
6807
6807
|
return Constructor;
|
|
6808
6808
|
}
|
|
6809
6809
|
function _define_property$e(obj, key, value) {
|
|
@@ -6964,7 +6964,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
6964
6964
|
* @internal
|
|
6965
6965
|
*/ var Authority = /*#__PURE__*/ function() {
|
|
6966
6966
|
function Authority(authority, networkInterface, cacheManager, authorityOptions, logger, correlationId, performanceClient, managedIdentity) {
|
|
6967
|
-
_class_call_check$
|
|
6967
|
+
_class_call_check$v(this, Authority);
|
|
6968
6968
|
this.canonicalAuthority = authority;
|
|
6969
6969
|
this._canonicalAuthority.validateAsUri();
|
|
6970
6970
|
this.networkInterface = networkInterface;
|
|
@@ -6981,7 +6981,7 @@ function _ts_generator$h(thisArg, body) {
|
|
|
6981
6981
|
this.managedIdentity = managedIdentity || false;
|
|
6982
6982
|
this.regionDiscovery = new RegionDiscovery(networkInterface, this.logger, this.performanceClient, this.correlationId);
|
|
6983
6983
|
}
|
|
6984
|
-
_create_class$
|
|
6984
|
+
_create_class$s(Authority, [
|
|
6985
6985
|
{
|
|
6986
6986
|
/**
|
|
6987
6987
|
* Get {@link AuthorityType}
|
|
@@ -8188,7 +8188,7 @@ function _assert_this_initialized$b(self) {
|
|
|
8188
8188
|
}
|
|
8189
8189
|
return self;
|
|
8190
8190
|
}
|
|
8191
|
-
function _class_call_check$
|
|
8191
|
+
function _class_call_check$u(instance, Constructor) {
|
|
8192
8192
|
if (!(instance instanceof Constructor)) {
|
|
8193
8193
|
throw new TypeError("Cannot call a class as a function");
|
|
8194
8194
|
}
|
|
@@ -8262,7 +8262,7 @@ function _create_super$b(Derived) {
|
|
|
8262
8262
|
_inherits$b(ServerError, AuthError);
|
|
8263
8263
|
var _super = _create_super$b(ServerError);
|
|
8264
8264
|
function ServerError(errorCode, errorMessage, subError, errorNo, status) {
|
|
8265
|
-
_class_call_check$
|
|
8265
|
+
_class_call_check$u(this, ServerError);
|
|
8266
8266
|
var _this;
|
|
8267
8267
|
_this = _super.call(this, errorCode, errorMessage, subError);
|
|
8268
8268
|
_this.name = "ServerError";
|
|
@@ -8274,12 +8274,12 @@ function _create_super$b(Derived) {
|
|
|
8274
8274
|
return ServerError;
|
|
8275
8275
|
}(AuthError);
|
|
8276
8276
|
|
|
8277
|
-
function _class_call_check$
|
|
8277
|
+
function _class_call_check$t(instance, Constructor) {
|
|
8278
8278
|
if (!(instance instanceof Constructor)) {
|
|
8279
8279
|
throw new TypeError("Cannot call a class as a function");
|
|
8280
8280
|
}
|
|
8281
8281
|
}
|
|
8282
|
-
function _defineProperties$
|
|
8282
|
+
function _defineProperties$r(target, props) {
|
|
8283
8283
|
for(var i = 0; i < props.length; i++){
|
|
8284
8284
|
var descriptor = props[i];
|
|
8285
8285
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8288,8 +8288,8 @@ function _defineProperties$s(target, props) {
|
|
|
8288
8288
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8289
8289
|
}
|
|
8290
8290
|
}
|
|
8291
|
-
function _create_class$
|
|
8292
|
-
if (staticProps) _defineProperties$
|
|
8291
|
+
function _create_class$r(Constructor, protoProps, staticProps) {
|
|
8292
|
+
if (staticProps) _defineProperties$r(Constructor, staticProps);
|
|
8293
8293
|
return Constructor;
|
|
8294
8294
|
}
|
|
8295
8295
|
/*
|
|
@@ -8297,9 +8297,9 @@ function _create_class$s(Constructor, protoProps, staticProps) {
|
|
|
8297
8297
|
* Licensed under the MIT License.
|
|
8298
8298
|
*/ /** @internal */ var ThrottlingUtils = /*#__PURE__*/ function() {
|
|
8299
8299
|
function ThrottlingUtils() {
|
|
8300
|
-
_class_call_check$
|
|
8300
|
+
_class_call_check$t(this, ThrottlingUtils);
|
|
8301
8301
|
}
|
|
8302
|
-
_create_class$
|
|
8302
|
+
_create_class$r(ThrottlingUtils, null, [
|
|
8303
8303
|
{
|
|
8304
8304
|
key: "generateThrottlingStorageKey",
|
|
8305
8305
|
value: /**
|
|
@@ -8409,7 +8409,7 @@ function _assert_this_initialized$a(self) {
|
|
|
8409
8409
|
}
|
|
8410
8410
|
return self;
|
|
8411
8411
|
}
|
|
8412
|
-
function _class_call_check$
|
|
8412
|
+
function _class_call_check$s(instance, Constructor) {
|
|
8413
8413
|
if (!(instance instanceof Constructor)) {
|
|
8414
8414
|
throw new TypeError("Cannot call a class as a function");
|
|
8415
8415
|
}
|
|
@@ -8483,7 +8483,7 @@ function _create_super$a(Derived) {
|
|
|
8483
8483
|
_inherits$a(NetworkError, AuthError);
|
|
8484
8484
|
var _super = _create_super$a(NetworkError);
|
|
8485
8485
|
function NetworkError(error, httpStatus, responseHeaders) {
|
|
8486
|
-
_class_call_check$
|
|
8486
|
+
_class_call_check$s(this, NetworkError);
|
|
8487
8487
|
var _this;
|
|
8488
8488
|
_this = _super.call(this, error.errorCode, error.errorMessage, error.subError);
|
|
8489
8489
|
Object.setPrototypeOf(_assert_this_initialized$a(_this), NetworkError.prototype);
|
|
@@ -8525,12 +8525,12 @@ function _async_to_generator$f(fn) {
|
|
|
8525
8525
|
});
|
|
8526
8526
|
};
|
|
8527
8527
|
}
|
|
8528
|
-
function _class_call_check$
|
|
8528
|
+
function _class_call_check$r(instance, Constructor) {
|
|
8529
8529
|
if (!(instance instanceof Constructor)) {
|
|
8530
8530
|
throw new TypeError("Cannot call a class as a function");
|
|
8531
8531
|
}
|
|
8532
8532
|
}
|
|
8533
|
-
function _defineProperties$
|
|
8533
|
+
function _defineProperties$q(target, props) {
|
|
8534
8534
|
for(var i = 0; i < props.length; i++){
|
|
8535
8535
|
var descriptor = props[i];
|
|
8536
8536
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -8539,8 +8539,8 @@ function _defineProperties$r(target, props) {
|
|
|
8539
8539
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
8540
8540
|
}
|
|
8541
8541
|
}
|
|
8542
|
-
function _create_class$
|
|
8543
|
-
if (protoProps) _defineProperties$
|
|
8542
|
+
function _create_class$q(Constructor, protoProps, staticProps) {
|
|
8543
|
+
if (protoProps) _defineProperties$q(Constructor.prototype, protoProps);
|
|
8544
8544
|
return Constructor;
|
|
8545
8545
|
}
|
|
8546
8546
|
function _instanceof$d(left, right) {
|
|
@@ -8653,7 +8653,7 @@ function _ts_generator$f(thisArg, body) {
|
|
|
8653
8653
|
* @internal
|
|
8654
8654
|
*/ var BaseClient = /*#__PURE__*/ function() {
|
|
8655
8655
|
function BaseClient(configuration, performanceClient) {
|
|
8656
|
-
_class_call_check$
|
|
8656
|
+
_class_call_check$r(this, BaseClient);
|
|
8657
8657
|
// Set the configuration
|
|
8658
8658
|
this.config = buildClientConfiguration(configuration);
|
|
8659
8659
|
// Initialize the logger
|
|
@@ -8671,7 +8671,7 @@ function _ts_generator$f(thisArg, body) {
|
|
|
8671
8671
|
// set performance telemetry client
|
|
8672
8672
|
this.performanceClient = performanceClient;
|
|
8673
8673
|
}
|
|
8674
|
-
_create_class$
|
|
8674
|
+
_create_class$q(BaseClient, [
|
|
8675
8675
|
{
|
|
8676
8676
|
/**
|
|
8677
8677
|
* Creates default headers for requests to token endpoint
|
|
@@ -8880,7 +8880,7 @@ function _assert_this_initialized$9(self) {
|
|
|
8880
8880
|
}
|
|
8881
8881
|
return self;
|
|
8882
8882
|
}
|
|
8883
|
-
function _class_call_check$
|
|
8883
|
+
function _class_call_check$q(instance, Constructor) {
|
|
8884
8884
|
if (!(instance instanceof Constructor)) {
|
|
8885
8885
|
throw new TypeError("Cannot call a class as a function");
|
|
8886
8886
|
}
|
|
@@ -8999,7 +8999,7 @@ var InteractionRequiredAuthErrorMessages = (_obj$2 = {}, _define_property$d(_obj
|
|
|
8999
8999
|
_inherits$9(InteractionRequiredAuthError, AuthError);
|
|
9000
9000
|
var _super = _create_super$9(InteractionRequiredAuthError);
|
|
9001
9001
|
function InteractionRequiredAuthError(errorCode, errorMessage, subError, timestamp, traceId, correlationId, claims, errorNo) {
|
|
9002
|
-
_class_call_check$
|
|
9002
|
+
_class_call_check$q(this, InteractionRequiredAuthError);
|
|
9003
9003
|
var _this;
|
|
9004
9004
|
_this = _super.call(this, errorCode, errorMessage, subError);
|
|
9005
9005
|
Object.setPrototypeOf(_assert_this_initialized$9(_this), InteractionRequiredAuthError.prototype);
|
|
@@ -9032,12 +9032,12 @@ var InteractionRequiredAuthErrorMessages = (_obj$2 = {}, _define_property$d(_obj
|
|
|
9032
9032
|
return new InteractionRequiredAuthError(errorCode, InteractionRequiredAuthErrorMessages[errorCode]);
|
|
9033
9033
|
}
|
|
9034
9034
|
|
|
9035
|
-
function _class_call_check$
|
|
9035
|
+
function _class_call_check$p(instance, Constructor) {
|
|
9036
9036
|
if (!(instance instanceof Constructor)) {
|
|
9037
9037
|
throw new TypeError("Cannot call a class as a function");
|
|
9038
9038
|
}
|
|
9039
9039
|
}
|
|
9040
|
-
function _defineProperties$
|
|
9040
|
+
function _defineProperties$p(target, props) {
|
|
9041
9041
|
for(var i = 0; i < props.length; i++){
|
|
9042
9042
|
var descriptor = props[i];
|
|
9043
9043
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9046,8 +9046,8 @@ function _defineProperties$q(target, props) {
|
|
|
9046
9046
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9047
9047
|
}
|
|
9048
9048
|
}
|
|
9049
|
-
function _create_class$
|
|
9050
|
-
if (staticProps) _defineProperties$
|
|
9049
|
+
function _create_class$p(Constructor, protoProps, staticProps) {
|
|
9050
|
+
if (staticProps) _defineProperties$p(Constructor, staticProps);
|
|
9051
9051
|
return Constructor;
|
|
9052
9052
|
}
|
|
9053
9053
|
/*
|
|
@@ -9057,9 +9057,9 @@ function _create_class$q(Constructor, protoProps, staticProps) {
|
|
|
9057
9057
|
* Class which provides helpers for OAuth 2.0 protocol specific values
|
|
9058
9058
|
*/ var ProtocolUtils = /*#__PURE__*/ function() {
|
|
9059
9059
|
function ProtocolUtils() {
|
|
9060
|
-
_class_call_check$
|
|
9060
|
+
_class_call_check$p(this, ProtocolUtils);
|
|
9061
9061
|
}
|
|
9062
|
-
_create_class$
|
|
9062
|
+
_create_class$p(ProtocolUtils, null, [
|
|
9063
9063
|
{
|
|
9064
9064
|
key: "setRequestState",
|
|
9065
9065
|
value: /**
|
|
@@ -9154,12 +9154,12 @@ function _async_to_generator$e(fn) {
|
|
|
9154
9154
|
});
|
|
9155
9155
|
};
|
|
9156
9156
|
}
|
|
9157
|
-
function _class_call_check$
|
|
9157
|
+
function _class_call_check$o(instance, Constructor) {
|
|
9158
9158
|
if (!(instance instanceof Constructor)) {
|
|
9159
9159
|
throw new TypeError("Cannot call a class as a function");
|
|
9160
9160
|
}
|
|
9161
9161
|
}
|
|
9162
|
-
function _defineProperties$
|
|
9162
|
+
function _defineProperties$o(target, props) {
|
|
9163
9163
|
for(var i = 0; i < props.length; i++){
|
|
9164
9164
|
var descriptor = props[i];
|
|
9165
9165
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9168,8 +9168,8 @@ function _defineProperties$p(target, props) {
|
|
|
9168
9168
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9169
9169
|
}
|
|
9170
9170
|
}
|
|
9171
|
-
function _create_class$
|
|
9172
|
-
if (protoProps) _defineProperties$
|
|
9171
|
+
function _create_class$o(Constructor, protoProps, staticProps) {
|
|
9172
|
+
if (protoProps) _defineProperties$o(Constructor.prototype, protoProps);
|
|
9173
9173
|
return Constructor;
|
|
9174
9174
|
}
|
|
9175
9175
|
function _define_property$c(obj, key, value) {
|
|
@@ -9302,11 +9302,11 @@ function _ts_generator$e(thisArg, body) {
|
|
|
9302
9302
|
SW: "sw"};
|
|
9303
9303
|
/** @internal */ var PopTokenGenerator = /*#__PURE__*/ function() {
|
|
9304
9304
|
function PopTokenGenerator(cryptoUtils, performanceClient) {
|
|
9305
|
-
_class_call_check$
|
|
9305
|
+
_class_call_check$o(this, PopTokenGenerator);
|
|
9306
9306
|
this.cryptoUtils = cryptoUtils;
|
|
9307
9307
|
this.performanceClient = performanceClient;
|
|
9308
9308
|
}
|
|
9309
|
-
_create_class$
|
|
9309
|
+
_create_class$o(PopTokenGenerator, [
|
|
9310
9310
|
{
|
|
9311
9311
|
key: "generateCnf",
|
|
9312
9312
|
value: /**
|
|
@@ -9434,12 +9434,12 @@ function _ts_generator$e(thisArg, body) {
|
|
|
9434
9434
|
return PopTokenGenerator;
|
|
9435
9435
|
}();
|
|
9436
9436
|
|
|
9437
|
-
function _class_call_check$
|
|
9437
|
+
function _class_call_check$n(instance, Constructor) {
|
|
9438
9438
|
if (!(instance instanceof Constructor)) {
|
|
9439
9439
|
throw new TypeError("Cannot call a class as a function");
|
|
9440
9440
|
}
|
|
9441
9441
|
}
|
|
9442
|
-
function _defineProperties$
|
|
9442
|
+
function _defineProperties$n(target, props) {
|
|
9443
9443
|
for(var i = 0; i < props.length; i++){
|
|
9444
9444
|
var descriptor = props[i];
|
|
9445
9445
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9448,8 +9448,8 @@ function _defineProperties$o(target, props) {
|
|
|
9448
9448
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9449
9449
|
}
|
|
9450
9450
|
}
|
|
9451
|
-
function _create_class$
|
|
9452
|
-
if (protoProps) _defineProperties$
|
|
9451
|
+
function _create_class$n(Constructor, protoProps, staticProps) {
|
|
9452
|
+
if (protoProps) _defineProperties$n(Constructor.prototype, protoProps);
|
|
9453
9453
|
return Constructor;
|
|
9454
9454
|
}
|
|
9455
9455
|
/*
|
|
@@ -9460,11 +9460,11 @@ function _create_class$o(Constructor, protoProps, staticProps) {
|
|
|
9460
9460
|
* decisions to read from and write to the persistent cache
|
|
9461
9461
|
*/ var TokenCacheContext = /*#__PURE__*/ function() {
|
|
9462
9462
|
function TokenCacheContext(tokenCache, hasChanged) {
|
|
9463
|
-
_class_call_check$
|
|
9463
|
+
_class_call_check$n(this, TokenCacheContext);
|
|
9464
9464
|
this.cache = tokenCache;
|
|
9465
9465
|
this.hasChanged = hasChanged;
|
|
9466
9466
|
}
|
|
9467
|
-
_create_class$
|
|
9467
|
+
_create_class$n(TokenCacheContext, [
|
|
9468
9468
|
{
|
|
9469
9469
|
key: "cacheHasChanged",
|
|
9470
9470
|
get: /**
|
|
@@ -9514,12 +9514,12 @@ function _async_to_generator$d(fn) {
|
|
|
9514
9514
|
});
|
|
9515
9515
|
};
|
|
9516
9516
|
}
|
|
9517
|
-
function _class_call_check$
|
|
9517
|
+
function _class_call_check$m(instance, Constructor) {
|
|
9518
9518
|
if (!(instance instanceof Constructor)) {
|
|
9519
9519
|
throw new TypeError("Cannot call a class as a function");
|
|
9520
9520
|
}
|
|
9521
9521
|
}
|
|
9522
|
-
function _defineProperties$
|
|
9522
|
+
function _defineProperties$m(target, props) {
|
|
9523
9523
|
for(var i = 0; i < props.length; i++){
|
|
9524
9524
|
var descriptor = props[i];
|
|
9525
9525
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -9528,9 +9528,9 @@ function _defineProperties$n(target, props) {
|
|
|
9528
9528
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
9529
9529
|
}
|
|
9530
9530
|
}
|
|
9531
|
-
function _create_class$
|
|
9532
|
-
if (protoProps) _defineProperties$
|
|
9533
|
-
if (staticProps) _defineProperties$
|
|
9531
|
+
function _create_class$m(Constructor, protoProps, staticProps) {
|
|
9532
|
+
if (protoProps) _defineProperties$m(Constructor.prototype, protoProps);
|
|
9533
|
+
if (staticProps) _defineProperties$m(Constructor, staticProps);
|
|
9534
9534
|
return Constructor;
|
|
9535
9535
|
}
|
|
9536
9536
|
function _ts_generator$d(thisArg, body) {
|
|
@@ -9642,7 +9642,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9642
9642
|
* @internal
|
|
9643
9643
|
*/ var ResponseHandler = /*#__PURE__*/ function() {
|
|
9644
9644
|
function ResponseHandler(clientId, cacheStorage, cryptoObj, logger, serializableCache, persistencePlugin, performanceClient) {
|
|
9645
|
-
_class_call_check$
|
|
9645
|
+
_class_call_check$m(this, ResponseHandler);
|
|
9646
9646
|
this.clientId = clientId;
|
|
9647
9647
|
this.cacheStorage = cacheStorage;
|
|
9648
9648
|
this.cryptoObj = cryptoObj;
|
|
@@ -9651,7 +9651,7 @@ function _ts_generator$d(thisArg, body) {
|
|
|
9651
9651
|
this.persistencePlugin = persistencePlugin;
|
|
9652
9652
|
this.performanceClient = performanceClient;
|
|
9653
9653
|
}
|
|
9654
|
-
_create_class$
|
|
9654
|
+
_create_class$m(ResponseHandler, [
|
|
9655
9655
|
{
|
|
9656
9656
|
/**
|
|
9657
9657
|
* Function which validates server authorization code response.
|
|
@@ -10233,12 +10233,12 @@ function _async_to_generator$b(fn) {
|
|
|
10233
10233
|
});
|
|
10234
10234
|
};
|
|
10235
10235
|
}
|
|
10236
|
-
function _class_call_check$
|
|
10236
|
+
function _class_call_check$l(instance, Constructor) {
|
|
10237
10237
|
if (!(instance instanceof Constructor)) {
|
|
10238
10238
|
throw new TypeError("Cannot call a class as a function");
|
|
10239
10239
|
}
|
|
10240
10240
|
}
|
|
10241
|
-
function _defineProperties$
|
|
10241
|
+
function _defineProperties$l(target, props) {
|
|
10242
10242
|
for(var i = 0; i < props.length; i++){
|
|
10243
10243
|
var descriptor = props[i];
|
|
10244
10244
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -10247,8 +10247,8 @@ function _defineProperties$m(target, props) {
|
|
|
10247
10247
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
10248
10248
|
}
|
|
10249
10249
|
}
|
|
10250
|
-
function _create_class$
|
|
10251
|
-
if (protoProps) _defineProperties$
|
|
10250
|
+
function _create_class$l(Constructor, protoProps, staticProps) {
|
|
10251
|
+
if (protoProps) _defineProperties$l(Constructor.prototype, protoProps);
|
|
10252
10252
|
return Constructor;
|
|
10253
10253
|
}
|
|
10254
10254
|
function _define_property$b(obj, key, value) {
|
|
@@ -10446,7 +10446,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
10446
10446
|
_inherits$8(AuthorizationCodeClient, BaseClient);
|
|
10447
10447
|
var _super = _create_super$8(AuthorizationCodeClient);
|
|
10448
10448
|
function AuthorizationCodeClient(configuration, performanceClient) {
|
|
10449
|
-
_class_call_check$
|
|
10449
|
+
_class_call_check$l(this, AuthorizationCodeClient);
|
|
10450
10450
|
var _this;
|
|
10451
10451
|
var _this_config_authOptions_authority_options_OIDCOptions;
|
|
10452
10452
|
_this = _super.call(this, configuration, performanceClient);
|
|
@@ -10455,7 +10455,7 @@ function _ts_generator$b(thisArg, body) {
|
|
|
10455
10455
|
_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;
|
|
10456
10456
|
return _this;
|
|
10457
10457
|
}
|
|
10458
|
-
_create_class$
|
|
10458
|
+
_create_class$l(AuthorizationCodeClient, [
|
|
10459
10459
|
{
|
|
10460
10460
|
key: "getAuthCodeUrl",
|
|
10461
10461
|
value: /**
|
|
@@ -11029,12 +11029,12 @@ function _async_to_generator$a(fn) {
|
|
|
11029
11029
|
});
|
|
11030
11030
|
};
|
|
11031
11031
|
}
|
|
11032
|
-
function _class_call_check$
|
|
11032
|
+
function _class_call_check$k(instance, Constructor) {
|
|
11033
11033
|
if (!(instance instanceof Constructor)) {
|
|
11034
11034
|
throw new TypeError("Cannot call a class as a function");
|
|
11035
11035
|
}
|
|
11036
11036
|
}
|
|
11037
|
-
function _defineProperties$
|
|
11037
|
+
function _defineProperties$k(target, props) {
|
|
11038
11038
|
for(var i = 0; i < props.length; i++){
|
|
11039
11039
|
var descriptor = props[i];
|
|
11040
11040
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11043,8 +11043,8 @@ function _defineProperties$l(target, props) {
|
|
|
11043
11043
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11044
11044
|
}
|
|
11045
11045
|
}
|
|
11046
|
-
function _create_class$
|
|
11047
|
-
if (protoProps) _defineProperties$
|
|
11046
|
+
function _create_class$k(Constructor, protoProps, staticProps) {
|
|
11047
|
+
if (protoProps) _defineProperties$k(Constructor.prototype, protoProps);
|
|
11048
11048
|
return Constructor;
|
|
11049
11049
|
}
|
|
11050
11050
|
function _define_property$a(obj, key, value) {
|
|
@@ -11267,10 +11267,10 @@ function _ts_generator$a(thisArg, body) {
|
|
|
11267
11267
|
_inherits$7(RefreshTokenClient, BaseClient);
|
|
11268
11268
|
var _super = _create_super$7(RefreshTokenClient);
|
|
11269
11269
|
function RefreshTokenClient(configuration, performanceClient) {
|
|
11270
|
-
_class_call_check$
|
|
11270
|
+
_class_call_check$k(this, RefreshTokenClient);
|
|
11271
11271
|
return _super.call(this, configuration, performanceClient);
|
|
11272
11272
|
}
|
|
11273
|
-
_create_class$
|
|
11273
|
+
_create_class$k(RefreshTokenClient, [
|
|
11274
11274
|
{
|
|
11275
11275
|
key: "acquireToken",
|
|
11276
11276
|
value: function acquireToken(request) {
|
|
@@ -11653,12 +11653,12 @@ function _async_to_generator$9(fn) {
|
|
|
11653
11653
|
});
|
|
11654
11654
|
};
|
|
11655
11655
|
}
|
|
11656
|
-
function _class_call_check$
|
|
11656
|
+
function _class_call_check$j(instance, Constructor) {
|
|
11657
11657
|
if (!(instance instanceof Constructor)) {
|
|
11658
11658
|
throw new TypeError("Cannot call a class as a function");
|
|
11659
11659
|
}
|
|
11660
11660
|
}
|
|
11661
|
-
function _defineProperties$
|
|
11661
|
+
function _defineProperties$j(target, props) {
|
|
11662
11662
|
for(var i = 0; i < props.length; i++){
|
|
11663
11663
|
var descriptor = props[i];
|
|
11664
11664
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -11667,8 +11667,8 @@ function _defineProperties$k(target, props) {
|
|
|
11667
11667
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
11668
11668
|
}
|
|
11669
11669
|
}
|
|
11670
|
-
function _create_class$
|
|
11671
|
-
if (protoProps) _defineProperties$
|
|
11670
|
+
function _create_class$j(Constructor, protoProps, staticProps) {
|
|
11671
|
+
if (protoProps) _defineProperties$j(Constructor.prototype, protoProps);
|
|
11672
11672
|
return Constructor;
|
|
11673
11673
|
}
|
|
11674
11674
|
function _define_property$9(obj, key, value) {
|
|
@@ -11934,10 +11934,10 @@ function _ts_generator$9(thisArg, body) {
|
|
|
11934
11934
|
_inherits$6(SilentFlowClient, BaseClient);
|
|
11935
11935
|
var _super = _create_super$6(SilentFlowClient);
|
|
11936
11936
|
function SilentFlowClient(configuration, performanceClient) {
|
|
11937
|
-
_class_call_check$
|
|
11937
|
+
_class_call_check$j(this, SilentFlowClient);
|
|
11938
11938
|
return _super.call(this, configuration, performanceClient);
|
|
11939
11939
|
}
|
|
11940
|
-
_create_class$
|
|
11940
|
+
_create_class$j(SilentFlowClient, [
|
|
11941
11941
|
{
|
|
11942
11942
|
key: "acquireToken",
|
|
11943
11943
|
value: /**
|
|
@@ -12117,12 +12117,12 @@ function _ts_generator$9(thisArg, body) {
|
|
|
12117
12117
|
return SilentFlowClient;
|
|
12118
12118
|
}(BaseClient);
|
|
12119
12119
|
|
|
12120
|
-
function _class_call_check$
|
|
12120
|
+
function _class_call_check$i(instance, Constructor) {
|
|
12121
12121
|
if (!(instance instanceof Constructor)) {
|
|
12122
12122
|
throw new TypeError("Cannot call a class as a function");
|
|
12123
12123
|
}
|
|
12124
12124
|
}
|
|
12125
|
-
function _defineProperties$
|
|
12125
|
+
function _defineProperties$i(target, props) {
|
|
12126
12126
|
for(var i = 0; i < props.length; i++){
|
|
12127
12127
|
var descriptor = props[i];
|
|
12128
12128
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12131,9 +12131,9 @@ function _defineProperties$j(target, props) {
|
|
|
12131
12131
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12132
12132
|
}
|
|
12133
12133
|
}
|
|
12134
|
-
function _create_class$
|
|
12135
|
-
if (protoProps) _defineProperties$
|
|
12136
|
-
if (staticProps) _defineProperties$
|
|
12134
|
+
function _create_class$i(Constructor, protoProps, staticProps) {
|
|
12135
|
+
if (protoProps) _defineProperties$i(Constructor.prototype, protoProps);
|
|
12136
|
+
if (staticProps) _defineProperties$i(Constructor, staticProps);
|
|
12137
12137
|
return Constructor;
|
|
12138
12138
|
}
|
|
12139
12139
|
function _instanceof$a(left, right) {
|
|
@@ -12205,7 +12205,7 @@ function setSku(params) {
|
|
|
12205
12205
|
}
|
|
12206
12206
|
/** @internal */ var ServerTelemetryManager = /*#__PURE__*/ function() {
|
|
12207
12207
|
function ServerTelemetryManager(telemetryRequest, cacheManager) {
|
|
12208
|
-
_class_call_check$
|
|
12208
|
+
_class_call_check$i(this, ServerTelemetryManager);
|
|
12209
12209
|
this.cacheOutcome = CacheOutcome.NOT_APPLICABLE;
|
|
12210
12210
|
this.cacheManager = cacheManager;
|
|
12211
12211
|
this.apiId = telemetryRequest.apiId;
|
|
@@ -12214,7 +12214,7 @@ function setSku(params) {
|
|
|
12214
12214
|
this.wrapperVer = telemetryRequest.wrapperVer || Constants$1.EMPTY_STRING;
|
|
12215
12215
|
this.telemetryCacheKey = SERVER_TELEM_CONSTANTS.CACHE_KEY + Separators.CACHE_KEY_SEPARATOR + telemetryRequest.clientId;
|
|
12216
12216
|
}
|
|
12217
|
-
_create_class$
|
|
12217
|
+
_create_class$i(ServerTelemetryManager, [
|
|
12218
12218
|
{
|
|
12219
12219
|
/**
|
|
12220
12220
|
* API to add MSER Telemetry to request
|
|
@@ -12442,12 +12442,12 @@ function setSku(params) {
|
|
|
12442
12442
|
return ServerTelemetryManager;
|
|
12443
12443
|
}();
|
|
12444
12444
|
|
|
12445
|
-
function _class_call_check$
|
|
12445
|
+
function _class_call_check$h(instance, Constructor) {
|
|
12446
12446
|
if (!(instance instanceof Constructor)) {
|
|
12447
12447
|
throw new TypeError("Cannot call a class as a function");
|
|
12448
12448
|
}
|
|
12449
12449
|
}
|
|
12450
|
-
function _defineProperties$
|
|
12450
|
+
function _defineProperties$h(target, props) {
|
|
12451
12451
|
for(var i = 0; i < props.length; i++){
|
|
12452
12452
|
var descriptor = props[i];
|
|
12453
12453
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12456,8 +12456,8 @@ function _defineProperties$i(target, props) {
|
|
|
12456
12456
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12457
12457
|
}
|
|
12458
12458
|
}
|
|
12459
|
-
function _create_class$
|
|
12460
|
-
if (staticProps) _defineProperties$
|
|
12459
|
+
function _create_class$h(Constructor, protoProps, staticProps) {
|
|
12460
|
+
if (staticProps) _defineProperties$h(Constructor, staticProps);
|
|
12461
12461
|
return Constructor;
|
|
12462
12462
|
}
|
|
12463
12463
|
/*
|
|
@@ -12468,9 +12468,9 @@ function _create_class$i(Constructor, protoProps, staticProps) {
|
|
|
12468
12468
|
* @internal
|
|
12469
12469
|
*/ var Deserializer = /*#__PURE__*/ function() {
|
|
12470
12470
|
function Deserializer() {
|
|
12471
|
-
_class_call_check$
|
|
12471
|
+
_class_call_check$h(this, Deserializer);
|
|
12472
12472
|
}
|
|
12473
|
-
_create_class$
|
|
12473
|
+
_create_class$h(Deserializer, null, [
|
|
12474
12474
|
{
|
|
12475
12475
|
key: "deserializeJSONBlob",
|
|
12476
12476
|
value: /**
|
|
@@ -12709,12 +12709,12 @@ var MSAL_FORCE_REGION = "MSAL_FORCE_REGION";
|
|
|
12709
12709
|
JWT_ID: "jti"
|
|
12710
12710
|
};
|
|
12711
12711
|
|
|
12712
|
-
function _class_call_check$
|
|
12712
|
+
function _class_call_check$g(instance, Constructor) {
|
|
12713
12713
|
if (!(instance instanceof Constructor)) {
|
|
12714
12714
|
throw new TypeError("Cannot call a class as a function");
|
|
12715
12715
|
}
|
|
12716
12716
|
}
|
|
12717
|
-
function _defineProperties$
|
|
12717
|
+
function _defineProperties$g(target, props) {
|
|
12718
12718
|
for(var i = 0; i < props.length; i++){
|
|
12719
12719
|
var descriptor = props[i];
|
|
12720
12720
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12723,8 +12723,8 @@ function _defineProperties$h(target, props) {
|
|
|
12723
12723
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12724
12724
|
}
|
|
12725
12725
|
}
|
|
12726
|
-
function _create_class$
|
|
12727
|
-
if (staticProps) _defineProperties$
|
|
12726
|
+
function _create_class$g(Constructor, protoProps, staticProps) {
|
|
12727
|
+
if (staticProps) _defineProperties$g(Constructor, staticProps);
|
|
12728
12728
|
return Constructor;
|
|
12729
12729
|
}
|
|
12730
12730
|
/*
|
|
@@ -12732,9 +12732,9 @@ function _create_class$h(Constructor, protoProps, staticProps) {
|
|
|
12732
12732
|
* Licensed under the MIT License.
|
|
12733
12733
|
*/ var NetworkUtils = /*#__PURE__*/ function() {
|
|
12734
12734
|
function NetworkUtils() {
|
|
12735
|
-
_class_call_check$
|
|
12735
|
+
_class_call_check$g(this, NetworkUtils);
|
|
12736
12736
|
}
|
|
12737
|
-
_create_class$
|
|
12737
|
+
_create_class$g(NetworkUtils, null, [
|
|
12738
12738
|
{
|
|
12739
12739
|
key: "getNetworkResponse",
|
|
12740
12740
|
value: function getNetworkResponse(headers, body, statusCode) {
|
|
@@ -12811,12 +12811,12 @@ function _async_to_generator$8(fn) {
|
|
|
12811
12811
|
});
|
|
12812
12812
|
};
|
|
12813
12813
|
}
|
|
12814
|
-
function _class_call_check$
|
|
12814
|
+
function _class_call_check$f(instance, Constructor) {
|
|
12815
12815
|
if (!(instance instanceof Constructor)) {
|
|
12816
12816
|
throw new TypeError("Cannot call a class as a function");
|
|
12817
12817
|
}
|
|
12818
12818
|
}
|
|
12819
|
-
function _defineProperties$
|
|
12819
|
+
function _defineProperties$f(target, props) {
|
|
12820
12820
|
for(var i = 0; i < props.length; i++){
|
|
12821
12821
|
var descriptor = props[i];
|
|
12822
12822
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -12825,8 +12825,8 @@ function _defineProperties$g(target, props) {
|
|
|
12825
12825
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
12826
12826
|
}
|
|
12827
12827
|
}
|
|
12828
|
-
function _create_class$
|
|
12829
|
-
if (protoProps) _defineProperties$
|
|
12828
|
+
function _create_class$f(Constructor, protoProps, staticProps) {
|
|
12829
|
+
if (protoProps) _defineProperties$f(Constructor.prototype, protoProps);
|
|
12830
12830
|
return Constructor;
|
|
12831
12831
|
}
|
|
12832
12832
|
function _define_property$8(obj, key, value) {
|
|
@@ -12999,11 +12999,11 @@ function _ts_generator$8(thisArg, body) {
|
|
|
12999
12999
|
* This class implements the API for network requests.
|
|
13000
13000
|
*/ var HttpClient = /*#__PURE__*/ function() {
|
|
13001
13001
|
function HttpClient(proxyUrl, customAgentOptions) {
|
|
13002
|
-
_class_call_check$
|
|
13002
|
+
_class_call_check$f(this, HttpClient);
|
|
13003
13003
|
this.proxyUrl = proxyUrl || "";
|
|
13004
13004
|
this.customAgentOptions = customAgentOptions || {};
|
|
13005
13005
|
}
|
|
13006
|
-
_create_class$
|
|
13006
|
+
_create_class$f(HttpClient, [
|
|
13007
13007
|
{
|
|
13008
13008
|
key: "sendGetRequestAsync",
|
|
13009
13009
|
value: /**
|
|
@@ -13329,12 +13329,12 @@ function _assert_this_initialized$5(self) {
|
|
|
13329
13329
|
}
|
|
13330
13330
|
return self;
|
|
13331
13331
|
}
|
|
13332
|
-
function _class_call_check$
|
|
13332
|
+
function _class_call_check$e(instance, Constructor) {
|
|
13333
13333
|
if (!(instance instanceof Constructor)) {
|
|
13334
13334
|
throw new TypeError("Cannot call a class as a function");
|
|
13335
13335
|
}
|
|
13336
13336
|
}
|
|
13337
|
-
function _defineProperties$
|
|
13337
|
+
function _defineProperties$e(target, props) {
|
|
13338
13338
|
for(var i = 0; i < props.length; i++){
|
|
13339
13339
|
var descriptor = props[i];
|
|
13340
13340
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13343,8 +13343,8 @@ function _defineProperties$f(target, props) {
|
|
|
13343
13343
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13344
13344
|
}
|
|
13345
13345
|
}
|
|
13346
|
-
function _create_class$
|
|
13347
|
-
if (staticProps) _defineProperties$
|
|
13346
|
+
function _create_class$e(Constructor, protoProps, staticProps) {
|
|
13347
|
+
if (staticProps) _defineProperties$e(Constructor, staticProps);
|
|
13348
13348
|
return Constructor;
|
|
13349
13349
|
}
|
|
13350
13350
|
function _get_prototype_of$5(o) {
|
|
@@ -13450,13 +13450,13 @@ var NodeAuthError = /*#__PURE__*/ function(AuthError) {
|
|
|
13450
13450
|
_inherits$5(NodeAuthError, AuthError);
|
|
13451
13451
|
var _super = _create_super$5(NodeAuthError);
|
|
13452
13452
|
function NodeAuthError(errorCode, errorMessage) {
|
|
13453
|
-
_class_call_check$
|
|
13453
|
+
_class_call_check$e(this, NodeAuthError);
|
|
13454
13454
|
var _this;
|
|
13455
13455
|
_this = _super.call(this, errorCode, errorMessage);
|
|
13456
13456
|
_this.name = "NodeAuthError";
|
|
13457
13457
|
return _this;
|
|
13458
13458
|
}
|
|
13459
|
-
_create_class$
|
|
13459
|
+
_create_class$e(NodeAuthError, null, [
|
|
13460
13460
|
{
|
|
13461
13461
|
key: "createInvalidLoopbackAddressTypeError",
|
|
13462
13462
|
value: /**
|
|
@@ -13704,12 +13704,12 @@ function v4(options, buf, offset) {
|
|
|
13704
13704
|
return stringify(rnds);
|
|
13705
13705
|
}
|
|
13706
13706
|
|
|
13707
|
-
function _class_call_check$
|
|
13707
|
+
function _class_call_check$d(instance, Constructor) {
|
|
13708
13708
|
if (!(instance instanceof Constructor)) {
|
|
13709
13709
|
throw new TypeError("Cannot call a class as a function");
|
|
13710
13710
|
}
|
|
13711
13711
|
}
|
|
13712
|
-
function _defineProperties$
|
|
13712
|
+
function _defineProperties$d(target, props) {
|
|
13713
13713
|
for(var i = 0; i < props.length; i++){
|
|
13714
13714
|
var descriptor = props[i];
|
|
13715
13715
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13718,8 +13718,8 @@ function _defineProperties$e(target, props) {
|
|
|
13718
13718
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13719
13719
|
}
|
|
13720
13720
|
}
|
|
13721
|
-
function _create_class$
|
|
13722
|
-
if (protoProps) _defineProperties$
|
|
13721
|
+
function _create_class$d(Constructor, protoProps, staticProps) {
|
|
13722
|
+
if (protoProps) _defineProperties$d(Constructor.prototype, protoProps);
|
|
13723
13723
|
return Constructor;
|
|
13724
13724
|
}
|
|
13725
13725
|
/*
|
|
@@ -13727,9 +13727,9 @@ function _create_class$e(Constructor, protoProps, staticProps) {
|
|
|
13727
13727
|
* Licensed under the MIT License.
|
|
13728
13728
|
*/ var GuidGenerator = /*#__PURE__*/ function() {
|
|
13729
13729
|
function GuidGenerator() {
|
|
13730
|
-
_class_call_check$
|
|
13730
|
+
_class_call_check$d(this, GuidGenerator);
|
|
13731
13731
|
}
|
|
13732
|
-
_create_class$
|
|
13732
|
+
_create_class$d(GuidGenerator, [
|
|
13733
13733
|
{
|
|
13734
13734
|
/**
|
|
13735
13735
|
*
|
|
@@ -13754,12 +13754,12 @@ function _create_class$e(Constructor, protoProps, staticProps) {
|
|
|
13754
13754
|
return GuidGenerator;
|
|
13755
13755
|
}();
|
|
13756
13756
|
|
|
13757
|
-
function _class_call_check$
|
|
13757
|
+
function _class_call_check$c(instance, Constructor) {
|
|
13758
13758
|
if (!(instance instanceof Constructor)) {
|
|
13759
13759
|
throw new TypeError("Cannot call a class as a function");
|
|
13760
13760
|
}
|
|
13761
13761
|
}
|
|
13762
|
-
function _defineProperties$
|
|
13762
|
+
function _defineProperties$c(target, props) {
|
|
13763
13763
|
for(var i = 0; i < props.length; i++){
|
|
13764
13764
|
var descriptor = props[i];
|
|
13765
13765
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13768,8 +13768,8 @@ function _defineProperties$d(target, props) {
|
|
|
13768
13768
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13769
13769
|
}
|
|
13770
13770
|
}
|
|
13771
|
-
function _create_class$
|
|
13772
|
-
if (staticProps) _defineProperties$
|
|
13771
|
+
function _create_class$c(Constructor, protoProps, staticProps) {
|
|
13772
|
+
if (staticProps) _defineProperties$c(Constructor, staticProps);
|
|
13773
13773
|
return Constructor;
|
|
13774
13774
|
}
|
|
13775
13775
|
/*
|
|
@@ -13777,9 +13777,9 @@ function _create_class$d(Constructor, protoProps, staticProps) {
|
|
|
13777
13777
|
* Licensed under the MIT License.
|
|
13778
13778
|
*/ var EncodingUtils = /*#__PURE__*/ function() {
|
|
13779
13779
|
function EncodingUtils() {
|
|
13780
|
-
_class_call_check$
|
|
13780
|
+
_class_call_check$c(this, EncodingUtils);
|
|
13781
13781
|
}
|
|
13782
|
-
_create_class$
|
|
13782
|
+
_create_class$c(EncodingUtils, null, [
|
|
13783
13783
|
{
|
|
13784
13784
|
key: "base64Encode",
|
|
13785
13785
|
value: /**
|
|
@@ -13827,12 +13827,12 @@ function _create_class$d(Constructor, protoProps, staticProps) {
|
|
|
13827
13827
|
return EncodingUtils;
|
|
13828
13828
|
}();
|
|
13829
13829
|
|
|
13830
|
-
function _class_call_check$
|
|
13830
|
+
function _class_call_check$b(instance, Constructor) {
|
|
13831
13831
|
if (!(instance instanceof Constructor)) {
|
|
13832
13832
|
throw new TypeError("Cannot call a class as a function");
|
|
13833
13833
|
}
|
|
13834
13834
|
}
|
|
13835
|
-
function _defineProperties$
|
|
13835
|
+
function _defineProperties$b(target, props) {
|
|
13836
13836
|
for(var i = 0; i < props.length; i++){
|
|
13837
13837
|
var descriptor = props[i];
|
|
13838
13838
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13841,8 +13841,8 @@ function _defineProperties$c(target, props) {
|
|
|
13841
13841
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13842
13842
|
}
|
|
13843
13843
|
}
|
|
13844
|
-
function _create_class$
|
|
13845
|
-
if (protoProps) _defineProperties$
|
|
13844
|
+
function _create_class$b(Constructor, protoProps, staticProps) {
|
|
13845
|
+
if (protoProps) _defineProperties$b(Constructor.prototype, protoProps);
|
|
13846
13846
|
return Constructor;
|
|
13847
13847
|
}
|
|
13848
13848
|
/*
|
|
@@ -13850,9 +13850,9 @@ function _create_class$c(Constructor, protoProps, staticProps) {
|
|
|
13850
13850
|
* Licensed under the MIT License.
|
|
13851
13851
|
*/ var HashUtils = /*#__PURE__*/ function() {
|
|
13852
13852
|
function HashUtils() {
|
|
13853
|
-
_class_call_check$
|
|
13853
|
+
_class_call_check$b(this, HashUtils);
|
|
13854
13854
|
}
|
|
13855
|
-
_create_class$
|
|
13855
|
+
_create_class$b(HashUtils, [
|
|
13856
13856
|
{
|
|
13857
13857
|
/**
|
|
13858
13858
|
* generate 'SHA256' hash
|
|
@@ -13895,12 +13895,12 @@ function _async_to_generator$7(fn) {
|
|
|
13895
13895
|
});
|
|
13896
13896
|
};
|
|
13897
13897
|
}
|
|
13898
|
-
function _class_call_check$
|
|
13898
|
+
function _class_call_check$a(instance, Constructor) {
|
|
13899
13899
|
if (!(instance instanceof Constructor)) {
|
|
13900
13900
|
throw new TypeError("Cannot call a class as a function");
|
|
13901
13901
|
}
|
|
13902
13902
|
}
|
|
13903
|
-
function _defineProperties$
|
|
13903
|
+
function _defineProperties$a(target, props) {
|
|
13904
13904
|
for(var i = 0; i < props.length; i++){
|
|
13905
13905
|
var descriptor = props[i];
|
|
13906
13906
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -13909,8 +13909,8 @@ function _defineProperties$b(target, props) {
|
|
|
13909
13909
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
13910
13910
|
}
|
|
13911
13911
|
}
|
|
13912
|
-
function _create_class$
|
|
13913
|
-
if (protoProps) _defineProperties$
|
|
13912
|
+
function _create_class$a(Constructor, protoProps, staticProps) {
|
|
13913
|
+
if (protoProps) _defineProperties$a(Constructor.prototype, protoProps);
|
|
13914
13914
|
return Constructor;
|
|
13915
13915
|
}
|
|
13916
13916
|
function _ts_generator$7(thisArg, body) {
|
|
@@ -14015,10 +14015,10 @@ function _ts_generator$7(thisArg, body) {
|
|
|
14015
14015
|
* https://tools.ietf.org/html/rfc7636#page-8
|
|
14016
14016
|
*/ var PkceGenerator = /*#__PURE__*/ function() {
|
|
14017
14017
|
function PkceGenerator() {
|
|
14018
|
-
_class_call_check$
|
|
14018
|
+
_class_call_check$a(this, PkceGenerator);
|
|
14019
14019
|
this.hashUtils = new HashUtils();
|
|
14020
14020
|
}
|
|
14021
|
-
_create_class$
|
|
14021
|
+
_create_class$a(PkceGenerator, [
|
|
14022
14022
|
{
|
|
14023
14023
|
key: "generatePkceCodes",
|
|
14024
14024
|
value: /**
|
|
@@ -14103,12 +14103,12 @@ function _async_to_generator$6(fn) {
|
|
|
14103
14103
|
});
|
|
14104
14104
|
};
|
|
14105
14105
|
}
|
|
14106
|
-
function _class_call_check$
|
|
14106
|
+
function _class_call_check$9(instance, Constructor) {
|
|
14107
14107
|
if (!(instance instanceof Constructor)) {
|
|
14108
14108
|
throw new TypeError("Cannot call a class as a function");
|
|
14109
14109
|
}
|
|
14110
14110
|
}
|
|
14111
|
-
function _defineProperties$
|
|
14111
|
+
function _defineProperties$9(target, props) {
|
|
14112
14112
|
for(var i = 0; i < props.length; i++){
|
|
14113
14113
|
var descriptor = props[i];
|
|
14114
14114
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14117,8 +14117,8 @@ function _defineProperties$a(target, props) {
|
|
|
14117
14117
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14118
14118
|
}
|
|
14119
14119
|
}
|
|
14120
|
-
function _create_class$
|
|
14121
|
-
if (protoProps) _defineProperties$
|
|
14120
|
+
function _create_class$9(Constructor, protoProps, staticProps) {
|
|
14121
|
+
if (protoProps) _defineProperties$9(Constructor.prototype, protoProps);
|
|
14122
14122
|
return Constructor;
|
|
14123
14123
|
}
|
|
14124
14124
|
function _ts_generator$6(thisArg, body) {
|
|
@@ -14225,13 +14225,13 @@ function _ts_generator$6(thisArg, body) {
|
|
|
14225
14225
|
* @public
|
|
14226
14226
|
*/ var CryptoProvider = /*#__PURE__*/ function() {
|
|
14227
14227
|
function CryptoProvider() {
|
|
14228
|
-
_class_call_check$
|
|
14228
|
+
_class_call_check$9(this, CryptoProvider);
|
|
14229
14229
|
// Browser crypto needs to be validated first before any other classes can be set.
|
|
14230
14230
|
this.pkceGenerator = new PkceGenerator();
|
|
14231
14231
|
this.guidGenerator = new GuidGenerator();
|
|
14232
14232
|
this.hashUtils = new HashUtils();
|
|
14233
14233
|
}
|
|
14234
|
-
_create_class$
|
|
14234
|
+
_create_class$9(CryptoProvider, [
|
|
14235
14235
|
{
|
|
14236
14236
|
/**
|
|
14237
14237
|
* base64 URL safe encoded string
|
|
@@ -14352,12 +14352,12 @@ function _assert_this_initialized$4(self) {
|
|
|
14352
14352
|
}
|
|
14353
14353
|
return self;
|
|
14354
14354
|
}
|
|
14355
|
-
function _class_call_check$
|
|
14355
|
+
function _class_call_check$8(instance, Constructor) {
|
|
14356
14356
|
if (!(instance instanceof Constructor)) {
|
|
14357
14357
|
throw new TypeError("Cannot call a class as a function");
|
|
14358
14358
|
}
|
|
14359
14359
|
}
|
|
14360
|
-
function _defineProperties$
|
|
14360
|
+
function _defineProperties$8(target, props) {
|
|
14361
14361
|
for(var i = 0; i < props.length; i++){
|
|
14362
14362
|
var descriptor = props[i];
|
|
14363
14363
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -14366,9 +14366,9 @@ function _defineProperties$9(target, props) {
|
|
|
14366
14366
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
14367
14367
|
}
|
|
14368
14368
|
}
|
|
14369
|
-
function _create_class$
|
|
14370
|
-
if (protoProps) _defineProperties$
|
|
14371
|
-
if (staticProps) _defineProperties$
|
|
14369
|
+
function _create_class$8(Constructor, protoProps, staticProps) {
|
|
14370
|
+
if (protoProps) _defineProperties$8(Constructor.prototype, protoProps);
|
|
14371
|
+
if (staticProps) _defineProperties$8(Constructor, staticProps);
|
|
14372
14372
|
return Constructor;
|
|
14373
14373
|
}
|
|
14374
14374
|
function _define_property$4(obj, key, value) {
|
|
@@ -14493,7 +14493,7 @@ function _create_super$4(Derived) {
|
|
|
14493
14493
|
_inherits$4(NodeStorage, CacheManager);
|
|
14494
14494
|
var _super = _create_super$4(NodeStorage);
|
|
14495
14495
|
function NodeStorage(logger, clientId, cryptoImpl, staticAuthorityOptions) {
|
|
14496
|
-
_class_call_check$
|
|
14496
|
+
_class_call_check$8(this, NodeStorage);
|
|
14497
14497
|
var _this;
|
|
14498
14498
|
_this = _super.call(this, clientId, cryptoImpl, logger, staticAuthorityOptions);
|
|
14499
14499
|
_this.cache = {};
|
|
@@ -14501,7 +14501,7 @@ function _create_super$4(Derived) {
|
|
|
14501
14501
|
_this.logger = logger;
|
|
14502
14502
|
return _this;
|
|
14503
14503
|
}
|
|
14504
|
-
_create_class$
|
|
14504
|
+
_create_class$8(NodeStorage, [
|
|
14505
14505
|
{
|
|
14506
14506
|
/**
|
|
14507
14507
|
* Queue up callbacks
|
|
@@ -15007,12 +15007,12 @@ function _async_to_generator$5(fn) {
|
|
|
15007
15007
|
});
|
|
15008
15008
|
};
|
|
15009
15009
|
}
|
|
15010
|
-
function _class_call_check$
|
|
15010
|
+
function _class_call_check$7(instance, Constructor) {
|
|
15011
15011
|
if (!(instance instanceof Constructor)) {
|
|
15012
15012
|
throw new TypeError("Cannot call a class as a function");
|
|
15013
15013
|
}
|
|
15014
15014
|
}
|
|
15015
|
-
function _defineProperties$
|
|
15015
|
+
function _defineProperties$7(target, props) {
|
|
15016
15016
|
for(var i = 0; i < props.length; i++){
|
|
15017
15017
|
var descriptor = props[i];
|
|
15018
15018
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -15021,8 +15021,8 @@ function _defineProperties$8(target, props) {
|
|
|
15021
15021
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
15022
15022
|
}
|
|
15023
15023
|
}
|
|
15024
|
-
function _create_class$
|
|
15025
|
-
if (protoProps) _defineProperties$
|
|
15024
|
+
function _create_class$7(Constructor, protoProps, staticProps) {
|
|
15025
|
+
if (protoProps) _defineProperties$7(Constructor.prototype, protoProps);
|
|
15026
15026
|
return Constructor;
|
|
15027
15027
|
}
|
|
15028
15028
|
function _define_property$3(obj, key, value) {
|
|
@@ -15186,7 +15186,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
15186
15186
|
* @public
|
|
15187
15187
|
*/ var TokenCache = /*#__PURE__*/ function() {
|
|
15188
15188
|
function TokenCache(storage, logger, cachePlugin) {
|
|
15189
|
-
_class_call_check$
|
|
15189
|
+
_class_call_check$7(this, TokenCache);
|
|
15190
15190
|
this.cacheHasChanged = false;
|
|
15191
15191
|
this.storage = storage;
|
|
15192
15192
|
this.storage.registerChangeEmitter(this.handleChangeEvent.bind(this));
|
|
@@ -15195,7 +15195,7 @@ function _ts_generator$5(thisArg, body) {
|
|
|
15195
15195
|
}
|
|
15196
15196
|
this.logger = logger;
|
|
15197
15197
|
}
|
|
15198
|
-
_create_class$
|
|
15198
|
+
_create_class$7(TokenCache, [
|
|
15199
15199
|
{
|
|
15200
15200
|
/**
|
|
15201
15201
|
* Set to true if cache state has changed since last time serialize or writeToPersistence was called
|
|
@@ -16866,12 +16866,12 @@ var identifiers$1 = {
|
|
|
16866
16866
|
rcompareIdentifiers: rcompareIdentifiers
|
|
16867
16867
|
};
|
|
16868
16868
|
|
|
16869
|
-
function _class_call_check$
|
|
16869
|
+
function _class_call_check$6(instance, Constructor) {
|
|
16870
16870
|
if (!(instance instanceof Constructor)) {
|
|
16871
16871
|
throw new TypeError("Cannot call a class as a function");
|
|
16872
16872
|
}
|
|
16873
16873
|
}
|
|
16874
|
-
function _defineProperties$
|
|
16874
|
+
function _defineProperties$6(target, props) {
|
|
16875
16875
|
for(var i = 0; i < props.length; i++){
|
|
16876
16876
|
var descriptor = props[i];
|
|
16877
16877
|
descriptor.enumerable = descriptor.enumerable || false;
|
|
@@ -16880,8 +16880,8 @@ function _defineProperties$7(target, props) {
|
|
|
16880
16880
|
Object.defineProperty(target, descriptor.key, descriptor);
|
|
16881
16881
|
}
|
|
16882
16882
|
}
|
|
16883
|
-
function _create_class$
|
|
16884
|
-
if (protoProps) _defineProperties$
|
|
16883
|
+
function _create_class$6(Constructor, protoProps, staticProps) {
|
|
16884
|
+
if (protoProps) _defineProperties$6(Constructor.prototype, protoProps);
|
|
16885
16885
|
return Constructor;
|
|
16886
16886
|
}
|
|
16887
16887
|
function _instanceof$8(left, right) {
|
|
@@ -16902,7 +16902,7 @@ var parseOptions = parseOptions_1;
|
|
|
16902
16902
|
var compareIdentifiers = identifiers$1.compareIdentifiers;
|
|
16903
16903
|
var SemVer$d = /*#__PURE__*/ function() {
|
|
16904
16904
|
function SemVer(version, options) {
|
|
16905
|
-
_class_call_check$
|
|
16905
|
+
_class_call_check$6(this, SemVer);
|
|
16906
16906
|
options = parseOptions(options);
|
|
16907
16907
|
if (_instanceof$8(version, SemVer)) {
|
|
16908
16908
|
if (version.loose === !!options.loose && version.includePrerelease === !!options.includePrerelease) {
|
|
@@ -16957,7 +16957,7 @@ var SemVer$d = /*#__PURE__*/ function() {
|
|
|
16957
16957
|
this.build = m[5] ? m[5].split('.') : [];
|
|
16958
16958
|
this.format();
|
|
16959
16959
|
}
|
|
16960
|
-
_create_class$
|
|
16960
|
+
_create_class$6(SemVer, [
|
|
16961
16961
|
{
|
|
16962
16962
|
key: "format",
|
|
16963
16963
|
value: function format() {
|
|
@@ -17520,70 +17520,78 @@ var coerce$1 = function(version, options) {
|
|
|
17520
17520
|
};
|
|
17521
17521
|
var coerce_1 = coerce$1;
|
|
17522
17522
|
|
|
17523
|
-
|
|
17524
|
-
|
|
17525
|
-
|
|
17526
|
-
|
|
17527
|
-
|
|
17528
|
-
|
|
17529
|
-
|
|
17530
|
-
|
|
17531
|
-
|
|
17532
|
-
|
|
17533
|
-
|
|
17534
|
-
|
|
17535
|
-
|
|
17536
|
-
|
|
17537
|
-
|
|
17538
|
-
|
|
17539
|
-
|
|
17523
|
+
var lrucache;
|
|
17524
|
+
var hasRequiredLrucache;
|
|
17525
|
+
|
|
17526
|
+
function requireLrucache () {
|
|
17527
|
+
if (hasRequiredLrucache) return lrucache;
|
|
17528
|
+
hasRequiredLrucache = 1;
|
|
17529
|
+
function _class_call_check(instance, Constructor) {
|
|
17530
|
+
if (!(instance instanceof Constructor)) {
|
|
17531
|
+
throw new TypeError("Cannot call a class as a function");
|
|
17532
|
+
}
|
|
17533
|
+
}
|
|
17534
|
+
function _defineProperties(target, props) {
|
|
17535
|
+
for(var i = 0; i < props.length; i++){
|
|
17536
|
+
var descriptor = props[i];
|
|
17537
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
17538
|
+
descriptor.configurable = true;
|
|
17539
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
17540
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
17541
|
+
}
|
|
17542
|
+
}
|
|
17543
|
+
function _create_class(Constructor, protoProps, staticProps) {
|
|
17544
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
17545
|
+
return Constructor;
|
|
17546
|
+
}
|
|
17547
|
+
var LRUCache = /*#__PURE__*/ function() {
|
|
17548
|
+
function LRUCache() {
|
|
17549
|
+
_class_call_check(this, LRUCache);
|
|
17550
|
+
this.max = 1000;
|
|
17551
|
+
this.map = new Map();
|
|
17552
|
+
}
|
|
17553
|
+
_create_class(LRUCache, [
|
|
17554
|
+
{
|
|
17555
|
+
key: "get",
|
|
17556
|
+
value: function get(key) {
|
|
17557
|
+
var value = this.map.get(key);
|
|
17558
|
+
if (value === undefined) {
|
|
17559
|
+
return undefined;
|
|
17560
|
+
} else {
|
|
17561
|
+
// Remove the key from the map and add it to the end
|
|
17562
|
+
this.map.delete(key);
|
|
17563
|
+
this.map.set(key, value);
|
|
17564
|
+
return value;
|
|
17565
|
+
}
|
|
17566
|
+
}
|
|
17567
|
+
},
|
|
17568
|
+
{
|
|
17569
|
+
key: "delete",
|
|
17570
|
+
value: function _delete(key) {
|
|
17571
|
+
return this.map.delete(key);
|
|
17572
|
+
}
|
|
17573
|
+
},
|
|
17574
|
+
{
|
|
17575
|
+
key: "set",
|
|
17576
|
+
value: function set(key, value) {
|
|
17577
|
+
var deleted = this.delete(key);
|
|
17578
|
+
if (!deleted && value !== undefined) {
|
|
17579
|
+
// If cache is full, delete the least recently used item
|
|
17580
|
+
if (this.map.size >= this.max) {
|
|
17581
|
+
var firstKey = this.map.keys().next().value;
|
|
17582
|
+
this.delete(firstKey);
|
|
17583
|
+
}
|
|
17584
|
+
this.map.set(key, value);
|
|
17585
|
+
}
|
|
17586
|
+
return this;
|
|
17587
|
+
}
|
|
17588
|
+
}
|
|
17589
|
+
]);
|
|
17590
|
+
return LRUCache;
|
|
17591
|
+
}();
|
|
17592
|
+
lrucache = LRUCache;
|
|
17593
|
+
return lrucache;
|
|
17540
17594
|
}
|
|
17541
|
-
var LRUCache = /*#__PURE__*/ function() {
|
|
17542
|
-
function LRUCache() {
|
|
17543
|
-
_class_call_check$6(this, LRUCache);
|
|
17544
|
-
this.max = 1000;
|
|
17545
|
-
this.map = new Map();
|
|
17546
|
-
}
|
|
17547
|
-
_create_class$6(LRUCache, [
|
|
17548
|
-
{
|
|
17549
|
-
key: "get",
|
|
17550
|
-
value: function get(key) {
|
|
17551
|
-
var value = this.map.get(key);
|
|
17552
|
-
if (value === undefined) {
|
|
17553
|
-
return undefined;
|
|
17554
|
-
} else {
|
|
17555
|
-
// Remove the key from the map and add it to the end
|
|
17556
|
-
this.map.delete(key);
|
|
17557
|
-
this.map.set(key, value);
|
|
17558
|
-
return value;
|
|
17559
|
-
}
|
|
17560
|
-
}
|
|
17561
|
-
},
|
|
17562
|
-
{
|
|
17563
|
-
key: "delete",
|
|
17564
|
-
value: function _delete(key) {
|
|
17565
|
-
return this.map.delete(key);
|
|
17566
|
-
}
|
|
17567
|
-
},
|
|
17568
|
-
{
|
|
17569
|
-
key: "set",
|
|
17570
|
-
value: function set(key, value) {
|
|
17571
|
-
var deleted = this.delete(key);
|
|
17572
|
-
if (!deleted && value !== undefined) {
|
|
17573
|
-
// If cache is full, delete the least recently used item
|
|
17574
|
-
if (this.map.size >= this.max) {
|
|
17575
|
-
var firstKey = this.map.keys().next().value;
|
|
17576
|
-
this.delete(firstKey);
|
|
17577
|
-
}
|
|
17578
|
-
this.map.set(key, value);
|
|
17579
|
-
}
|
|
17580
|
-
return this;
|
|
17581
|
-
}
|
|
17582
|
-
}
|
|
17583
|
-
]);
|
|
17584
|
-
return LRUCache;
|
|
17585
|
-
}();
|
|
17586
|
-
var lrucache = LRUCache;
|
|
17587
17595
|
|
|
17588
17596
|
var range;
|
|
17589
17597
|
var hasRequiredRange;
|
|
@@ -17887,7 +17895,7 @@ function requireRange () {
|
|
|
17887
17895
|
return Range;
|
|
17888
17896
|
}();
|
|
17889
17897
|
range = Range;
|
|
17890
|
-
var LRU =
|
|
17898
|
+
var LRU = requireLrucache();
|
|
17891
17899
|
var cache = new LRU();
|
|
17892
17900
|
var parseOptions = parseOptions_1;
|
|
17893
17901
|
var Comparator = requireComparator();
|