chat-pane 2.4.22 → 2.4.23
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/LICENSE.md +0 -0
- package/README.md +3 -0
- package/dist/index.html +0 -0
- package/dist/longChatPane.js +59 -85
- package/dist/longChatPane.js.map +1 -1
- package/dist/main.js +59 -89
- package/dist/main.js.map +1 -1
- package/dist/shortChatPane.js +59 -85
- package/dist/shortChatPane.js.map +1 -1
- package/lib/create.js +0 -0
- package/lib/create.js.map +0 -0
- package/lib/longChatPane.js +0 -0
- package/lib/longChatPane.js.map +0 -0
- package/lib/main.js +0 -0
- package/lib/main.js.map +0 -0
- package/lib/shortChatPane.js +0 -0
- package/lib/shortChatPane.js.map +0 -0
- package/package.json +12 -11
- package/src/create.ts +0 -0
- package/src/longChatPane.js +0 -0
- package/src/main.js +0 -0
- package/src/shortChatPane.js +0 -0
package/dist/main.js
CHANGED
|
@@ -5012,7 +5012,10 @@ function removeOidcQueryParam(redirectUrl) {
|
|
|
5012
5012
|
cleanedUrl.searchParams.delete("code");
|
|
5013
5013
|
cleanedUrl.searchParams.delete("state");
|
|
5014
5014
|
cleanedUrl.hash = "";
|
|
5015
|
-
|
|
5015
|
+
if (redirectUrl.includes(`${cleanedUrl.origin}/`)) {
|
|
5016
|
+
return cleanedUrl.href;
|
|
5017
|
+
}
|
|
5018
|
+
return `${cleanedUrl.origin}${cleanedUrl.href.substring(cleanedUrl.origin.length + 1)}`;
|
|
5016
5019
|
}
|
|
5017
5020
|
async function clearOidcPersistentStorage() {
|
|
5018
5021
|
const client = new _inrupt_oidc_client__WEBPACK_IMPORTED_MODULE_0__.OidcClient({
|
|
@@ -5680,7 +5683,7 @@ class IssuerConfigFetcher {
|
|
|
5680
5683
|
}
|
|
5681
5684
|
async fetchConfig(issuer) {
|
|
5682
5685
|
let issuerConfig;
|
|
5683
|
-
const openIdConfigUrl = new URL(exports.WELL_KNOWN_OPENID_CONFIG, issuer).href;
|
|
5686
|
+
const openIdConfigUrl = new URL(exports.WELL_KNOWN_OPENID_CONFIG, issuer.endsWith("/") ? issuer : `${issuer}/`).href;
|
|
5684
5687
|
const issuerConfigRequestBody = await window.fetch(openIdConfigUrl);
|
|
5685
5688
|
try {
|
|
5686
5689
|
issuerConfig = processConfig(await issuerConfigRequestBody.json());
|
|
@@ -5857,12 +5860,6 @@ class AuthCodeRedirectHandler {
|
|
|
5857
5860
|
webId: tokens.webId,
|
|
5858
5861
|
isLoggedIn: "true",
|
|
5859
5862
|
}, { secure: true });
|
|
5860
|
-
url.searchParams.delete("code");
|
|
5861
|
-
await this.storageUtility.setForUser(storedSessionId, {
|
|
5862
|
-
redirectUrl: url.toString(),
|
|
5863
|
-
}, {
|
|
5864
|
-
secure: false,
|
|
5865
|
-
});
|
|
5866
5863
|
const sessionInfo = await this.sessionInfoManager.get(storedSessionId);
|
|
5867
5864
|
if (!sessionInfo) {
|
|
5868
5865
|
throw new Error(`Could not retrieve session: [${storedSessionId}].`);
|
|
@@ -38805,7 +38802,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38805
38802
|
/* harmony import */ var _class_order__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./class-order */ "./node_modules/rdflib/esm/class-order.js");
|
|
38806
38803
|
/* harmony import */ var _node_internal__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./node-internal */ "./node_modules/rdflib/esm/node-internal.js");
|
|
38807
38804
|
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./types */ "./node_modules/rdflib/esm/types.js");
|
|
38808
|
-
/* provided dependency */ var console = __webpack_require__(/*! ./node_modules/console-browserify/index.js */ "./node_modules/console-browserify/index.js");
|
|
38809
38805
|
|
|
38810
38806
|
|
|
38811
38807
|
|
|
@@ -38901,7 +38897,6 @@ var BlankNode = /*#__PURE__*/function (_Node) {
|
|
|
38901
38897
|
function getId(id) {
|
|
38902
38898
|
if (id) {
|
|
38903
38899
|
if (typeof id !== 'string') {
|
|
38904
|
-
console.log('Bad blank id:', id);
|
|
38905
38900
|
throw new Error('Bad id argument to new blank node: ' + id);
|
|
38906
38901
|
}
|
|
38907
38902
|
if (id.includes('#')) {
|
|
@@ -40529,7 +40524,7 @@ var Fetcher = /*#__PURE__*/function () {
|
|
|
40529
40524
|
size: 0,
|
|
40530
40525
|
timeout: 0
|
|
40531
40526
|
};
|
|
40532
|
-
console.log('Fetcher: <' + actualProxyURI + '> Non-HTTP fetch exception: ' + error)
|
|
40527
|
+
// console.log('Fetcher: <' + actualProxyURI + '> Non-HTTP fetch exception: ' + error)
|
|
40533
40528
|
return _this5.handleError(dummyResponse, docuri, options); // possible credentials retry
|
|
40534
40529
|
// return this.failFetch(options, 'fetch failed: ' + error, 999, dummyResponse) // Fake status code: fetch exception
|
|
40535
40530
|
|
|
@@ -40590,25 +40585,21 @@ var Fetcher = /*#__PURE__*/function () {
|
|
|
40590
40585
|
if (fetchResponse.ok) {
|
|
40591
40586
|
userCallback(true, 'OK', fetchResponse);
|
|
40592
40587
|
} else {
|
|
40593
|
-
// console.log('@@@ fetcher.js Should not take this path !!!!!!!!!!!!')
|
|
40594
40588
|
var oops = 'HTTP error: Status ' + fetchResponse.status + ' (' + fetchResponse.statusText + ')';
|
|
40595
40589
|
if (fetchResponse.responseText) {
|
|
40596
40590
|
oops += ' ' + fetchResponse.responseText; // not in 404, dns error, nock failure
|
|
40597
40591
|
}
|
|
40598
40592
|
|
|
40599
|
-
console.log(oops + ' fetching ' + uri);
|
|
40600
40593
|
userCallback(false, oops, fetchResponse);
|
|
40601
40594
|
}
|
|
40602
40595
|
} else {
|
|
40603
40596
|
var _oops = '@@ nowOrWhenFetched: no response object!';
|
|
40604
|
-
console.log(_oops);
|
|
40605
40597
|
userCallback(false, _oops);
|
|
40606
40598
|
}
|
|
40607
40599
|
}
|
|
40608
40600
|
}, function (err) {
|
|
40609
40601
|
var message = err.message || err.statusText;
|
|
40610
40602
|
message = 'Failed to load <' + uri + '> ' + message;
|
|
40611
|
-
console.log(message);
|
|
40612
40603
|
if (err.response && err.response.status) {
|
|
40613
40604
|
message += ' status: ' + err.response.status;
|
|
40614
40605
|
}
|
|
@@ -40847,45 +40838,42 @@ var Fetcher = /*#__PURE__*/function () {
|
|
|
40847
40838
|
return fetcher.load(doc);
|
|
40848
40839
|
case 6:
|
|
40849
40840
|
response = _context2.sent;
|
|
40850
|
-
_context2.next =
|
|
40841
|
+
_context2.next = 26;
|
|
40851
40842
|
break;
|
|
40852
40843
|
case 9:
|
|
40853
40844
|
_context2.prev = 9;
|
|
40854
40845
|
_context2.t0 = _context2["catch"](3);
|
|
40855
40846
|
if (!(_context2.t0.response.status === 404)) {
|
|
40856
|
-
_context2.next =
|
|
40847
|
+
_context2.next = 25;
|
|
40857
40848
|
break;
|
|
40858
40849
|
}
|
|
40859
|
-
|
|
40860
|
-
_context2.
|
|
40861
|
-
_context2.next = 16;
|
|
40850
|
+
_context2.prev = 12;
|
|
40851
|
+
_context2.next = 15;
|
|
40862
40852
|
return fetcher.webOperation('PUT', doc.value, {
|
|
40863
40853
|
data: data,
|
|
40864
40854
|
contentType: contentType
|
|
40865
40855
|
});
|
|
40866
|
-
case
|
|
40856
|
+
case 15:
|
|
40867
40857
|
response = _context2.sent;
|
|
40868
|
-
_context2.next =
|
|
40858
|
+
_context2.next = 21;
|
|
40869
40859
|
break;
|
|
40870
|
-
case
|
|
40871
|
-
_context2.prev =
|
|
40872
|
-
_context2.t1 = _context2["catch"](
|
|
40873
|
-
console.log('createIfNotExists doc FAILED: ' + doc + ': ' + _context2.t1);
|
|
40860
|
+
case 18:
|
|
40861
|
+
_context2.prev = 18;
|
|
40862
|
+
_context2.t1 = _context2["catch"](12);
|
|
40874
40863
|
throw _context2.t1;
|
|
40875
|
-
case
|
|
40864
|
+
case 21:
|
|
40876
40865
|
delete fetcher.requested[doc.value]; // delete cached 404 error
|
|
40877
40866
|
// console.log('createIfNotExists doc created ok ' + doc)
|
|
40878
40867
|
return _context2.abrupt("return", response);
|
|
40879
|
-
case
|
|
40880
|
-
console.log('createIfNotExists doc load error NOT 404: ' + doc + ': ' + _context2.t0);
|
|
40868
|
+
case 25:
|
|
40881
40869
|
throw _context2.t0;
|
|
40882
|
-
case
|
|
40870
|
+
case 26:
|
|
40883
40871
|
return _context2.abrupt("return", response);
|
|
40884
|
-
case
|
|
40872
|
+
case 27:
|
|
40885
40873
|
case "end":
|
|
40886
40874
|
return _context2.stop();
|
|
40887
40875
|
}
|
|
40888
|
-
}, _callee2, this, [[3, 9], [
|
|
40876
|
+
}, _callee2, this, [[3, 9], [12, 18]]);
|
|
40889
40877
|
}));
|
|
40890
40878
|
function createIfNotExists(_x4) {
|
|
40891
40879
|
return _createIfNotExists.apply(this, arguments);
|
|
@@ -41194,7 +41182,8 @@ var Fetcher = /*#__PURE__*/function () {
|
|
|
41194
41182
|
}, {
|
|
41195
41183
|
key: "retryNoCredentials",
|
|
41196
41184
|
value: function retryNoCredentials(docuri, options) {
|
|
41197
|
-
console.log('Fetcher: CORS: RETRYING with NO CREDENTIALS for ' + options.resource)
|
|
41185
|
+
// console.log('Fetcher: CORS: RETRYING with NO CREDENTIALS for ' + options.resource)
|
|
41186
|
+
|
|
41198
41187
|
options.retriedWithNoCredentials = true; // protect against being called twice
|
|
41199
41188
|
|
|
41200
41189
|
delete this.requested[docuri]; // forget the original request happened
|
|
@@ -41239,7 +41228,7 @@ var Fetcher = /*#__PURE__*/function () {
|
|
|
41239
41228
|
// Now attempt retry via proxy
|
|
41240
41229
|
var proxyUri = Fetcher.crossSiteProxy(docuri);
|
|
41241
41230
|
if (proxyUri && !options.proxyUsed) {
|
|
41242
|
-
console.log('web: Direct failed so trying proxy ' + proxyUri)
|
|
41231
|
+
// console.log('web: Direct failed so trying proxy ' + proxyUri)
|
|
41243
41232
|
return this.redirectToProxy(proxyUri, options);
|
|
41244
41233
|
}
|
|
41245
41234
|
}
|
|
@@ -41312,7 +41301,7 @@ var Fetcher = /*#__PURE__*/function () {
|
|
|
41312
41301
|
|
|
41313
41302
|
// Check for masked errors (CORS, etc)
|
|
41314
41303
|
if (response.status === 0) {
|
|
41315
|
-
console.log('Masked error - status 0 for ' + docuri)
|
|
41304
|
+
// console.log('Masked error - status 0 for ' + docuri)
|
|
41316
41305
|
return this.handleError(response, docuri, options);
|
|
41317
41306
|
}
|
|
41318
41307
|
if (response.status >= 400) {
|
|
@@ -41645,7 +41634,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41645
41634
|
/* harmony import */ var _variable__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./variable */ "./node_modules/rdflib/esm/variable.js");
|
|
41646
41635
|
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./utils */ "./node_modules/rdflib/esm/utils.js");
|
|
41647
41636
|
/* harmony import */ var _named_node__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./named-node */ "./node_modules/rdflib/esm/named-node.js");
|
|
41648
|
-
/* provided dependency */ var console = __webpack_require__(/*! ./node_modules/console-browserify/index.js */ "./node_modules/console-browserify/index.js");
|
|
41649
41637
|
|
|
41650
41638
|
|
|
41651
41639
|
|
|
@@ -42200,7 +42188,6 @@ var Formula = /*#__PURE__*/function (_Node) {
|
|
|
42200
42188
|
while (todo.length) {
|
|
42201
42189
|
follow(todo.shift());
|
|
42202
42190
|
}
|
|
42203
|
-
// console.log('' + result.length + ' statements about ' + subject)
|
|
42204
42191
|
return result;
|
|
42205
42192
|
}
|
|
42206
42193
|
|
|
@@ -42357,10 +42344,10 @@ var Formula = /*#__PURE__*/function (_Node) {
|
|
|
42357
42344
|
var statementsCopy = this.statements.map(function (ea) {
|
|
42358
42345
|
return ea.substitute(bindings);
|
|
42359
42346
|
});
|
|
42360
|
-
console.log('Formula subs statmnts:' + statementsCopy)
|
|
42347
|
+
// console.log('Formula subs statmnts:' + statementsCopy)
|
|
42361
42348
|
var y = new Formula();
|
|
42362
42349
|
y.addAll(statementsCopy);
|
|
42363
|
-
console.log('indexed-form subs formula:' + y)
|
|
42350
|
+
// console.log('indexed-form subs formula:' + y)
|
|
42364
42351
|
return y;
|
|
42365
42352
|
}
|
|
42366
42353
|
}, {
|
|
@@ -45135,7 +45122,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45135
45122
|
/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ "./node_modules/@babel/runtime/helpers/esm/classCallCheck.js");
|
|
45136
45123
|
/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ "./node_modules/@babel/runtime/helpers/esm/createClass.js");
|
|
45137
45124
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/esm/defineProperty.js");
|
|
45138
|
-
/* provided dependency */ var console = __webpack_require__(/*! ./node_modules/console-browserify/index.js */ "./node_modules/console-browserify/index.js");
|
|
45139
45125
|
|
|
45140
45126
|
|
|
45141
45127
|
|
|
@@ -45173,7 +45159,6 @@ var Node = /*#__PURE__*/function () {
|
|
|
45173
45159
|
(0,_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__["default"])(Node, [{
|
|
45174
45160
|
key: "substitute",
|
|
45175
45161
|
value: function substitute(bindings) {
|
|
45176
|
-
console.log('@@@ node substitute' + this);
|
|
45177
45162
|
return this;
|
|
45178
45163
|
}
|
|
45179
45164
|
|
|
@@ -49509,7 +49494,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49509
49494
|
/* harmony import */ var _node_internal__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node-internal */ "./node_modules/rdflib/esm/node-internal.js");
|
|
49510
49495
|
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./types */ "./node_modules/rdflib/esm/types.js");
|
|
49511
49496
|
/* harmony import */ var _default_graph__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./default-graph */ "./node_modules/rdflib/esm/default-graph.js");
|
|
49512
|
-
/* provided dependency */ var console = __webpack_require__(/*! ./node_modules/console-browserify/index.js */ "./node_modules/console-browserify/index.js");
|
|
49513
49497
|
|
|
49514
49498
|
|
|
49515
49499
|
|
|
@@ -49588,7 +49572,7 @@ var Statement = /*#__PURE__*/function () {
|
|
|
49588
49572
|
key: "substitute",
|
|
49589
49573
|
value: function substitute(bindings) {
|
|
49590
49574
|
var y = new Statement(this.subject.substitute(bindings), this.predicate.substitute(bindings), this.object.substitute(bindings), (0,_default_graph__WEBPACK_IMPORTED_MODULE_3__.isDefaultGraph)(this.graph) ? this.graph : this.graph.substitute(bindings)); // 2016
|
|
49591
|
-
console.log('@@@ statement substitute:' + y)
|
|
49575
|
+
// console.log('@@@ statement substitute:' + y)
|
|
49592
49576
|
return y;
|
|
49593
49577
|
}
|
|
49594
49578
|
|
|
@@ -53716,7 +53700,7 @@ var SolidAuthnLogic = /** @class */ (function () {
|
|
|
53716
53700
|
*/
|
|
53717
53701
|
SolidAuthnLogic.prototype.checkUser = function (setUserCallback) {
|
|
53718
53702
|
return __awaiter(this, void 0, void 0, function () {
|
|
53719
|
-
var preLoginRedirectHash, postLoginRedirectHash, curUrl, me, webId;
|
|
53703
|
+
var preLoginRedirectHash, redirectUrl, postLoginRedirectHash, curUrl, me, webId;
|
|
53720
53704
|
return __generator(this, function (_a) {
|
|
53721
53705
|
switch (_a.label) {
|
|
53722
53706
|
case 0:
|
|
@@ -53728,20 +53712,16 @@ var SolidAuthnLogic = /** @class */ (function () {
|
|
|
53728
53712
|
if (document.location.toString() !== url)
|
|
53729
53713
|
history.replaceState(null, '', url);
|
|
53730
53714
|
});
|
|
53731
|
-
|
|
53732
|
-
|
|
53733
|
-
*/
|
|
53715
|
+
redirectUrl = new URL(window.location.href);
|
|
53716
|
+
redirectUrl.hash = '';
|
|
53734
53717
|
return [4 /*yield*/, this.session
|
|
53735
53718
|
.handleIncomingRedirect({
|
|
53736
53719
|
restorePreviousSession: true,
|
|
53737
|
-
url:
|
|
53720
|
+
url: redirectUrl.href
|
|
53738
53721
|
})
|
|
53739
53722
|
// Check to see if a hash was stored in local storage
|
|
53740
53723
|
];
|
|
53741
53724
|
case 1:
|
|
53742
|
-
/**
|
|
53743
|
-
* Handle a successful authentication redirect
|
|
53744
|
-
*/
|
|
53745
53725
|
_a.sent();
|
|
53746
53726
|
postLoginRedirectHash = window.localStorage.getItem('preLoginRedirectHash');
|
|
53747
53727
|
if (postLoginRedirectHash) {
|
|
@@ -63185,7 +63165,7 @@ function renderSignInPopup(dom) {
|
|
|
63185
63165
|
issuerPopupBoxTopMenu.appendChild(issuerPopupBoxCloseButton);
|
|
63186
63166
|
var loginToIssuer = /*#__PURE__*/function () {
|
|
63187
63167
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(issuerUri) {
|
|
63188
|
-
var preLoginRedirectHash;
|
|
63168
|
+
var preLoginRedirectHash, locationUrl;
|
|
63189
63169
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
63190
63170
|
while (1) switch (_context.prev = _context.next) {
|
|
63191
63171
|
case 0:
|
|
@@ -63197,23 +63177,25 @@ function renderSignInPopup(dom) {
|
|
|
63197
63177
|
}
|
|
63198
63178
|
window.localStorage.setItem('loginIssuer', issuerUri);
|
|
63199
63179
|
// Login
|
|
63200
|
-
|
|
63180
|
+
locationUrl = new URL(window.location.href);
|
|
63181
|
+
locationUrl.hash = ''; // remove hash part
|
|
63182
|
+
_context.next = 8;
|
|
63201
63183
|
return _solidLogic.authSession.login({
|
|
63202
|
-
redirectUrl:
|
|
63184
|
+
redirectUrl: locationUrl.href,
|
|
63203
63185
|
oidcIssuer: issuerUri
|
|
63204
63186
|
});
|
|
63205
|
-
case 6:
|
|
63206
|
-
_context.next = 11;
|
|
63207
|
-
break;
|
|
63208
63187
|
case 8:
|
|
63209
|
-
_context.
|
|
63188
|
+
_context.next = 13;
|
|
63189
|
+
break;
|
|
63190
|
+
case 10:
|
|
63191
|
+
_context.prev = 10;
|
|
63210
63192
|
_context.t0 = _context["catch"](0);
|
|
63211
63193
|
(0, _log.alert)(_context.t0.message);
|
|
63212
|
-
case
|
|
63194
|
+
case 13:
|
|
63213
63195
|
case "end":
|
|
63214
63196
|
return _context.stop();
|
|
63215
63197
|
}
|
|
63216
|
-
}, _callee, null, [[0,
|
|
63198
|
+
}, _callee, null, [[0, 10]]);
|
|
63217
63199
|
}));
|
|
63218
63200
|
return function loginToIssuer(_x11) {
|
|
63219
63201
|
return _ref.apply(this, arguments);
|
|
@@ -69150,10 +69132,10 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
69150
69132
|
}));
|
|
69151
69133
|
exports.versionInfo = void 0;
|
|
69152
69134
|
var versionInfo = {
|
|
69153
|
-
buildTime: '2023-
|
|
69154
|
-
commit: '
|
|
69135
|
+
buildTime: '2023-03-17T10:43:05Z',
|
|
69136
|
+
commit: '5b3471ff0bc08942d334b9bc9a6992adcb5cdb6b',
|
|
69155
69137
|
npmInfo: {
|
|
69156
|
-
'solid-ui': '2.4.
|
|
69138
|
+
'solid-ui': '2.4.27',
|
|
69157
69139
|
npm: '8.19.4',
|
|
69158
69140
|
node: '16.19.1',
|
|
69159
69141
|
v8: '9.4.146.26-node.24',
|
|
@@ -83586,33 +83568,21 @@ class RemoteJWKSet extends _local_js__WEBPACK_IMPORTED_MODULE_3__.LocalJWKSet {
|
|
|
83586
83568
|
}
|
|
83587
83569
|
async reload() {
|
|
83588
83570
|
if (this._pendingFetch && (0,_runtime_env_js__WEBPACK_IMPORTED_MODULE_1__.isCloudflareWorkers)()) {
|
|
83589
|
-
|
|
83590
|
-
const isDone = () => {
|
|
83591
|
-
if (this._pendingFetch === undefined) {
|
|
83592
|
-
resolve();
|
|
83593
|
-
}
|
|
83594
|
-
else {
|
|
83595
|
-
setTimeout(isDone, 5);
|
|
83596
|
-
}
|
|
83597
|
-
};
|
|
83598
|
-
isDone();
|
|
83599
|
-
});
|
|
83600
|
-
}
|
|
83601
|
-
if (!this._pendingFetch) {
|
|
83602
|
-
this._pendingFetch = (0,_runtime_fetch_jwks_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this._url, this._timeoutDuration, this._options)
|
|
83603
|
-
.then((json) => {
|
|
83604
|
-
if (!(0,_local_js__WEBPACK_IMPORTED_MODULE_3__.isJWKSLike)(json)) {
|
|
83605
|
-
throw new _util_errors_js__WEBPACK_IMPORTED_MODULE_2__.JWKSInvalid('JSON Web Key Set malformed');
|
|
83606
|
-
}
|
|
83607
|
-
this._jwks = { keys: json.keys };
|
|
83608
|
-
this._jwksTimestamp = Date.now();
|
|
83609
|
-
this._pendingFetch = undefined;
|
|
83610
|
-
})
|
|
83611
|
-
.catch((err) => {
|
|
83612
|
-
this._pendingFetch = undefined;
|
|
83613
|
-
throw err;
|
|
83614
|
-
});
|
|
83571
|
+
this._pendingFetch = undefined;
|
|
83615
83572
|
}
|
|
83573
|
+
this._pendingFetch || (this._pendingFetch = (0,_runtime_fetch_jwks_js__WEBPACK_IMPORTED_MODULE_0__["default"])(this._url, this._timeoutDuration, this._options)
|
|
83574
|
+
.then((json) => {
|
|
83575
|
+
if (!(0,_local_js__WEBPACK_IMPORTED_MODULE_3__.isJWKSLike)(json)) {
|
|
83576
|
+
throw new _util_errors_js__WEBPACK_IMPORTED_MODULE_2__.JWKSInvalid('JSON Web Key Set malformed');
|
|
83577
|
+
}
|
|
83578
|
+
this._jwks = { keys: json.keys };
|
|
83579
|
+
this._jwksTimestamp = Date.now();
|
|
83580
|
+
this._pendingFetch = undefined;
|
|
83581
|
+
})
|
|
83582
|
+
.catch((err) => {
|
|
83583
|
+
this._pendingFetch = undefined;
|
|
83584
|
+
throw err;
|
|
83585
|
+
}));
|
|
83616
83586
|
await this._pendingFetch;
|
|
83617
83587
|
}
|
|
83618
83588
|
}
|