@bytescale/sdk 3.10.0 → 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser/cjs/main.js
CHANGED
|
@@ -2372,15 +2372,15 @@ var ConsoleUtils = /*#__PURE__*/function () {
|
|
|
2372
2372
|
ConsoleUtils_classCallCheck(this, ConsoleUtils);
|
|
2373
2373
|
}
|
|
2374
2374
|
ConsoleUtils_createClass(ConsoleUtils, null, [{
|
|
2375
|
-
key: "error",
|
|
2376
|
-
value: function error(message) {
|
|
2377
|
-
console.error(ConsoleUtils.prefix(message));
|
|
2378
|
-
}
|
|
2379
|
-
}, {
|
|
2380
2375
|
key: "warn",
|
|
2381
2376
|
value: function warn(message) {
|
|
2382
2377
|
console.warn(ConsoleUtils.prefix(message));
|
|
2383
2378
|
}
|
|
2379
|
+
}, {
|
|
2380
|
+
key: "error",
|
|
2381
|
+
value: function error(message) {
|
|
2382
|
+
console.error(ConsoleUtils.prefix(message));
|
|
2383
|
+
}
|
|
2384
2384
|
}, {
|
|
2385
2385
|
key: "prefix",
|
|
2386
2386
|
value: function prefix(message) {
|
|
@@ -2551,13 +2551,15 @@ var AuthManagerImpl = /*#__PURE__*/function () {
|
|
|
2551
2551
|
});
|
|
2552
2552
|
});
|
|
2553
2553
|
}, function (e) {
|
|
2554
|
-
// Use '
|
|
2555
|
-
ConsoleUtils.
|
|
2554
|
+
// Use 'warn' instead of 'error' since this happens frequently, i.e. user goes through a tunnel, and some customers report these errors to systems like Sentry, so we don't want to spam.
|
|
2555
|
+
ConsoleUtils.warn("Unable to refresh JWT access token: ".concat(e));
|
|
2556
2556
|
});
|
|
2557
2557
|
}, function (_wasThrown, _result) {
|
|
2558
2558
|
session.accessTokenRefreshHandle = window.setTimeout(function () {
|
|
2559
|
-
_this6.refreshAccessToken(session).then(function () {},
|
|
2560
|
-
|
|
2559
|
+
_this6.refreshAccessToken(session).then(function () {},
|
|
2560
|
+
// Should not occur, as this method shouldn't throw errors.
|
|
2561
|
+
function (e) {
|
|
2562
|
+
return ConsoleUtils.error("Unexpected error when refreshing JWT access token: ".concat(e));
|
|
2561
2563
|
});
|
|
2562
2564
|
}, timeout * 1000);
|
|
2563
2565
|
return AuthManagerBrowser_rethrow(_wasThrown, _result);
|
|
@@ -2357,15 +2357,15 @@ var ConsoleUtils = /*#__PURE__*/function () {
|
|
|
2357
2357
|
ConsoleUtils_classCallCheck(this, ConsoleUtils);
|
|
2358
2358
|
}
|
|
2359
2359
|
ConsoleUtils_createClass(ConsoleUtils, null, [{
|
|
2360
|
-
key: "error",
|
|
2361
|
-
value: function error(message) {
|
|
2362
|
-
console.error(ConsoleUtils.prefix(message));
|
|
2363
|
-
}
|
|
2364
|
-
}, {
|
|
2365
2360
|
key: "warn",
|
|
2366
2361
|
value: function warn(message) {
|
|
2367
2362
|
console.warn(ConsoleUtils.prefix(message));
|
|
2368
2363
|
}
|
|
2364
|
+
}, {
|
|
2365
|
+
key: "error",
|
|
2366
|
+
value: function error(message) {
|
|
2367
|
+
console.error(ConsoleUtils.prefix(message));
|
|
2368
|
+
}
|
|
2369
2369
|
}, {
|
|
2370
2370
|
key: "prefix",
|
|
2371
2371
|
value: function prefix(message) {
|
|
@@ -2536,13 +2536,15 @@ var AuthManagerImpl = /*#__PURE__*/function () {
|
|
|
2536
2536
|
});
|
|
2537
2537
|
});
|
|
2538
2538
|
}, function (e) {
|
|
2539
|
-
// Use '
|
|
2540
|
-
ConsoleUtils.
|
|
2539
|
+
// Use 'warn' instead of 'error' since this happens frequently, i.e. user goes through a tunnel, and some customers report these errors to systems like Sentry, so we don't want to spam.
|
|
2540
|
+
ConsoleUtils.warn("Unable to refresh JWT access token: ".concat(e));
|
|
2541
2541
|
});
|
|
2542
2542
|
}, function (_wasThrown, _result) {
|
|
2543
2543
|
session.accessTokenRefreshHandle = window.setTimeout(function () {
|
|
2544
|
-
_this6.refreshAccessToken(session).then(function () {},
|
|
2545
|
-
|
|
2544
|
+
_this6.refreshAccessToken(session).then(function () {},
|
|
2545
|
+
// Should not occur, as this method shouldn't throw errors.
|
|
2546
|
+
function (e) {
|
|
2547
|
+
return ConsoleUtils.error("Unexpected error when refreshing JWT access token: ".concat(e));
|
|
2546
2548
|
});
|
|
2547
2549
|
}, timeout * 1000);
|
|
2548
2550
|
return AuthManagerBrowser_rethrow(_wasThrown, _result);
|